[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 38/54] target/arm: Use tcg_constant in FCPY, CPY
From: |
Peter Maydell |
Subject: |
[PULL 38/54] target/arm: Use tcg_constant in FCPY, CPY |
Date: |
Thu, 28 Apr 2022 15:39:42 +0100 |
From: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20220426163043.100432-39-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
target/arm/translate-sve.c | 13 ++++---------
1 file changed, 4 insertions(+), 9 deletions(-)
diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c
index 9321457f31e..ef57d3a2b49 100644
--- a/target/arm/translate-sve.c
+++ b/target/arm/translate-sve.c
@@ -2259,9 +2259,7 @@ static bool trans_FCPY(DisasContext *s, arg_FCPY *a)
if (sve_access_check(s)) {
/* Decode the VFP immediate. */
uint64_t imm = vfp_expand_imm(a->esz, a->imm);
- TCGv_i64 t_imm = tcg_const_i64(imm);
- do_cpy_m(s, a->esz, a->rd, a->rn, a->pg, t_imm);
- tcg_temp_free_i64(t_imm);
+ do_cpy_m(s, a->esz, a->rd, a->rn, a->pg, tcg_constant_i64(imm));
}
return true;
}
@@ -2272,9 +2270,7 @@ static bool trans_CPY_m_i(DisasContext *s, arg_rpri_esz
*a)
return false;
}
if (sve_access_check(s)) {
- TCGv_i64 t_imm = tcg_const_i64(a->imm);
- do_cpy_m(s, a->esz, a->rd, a->rn, a->pg, t_imm);
- tcg_temp_free_i64(t_imm);
+ do_cpy_m(s, a->esz, a->rd, a->rn, a->pg, tcg_constant_i64(a->imm));
}
return true;
}
@@ -2291,11 +2287,10 @@ static bool trans_CPY_z_i(DisasContext *s, arg_CPY_z_i
*a)
}
if (sve_access_check(s)) {
unsigned vsz = vec_full_reg_size(s);
- TCGv_i64 t_imm = tcg_const_i64(a->imm);
tcg_gen_gvec_2i_ool(vec_full_reg_offset(s, a->rd),
pred_full_reg_offset(s, a->pg),
- t_imm, vsz, vsz, 0, fns[a->esz]);
- tcg_temp_free_i64(t_imm);
+ tcg_constant_i64(a->imm),
+ vsz, vsz, 0, fns[a->esz]);
}
return true;
}
--
2.25.1
- [PULL 28/54] target/arm: Use tcg_constant for op_s_{rri,rxi}_rot, (continued)
- [PULL 28/54] target/arm: Use tcg_constant for op_s_{rri,rxi}_rot, Peter Maydell, 2022/04/28
- [PULL 30/54] target/arm: Use tcg_constant for v7m MRS, MSR, Peter Maydell, 2022/04/28
- [PULL 33/54] target/arm: Use tcg_constant in CLRM, DLS, WLS, LE, Peter Maydell, 2022/04/28
- [PULL 40/54] target/arm: Use tcg_constant in do_clast_scalar, Peter Maydell, 2022/04/28
- [PULL 45/54] target/arm: Use tcg_constant for predicate descriptors, Peter Maydell, 2022/04/28
- [PULL 42/54] target/arm: Use tcg_constant in LD1, ST1, Peter Maydell, 2022/04/28
- [PULL 46/54] target/arm: Use tcg_constant for do_brk{2,3}, Peter Maydell, 2022/04/28
- [PULL 47/54] target/arm: Use tcg_constant for vector descriptor, Peter Maydell, 2022/04/28
- [PULL 51/54] hw/arm/smmuv3: Add space in guest error message, Peter Maydell, 2022/04/28
- [PULL 25/54] target/arm: Use tcg_constant for vector shift expanders, Peter Maydell, 2022/04/28
- [PULL 38/54] target/arm: Use tcg_constant in FCPY, CPY,
Peter Maydell <=
- [PULL 36/54] target/arm: Use tcg_constant for trans_INDEX_*, Peter Maydell, 2022/04/28
- [PULL 49/54] target/arm: Use field names for accessing DBGWCRn, Peter Maydell, 2022/04/28
- [PULL 31/54] target/arm: Use tcg_constant for TT, SAT, SMMLA, Peter Maydell, 2022/04/28
- [PULL 48/54] target/arm: Disable cryptographic instructions when neon is disabled, Peter Maydell, 2022/04/28
- [PULL 54/54] hw/arm/smmuv3: Advertise support for SMMUv3.2-BBML2, Peter Maydell, 2022/04/28
- Re: [PULL 00/54] target-arm queue, Richard Henderson, 2022/04/28