Arm64/gas: drop redundant feature prereqs
authorJan Beulich <jbeulich@suse.com>
Fri, 10 Mar 2023 10:08:23 +0000 (11:08 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 10 Mar 2023 10:08:23 +0000 (11:08 +0100)
Logic exists to deal with prereqs or prereqs, and in many cases
transitive prereqs are already not spelled out explicitly. Drop further
ones:
- FP is already a prereq to F16,
- SIMD and F16 are already prereqs to COMPNUM, and
- SVE2 and BFLOAT16 are already prereqs to SME.

gas/config/tc-aarch64.c

index 0b84f500e15521f242fb62369c798d0a8da852c4..c1736c2c684b08d88ae589278cd1004e0683eefb 100644 (file)
@@ -10108,14 +10108,11 @@ static const struct aarch64_option_cpu_value_table aarch64_features[] = {
   {"fp16",             AARCH64_FEATURE (AARCH64_FEATURE_F16, 0),
                        AARCH64_FEATURE (AARCH64_FEATURE_FP, 0)},
   {"fp16fml",          AARCH64_FEATURE (AARCH64_FEATURE_F16_FML, 0),
-                       AARCH64_FEATURE (AARCH64_FEATURE_FP
-                                        | AARCH64_FEATURE_F16, 0)},
+                       AARCH64_FEATURE (AARCH64_FEATURE_F16, 0)},
   {"profile",          AARCH64_FEATURE (AARCH64_FEATURE_PROFILE, 0),
                        AARCH64_ARCH_NONE},
   {"sve",              AARCH64_FEATURE (AARCH64_FEATURE_SVE, 0),
-                       AARCH64_FEATURE (AARCH64_FEATURE_F16
-                                        | AARCH64_FEATURE_SIMD
-                                        | AARCH64_FEATURE_COMPNUM, 0)},
+                       AARCH64_FEATURE (AARCH64_FEATURE_COMPNUM, 0)},
   {"tme",              AARCH64_FEATURE (AARCH64_FEATURE_TME, 0),
                        AARCH64_ARCH_NONE},
   {"compnum",          AARCH64_FEATURE (AARCH64_FEATURE_COMPNUM, 0),
@@ -10160,13 +10157,9 @@ static const struct aarch64_option_cpu_value_table aarch64_features[] = {
                        AARCH64_FEATURE (AARCH64_FEATURE_SVE2
                                         | AARCH64_FEATURE_BFLOAT16, 0)},
   {"sme-f64",          AARCH64_FEATURE (AARCH64_FEATURE_SME_F64, 0),
-                       AARCH64_FEATURE (AARCH64_FEATURE_SME
-                                        | AARCH64_FEATURE_SVE2
-                                        | AARCH64_FEATURE_BFLOAT16, 0)},
+                       AARCH64_FEATURE (AARCH64_FEATURE_SME, 0)},
   {"sme-i64",          AARCH64_FEATURE (AARCH64_FEATURE_SME_I64, 0),
-                       AARCH64_FEATURE (AARCH64_FEATURE_SME
-                                        | AARCH64_FEATURE_SVE2
-                                        | AARCH64_FEATURE_BFLOAT16, 0)},
+                       AARCH64_FEATURE (AARCH64_FEATURE_SME, 0)},
   {"bf16",             AARCH64_FEATURE (AARCH64_FEATURE_BFLOAT16, 0),
                        AARCH64_FEATURE (AARCH64_FEATURE_FP, 0)},
   {"i8mm",             AARCH64_FEATURE (AARCH64_FEATURE_I8MM, 0),