[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 39/47] target/arm: Use tcg_constant in {incr, wrap}_last_active
From: |
Richard Henderson |
Subject: |
[PATCH 39/47] target/arm: Use tcg_constant in {incr, wrap}_last_active |
Date: |
Tue, 26 Apr 2022 09:30:35 -0700 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/arm/translate-sve.c | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c
index ef57d3a2b4..c3d3f301c9 100644
--- a/target/arm/translate-sve.c
+++ b/target/arm/translate-sve.c
@@ -2793,11 +2793,9 @@ static void incr_last_active(DisasContext *s, TCGv_i32
last, int esz)
if (is_power_of_2(vsz)) {
tcg_gen_andi_i32(last, last, vsz - 1);
} else {
- TCGv_i32 max = tcg_const_i32(vsz);
- TCGv_i32 zero = tcg_const_i32(0);
+ TCGv_i32 max = tcg_constant_i32(vsz);
+ TCGv_i32 zero = tcg_constant_i32(0);
tcg_gen_movcond_i32(TCG_COND_GEU, last, last, max, zero, last);
- tcg_temp_free_i32(max);
- tcg_temp_free_i32(zero);
}
}
@@ -2809,11 +2807,9 @@ static void wrap_last_active(DisasContext *s, TCGv_i32
last, int esz)
if (is_power_of_2(vsz)) {
tcg_gen_andi_i32(last, last, vsz - 1);
} else {
- TCGv_i32 max = tcg_const_i32(vsz - (1 << esz));
- TCGv_i32 zero = tcg_const_i32(0);
+ TCGv_i32 max = tcg_constant_i32(vsz - (1 << esz));
+ TCGv_i32 zero = tcg_constant_i32(0);
tcg_gen_movcond_i32(TCG_COND_LT, last, last, zero, max, last);
- tcg_temp_free_i32(max);
- tcg_temp_free_i32(zero);
}
}
--
2.34.1
- [PATCH 33/47] target/arm: Use tcg_constant in CLRM, DLS, WLS, LE, (continued)
- [PATCH 33/47] target/arm: Use tcg_constant in CLRM, DLS, WLS, LE, Richard Henderson, 2022/04/26
- [PATCH 22/47] target/arm: Use tcg_constant for aa32 exceptions, Richard Henderson, 2022/04/26
- [PATCH 25/47] target/arm: Use tcg_constant for vector shift expanders, Richard Henderson, 2022/04/26
- [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 <=
- [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, 2022/04/26
- [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