| 1 |
/* { dg-additional-options "-O1 -fno-tree-pre -fno-tree-loop-im" } */ |
| 2 |
|
| 3 |
#include "tree-vect.h" |
| 4 |
|
| 5 |
extern void abort (void); |
| 6 |
int c[80]; |
| 7 |
|
| 8 |
__attribute__((noinline)) int |
| 9 |
foo (void) |
| 10 |
{ |
| 11 |
int l = 0; |
| 12 |
int a, b; |
| 13 |
|
| 14 |
for (a = 3; a >= 0; a--) |
| 15 |
for (b = 7; b >= 0; b--) |
| 16 |
l |= c[a+60]; |
| 17 |
return l; |
| 18 |
} |
| 19 |
|
| 20 |
int |
| 21 |
main () |
| 22 |
{ |
| 23 |
int i; |
| 24 |
check_vect (); |
| 25 |
for (i = 0; i < 60; i++) |
| 26 |
c[i] = 1; |
| 27 |
for (; i < 64; i++) |
| 28 |
c[i] = 1 << (i - 59); |
| 29 |
if (foo () != 30) |
| 30 |
abort (); |
| 31 |
return 0; |
| 32 |
} |
| 33 |
|