IBM Z: Build autovec-*-signaling-eq.c tests with exceptions
[gcc.git] / gcc / testsuite / gcc.target / s390 / stack-clash-3.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -march=z900 -fstack-clash-protection -mbackchain" } */
3
4 extern void bar (char *);
5
6 void
7 foo ()
8 {
9 char * mem = __builtin_alloca (20000);
10 bar (mem);
11 }
12
13 /* For alloca a common code routine emits the probes. Make sure the
14 "probe_stack" expander is used in that case. We want to use mem
15 compares instead of stores. */
16 /* { dg-final { scan-assembler-times "cg\t" 5 { target s390_zarch } } } */
17 /* { dg-final { scan-assembler-times "c\t" 5 { target { ! s390_zarch } } } } */