[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 07/12] target/arm: Use tcg_constant_i32() in op_smlad()
From: |
Richard Henderson |
Subject: |
[PULL 07/12] target/arm: Use tcg_constant_i32() in op_smlad() |
Date: |
Tue, 2 Nov 2021 06:59:29 -0400 |
From: Philippe Mathieu-Daudé <f4bug@amsat.org>
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>
---
target/arm/translate.c | 3 +--
1 file changed, 1 insertion(+), 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);
}
--
2.25.1
- [PULL 00/12] target/arm patch queue, Richard Henderson, 2021/11/02
- [PULL 01/12] hw/sd: add nuvoton MMC, Richard Henderson, 2021/11/02
- [PULL 02/12] hw/arm: Add Nuvoton SD module to board, Richard Henderson, 2021/11/02
- [PULL 03/12] hw/arm: Attach MMC to quanta-gbs-bmc, Richard Henderson, 2021/11/02
- [PULL 04/12] tests/qtest/libqos: add SDHCI commands, Richard Henderson, 2021/11/02
- [PULL 05/12] tests/qtest: add qtests for npcm7xx sdhci, Richard Henderson, 2021/11/02
- [PULL 07/12] target/arm: Use tcg_constant_i32() in op_smlad(),
Richard Henderson <=
- [PULL 08/12] target/arm: Introduce store_cpu_field_constant() helper, Richard Henderson, 2021/11/02
- [PULL 09/12] target/arm: Use the constant variant of store_cpu_field() when possible, Richard Henderson, 2021/11/02
- [PULL 10/12] target/arm: Use tcg_constant_i64() in do_sat_addsub_64(), Richard Henderson, 2021/11/02
- [PULL 06/12] target/arm: Advertise MVE to gdb when present, Richard Henderson, 2021/11/02
- [PULL 11/12] target/arm: Use tcg_constant_i32() in gen_rev16(), Richard Henderson, 2021/11/02
- [PULL 12/12] hw/arm/virt: Rename default_bus_bypass_iommu, Richard Henderson, 2021/11/02