| 1 |
/* PR tree-optimization/56918 */ |
| 2 |
/* { dg-additional-options "-O3" } */ |
| 3 |
|
| 4 |
#include "tree-vect.h" |
| 5 |
|
| 6 |
extern void abort (void); |
| 7 |
double data[8]; |
| 8 |
|
| 9 |
__attribute__((noinline, noclone)) void |
| 10 |
foo () |
| 11 |
{ |
| 12 |
int i; |
| 13 |
for (i = 0; i < 8; ++i) |
| 14 |
data[i] = ((i + 2) % 3) + 1; |
| 15 |
} |
| 16 |
|
| 17 |
int |
| 18 |
main () |
| 19 |
{ |
| 20 |
int i; |
| 21 |
check_vect (); |
| 22 |
foo (); |
| 23 |
if (data[0] != 3 || data[7] != 1) |
| 24 |
abort (); |
| 25 |
#pragma GCC novector |
| 26 |
for (i = 1; i < 4; ++i) |
| 27 |
if (data[i] != i || data[i + 3] != i) |
| 28 |
abort (); |
| 29 |
return 0; |
| 30 |
} |
| 31 |
|