]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
aarch64: Disable branch-protection for pcs tests
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 2 Jun 2023 12:06:21 +0000 (13:06 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Mon, 27 Nov 2023 15:52:49 +0000 (15:52 +0000)
The tests manipulate the return address in abitest-2.h and thus not
compatible with -mbranch-protection=pac-ret+leaf or
-mbranch-protection=gcs.

gcc/testsuite/ChangeLog:

* gcc.target/aarch64/aapcs64/func-ret-1.c: Disable branch-protection.
* gcc.target/aarch64/aapcs64/func-ret-2.c: Likewise.
* gcc.target/aarch64/aapcs64/func-ret-3.c: Likewise.
* gcc.target/aarch64/aapcs64/func-ret-4.c: Likewise.
* gcc.target/aarch64/aapcs64/func-ret-64x1_1.c: Likewise.

gcc/testsuite/gcc.target/aarch64/aapcs64/func-ret-1.c
gcc/testsuite/gcc.target/aarch64/aapcs64/func-ret-2.c
gcc/testsuite/gcc.target/aarch64/aapcs64/func-ret-3.c
gcc/testsuite/gcc.target/aarch64/aapcs64/func-ret-4.c
gcc/testsuite/gcc.target/aarch64/aapcs64/func-ret-64x1_1.c

index 5405e1e4920e040a022c6ebb5a129e88ec38ce96..7bd7757efe6dc152a2e153cb47457e424fe96c2d 100644 (file)
@@ -4,6 +4,7 @@
    AAPCS64 \S 4.1.  */
 
 /* { dg-do run { target aarch64*-*-* } } */
+/* { dg-additional-options "-mbranch-protection=none" } */
 /* { dg-additional-sources "abitest.S" } */
 
 #ifndef IN_FRAMEWORK
index 6b171c46fbb534244b49c216a52ff850a53b1e5a..85a822ace4af8d2c0ff85dfe670fee70d68d63b2 100644 (file)
@@ -4,6 +4,7 @@
    Homogeneous floating-point aggregate types are covered in func-ret-3.c.  */
 
 /* { dg-do run { target aarch64*-*-* } } */
+/* { dg-additional-options "-mbranch-protection=none" } */
 /* { dg-additional-sources "abitest.S" } */
 
 #ifndef IN_FRAMEWORK
index ad312b675b93071f53af0547bfb2774c63d6fe26..1d35ebf14b4b3509444149f5e8f719d37480d54b 100644 (file)
@@ -4,6 +4,7 @@
    in AAPCS64 \S 4.3.5.  */
 
 /* { dg-do run { target aarch64-*-* } } */
+/* { dg-additional-options "-mbranch-protection=none" } */
 /* { dg-additional-sources "abitest.S" } */
 /* { dg-require-effective-target aarch64_big_endian } */
 
index af05fbe9fdfd2f1accb281a5b009d296e30e5069..15e1408c62d721064c68831c65b82d3c5bd98c45 100644 (file)
@@ -5,6 +5,7 @@
    are treated as general composite types.  */
 
 /* { dg-do run { target aarch64*-*-* } } */
+/* { dg-additional-options "-mbranch-protection=none" } */
 /* { dg-additional-sources "abitest.S" } */
 /* { dg-require-effective-target aarch64_big_endian } */
 
index 05957e2dcae1d830a404814062b993fad7030712..fe7bbb6a835e7f1f0e306810ca099902e43f367c 100644 (file)
@@ -3,6 +3,7 @@
   Test 64-bit singleton vector types which should be in FP/SIMD registers.  */
 
 /* { dg-do run { target aarch64*-*-* } } */
+/* { dg-additional-options "-mbranch-protection=none" } */
 /* { dg-additional-sources "abitest.S" } */
 
 #ifndef IN_FRAMEWORK