Ok for trunk and releases/gcc-15?
I've checked that this works on top of r15-10798-gae573c9d0e7f1c and
r16-7367-g7b2e9d01d325f0 for arm-none-eabi.
Kind regards,
Torbjörn
--
gcc/testsuite/ChangeLog:
* gcc.target/arm/aes-fuse-1.c: Use effective-target
arm_cpu_cortex_a53.
* gcc.target/arm/aes-fuse-2.c: Likewise.
* lib/target-supports.exp: Define effective-target
arm_cpu_cortex_a53.
Signed-off-by: Torbjörn SVENSSON <[email protected]>
---
gcc/testsuite/gcc.target/arm/aes-fuse-1.c | 4 +++-
gcc/testsuite/gcc.target/arm/aes-fuse-2.c | 4 +++-
gcc/testsuite/lib/target-supports.exp | 1 +
3 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/gcc/testsuite/gcc.target/arm/aes-fuse-1.c
b/gcc/testsuite/gcc.target/arm/aes-fuse-1.c
index a1bbe054e0a..bf2abf38282 100644
--- a/gcc/testsuite/gcc.target/arm/aes-fuse-1.c
+++ b/gcc/testsuite/gcc.target/arm/aes-fuse-1.c
@@ -1,7 +1,9 @@
/* { dg-do compile } */
/* { dg-require-effective-target arm_crypto_ok } */
+/* { dg-require-effective-target arm_cpu_cortex_a53 } */
/* { dg-add-options arm_crypto } */
-/* { dg-additional-options "-mcpu=cortex-a53 -O3 -dp" } */
+/* { dg-add-options arm_cpu_cortex_a53 } */
+/* { dg-additional-options "-O3 -dp" } */
#include <arm_neon.h>
diff --git a/gcc/testsuite/gcc.target/arm/aes-fuse-2.c
b/gcc/testsuite/gcc.target/arm/aes-fuse-2.c
index ede3237ce26..61855cea7ab 100644
--- a/gcc/testsuite/gcc.target/arm/aes-fuse-2.c
+++ b/gcc/testsuite/gcc.target/arm/aes-fuse-2.c
@@ -1,7 +1,9 @@
/* { dg-do compile } */
/* { dg-require-effective-target arm_crypto_ok } */
+/* { dg-require-effective-target arm_cpu_cortex_a53 } */
/* { dg-add-options arm_crypto } */
-/* { dg-additional-options "-mcpu=cortex-a53 -O3 -dp" } */
+/* { dg-add-options arm_cpu_cortex_a53 } */
+/* { dg-additional-options "-O3 -dp" } */
#include <arm_neon.h>
diff --git a/gcc/testsuite/lib/target-supports.exp
b/gcc/testsuite/lib/target-supports.exp
index c8791827556..ba91c95b348 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -6301,6 +6301,7 @@ foreach { armfunc armflag armdefs } {
# flags). See above for setting -march=.
foreach { armfunc armflag armdefs } {
xscale_arm "-mcpu=xscale -mtune=xscale -mfloat-abi=soft -marm"
"__XSCALE__ && !__thumb__"
+ cortex_a53 "-mcpu=cortex-a53 -mtune=cortex-a53" __ARM_ARCH_8A__
cortex_a57 "-mcpu=cortex-a57 -mtune=cortex-a57" __ARM_ARCH_8A__
cortex_m0 "-mcpu=cortex-m0 -mtune=cortex-m0 -mfloat-abi=soft
-mthumb" "__ARM_ARCH_6M__ && __thumb__"
cortex_m0_small "-mcpu=cortex-m0.small-multiply
-mtune=cortex-m0.small-multiply -mfloat-abi=soft -mthumb" "__ARM_ARCH_6M__ &&
__thumb__"
--
2.43.0