[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 073/114] target/arm: Reject copy w/ shifted byte early
From: |
Richard Henderson |
Subject: |
[PATCH 073/114] target/arm: Reject copy w/ shifted byte early |
Date: |
Fri, 27 May 2022 11:18:26 -0700 |
Remove the unparsed extractions in trans_CPY_{m,z}_i which are intended
to reject an 8-bit shift of an 8-bit constant for 8-bit element.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/arm/sve.decode | 10 ++++++++--
target/arm/translate-sve.c | 6 ------
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/target/arm/sve.decode b/target/arm/sve.decode
index 8cff63cf25..7e79198f5b 100644
--- a/target/arm/sve.decode
+++ b/target/arm/sve.decode
@@ -528,8 +528,14 @@ DUPM 00000101 11 0000 dbm:13 rd:5
FCPY 00000101 .. 01 .... 110 imm:8 ..... @rdn_pg4
# SVE copy integer immediate (predicated)
-CPY_m_i 00000101 .. 01 .... 01 . ........ ..... @rdn_pg4 imm=%sh8_i8s
-CPY_z_i 00000101 .. 01 .... 00 . ........ ..... @rdn_pg4 imm=%sh8_i8s
+{
+ INVALID 00000101 00 01 ---- 01 1 -------- -----
+ CPY_m_i 00000101 .. 01 .... 01 . ........ ..... @rdn_pg4 imm=%sh8_i8s
+}
+{
+ INVALID 00000101 00 01 ---- 00 1 -------- -----
+ CPY_z_i 00000101 .. 01 .... 00 . ........ ..... @rdn_pg4 imm=%sh8_i8s
+}
### SVE Permute - Extract Group
diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c
index bf988cab3e..83980f5ee6 100644
--- a/target/arm/translate-sve.c
+++ b/target/arm/translate-sve.c
@@ -2024,9 +2024,6 @@ static bool trans_FCPY(DisasContext *s, arg_FCPY *a)
static bool trans_CPY_m_i(DisasContext *s, arg_rpri_esz *a)
{
- if (a->esz == 0 && extract32(s->insn, 13, 1)) {
- return false;
- }
if (sve_access_check(s)) {
do_cpy_m(s, a->esz, a->rd, a->rn, a->pg, tcg_constant_i64(a->imm));
}
@@ -2040,9 +2037,6 @@ static bool trans_CPY_z_i(DisasContext *s, arg_CPY_z_i *a)
gen_helper_sve_cpy_z_s, gen_helper_sve_cpy_z_d,
};
- if (a->esz == 0 && extract32(s->insn, 13, 1)) {
- return false;
- }
if (sve_access_check(s)) {
unsigned vsz = vec_full_reg_size(s);
tcg_gen_gvec_2i_ool(vec_full_reg_offset(s, a->rd),
--
2.34.1
- [PATCH 062/114] target/arm: Use TRANS_FEAT for do_clast_general, (continued)
- [PATCH 062/114] target/arm: Use TRANS_FEAT for do_clast_general, Richard Henderson, 2022/05/27
- [PATCH 060/114] target/arm: Use TRANS_FEAT for do_clast_vector, Richard Henderson, 2022/05/27
- [PATCH 058/114] target/arm: Use gen_gvec_ool_arg_zzz for do_zip, do_zip_q, Richard Henderson, 2022/05/27
- [PATCH 066/114] target/arm: Use TRANS_FEAT for do_ppzz_flags, Richard Henderson, 2022/05/27
- [PATCH 065/114] target/arm: Use TRANS_FEAT for SPLICE, Richard Henderson, 2022/05/27
- [PATCH 078/114] target/arm: Use TRANS_FEAT for FMMLA, Richard Henderson, 2022/05/27
- [PATCH 069/114] target/arm: Use TRANS_FEAT for do_brk2, do_brk3, Richard Henderson, 2022/05/27
- [PATCH 070/114] target/arm: Use TRANS_FEAT for MUL_zzi, Richard Henderson, 2022/05/27
- [PATCH 071/114] target/arm: Reject dup_i w/ shifted byte early, Richard Henderson, 2022/05/27
- [PATCH 079/114] target/arm: Move sve check into gen_gvec_fn_ppp, Richard Henderson, 2022/05/27
- [PATCH 073/114] target/arm: Reject copy w/ shifted byte early,
Richard Henderson <=
- [PATCH 083/114] target/arm: Use TRANS_FEAT for FMLA, Richard Henderson, 2022/05/27
- [PATCH 080/114] target/arm: Implement NOT (prediates) alias, Richard Henderson, 2022/05/27
- [PATCH 085/114] target/arm: Rename do_zzz_fp to gen_gvec_ool_fpst_arg_zzz, Richard Henderson, 2022/05/27
- [PATCH 081/114] target/arm: Use TRANS_FEAT for SEL_zpzz, Richard Henderson, 2022/05/27
- [PATCH 082/114] target/arm: Use TRANS_FEAT for MOVPRFX, Richard Henderson, 2022/05/27
- [PATCH 090/114] target/arm: Use TRANS_FEAT for do_reduce, Richard Henderson, 2022/05/27
- [PATCH 092/114] target/arm: Expand frint_fns for MO_8, Richard Henderson, 2022/05/27
- [PATCH 086/114] target/arm: Use TRANS_FEAT for DO_FP3, Richard Henderson, 2022/05/27
- [PATCH 088/114] target/arm: Use TRANS_FEAT for FTMAD, Richard Henderson, 2022/05/27
- [PATCH 091/114] target/arm: Use TRANS_FEAT for FRECPE, FRSQRTE, Richard Henderson, 2022/05/27