[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 07/25] target/arm: Avoid tcg_const_ptr in gen_sve_{ldr, str}
From: |
Richard Henderson |
Subject: |
[PATCH v2 07/25] target/arm: Avoid tcg_const_ptr in gen_sve_{ldr, str} |
Date: |
Tue, 7 Mar 2023 10:34:45 -0800 |
This hides the implicit initialization of a variable.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/arm/tcg/translate-sve.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/target/arm/tcg/translate-sve.c b/target/arm/tcg/translate-sve.c
index 3ca60fb36b..92ab290106 100644
--- a/target/arm/tcg/translate-sve.c
+++ b/target/arm/tcg/translate-sve.c
@@ -4206,8 +4206,9 @@ void gen_sve_ldr(DisasContext *s, TCGv_ptr base, int vofs,
}
} else {
TCGLabel *loop = gen_new_label();
- TCGv_ptr tp, i = tcg_const_ptr(0);
+ TCGv_ptr tp, i = tcg_temp_new_ptr();
+ tcg_gen_movi_ptr(i, 0);
gen_set_label(loop);
t0 = tcg_temp_new_i64();
@@ -4284,8 +4285,9 @@ void gen_sve_str(DisasContext *s, TCGv_ptr base, int vofs,
}
} else {
TCGLabel *loop = gen_new_label();
- TCGv_ptr tp, i = tcg_const_ptr(0);
+ TCGv_ptr tp, i = tcg_temp_new_ptr();
+ tcg_gen_movi_ptr(i, 0);
gen_set_label(loop);
t0 = tcg_temp_new_i64();
--
2.34.1
- [PATCH v2 00/25] tcg: Remove tcg_const_*, Richard Henderson, 2023/03/07
- [PATCH v2 02/25] target/arm: Handle FPROUNDING_ODD in arm_rmode_to_sf, Richard Henderson, 2023/03/07
- [PATCH v2 01/25] target/arm: Use rmode >= 0 for need_rmode, Richard Henderson, 2023/03/07
- [PATCH v2 03/25] target/arm: Improve arm_rmode_to_sf, Richard Henderson, 2023/03/07
- [PATCH v2 04/25] target/arm: Consistently use ARMFPRounding during translation, Richard Henderson, 2023/03/07
- [PATCH v2 05/25] target/arm: Create gen_set_rmode, gen_restore_rmode, Richard Henderson, 2023/03/07
- [PATCH v2 06/25] target/arm: Improve trans_BFCI, Richard Henderson, 2023/03/07
- [PATCH v2 07/25] target/arm: Avoid tcg_const_ptr in gen_sve_{ldr, str},
Richard Henderson <=
- [PATCH v2 08/25] target/arm: Avoid tcg_const_* in translate-mve.c, Richard Henderson, 2023/03/07
- [PATCH v2 09/25] target/arm: Avoid tcg_const_ptr in disas_simd_zip_trn, Richard Henderson, 2023/03/07
- [PATCH v2 11/25] target/arm: Avoid tcg_const_ptr in handle_rev, Richard Henderson, 2023/03/07
- [PATCH v2 13/25] target/m68k: Use tcg_constant_i32 in gen_ea_mode, Richard Henderson, 2023/03/07
- [PATCH v2 14/25] target/ppc: Avoid tcg_const_i64 in do_vcntmb, Richard Henderson, 2023/03/07
- [PATCH v2 15/25] target/ppc: Avoid tcg_const_* in vmx-impl.c.inc, Richard Henderson, 2023/03/07