[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 81/84] target/xtensa: Avoid tcg_const_i32 in translate_l32r
From: |
Richard Henderson |
Subject: |
[PULL 81/84] target/xtensa: Avoid tcg_const_i32 in translate_l32r |
Date: |
Sun, 5 Mar 2023 16:39:51 -0800 |
Use addi on the addition side and tcg_constant_i32 on the other.
Reviewed-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/xtensa/translate.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/target/xtensa/translate.c b/target/xtensa/translate.c
index d727f9ffd8..41b84082de 100644
--- a/target/xtensa/translate.c
+++ b/target/xtensa/translate.c
@@ -1721,10 +1721,10 @@ static void translate_l32r(DisasContext *dc, const
OpcodeArg arg[],
TCGv_i32 tmp;
if (dc->base.tb->flags & XTENSA_TBFLAG_LITBASE) {
- tmp = tcg_const_i32(arg[1].raw_imm - 1);
- tcg_gen_add_i32(tmp, cpu_SR[LITBASE], tmp);
+ tmp = tcg_temp_new();
+ tcg_gen_addi_i32(tmp, cpu_SR[LITBASE], arg[1].raw_imm - 1);
} else {
- tmp = tcg_const_i32(arg[1].imm);
+ tmp = tcg_constant_i32(arg[1].imm);
}
tcg_gen_qemu_ld32u(arg[0].out, tmp, dc->cring);
}
--
2.34.1
- [PULL 77/84] target/s390x: Split out gen_ri2, (continued)
- [PULL 77/84] target/s390x: Split out gen_ri2, Richard Henderson, 2023/03/05
- [PULL 75/84] target/microblaze: Avoid tcg_const_* throughout, Richard Henderson, 2023/03/05
- [PULL 53/84] target/rx: Drop tcg_temp_free, Richard Henderson, 2023/03/05
- [PULL 56/84] target/sparc: Drop get_temp_i32, Richard Henderson, 2023/03/05
- [PULL 70/84] target/hexagon/idef-parser: Use gen_tmp for LPCFG, Richard Henderson, 2023/03/05
- [PULL 79/84] target/xtensa: Tidy translate_bb, Richard Henderson, 2023/03/05
- [PULL 80/84] target/xtensa: Tidy translate_clamps, Richard Henderson, 2023/03/05
- [PULL 83/84] target/xtensa: Split constant in bit shift, Richard Henderson, 2023/03/05
- [PULL 82/84] target/xtensa: Use tcg_gen_subfi_i32 in translate_sll, Richard Henderson, 2023/03/05
- [PULL 84/84] target/xtensa: Avoid tcg_const_i32, Richard Henderson, 2023/03/05
- [PULL 81/84] target/xtensa: Avoid tcg_const_i32 in translate_l32r,
Richard Henderson <=
- Re: [PULL 00/84] tcg patch queue, Peter Maydell, 2023/03/06