| 1 |
/* { dg-do run } */ |
| 2 |
/* { dg-options "-O -favoid-store-forwarding -mno-push-args --param=store-forwarding-max-distance=0 -Wno-psabi" } */ |
| 3 |
|
| 4 |
typedef __attribute__((__vector_size__ (64))) unsigned short V; |
| 5 |
|
| 6 |
__attribute__((__noipa__)) V |
| 7 |
foo (V v, V) |
| 8 |
{ |
| 9 |
return v; |
| 10 |
} |
| 11 |
|
| 12 |
int main () |
| 13 |
{ |
| 14 |
V a = (V){3, 5, 0, 8, 9, 3, 5, 1, 3, 4, 2, 5, 5, 0, 5, 3, 61886}; |
| 15 |
V b = (V){6, 80, 15, 2, 2, 1, 1, 3, 5}; |
| 16 |
V x = foo (a, b); |
| 17 |
for (unsigned i = 0; i < sizeof(x)/sizeof(x[0]); i++) |
| 18 |
if (x[i] != a[i]) |
| 19 |
__builtin_abort(); |
| 20 |
} |