]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.target/i386/pr106748.c
x86: Handle V16BF in ix86_avx256_split_vector_move_misalign
[thirdparty/gcc.git] / gcc / testsuite / gcc.target / i386 / pr106748.c
1 /* { dg-do compile } */
2 /* { dg-options "-O0 -mavx256-split-unaligned-store -mavx -fpack-struct" } */
3
4 typedef __bf16 __m256bf16 __attribute__((__vector_size__(32)));
5 typedef struct {
6 __m256bf16 _m256bf16[1];
7 } YMM_T;
8
9 struct {
10 YMM_T ymm0;
11 } fregs;
12
13 __m256bf16 do_test_u3b_0_0;
14 int do_test_i;
15
16 void
17 do_test()
18 {
19 (&fregs.ymm0)[do_test_i]._m256bf16[0] = do_test_u3b_0_0;
20 }