mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
tcg: Merge INDEX_op_extract_{i32,i64}
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
5a4d034f3c
commit
07d5d502f2
7 changed files with 20 additions and 37 deletions
|
@ -1091,8 +1091,7 @@ static const TCGOutOp * const all_outop[NB_OPS] = {
|
|||
OUTOP(INDEX_op_divs2, TCGOutOpDivRem, outop_divs2),
|
||||
OUTOP(INDEX_op_divu2, TCGOutOpDivRem, outop_divu2),
|
||||
OUTOP(INDEX_op_eqv, TCGOutOpBinary, outop_eqv),
|
||||
OUTOP(INDEX_op_extract_i32, TCGOutOpExtract, outop_extract),
|
||||
OUTOP(INDEX_op_extract_i64, TCGOutOpExtract, outop_extract),
|
||||
OUTOP(INDEX_op_extract, TCGOutOpExtract, outop_extract),
|
||||
OUTOP(INDEX_op_movcond, TCGOutOpMovcond, outop_movcond),
|
||||
OUTOP(INDEX_op_mul, TCGOutOpBinary, outop_mul),
|
||||
OUTOP(INDEX_op_muls2, TCGOutOpMul2, outop_muls2),
|
||||
|
@ -2326,6 +2325,7 @@ bool tcg_op_supported(TCGOpcode op, TCGType type, unsigned flags)
|
|||
case INDEX_op_add:
|
||||
case INDEX_op_and:
|
||||
case INDEX_op_brcond:
|
||||
case INDEX_op_extract:
|
||||
case INDEX_op_mov:
|
||||
case INDEX_op_movcond:
|
||||
case INDEX_op_negsetcond:
|
||||
|
@ -2342,7 +2342,6 @@ bool tcg_op_supported(TCGOpcode op, TCGType type, unsigned flags)
|
|||
case INDEX_op_st8_i32:
|
||||
case INDEX_op_st16_i32:
|
||||
case INDEX_op_st_i32:
|
||||
case INDEX_op_extract_i32:
|
||||
case INDEX_op_sextract_i32:
|
||||
case INDEX_op_deposit_i32:
|
||||
return true;
|
||||
|
@ -2371,7 +2370,6 @@ bool tcg_op_supported(TCGOpcode op, TCGType type, unsigned flags)
|
|||
case INDEX_op_st_i64:
|
||||
case INDEX_op_ext_i32_i64:
|
||||
case INDEX_op_extu_i32_i64:
|
||||
case INDEX_op_extract_i64:
|
||||
case INDEX_op_sextract_i64:
|
||||
case INDEX_op_deposit_i64:
|
||||
return TCG_TARGET_REG_BITS == 64;
|
||||
|
@ -5519,8 +5517,7 @@ static void tcg_reg_alloc_op(TCGContext *s, const TCGOp *op)
|
|||
}
|
||||
break;
|
||||
|
||||
case INDEX_op_extract_i32:
|
||||
case INDEX_op_extract_i64:
|
||||
case INDEX_op_extract:
|
||||
{
|
||||
const TCGOutOpExtract *out =
|
||||
container_of(all_outop[op->opc], TCGOutOpExtract, base);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue