| 1 |
/* PR tree-optimization/69820 */ |
| 2 |
|
| 3 |
#include "tree-vect.h" |
| 4 |
|
| 5 |
unsigned int a[100]; |
| 6 |
long long int b[100]; |
| 7 |
unsigned short c[100]; |
| 8 |
|
| 9 |
__attribute__((noinline, noclone)) void |
| 10 |
foo (void) |
| 11 |
{ |
| 12 |
int i; |
| 13 |
for (i = 0; i < 100; ++i) |
| 14 |
b[i] = a[i] * (c[i] * (_Bool) c[i]); |
| 15 |
} |
| 16 |
|
| 17 |
int |
| 18 |
main () |
| 19 |
{ |
| 20 |
int i; |
| 21 |
if (__SIZEOF_INT__ * __CHAR_BIT__ != 32) |
| 22 |
return 0; |
| 23 |
check_vect (); |
| 24 |
for (i = 0; i < 100; ++i) |
| 25 |
{ |
| 26 |
a[i] = 3489456818U; |
| 27 |
b[i] = 0x1eadbeefbeefdeadLL; |
| 28 |
c[i] = 38364; |
| 29 |
} |
| 30 |
foo (); |
| 31 |
#pragma GCC novector |
| 32 |
for (i = 0; i < 100; ++i) |
| 33 |
if (b[i] != 0xed446af8U) |
| 34 |
__builtin_abort (); |
| 35 |
return 0; |
| 36 |
} |