Skip to content

Commit

Permalink
target-tilegx: Use ctpop helper
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Henderson <rth@twiddle.net>
  • Loading branch information
rth7680 committed Jan 10, 2017
1 parent 08da318 commit 3253cdd
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
5 changes: 0 additions & 5 deletions target/tilegx/helper.c
Expand Up @@ -55,11 +55,6 @@ void helper_ext01_ics(CPUTLGState *env)
}
}

uint64_t helper_pcnt(uint64_t arg)
{
return ctpop64(arg);
}

uint64_t helper_revbits(uint64_t arg)
{
return revbit64(arg);
Expand Down
1 change: 0 additions & 1 deletion target/tilegx/helper.h
@@ -1,6 +1,5 @@
DEF_HELPER_2(exception, noreturn, env, i32)
DEF_HELPER_1(ext01_ics, void, env)
DEF_HELPER_FLAGS_1(pcnt, TCG_CALL_NO_RWG_SE, i64, i64)
DEF_HELPER_FLAGS_1(revbits, TCG_CALL_NO_RWG_SE, i64, i64)
DEF_HELPER_FLAGS_3(shufflebytes, TCG_CALL_NO_RWG_SE, i64, i64, i64, i64)
DEF_HELPER_FLAGS_2(crc32_8, TCG_CALL_NO_RWG_SE, i64, i64, i64)
Expand Down
2 changes: 1 addition & 1 deletion target/tilegx/translate.c
Expand Up @@ -697,7 +697,7 @@ static TileExcp gen_rr_opcode(DisasContext *dc, unsigned opext,
break;
case OE_RR_X0(PCNT):
case OE_RR_Y0(PCNT):
gen_helper_pcnt(tdest, tsrca);
tcg_gen_ctpop_tl(tdest, tsrca);
mnemonic = "pcnt";
break;
case OE_RR_X0(REVBITS):
Expand Down

0 comments on commit 3253cdd

Please sign in to comment.