[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 64/70] target/xtensa: Avoid tcg_const_i32 in translate_l32r
From: |
Richard Henderson |
Subject: |
[PATCH 64/70] target/xtensa: Avoid tcg_const_i32 in translate_l32r |
Date: |
Sun, 26 Feb 2023 19:42:27 -1000 |
Use addi on the addition side and tcg_constant_i32 on the other.
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
- Re: [PATCH 58/70] target/tricore: Use min/max for saturate, (continued)
- [PATCH 63/70] target/xtensa: Tidy translate_clamps, Richard Henderson, 2023/02/27
- [PATCH 65/70] target/xtensa: Use tcg_gen_subfi_i32 in translate_sll, Richard Henderson, 2023/02/27
- [PATCH 56/70] target/tricore: Split t_n as constant from temp as variable, Richard Henderson, 2023/02/27
- [PATCH 57/70] target/tricore: Rename t_off10 and use tcg_constant_i32, Richard Henderson, 2023/02/27
- [PATCH 59/70] target/tricore: Use setcondi instead of explicit allocation, Richard Henderson, 2023/02/27
- [PATCH 61/70] target/tricore: Avoid tcg_const_i32, Richard Henderson, 2023/02/27
- [PATCH 60/70] target/tricore: Drop some temp initialization, Richard Henderson, 2023/02/27
- [PATCH 64/70] target/xtensa: Avoid tcg_const_i32 in translate_l32r,
Richard Henderson <=
- [PATCH 66/70] target/xtensa: Split constant in bit shift, Richard Henderson, 2023/02/27
- [PATCH 62/70] target/xtensa: Tidy translate_bb, Richard Henderson, 2023/02/27
- [PATCH 67/70] target/xtensa: Avoid tcg_const_i32, Richard Henderson, 2023/02/27
- [PATCH 68/70] tcg: Replace tcg_const_i64 in tcg-op.c, Richard Henderson, 2023/02/27
- [PATCH 69/70] tcg: Drop tcg_const_*_vec, Richard Henderson, 2023/02/27
- [PATCH 70/70] tcg: Drop tcg_const_*, Richard Henderson, 2023/02/27