|
|
85359c |
diff --git a/gcc/testsuite/gcc.target/i386/stack-check-17.c b/gcc/testsuite/gcc.target/i386/stack-check-17.c
|
|
|
85359c |
index d2ef83b..dcd2930 100644
|
|
|
85359c |
--- a/gcc/testsuite/gcc.target/i386/stack-check-17.c
|
|
|
85359c |
+++ b/gcc/testsuite/gcc.target/i386/stack-check-17.c
|
|
|
85359c |
@@ -29,9 +29,11 @@ f3 (void)
|
|
|
85359c |
into either a stack slot or callee saved register. The former
|
|
|
85359c |
would be rather dumb. So assume it does not happen.
|
|
|
85359c |
|
|
|
85359c |
- So search for two/four pushes for the callee register saves/argument
|
|
|
85359c |
- pushes and no pops (since the function has no reachable epilogue). */
|
|
|
85359c |
-/* { dg-final { scan-assembler-times "push\[ql\]" 2 { target { ! ia32 } } } } */
|
|
|
85359c |
-/* { dg-final { scan-assembler-times "push\[ql\]" 4 { target { ia32 } } } } */
|
|
|
85359c |
+ So search for two pushes for the callee register saves pushes
|
|
|
85359c |
+ and no pops (since the function has no reachable epilogue).
|
|
|
85359c |
+
|
|
|
85359c |
+ This is slightly different than upstream because the code we
|
|
|
85359c |
+ generate for argument setup is slightly different. */
|
|
|
85359c |
+/* { dg-final { scan-assembler-times "push\[ql\]" 2 } } */
|
|
|
85359c |
/* { dg-final { scan-assembler-not "pop" } } */
|
|
|
85359c |
|
|
|
85359c |
diff --git a/gcc/testsuite/gcc.target/i386/stack-check-18.c b/gcc/testsuite/gcc.target/i386/stack-check-18.c
|
|
|
85359c |
index 6dbff44..1638f77 100644
|
|
|
85359c |
--- a/gcc/testsuite/gcc.target/i386/stack-check-18.c
|
|
|
85359c |
+++ b/gcc/testsuite/gcc.target/i386/stack-check-18.c
|
|
|
85359c |
@@ -1,6 +1,7 @@
|
|
|
85359c |
/* { dg-do compile } */
|
|
|
85359c |
/* { dg-options "-O2 -fstack-clash-protection -mtune=generic -fdump-rtl-expand" } */
|
|
|
85359c |
/* { dg-require-effective-target supports_stack_clash_protection } */
|
|
|
85359c |
+/* { dg-skip-if "" { *-*-* } { "-fstack-protector" } { "" } } */
|
|
|
85359c |
|
|
|
85359c |
int f1 (char *);
|
|
|
85359c |
|
|
|
85359c |
diff --git a/gcc/testsuite/gcc.target/i386/stack-check-19.c b/gcc/testsuite/gcc.target/i386/stack-check-19.c
|
|
|
85359c |
index b92c126..c341801 100644
|
|
|
85359c |
--- a/gcc/testsuite/gcc.target/i386/stack-check-19.c
|
|
|
85359c |
+++ b/gcc/testsuite/gcc.target/i386/stack-check-19.c
|
|
|
85359c |
@@ -1,6 +1,7 @@
|
|
|
85359c |
/* { dg-do compile } */
|
|
|
85359c |
/* { dg-options "-O2 -fstack-clash-protection -mtune=generic -fdump-rtl-expand" } */
|
|
|
85359c |
/* { dg-require-effective-target supports_stack_clash_protection } */
|
|
|
85359c |
+/* { dg-skip-if "" { *-*-* } { "-fstack-protector" } { "" } } */
|
|
|
85359c |
|
|
|
85359c |
int f1 (char *);
|
|
|
85359c |
|
|
|
85359c |
@@ -24,6 +25,6 @@ f2 (const int size)
|
|
|
85359c |
in the probe loop and one that bypasses the residual probe.
|
|
|
85359c |
|
|
|
85359c |
These will all be equality tests. */
|
|
|
85359c |
-/* { dg-final { scan-assembler-times "(\?:je|jne)" 3 } } */
|
|
|
85359c |
+/* { dg-final { scan-assembler-times "(\?:jmp|je|jne)" 3 } } */
|
|
|
85359c |
|
|
|
85359c |
|