libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / pr54346.c
blob5ec0609f1e507bb8feb31986ad874b614fd141dd
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-dse1 -Wno-psabi" } */
4 typedef int veci __attribute__ ((vector_size (4 * sizeof (int))));
6 void fun (veci a, veci b, veci *i)
8 veci c = __builtin_shuffle (a, b, __extension__ (veci) {1, 4, 2, 7});
9 *i = __builtin_shuffle (c, __extension__ (veci) { 7, 2, 1, 5 });
12 /* { dg-final { scan-tree-dump "VEC_PERM_EXPR.*{ 3, 6, 0, 0 }" "dse1" } } */
13 /* { dg-final { scan-tree-dump-times "VEC_PERM_EXPR" 1 "dse1" } } */