@samitouri / QOSamiQemu / commits / 702252a0db

target/arm: Fix b16b16 feature test for SME2 BFCLAMP, BFMAX, BFMIN

These are controlled by FEAT_SVE_B16B16 not FEAT_SME_B16B16. Cc: qemu-stable@nongnu.org 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 <richard.henderson@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>

Richard Henderson committed Jul 31, 2026 at 11:24 UTC 702252a0dbc3ad9a51e4092a986b2f98e8c6adcb
1 file changed +3 -3
target/arm/tcg/translate-sme.c
+3 -3
@@ -756,7 +756,7 @@ static bool do_z2z_n1_fpst(DisasContext *s, arg_z2z_en *a,
756 return false;
757 }
758 /* These insns use MO_8 to encode BFloat16. */
759 - if (esz == MO_8 && !dc_isar_feature(aa64_sme_b16b16, s)) {
759 + if (esz == MO_8 && !dc_isar_feature(aa64_sve_b16b16, s)) {
760 return false;
761 }
762 if (!sme_sm_enabled_check(s)) {
@@ -793,7 +793,7 @@ static bool do_z2z_nn_fpst(DisasContext *s, arg_z2z_en *a,
793 if (fn == NULL) {
794 return false;
795 }
796 - if (esz == MO_8 && !dc_isar_feature(aa64_sme_b16b16, s)) {
796 + if (esz == MO_8 && !dc_isar_feature(aa64_sve_b16b16, s)) {
797 return false;
798 }
799 if (!sme_sm_enabled_check(s)) {
@@ -1850,7 +1850,7 @@ static bool trans_FCLAMP(DisasContext *s, arg_zzz_en *a)
1850 return false;
1851 }
1852 /* This insn uses MO_8 to encode BFloat16. */
1853 - if (a->esz == MO_8 && !dc_isar_feature(aa64_sme_b16b16, s)) {
1853 + if (a->esz == MO_8 && !dc_isar_feature(aa64_sve_b16b16, s)) {
1854 return false;
1855 }
1856 if (!sme_sm_enabled_check(s)) {