mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
tcg/mips: Conditionalize tcg_out_exts_i32_i64
Since TCG_TYPE_I32 values are kept sign-extended in registers, we need not extend if the register matches. This is already relied upon by comparisons. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
341ac0a055
commit
c6a98619f7
1 changed files with 3 additions and 1 deletions
|
@ -582,7 +582,9 @@ static void tcg_out_ext32s(TCGContext *s, TCGReg rd, TCGReg rs)
|
|||
|
||||
static void tcg_out_exts_i32_i64(TCGContext *s, TCGReg rd, TCGReg rs)
|
||||
{
|
||||
tcg_out_ext32s(s, rd, rs);
|
||||
if (rd != rs) {
|
||||
tcg_out_ext32s(s, rd, rs);
|
||||
}
|
||||
}
|
||||
|
||||
static void tcg_out_extu_i32_i64(TCGContext *s, TCGReg rd, TCGReg rs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue