Tested on aarch64-linux, aarch64-darwin, OK for trunk?
thanks
Iain
--- 8< ---
Targets might not support .cfi_ instructions, gate tests that require
these using the existing target supports.
gcc/testsuite/ChangeLog:
* gcc.target/aarch64/dwarf-cfa-reg.c: Require cfi instructions.
* gcc.target/aarch64/stack-check-cfa-1.c: Likewise.
* gcc.target/aarch64/stack-check-cfa-2.c: Likewise.
* gcc.target/aarch64/stack-check-cfa-3.c: Likewise.
Signed-off-by: Iain Sandoe <[email protected]>
---
gcc/testsuite/gcc.target/aarch64/dwarf-cfa-reg.c | 1 +
gcc/testsuite/gcc.target/aarch64/stack-check-cfa-1.c | 1 +
gcc/testsuite/gcc.target/aarch64/stack-check-cfa-2.c | 1 +
gcc/testsuite/gcc.target/aarch64/stack-check-cfa-3.c | 1 +
4 files changed, 4 insertions(+)
diff --git a/gcc/testsuite/gcc.target/aarch64/dwarf-cfa-reg.c
b/gcc/testsuite/gcc.target/aarch64/dwarf-cfa-reg.c
index ae5b3797021..f32e9b995f0 100644
--- a/gcc/testsuite/gcc.target/aarch64/dwarf-cfa-reg.c
+++ b/gcc/testsuite/gcc.target/aarch64/dwarf-cfa-reg.c
@@ -1,5 +1,6 @@
/* Verify that CFA register is restored to SP after FP is restored. */
/* { dg-do compile } */
+/* { dg-require-effective-target cfi } */
/* { dg-options "-O0 -gdwarf-2" } */
/* { dg-final { scan-assembler ".cfi_restore 30" } } */
/* { dg-final { scan-assembler ".cfi_restore 29" } } */
diff --git a/gcc/testsuite/gcc.target/aarch64/stack-check-cfa-1.c
b/gcc/testsuite/gcc.target/aarch64/stack-check-cfa-1.c
index 412a9ed1aab..41e64efd42c 100644
--- a/gcc/testsuite/gcc.target/aarch64/stack-check-cfa-1.c
+++ b/gcc/testsuite/gcc.target/aarch64/stack-check-cfa-1.c
@@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fstack-clash-protection --param
stack-clash-protection-guard-size=16 -funwind-tables -fno-stack-protector" } */
/* { dg-require-effective-target supports_stack_clash_protection } */
+/* { dg-require-effective-target cfi } */
#define SIZE 128*1024
#include "stack-check-prologue.h"
diff --git a/gcc/testsuite/gcc.target/aarch64/stack-check-cfa-2.c
b/gcc/testsuite/gcc.target/aarch64/stack-check-cfa-2.c
index e440569a078..269713e32aa 100644
--- a/gcc/testsuite/gcc.target/aarch64/stack-check-cfa-2.c
+++ b/gcc/testsuite/gcc.target/aarch64/stack-check-cfa-2.c
@@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fstack-clash-protection --param
stack-clash-protection-guard-size=16 -funwind-tables -fno-stack-protector" } */
/* { dg-require-effective-target supports_stack_clash_protection } */
+/* { dg-require-effective-target cfi } */
#define SIZE 1280*1024 + 512
#include "stack-check-prologue.h"
diff --git a/gcc/testsuite/gcc.target/aarch64/stack-check-cfa-3.c
b/gcc/testsuite/gcc.target/aarch64/stack-check-cfa-3.c
index c4b7bb601c4..77818bcc167 100644
--- a/gcc/testsuite/gcc.target/aarch64/stack-check-cfa-3.c
+++ b/gcc/testsuite/gcc.target/aarch64/stack-check-cfa-3.c
@@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O3 -fopenmp-simd -march=armv8-a+sve -fstack-clash-protection
--param stack-clash-protection-guard-size=16 -funwind-tables" } */
/* { dg-require-effective-target supports_stack_clash_protection } */
+/* { dg-require-effective-target cfi } */
#include "stack-check-prologue-16.c"
--
2.50.1 (Apple Git-155)