[committed][AArch64] Rename +bitperm to +sve2-bitperm

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[committed][AArch64] Rename +bitperm to +sve2-bitperm

Richard Sandiford-4
After some discussion, we've decided to rename the +bitperm feature
flag to +sve2-bitperm, so that it's consistent with the other SVE2
feature flags.  The associated internal macros already used
"SVE2_BITPERM", so only the feature flag itself needs to change.

Tested on aarch64-linux-gnu and applied.

Richard


2019-07-19  Richard Sandiford  <[hidden email]>

gas/
        * doc/c-aarch64.texi: Remame the +bitperm extension to +sve2-bitperm.
        * config/tc-aarch64.c (aarch64_features): Likewise.
        * testsuite/gas/aarch64/illegal-sve2-aes.d: Update accordingly.
        * testsuite/gas/aarch64/illegal-sve2-sha3.d: Likewise.
        * testsuite/gas/aarch64/illegal-sve2-sm4.d: Likewise.
        * testsuite/gas/aarch64/illegal-sve2.d: Likewise.
        * testsuite/gas/aarch64/sve2.d: Likewise.
------------------------------------------------------------------------------

Index: gas/doc/c-aarch64.texi
===================================================================
--- gas/doc/c-aarch64.texi 2019-07-04 16:31:12.419455953 +0100
+++ gas/doc/c-aarch64.texi 2019-07-19 12:14:18.627942086 +0100
@@ -198,7 +198,7 @@ automatically cause those extensions to
  @tab Enable Transactional Memory Extensions.
 @item @code{sve2} @tab ARMv8-A @tab No
  @tab Enable the SVE2 Extension.
-@item @code{bitperm} @tab ARMv8-A @tab No
+@item @code{sve2-bitperm} @tab ARMv8-A @tab No
  @tab Enable SVE2 BITPERM Extension.
 @item @code{sve2-sm4} @tab ARMv8-A @tab No
  @tab Enable SVE2 SM4 Extension.
Index: gas/config/tc-aarch64.c
===================================================================
--- gas/config/tc-aarch64.c 2019-07-04 16:31:14.827436323 +0100
+++ gas/config/tc-aarch64.c 2019-07-19 12:14:18.627942086 +0100
@@ -8963,7 +8963,7 @@ static const struct aarch64_option_cpu_v
   {"sve2-sha3", AARCH64_FEATURE (AARCH64_FEATURE_SVE2_SHA3, 0),
  AARCH64_FEATURE (AARCH64_FEATURE_SVE2
  | AARCH64_FEATURE_SHA3, 0)},
-  {"bitperm", AARCH64_FEATURE (AARCH64_FEATURE_SVE2_BITPERM, 0),
+  {"sve2-bitperm", AARCH64_FEATURE (AARCH64_FEATURE_SVE2_BITPERM, 0),
  AARCH64_FEATURE (AARCH64_FEATURE_SVE2, 0)},
   {NULL, AARCH64_ARCH_NONE, AARCH64_ARCH_NONE},
 };
Index: gas/testsuite/gas/aarch64/illegal-sve2-aes.d
===================================================================
--- gas/testsuite/gas/aarch64/illegal-sve2-aes.d 2019-07-04 16:31:12.443455754 +0100
+++ gas/testsuite/gas/aarch64/illegal-sve2-aes.d 2019-07-19 12:14:18.627942086 +0100
@@ -1,5 +1,5 @@
 #name: Missing SVE2 AES argument
-#as: -march=armv8-a+sve2+sve2-sm4+sve2-sha3+bitperm
+#as: -march=armv8-a+sve2+sve2-sm4+sve2-sha3+sve2-bitperm
 #source: sve2.s
 #error: [^ :]+: Assembler messages:
 #error: [^ :]+:[0-9]+: Error: selected processor does not support `aesd z17\.b,z17\.b,z21\.b'
Index: gas/testsuite/gas/aarch64/illegal-sve2-sha3.d
===================================================================
--- gas/testsuite/gas/aarch64/illegal-sve2-sha3.d 2019-07-04 16:31:12.443455754 +0100
+++ gas/testsuite/gas/aarch64/illegal-sve2-sha3.d 2019-07-19 12:14:18.627942086 +0100
@@ -1,5 +1,5 @@
 #name: Missing SVE2 SHA3 argument
-#as: -march=armv8-a+sve2+sve2-sm4+sve2-aes+bitperm
+#as: -march=armv8-a+sve2+sve2-sm4+sve2-aes+sve2-bitperm
 #source: sve2.s
 #error: [^ :]+: Assembler messages:
 #error: [^ :]+:[0-9]+: Error: selected processor does not support `rax1 z17\.d,z21\.d,z27\.d'
Index: gas/testsuite/gas/aarch64/illegal-sve2-sm4.d
===================================================================
--- gas/testsuite/gas/aarch64/illegal-sve2-sm4.d 2019-07-04 16:31:12.443455754 +0100
+++ gas/testsuite/gas/aarch64/illegal-sve2-sm4.d 2019-07-19 12:14:18.627942086 +0100
@@ -1,5 +1,5 @@
 #name: Missing SVE2 SM4 argument
-#as: -march=armv8-a+sve2+sve2-sha3+sve2-aes+bitperm
+#as: -march=armv8-a+sve2+sve2-sha3+sve2-aes+sve2-bitperm
 #source: sve2.s
 #error: [^ :]+: Assembler messages:
 #error: [^ :]+:[0-9]+: Error: selected processor does not support `sm4e z17\.s,z17\.s,z21\.s'
Index: gas/testsuite/gas/aarch64/illegal-sve2.d
===================================================================
--- gas/testsuite/gas/aarch64/illegal-sve2.d 2019-07-04 16:31:12.443455754 +0100
+++ gas/testsuite/gas/aarch64/illegal-sve2.d 2019-07-19 12:14:18.627942086 +0100
@@ -1,4 +1,4 @@
 #name: Illegal SVE2
-#as: -march=armv8-a+sve2+sve2-aes+sve2-sm4+sve2-sha3+bitperm
+#as: -march=armv8-a+sve2+sve2-aes+sve2-sm4+sve2-sha3+sve2-bitperm
 #source: illegal-sve2.s
 #error_output: illegal-sve2.l
Index: gas/testsuite/gas/aarch64/sve2.d
===================================================================
--- gas/testsuite/gas/aarch64/sve2.d 2019-07-04 16:31:12.455455659 +0100
+++ gas/testsuite/gas/aarch64/sve2.d 2019-07-19 12:14:18.627942086 +0100
@@ -1,4 +1,4 @@
-#as: -march=armv8-a+sve2+sve2-aes+sve2-sm4+sve2-sha3+bitperm
+#as: -march=armv8-a+sve2+sve2-aes+sve2-sm4+sve2-sha3+sve2-bitperm
 #objdump: -dr
 
 [^:]+:     file format .*