From: Richard Henderson <[email protected]>

These are controlled by FEAT_SVE_B16B16 not FEAT_SME_B16B16.

Cc: [email protected]
Fixes: bc65d2bd1cb ("target/arm: Implement SME2 Multiple and Single SVE 
Destructive")
Fixes: 930760eb753 ("target/arm: Implement SME2 Multiple Vectors SVE 
Destructive")
Fixes: 8b61eff8e72 ("target/arm: Implement SME2 FCLAMP, SCLAMP, UCLAMP")
Signed-off-by: Richard Henderson <[email protected]>
Reviewed-by: Peter Maydell <[email protected]>
Signed-off-by: Peter Maydell <[email protected]>
(cherry picked from commit 702252a0dbc3ad9a51e4092a986b2f98e8c6adcb)
(Mjt: context fixup across v11.0.0-1336-g1de033cf3e08
 "target/arm: Implement FEAT_FAMINMAX for SME")
Signed-off-by: Michael Tokarev <[email protected]>

diff --git a/target/arm/tcg/translate-sme.c b/target/arm/tcg/translate-sme.c
index 6064ed86970..abe73c038bc 100644
--- a/target/arm/tcg/translate-sme.c
+++ b/target/arm/tcg/translate-sme.c
@@ -709,7 +709,7 @@ static bool do_z2z_n1_fpst(DisasContext *s, arg_z2z_en *a,
     TCGv_ptr fpst;
 
     /* These insns use MO_8 to encode BFloat16. */
-    if (esz == MO_8 && !dc_isar_feature(aa64_sme_b16b16, s)) {
+    if (esz == MO_8 && !dc_isar_feature(aa64_sve_b16b16, s)) {
         return false;
     }
     if (!sme_sm_enabled_check(s)) {
@@ -744,7 +744,7 @@ static bool do_z2z_nn_fpst(DisasContext *s, arg_z2z_en *a,
     gen_helper_gvec_3_ptr *fn;
     TCGv_ptr fpst;
 
-    if (esz == MO_8 && !dc_isar_feature(aa64_sme_b16b16, s)) {
+    if (esz == MO_8 && !dc_isar_feature(aa64_sve_b16b16, s)) {
         return false;
     }
     if (!sme_sm_enabled_check(s)) {
@@ -1628,7 +1628,7 @@ static bool trans_FCLAMP(DisasContext *s, arg_zzz_en *a)
         return false;
     }
     /* This insn uses MO_8 to encode BFloat16. */
-    if (a->esz == MO_8 && !dc_isar_feature(aa64_sme_b16b16, s)) {
+    if (a->esz == MO_8 && !dc_isar_feature(aa64_sve_b16b16, s)) {
         return false;
     }
     if (!sme_sm_enabled_check(s)) {
-- 
2.47.3


Reply via email to