Arm64/gas: add missing prereq features
authorJan Beulich <jbeulich@suse.com>
Fri, 10 Mar 2023 10:08:03 +0000 (11:08 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 10 Mar 2023 10:08:03 +0000 (11:08 +0100)
A number of newer features are really SIMD or FP extensions, but don't
have this properly specified.

gas/config/tc-aarch64.c

index 980710e8992f0d091f600d841000a8efb18907d6..0b84f500e15521f242fb62369c798d0a8da852c4 100644 (file)
@@ -10124,17 +10124,17 @@ static const struct aarch64_option_cpu_value_table aarch64_features[] = {
   {"rcpc",             AARCH64_FEATURE (AARCH64_FEATURE_RCPC, 0),
                        AARCH64_ARCH_NONE},
   {"dotprod",          AARCH64_FEATURE (AARCH64_FEATURE_DOTPROD, 0),
-                       AARCH64_ARCH_NONE},
+                       AARCH64_FEATURE (AARCH64_FEATURE_SIMD, 0)},
   {"sha2",             AARCH64_FEATURE (AARCH64_FEATURE_SHA2, 0),
-                       AARCH64_ARCH_NONE},
+                       AARCH64_FEATURE (AARCH64_FEATURE_FP, 0)},
   {"sb",               AARCH64_FEATURE (AARCH64_FEATURE_SB, 0),
                        AARCH64_ARCH_NONE},
   {"predres",          AARCH64_FEATURE (AARCH64_FEATURE_PREDRES, 0),
                        AARCH64_ARCH_NONE},
   {"aes",              AARCH64_FEATURE (AARCH64_FEATURE_AES, 0),
-                       AARCH64_ARCH_NONE},
+                       AARCH64_FEATURE (AARCH64_FEATURE_SIMD, 0)},
   {"sm4",              AARCH64_FEATURE (AARCH64_FEATURE_SM4, 0),
-                       AARCH64_ARCH_NONE},
+                       AARCH64_FEATURE (AARCH64_FEATURE_SIMD, 0)},
   {"sha3",             AARCH64_FEATURE (AARCH64_FEATURE_SHA3, 0),
                        AARCH64_FEATURE (AARCH64_FEATURE_SHA2, 0)},
   {"rng",              AARCH64_FEATURE (AARCH64_FEATURE_RNG, 0),
@@ -10168,9 +10168,9 @@ static const struct aarch64_option_cpu_value_table aarch64_features[] = {
                                         | AARCH64_FEATURE_SVE2
                                         | AARCH64_FEATURE_BFLOAT16, 0)},
   {"bf16",             AARCH64_FEATURE (AARCH64_FEATURE_BFLOAT16, 0),
-                       AARCH64_ARCH_NONE},
+                       AARCH64_FEATURE (AARCH64_FEATURE_FP, 0)},
   {"i8mm",             AARCH64_FEATURE (AARCH64_FEATURE_I8MM, 0),
-                       AARCH64_ARCH_NONE},
+                       AARCH64_FEATURE (AARCH64_FEATURE_SIMD, 0)},
   {"f32mm",            AARCH64_FEATURE (AARCH64_FEATURE_F32MM, 0),
                        AARCH64_FEATURE (AARCH64_FEATURE_SVE, 0)},
   {"f64mm",            AARCH64_FEATURE (AARCH64_FEATURE_F64MM, 0),