mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
tcg: Split out tcg_out_extu_i32_i64
We will need a backend interface for type extension with zero. 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
9c6aa274a4
commit
b9bfe000f9
11 changed files with 63 additions and 28 deletions
|
@ -1462,6 +1462,11 @@ static void tcg_out_ext32u(TCGContext *s, TCGReg rd, TCGReg rn)
|
|||
tcg_out_movr(s, TCG_TYPE_I32, rd, rn);
|
||||
}
|
||||
|
||||
static void tcg_out_extu_i32_i64(TCGContext *s, TCGReg rd, TCGReg rn)
|
||||
{
|
||||
tcg_out_ext32u(s, rd, rn);
|
||||
}
|
||||
|
||||
static void tcg_out_addsubi(TCGContext *s, int ext, TCGReg rd,
|
||||
TCGReg rn, int64_t aimm)
|
||||
{
|
||||
|
@ -2265,10 +2270,6 @@ static void tcg_out_op(TCGContext *s, TCGOpcode opc,
|
|||
}
|
||||
break;
|
||||
|
||||
case INDEX_op_extu_i32_i64:
|
||||
tcg_out_ext32u(s, a0, a1);
|
||||
break;
|
||||
|
||||
case INDEX_op_deposit_i64:
|
||||
case INDEX_op_deposit_i32:
|
||||
tcg_out_dep(s, ext, a0, REG0(2), args[3], args[4]);
|
||||
|
@ -2335,6 +2336,7 @@ static void tcg_out_op(TCGContext *s, TCGOpcode opc,
|
|||
case INDEX_op_ext32s_i64:
|
||||
case INDEX_op_ext32u_i64:
|
||||
case INDEX_op_ext_i32_i64:
|
||||
case INDEX_op_extu_i32_i64:
|
||||
default:
|
||||
g_assert_not_reached();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue