gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-15.c
raw| 1 | /* PR79725 */ |
| 2 | /* { dg-do compile { target size32plus } } */ |
| 3 | /* { dg-options "-O2 -fdump-tree-optimized" } */ |
| 4 | |
| 5 | _Complex double f(_Complex double x[]) |
| 6 | { |
| 7 | _Complex float p = 1.0; |
| 8 | for (int i = 0; i < 1000000; i++) |
| 9 | p = x[i]; |
| 10 | return p; |
| 11 | } |
| 12 | |
| 13 | /* Verify we end up with a single BB and no loop. */ |
| 14 | /* { dg-final { scan-tree-dump-times "goto" 0 "optimized" } } */ |