+2018-07-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
+
+ * config/aarch64/aarch64-option-extensions.def: New entry for profile
+ extension.
+ * config/aarch64/aarch64.h (AARCH64_FL_PROFILE): New.
+ * doc/invoke.texi (aarch64-feature-modifiers): New entry for profile
+ extension.
+
2018-07-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
PR target/83009
Disabling "sve" just disables "sve". */
AARCH64_OPT_EXTENSION("sve", AARCH64_FL_SVE, AARCH64_FL_FP | AARCH64_FL_SIMD | AARCH64_FL_F16, 0, "sve")
+/* Enabling/Disabling "profile" does not enable/disable any other feature. */
+AARCH64_OPT_EXTENSION("profile", AARCH64_FL_PROFILE, 0, 0, "")
+
#undef AARCH64_OPT_EXTENSION
#define AARCH64_FL_SHA3 (1 << 18) /* Has ARMv8.4-a SHA3 and SHA512. */
#define AARCH64_FL_F16FML (1 << 19) /* Has ARMv8.4-a FP16 extensions. */
+/* Statistical Profiling extensions. */
+#define AARCH64_FL_PROFILE (1 << 20)
+
/* Has FP and SIMD. */
#define AARCH64_FL_FPSIMD (AARCH64_FL_FP | AARCH64_FL_SIMD)
@item sm4
Enable the sm3 and sm4 crypto extension. This also enables Advanced SIMD instructions.
Use of this option with architectures prior to Armv8.2-A is not supported.
+@item profile
+Enable the Statistical Profiling extension. This option is only to enable the
+extension at the assembler level and does not affect code generation.
@end table
+2018-07-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
+
+ * gcc.target/aarch64/profile.c: New test.
+
2018-07-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
PR target/83009
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-march=armv8.2-a+profile" } */
+/* { dg-final { scan-assembler "\\.arch armv8.2-a\[\^\n\]*\\+profile\[\^\n\]*\n" } } */