target/arm: Use tcg_constant in shift_reg_imm
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 20220426163043.100432-14-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
12f1d809e6
commit
858943f0e2
@ -4678,11 +4678,7 @@ static void shift_reg_imm(TCGv_i64 dst, TCGv_i64 src, int sf,
|
||||
if (shift_i == 0) {
|
||||
tcg_gen_mov_i64(dst, src);
|
||||
} else {
|
||||
TCGv_i64 shift_const;
|
||||
|
||||
shift_const = tcg_const_i64(shift_i);
|
||||
shift_reg(dst, src, sf, shift_type, shift_const);
|
||||
tcg_temp_free_i64(shift_const);
|
||||
shift_reg(dst, src, sf, shift_type, tcg_constant_i64(shift_i));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user