Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr80969-3.c

raw
1 /* { dg-do run { target { { ! x32 } && avx512f_runtime } } } */
2 /* { dg-do compile { target { { ! x32 } && { ! avx512f_runtime } } } } */
3 /* { dg-options "-Ofast -mabi=ms -mavx512f" } */
4 /* { dg-require-effective-target avx512f } */
5
6 /* Test with alloca (and DRAP). */
7
8 int a[56];
9 volatile int b = -12345;
10 volatile const int d = 42;
11
12 void foo (int *x, int y, int z)
13 {
14 }
15
16 void (*volatile const foo_noinfo)(int *, int, int) = foo;
17
18 int main (int argc, char *argv[]) {
19 int c;
20 int *e = __builtin_alloca (d);
21 foo_noinfo (e, d, 0);
22 for (; b; b++) {
23 c = b;
24 if (b & 1)
25 c = 2;
26 foo_noinfo (e, d, c);
27 a[-(b % 56)] = c;
28 }
29 return 0;
30 }