]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.target/i386/pr80969-3.c
Enable support for bfloat16 which will be in Future Cooper Lake.
[thirdparty/gcc.git] / gcc / testsuite / gcc.target / i386 / pr80969-3.c
CommitLineData
122f9da1
DS
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#include <alloca.h>
9
10int a[56];
11volatile int b = -12345;
12volatile const int d = 42;
13
14void foo (int *x, int y, int z)
15{
16}
17
18void (*volatile const foo_noinfo)(int *, int, int) = foo;
19
20int main (int argc, char *argv[]) {
21 int c;
22 int *e = alloca (d);
23 foo_noinfo (e, d, 0);
24 for (; b; b++) {
25 c = b;
26 if (b & 1)
27 c = 2;
28 foo_noinfo (e, d, c);
29 a[-(b % 56)] = c;
30 }
31 return 0;
32}