]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
aarch64: Add command-line support for Armv8.8-a
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Mon, 13 Dec 2021 14:15:16 +0000 (14:15 +0000)
committerKyrylo Tkachov <kyrylo.tkachov@arm.com>
Mon, 13 Dec 2021 15:16:59 +0000 (15:16 +0000)
This final patch in the series is much simpler and adds command-line support for -march=armv8.8-a,
making use of the +mops features added in the previous patches.

Bootstrapped and tested on aarch64-none-linux-gnu.

gcc/ChangeLog:

* config/aarch64/aarch64-arches.def (armv8.8-a): Define.
* config/aarch64/aarch64.h (AARCH64_FL_V8_8): Define.
(AARCH64_FL_FOR_ARCH8_8): Define.
* doc/invoke.texi: Document -march=armv8.8-a.

gcc/config/aarch64/aarch64-arches.def
gcc/config/aarch64/aarch64.h
gcc/doc/invoke.texi

index a3b32e07367151da30743a1d7d0d3de75fe23218..1b5f062694b7984127eab916936e59b5420318e7 100644 (file)
@@ -38,6 +38,7 @@ AARCH64_ARCH("armv8.4-a",     generic,             8_4A,      8,  AARCH64_FL_FOR_ARCH8_4)
 AARCH64_ARCH("armv8.5-a",     generic,      8_5A,      8,  AARCH64_FL_FOR_ARCH8_5)
 AARCH64_ARCH("armv8.6-a",     generic,      8_6A,      8,  AARCH64_FL_FOR_ARCH8_6)
 AARCH64_ARCH("armv8.7-a",     generic,       8_7A,      8,  AARCH64_FL_FOR_ARCH8_7)
+AARCH64_ARCH("armv8.8-a",     generic,       8_8A,      8,  AARCH64_FL_FOR_ARCH8_8)
 AARCH64_ARCH("armv8-r",       generic,      8R  ,      8,  AARCH64_FL_FOR_ARCH8_R)
 AARCH64_ARCH("armv9-a",       generic,      9A  ,      9,  AARCH64_FL_FOR_ARCH9)
 
index 2478d0db29017dbae601dddb65c067e27ad74200..5a590aaa3fbddfbab3f035edc724d10ad653c148 100644 (file)
@@ -243,6 +243,9 @@ extern unsigned aarch64_architecture_version;
 /* Hardware memory operation instructions.  */
 #define AARCH64_FL_MOPS       (1ULL << 44)
 
+/* Armv8.8-a architecture extensions.  */
+#define AARCH64_FL_V8_8       (1ULL << 45)
+
 /* Has FP and SIMD.  */
 #define AARCH64_FL_FPSIMD     (AARCH64_FL_FP | AARCH64_FL_SIMD)
 
@@ -269,6 +272,8 @@ extern unsigned aarch64_architecture_version;
    | AARCH64_FL_I8MM | AARCH64_FL_BF16)
 #define AARCH64_FL_FOR_ARCH8_7                 \
   (AARCH64_FL_FOR_ARCH8_6 | AARCH64_FL_V8_7 | AARCH64_FL_LS64)
+#define AARCH64_FL_FOR_ARCH8_8                 \
+  (AARCH64_FL_FOR_ARCH8_7 | AARCH64_FL_V8_8 | AARCH64_FL_MOPS)
 
 #define AARCH64_FL_FOR_ARCH8_R     \
   (AARCH64_FL_FOR_ARCH8_4 | AARCH64_FL_V8_R)
index 2424a5bf3e0e2d5e0dd5d446fd3e30228e3e9b25..221c7c3ea486c4565299c1964931c14d7deb7043 100644 (file)
@@ -18853,6 +18853,7 @@ and the features that they enable by default:
 @item @samp{armv8.5-a} @tab Armv8.5-A @tab @samp{armv8.4-a}, @samp{+sb}, @samp{+ssbs}, @samp{+predres}
 @item @samp{armv8.6-a} @tab Armv8.6-A @tab @samp{armv8.5-a}, @samp{+bf16}, @samp{+i8mm}
 @item @samp{armv8.7-a} @tab Armv8.7-A @tab @samp{armv8.6-a}, @samp{+ls64}
+@item @samp{armv8.8-a} @tab Armv8.8-a @tab @samp{armv8.7-a}, @samp{+mops}
 @item @samp{armv9-a} @tab Armv9-A @tab @samp{armv8.5-a}, @samp{+sve}, @samp{+sve2}
 @item @samp{armv8-r} @tab Armv8-R @tab @samp{armv8-r}
 @end multitable
@@ -19146,7 +19147,8 @@ Enable the 64-byte atomic load and store instructions for accelerators.
 This option is enabled by default for @option{-march=armv8.7-a}.
 @item mops
 Enable the instructions to accelerate memory operations like @code{memcpy},
-@code{memmove}, @code{memset}.
+@code{memmove}, @code{memset}.  This option is enabled by default for
+@option{-march=armv8.8-a}
 @item flagm
 Enable the Flag Manipulation instructions Extension.
 @item pauth