mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
target/arm: Use tcg_constant in disas_cond_select
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 20220426163043.100432-15-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
858943f0e2
commit
a8b05af133
1 changed files with 1 additions and 2 deletions
|
@ -5255,7 +5255,7 @@ static void disas_cond_select(DisasContext *s, uint32_t insn)
|
||||||
tcg_rd = cpu_reg(s, rd);
|
tcg_rd = cpu_reg(s, rd);
|
||||||
|
|
||||||
a64_test_cc(&c, cond);
|
a64_test_cc(&c, cond);
|
||||||
zero = tcg_const_i64(0);
|
zero = tcg_constant_i64(0);
|
||||||
|
|
||||||
if (rn == 31 && rm == 31 && (else_inc ^ else_inv)) {
|
if (rn == 31 && rm == 31 && (else_inc ^ else_inv)) {
|
||||||
/* CSET & CSETM. */
|
/* CSET & CSETM. */
|
||||||
|
@ -5276,7 +5276,6 @@ static void disas_cond_select(DisasContext *s, uint32_t insn)
|
||||||
tcg_gen_movcond_i64(c.cond, tcg_rd, c.value, zero, t_true, t_false);
|
tcg_gen_movcond_i64(c.cond, tcg_rd, c.value, zero, t_true, t_false);
|
||||||
}
|
}
|
||||||
|
|
||||||
tcg_temp_free_i64(zero);
|
|
||||||
a64_free_cc(&c);
|
a64_free_cc(&c);
|
||||||
|
|
||||||
if (!sf) {
|
if (!sf) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue