gcc/testsuite/gcc.dg/pr123294-1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O1 -fno-tree-dse -fno-tree-dce" } */ |
| 3 | /* PR rtl-optimization/123294 */ |
| 4 | |
| 5 | typedef unsigned a; |
| 6 | int b; |
| 7 | void g(__attribute__((__vector_size__(4 * sizeof(a)))) a *); |
| 8 | a d() { |
| 9 | __attribute__((__vector_size__(4 * sizeof(a)))) a e[5]; |
| 10 | if (0 > b) { |
| 11 | __attribute__((__vector_size__(8 * sizeof(a)))) a f = {b, b}; |
| 12 | e[0] = __builtin_shufflevector(f, f, 0, 1, 2, 3); |
| 13 | } |
| 14 | return 1; |
| 15 | } |