Debian Codegraph @

gcc/testsuite/gcc.target/i386/avx512vl-pr106721.c

raw
1 /* PR target/106721 */
2 /* { dg-do assemble { target avx512vl } } */
3 /* { dg-options "-O3 -mavx512vl" } */
4
5 typedef __bf16 __m256bf16 __attribute__((__vector_size__(32)));
6 void (*bar) (__m256bf16, __m256bf16, __m256bf16);
7 __m256bf16 a;
8 volatile __bf16 b, c, d, e, f, g, h;
9
10 void
11 foo (void)
12 {
13 __m256bf16 x[8];
14 int i;
15 for (i = 0; i < 8; i++)
16 x[i] = (__m256bf16) { b, c, d, e, f, g, h };
17 a = x[6];
18 bar (x[0], x[6], x[7]);
19 }