aarch64: Fix reg_is_wrapped_separately array size [PR100211]
[official-gcc.git] / gcc / testsuite / gcc.target / s390 / stack-clash-1.c
blob45221c4ef820a011c1b45df788239e70bc5bed14
1 /* Make sure a stack probe is emitted also for the remaining bytes
2 after the loop probing the large chunk. */
4 /* { dg-do compile } */
5 /* { dg-options "-O2 -march=z9-ec -fstack-clash-protection" } */
7 void large_stack() {
8 volatile int stack[8000];
9 int i;
10 for (i = 0; i < sizeof(stack) / sizeof(int); ++i)
11 stack[i] = i;
14 /* We use a compare for the stack probe. There needs to be one inside
15 a loop and another for the remaining bytes. */
16 /* { dg-final { scan-assembler-times "cg\t" 2 { target s390_zarch } } } */
17 /* { dg-final { scan-assembler-times "c\t" 2 { target { ! s390_zarch } } } } */