libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / pr101294.c
blobca59b35f4be2aa9ef35a23c81510b5d9ac5691f6
1 /* PR middle-end/101294 */
2 /* { dg-do compile } */
3 /* { dg-options "-O0" } */
4 /* { dg-additional-options "-mavx" { target avx } } */
6 typedef __attribute__((__vector_size__ (sizeof (unsigned long long)))) unsigned long long U;
7 typedef __attribute__((__vector_size__ (4 * sizeof (unsigned long long)))) unsigned long long V;
9 extern U x;
11 void
12 foo (void)
14 x = __builtin_shufflevector ((U){}, (V){}, 3);