[Patch AArch64] Add rcpc extension
authorJames Greenhalgh <james.greenhalgh@arm.com>
Tue, 20 Jun 2017 14:49:13 +0000 (14:49 +0000)
committerJames Greenhalgh <jgreenhalgh@gcc.gnu.org>
Tue, 20 Jun 2017 14:49:13 +0000 (14:49 +0000)
gcc/

* config/aarch64/aarch64-option-extensions.def (rcpc): New.
* config/aarch64/aarch64.h (AARCH64_FL_RCPC): New.

From-SVN: r249414

gcc/ChangeLog
gcc/config/aarch64/aarch64-option-extensions.def
gcc/config/aarch64/aarch64.h

index 0b6694dbbe21fb6bf2a33f6ff1e2af14c0fefdbf..b28620aa794a9f81c62e073a3b4d122ff1e77dad 100644 (file)
@@ -1,3 +1,8 @@
+2017-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
+
+       * config/aarch64/aarch64-option-extensions.def (rcpc): New.
+       * config/aarch64/aarch64.h (AARCH64_FL_RCPC): New.
+
 2017-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
 
        * config/aarch64/aarch64-option-extensions.def (fp16): Fix expected
index b54de032ea704f4d016fe3ecf706e7f9753450df..c0752ce3470471da4f22acc8ca7751470c3afb61 100644 (file)
@@ -60,4 +60,7 @@ AARCH64_OPT_EXTENSION("lse", AARCH64_FL_LSE, 0, 0, "atomics")
    Disabling "fp16" just disables "fp16".  */
 AARCH64_OPT_EXTENSION("fp16", AARCH64_FL_F16, AARCH64_FL_FP, 0, "fphp asimdhp")
 
+/* Enabling or disabling "rcpc" only changes "rcpc".  */
+AARCH64_OPT_EXTENSION("rcpc", AARCH64_FL_RCPC, 0, 0, "lrcpc")
+
 #undef AARCH64_OPT_EXTENSION
index e4fb96fd0376a7b2993e216f83dd9ac8d4c7c6e1..3b3f27e2f950235b052d463b4b4d355ab2b9d3f8 100644 (file)
@@ -140,6 +140,7 @@ extern unsigned aarch64_architecture_version;
 #define AARCH64_FL_F16       (1 << 9)  /* Has ARMv8.2-A FP16 extensions.  */
 /* ARMv8.3-A architecture extensions.  */
 #define AARCH64_FL_V8_3              (1 << 10)  /* Has ARMv8.3-A features.  */
+#define AARCH64_FL_RCPC              (1 << 11)  /* Has support for RCpc model.  */
 
 /* Has FP and SIMD.  */
 #define AARCH64_FL_FPSIMD     (AARCH64_FL_FP | AARCH64_FL_SIMD)