From: James Greenhalgh Date: Tue, 20 Jun 2017 14:49:13 +0000 (+0000) Subject: [Patch AArch64] Add rcpc extension X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=78295effade0997e7e5d9a7851711d05a9ba7cc8;p=gcc.git [Patch AArch64] Add rcpc extension gcc/ * config/aarch64/aarch64-option-extensions.def (rcpc): New. * config/aarch64/aarch64.h (AARCH64_FL_RCPC): New. From-SVN: r249414 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0b6694dbbe2..b28620aa794 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-06-20 James Greenhalgh + + * config/aarch64/aarch64-option-extensions.def (rcpc): New. + * config/aarch64/aarch64.h (AARCH64_FL_RCPC): New. + 2017-06-20 James Greenhalgh * config/aarch64/aarch64-option-extensions.def (fp16): Fix expected diff --git a/gcc/config/aarch64/aarch64-option-extensions.def b/gcc/config/aarch64/aarch64-option-extensions.def index b54de032ea7..c0752ce3470 100644 --- a/gcc/config/aarch64/aarch64-option-extensions.def +++ b/gcc/config/aarch64/aarch64-option-extensions.def @@ -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 diff --git a/gcc/config/aarch64/aarch64.h b/gcc/config/aarch64/aarch64.h index e4fb96fd037..3b3f27e2f95 100644 --- a/gcc/config/aarch64/aarch64.h +++ b/gcc/config/aarch64/aarch64.h @@ -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)