gcc/testsuite/gcc.dg/vect/pr97760.c
raw| 1 | #include "tree-vect.h" |
| 2 | |
| 3 | int b=1; |
| 4 | static int *g = &b; |
| 5 | |
| 6 | void __attribute__((noipa)) |
| 7 | h (unsigned int n) |
| 8 | { |
| 9 | int i = 3; |
| 10 | int f = 3; |
| 11 | for (; f <= 50; f += 4) { |
| 12 | i += 4; |
| 13 | *g = i; |
| 14 | i += n; |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | int main () |
| 19 | { |
| 20 | check_vect (); |
| 21 | |
| 22 | h (9); |
| 23 | if (*g != 150 || b != 150) |
| 24 | __builtin_abort (); |
| 25 | return 0; |
| 26 | } |