gcc/testsuite/gcc.dg/torture/20190327-1.c
raw| 1 | /* { dg-do run } */ |
| 2 | /* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */ |
| 3 | |
| 4 | typedef long v2di __attribute__((vector_size(16))); |
| 5 | v2di v; |
| 6 | void __attribute__((noinline)) |
| 7 | foo() |
| 8 | { |
| 9 | v = (v2di){v[1], v[0]}; |
| 10 | } |
| 11 | |
| 12 | int main() |
| 13 | { |
| 14 | v[0] = 1; |
| 15 | foo (); |
| 16 | if (v[0] != 0 || v[1] != 1) |
| 17 | __builtin_abort (); |
| 18 | return 0; |
| 19 | } |