mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
tcg: Split out tcg_out_exts_i32_i64
We will need a backend interface for type extension with sign. Use it in tcg_reg_alloc_op in the meantime. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
9ecf5f61b8
commit
9c6aa274a4
11 changed files with 63 additions and 19 deletions
|
@ -111,6 +111,7 @@ static void tcg_out_ext8u(TCGContext *s, TCGReg ret, TCGReg arg);
|
|||
static void tcg_out_ext16u(TCGContext *s, TCGReg ret, TCGReg arg);
|
||||
static void tcg_out_ext32s(TCGContext *s, TCGReg ret, TCGReg arg);
|
||||
static void tcg_out_ext32u(TCGContext *s, TCGReg ret, TCGReg arg);
|
||||
static void tcg_out_exts_i32_i64(TCGContext *s, TCGReg ret, TCGReg arg);
|
||||
static void tcg_out_addi_ptr(TCGContext *s, TCGReg, TCGReg, tcg_target_long);
|
||||
static void tcg_out_exit_tb(TCGContext *s, uintptr_t arg);
|
||||
static void tcg_out_goto_tb(TCGContext *s, int which);
|
||||
|
@ -4529,6 +4530,9 @@ static void tcg_reg_alloc_op(TCGContext *s, const TCGOp *op)
|
|||
case INDEX_op_ext32u_i64:
|
||||
tcg_out_ext32u(s, new_args[0], new_args[1]);
|
||||
break;
|
||||
case INDEX_op_ext_i32_i64:
|
||||
tcg_out_exts_i32_i64(s, new_args[0], new_args[1]);
|
||||
break;
|
||||
default:
|
||||
if (def->flags & TCG_OPF_VECTOR) {
|
||||
tcg_out_vec_op(s, op->opc, TCGOP_VECL(op), TCGOP_VECE(op),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue