mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
tcg: Convert remu to TCGOutOpBinary
For TCI, we're losing type information in the interpreter. Introduce a tci-specific opcode to handle the difference. Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
9a6bc1840e
commit
967e7ccd9c
25 changed files with 112 additions and 101 deletions
|
@ -1041,6 +1041,8 @@ static const TCGOutOp * const all_outop[NB_OPS] = {
|
|||
OUTOP(INDEX_op_or, TCGOutOpBinary, outop_or),
|
||||
OUTOP(INDEX_op_orc, TCGOutOpBinary, outop_orc),
|
||||
OUTOP(INDEX_op_rems, TCGOutOpBinary, outop_rems),
|
||||
OUTOP(INDEX_op_remu_i32, TCGOutOpBinary, outop_remu),
|
||||
OUTOP(INDEX_op_remu_i64, TCGOutOpBinary, outop_remu),
|
||||
OUTOP(INDEX_op_sub, TCGOutOpSubtract, outop_sub),
|
||||
OUTOP(INDEX_op_xor, TCGOutOpBinary, outop_xor),
|
||||
};
|
||||
|
@ -2271,8 +2273,6 @@ bool tcg_op_supported(TCGOpcode op, TCGType type, unsigned flags)
|
|||
|
||||
case INDEX_op_negsetcond_i32:
|
||||
return TCG_TARGET_HAS_negsetcond_i32;
|
||||
case INDEX_op_remu_i32:
|
||||
return TCG_TARGET_HAS_rem_i32;
|
||||
case INDEX_op_rotl_i32:
|
||||
case INDEX_op_rotr_i32:
|
||||
return TCG_TARGET_HAS_rot_i32;
|
||||
|
@ -2327,8 +2327,6 @@ bool tcg_op_supported(TCGOpcode op, TCGType type, unsigned flags)
|
|||
|
||||
case INDEX_op_negsetcond_i64:
|
||||
return TCG_TARGET_HAS_negsetcond_i64;
|
||||
case INDEX_op_remu_i64:
|
||||
return TCG_TARGET_HAS_rem_i64;
|
||||
case INDEX_op_rotl_i64:
|
||||
case INDEX_op_rotr_i64:
|
||||
return TCG_TARGET_HAS_rot_i64;
|
||||
|
@ -5425,6 +5423,8 @@ static void tcg_reg_alloc_op(TCGContext *s, const TCGOp *op)
|
|||
case INDEX_op_or:
|
||||
case INDEX_op_orc:
|
||||
case INDEX_op_rems:
|
||||
case INDEX_op_remu_i32:
|
||||
case INDEX_op_remu_i64:
|
||||
case INDEX_op_xor:
|
||||
{
|
||||
const TCGOutOpBinary *out =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue