mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
tcg: Merge INDEX_op_or_{i32,i64}
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
6497af5b0d
commit
49bd751497
8 changed files with 16 additions and 19 deletions
|
@ -1007,8 +1007,7 @@ static const TCGOutOp * const all_outop[NB_OPS] = {
|
|||
OUTOP(INDEX_op_add, TCGOutOpBinary, outop_add),
|
||||
OUTOP(INDEX_op_and, TCGOutOpBinary, outop_and),
|
||||
OUTOP(INDEX_op_andc, TCGOutOpBinary, outop_andc),
|
||||
OUTOP(INDEX_op_or_i32, TCGOutOpBinary, outop_or),
|
||||
OUTOP(INDEX_op_or_i64, TCGOutOpBinary, outop_or),
|
||||
OUTOP(INDEX_op_or, TCGOutOpBinary, outop_or),
|
||||
};
|
||||
|
||||
#undef OUTOP
|
||||
|
@ -2212,6 +2211,7 @@ bool tcg_op_supported(TCGOpcode op, TCGType type, unsigned flags)
|
|||
case INDEX_op_add:
|
||||
case INDEX_op_and:
|
||||
case INDEX_op_mov:
|
||||
case INDEX_op_or:
|
||||
return has_type;
|
||||
|
||||
case INDEX_op_setcond_i32:
|
||||
|
@ -2228,7 +2228,6 @@ bool tcg_op_supported(TCGOpcode op, TCGType type, unsigned flags)
|
|||
case INDEX_op_sub_i32:
|
||||
case INDEX_op_neg_i32:
|
||||
case INDEX_op_mul_i32:
|
||||
case INDEX_op_or_i32:
|
||||
case INDEX_op_xor_i32:
|
||||
case INDEX_op_shl_i32:
|
||||
case INDEX_op_shr_i32:
|
||||
|
@ -2308,7 +2307,6 @@ bool tcg_op_supported(TCGOpcode op, TCGType type, unsigned flags)
|
|||
case INDEX_op_sub_i64:
|
||||
case INDEX_op_neg_i64:
|
||||
case INDEX_op_mul_i64:
|
||||
case INDEX_op_or_i64:
|
||||
case INDEX_op_xor_i64:
|
||||
case INDEX_op_shl_i64:
|
||||
case INDEX_op_shr_i64:
|
||||
|
@ -5443,8 +5441,7 @@ static void tcg_reg_alloc_op(TCGContext *s, const TCGOp *op)
|
|||
case INDEX_op_add:
|
||||
case INDEX_op_and:
|
||||
case INDEX_op_andc:
|
||||
case INDEX_op_or_i32:
|
||||
case INDEX_op_or_i64:
|
||||
case INDEX_op_or:
|
||||
{
|
||||
const TCGOutOpBinary *out =
|
||||
container_of(all_outop[op->opc], TCGOutOpBinary, base);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue