target-tilegx: Use ctpop helper
Signed-off-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
08da3180dc
commit
3253cddd21
@ -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)
|
uint64_t helper_revbits(uint64_t arg)
|
||||||
{
|
{
|
||||||
return revbit64(arg);
|
return revbit64(arg);
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
DEF_HELPER_2(exception, noreturn, env, i32)
|
DEF_HELPER_2(exception, noreturn, env, i32)
|
||||||
DEF_HELPER_1(ext01_ics, void, env)
|
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_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_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)
|
DEF_HELPER_FLAGS_2(crc32_8, TCG_CALL_NO_RWG_SE, i64, i64, i64)
|
||||||
|
@ -697,7 +697,7 @@ static TileExcp gen_rr_opcode(DisasContext *dc, unsigned opext,
|
|||||||
break;
|
break;
|
||||||
case OE_RR_X0(PCNT):
|
case OE_RR_X0(PCNT):
|
||||||
case OE_RR_Y0(PCNT):
|
case OE_RR_Y0(PCNT):
|
||||||
gen_helper_pcnt(tdest, tsrca);
|
tcg_gen_ctpop_tl(tdest, tsrca);
|
||||||
mnemonic = "pcnt";
|
mnemonic = "pcnt";
|
||||||
break;
|
break;
|
||||||
case OE_RR_X0(REVBITS):
|
case OE_RR_X0(REVBITS):
|
||||||
|
Loading…
Reference in New Issue
Block a user