gcc/testsuite/gcc.target/aarch64/pr123294-1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O1" } */ |
| 3 | /* PR rtl-optimization/123294 */ |
| 4 | |
| 5 | #include <arm_neon.h> |
| 6 | |
| 7 | typedef unsigned a; |
| 8 | int b; |
| 9 | a d() { |
| 10 | __attribute__((__vector_size__(4 * sizeof(a)))) a e[5]; |
| 11 | if (0 > b) { |
| 12 | __attribute__((__vector_size__(8 * sizeof(a)))) a f = {b, b}; |
| 13 | e[0] = __builtin_shufflevector(f, f, 0, 1, 2, 3); |
| 14 | } |
| 15 | while (vqadd_u64((uint64x1_t){3}, (uint64x1_t){0})[0]) |
| 16 | ; |
| 17 | return e[0][3]; |
| 18 | } |