mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
tcg: Split out tcg_out_ext16u
We will need a backend interface for performing 16-bit zero-extend. 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
753e42eada
commit
379afdff47
11 changed files with 66 additions and 42 deletions
|
@ -790,7 +790,7 @@ static void tcg_out_ext16s(TCGContext *s, TCGType type, TCGReg dst, TCGReg src)
|
|||
tcg_out32(s, EXTSH | RA(dst) | RS(src));
|
||||
}
|
||||
|
||||
static inline void tcg_out_ext16u(TCGContext *s, TCGReg dst, TCGReg src)
|
||||
static void tcg_out_ext16u(TCGContext *s, TCGReg dst, TCGReg src)
|
||||
{
|
||||
tcg_out32(s, ANDI | SAI(src, dst, 0xffff));
|
||||
}
|
||||
|
@ -3128,6 +3128,8 @@ static void tcg_out_op(TCGContext *s, TCGOpcode opc,
|
|||
case INDEX_op_ext8u_i64:
|
||||
case INDEX_op_ext16s_i32:
|
||||
case INDEX_op_ext16s_i64:
|
||||
case INDEX_op_ext16u_i32:
|
||||
case INDEX_op_ext16u_i64:
|
||||
default:
|
||||
g_assert_not_reached();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue