summaryrefslogtreecommitdiffstats
path: root/target/arm/translate.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2021-10-30 01:18:30 +0200
committerRichard Henderson2021-11-02 19:14:55 +0100
commit060c1f4252bd8bfa06e311bdcb665b46964ce0f3 (patch)
tree5e77f0ba3f4a6634f9b9cd565f4b7ec55a1a6067 /target/arm/translate.c
parenttarget/arm: Advertise MVE to gdb when present (diff)
downloadqemu-060c1f4252bd8bfa06e311bdcb665b46964ce0f3.tar.gz
qemu-060c1f4252bd8bfa06e311bdcb665b46964ce0f3.tar.xz
qemu-060c1f4252bd8bfa06e311bdcb665b46964ce0f3.zip
target/arm: Use tcg_constant_i32() in op_smlad()
Avoid using a TCG temporary for a read-only constant. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20211029231834.2476117-2-f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/arm/translate.c')
-rw-r--r--target/arm/translate.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/target/arm/translate.c b/target/arm/translate.c
index d6af5b1b03..083a6d6ed7 100644
--- a/target/arm/translate.c
+++ b/target/arm/translate.c
@@ -7849,10 +7849,9 @@ static bool op_smlad(DisasContext *s, arg_rrrr *a, bool m_swap, bool sub)
t3 = tcg_temp_new_i32();
tcg_gen_sari_i32(t3, t1, 31);
qf = load_cpu_field(QF);
- one = tcg_const_i32(1);
+ one = tcg_constant_i32(1);
tcg_gen_movcond_i32(TCG_COND_NE, qf, t2, t3, one, qf);
store_cpu_field(qf, QF);
- tcg_temp_free_i32(one);
tcg_temp_free_i32(t3);
tcg_temp_free_i32(t2);
}