mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
tcg: Convert ctpop to TCGOutOpUnary
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
c96447d838
commit
f8fa1dae3d
24 changed files with 151 additions and 113 deletions
|
@ -1027,6 +1027,8 @@ static const TCGOutOp * const all_outop[NB_OPS] = {
|
|||
OUTOP(INDEX_op_and, TCGOutOpBinary, outop_and),
|
||||
OUTOP(INDEX_op_andc, TCGOutOpBinary, outop_andc),
|
||||
OUTOP(INDEX_op_clz, TCGOutOpBinary, outop_clz),
|
||||
OUTOP(INDEX_op_ctpop_i32, TCGOutOpUnary, outop_ctpop),
|
||||
OUTOP(INDEX_op_ctpop_i64, TCGOutOpUnary, outop_ctpop),
|
||||
OUTOP(INDEX_op_ctz, TCGOutOpBinary, outop_ctz),
|
||||
OUTOP(INDEX_op_divs, TCGOutOpBinary, outop_divs),
|
||||
OUTOP(INDEX_op_divu, TCGOutOpBinary, outop_divu),
|
||||
|
@ -2290,8 +2292,6 @@ bool tcg_op_supported(TCGOpcode op, TCGType type, unsigned flags)
|
|||
return TCG_TARGET_HAS_bswap16_i32;
|
||||
case INDEX_op_bswap32_i32:
|
||||
return TCG_TARGET_HAS_bswap32_i32;
|
||||
case INDEX_op_ctpop_i32:
|
||||
return TCG_TARGET_HAS_ctpop_i32;
|
||||
|
||||
case INDEX_op_brcond2_i32:
|
||||
case INDEX_op_setcond2_i32:
|
||||
|
@ -2331,8 +2331,6 @@ bool tcg_op_supported(TCGOpcode op, TCGType type, unsigned flags)
|
|||
return TCG_TARGET_HAS_bswap32_i64;
|
||||
case INDEX_op_bswap64_i64:
|
||||
return TCG_TARGET_HAS_bswap64_i64;
|
||||
case INDEX_op_ctpop_i64:
|
||||
return TCG_TARGET_HAS_ctpop_i64;
|
||||
case INDEX_op_add2_i64:
|
||||
return TCG_TARGET_HAS_add2_i64;
|
||||
case INDEX_op_sub2_i64:
|
||||
|
@ -5449,6 +5447,8 @@ static void tcg_reg_alloc_op(TCGContext *s, const TCGOp *op)
|
|||
}
|
||||
break;
|
||||
|
||||
case INDEX_op_ctpop_i32:
|
||||
case INDEX_op_ctpop_i64:
|
||||
case INDEX_op_neg:
|
||||
case INDEX_op_not:
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue