gcc/testsuite/gcc.dg/graphite/isl-ast-gen-if-2.c
raw| 1 | /* This test case tests reduction, where the pbbs are duplicated. */ |
| 2 | |
| 3 | static int __attribute__((noinline)) |
| 4 | foo () |
| 5 | { |
| 6 | int i, res = 0; |
| 7 | |
| 8 | for (i = 0; i < 50; i++) |
| 9 | { |
| 10 | if (i >= 25) |
| 11 | res += i; |
| 12 | } |
| 13 | |
| 14 | return res; |
| 15 | } |
| 16 | |
| 17 | extern void abort (); |
| 18 | |
| 19 | int |
| 20 | main (void) |
| 21 | { |
| 22 | int res = foo (); |
| 23 | |
| 24 | if (res != 925) |
| 25 | abort (); |
| 26 | |
| 27 | return 0; |
| 28 | } |