[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 40/47] target/arm: Use tcg_constant in do_clast_scalar
From: |
Richard Henderson |
Subject: |
[PATCH 40/47] target/arm: Use tcg_constant in do_clast_scalar |
Date: |
Tue, 26 Apr 2022 09:30:36 -0700 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/arm/translate-sve.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c
index c3d3f301c9..7a39ed0c06 100644
--- a/target/arm/translate-sve.c
+++ b/target/arm/translate-sve.c
@@ -2926,7 +2926,7 @@ static void do_clast_scalar(DisasContext *s, int esz, int
pg, int rm,
bool before, TCGv_i64 reg_val)
{
TCGv_i32 last = tcg_temp_new_i32();
- TCGv_i64 ele, cmp, zero;
+ TCGv_i64 ele, cmp;
find_last_active(s, last, esz, pg);
@@ -2946,10 +2946,9 @@ static void do_clast_scalar(DisasContext *s, int esz,
int pg, int rm,
ele = load_last_active(s, last, rm, esz);
tcg_temp_free_i32(last);
- zero = tcg_const_i64(0);
- tcg_gen_movcond_i64(TCG_COND_GE, reg_val, cmp, zero, ele, reg_val);
+ tcg_gen_movcond_i64(TCG_COND_GE, reg_val, cmp, tcg_constant_i64(0),
+ ele, reg_val);
- tcg_temp_free_i64(zero);
tcg_temp_free_i64(cmp);
tcg_temp_free_i64(ele);
}
--
2.34.1
- [PATCH 32/47] target/arm: Use tcg_constant in LDM, STM, (continued)
- [PATCH 32/47] target/arm: Use tcg_constant in LDM, STM, Richard Henderson, 2022/04/26
- [PATCH 31/47] target/arm: Use tcg_constant for TT, SAT, SMMLA, Richard Henderson, 2022/04/26
- [PATCH 39/47] target/arm: Use tcg_constant in {incr, wrap}_last_active, Richard Henderson, 2022/04/26
- [PATCH 38/47] target/arm: Use tcg_constant in FCPY, CPY, Richard Henderson, 2022/04/26
- [PATCH 36/47] target/arm: Use tcg_constant for trans_INDEX_*, Richard Henderson, 2022/04/26
- [PATCH 40/47] target/arm: Use tcg_constant in do_clast_scalar,
Richard Henderson <=
- [PATCH 41/47] target/arm: Use tcg_constant in WHILE, Richard Henderson, 2022/04/26
- [PATCH 42/47] target/arm: Use tcg_constant in LD1, ST1, Richard Henderson, 2022/04/26
- [PATCH 43/47] target/arm: Use tcg_constant in SUBR, Richard Henderson, 2022/04/26
- [PATCH 45/47] target/arm: Use tcg_constant for predicate descriptors, Richard Henderson, 2022/04/26
- [PATCH 44/47] target/arm: Use tcg_constant in do_zzi_{sat, ool}, do_fp_imm, Richard Henderson, 2022/04/26