aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64
diff options
context:
space:
mode:
authorAndrew Carlotti <andrew.carlotti@arm.com>2025-01-09 19:33:25 +0000
committerAndrew Carlotti <andrew.carlotti@arm.com>2025-01-24 19:09:10 +0000
commitb53781ce1e49fcaa18c2b7c0d4602c6ed780a9e9 (patch)
treeb1481636c65745faa334f856d54a1fbc7d44b276 /gcc/testsuite/gcc.target/aarch64
parentc6ef35b4c3c092bf5e0171827ed918d4249575ca (diff)
downloadgcc-b53781ce1e49fcaa18c2b7c0d4602c6ed780a9e9.zip
gcc-b53781ce1e49fcaa18c2b7c0d4602c6ed780a9e9.tar.gz
gcc-b53781ce1e49fcaa18c2b7c0d4602c6ed780a9e9.tar.bz2
aarch64: Make AARCH64_FL_CRYPTO always unset
This feature flag bit only exists to support the +crypto alias. Outside of option processing this bit needs to be set or unset consistently. This patch goes with the latter option. gcc/ChangeLog: * common/config/aarch64/aarch64-common.cc: Assert that CRYPTO bit is not set. * config/aarch64/aarch64-feature-deps.h (info<FEAT>.explicit_on): Unset CRYPTO bit. (cpu_##CORE_IDENT): Ditto. gcc/testsuite/ChangeLog: * gcc.target/aarch64/crypto-alias-1.c: New test.
Diffstat (limited to 'gcc/testsuite/gcc.target/aarch64')
-rw-r--r--gcc/testsuite/gcc.target/aarch64/crypto-alias-1.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/aarch64/crypto-alias-1.c b/gcc/testsuite/gcc.target/aarch64/crypto-alias-1.c
new file mode 100644
index 0000000..e2662b4
--- /dev/null
+++ b/gcc/testsuite/gcc.target/aarch64/crypto-alias-1.c
@@ -0,0 +1,14 @@
+/* { dg-do compile } */
+/* { dg-options "-mcpu=ampere1" } */
+
+__attribute__ ((__always_inline__))
+__attribute__ ((target ("arch=armv8-a+crypto")))
+inline int bar()
+{
+ return 5;
+}
+
+int foo()
+{
+ return bar();
+}