gcc/testsuite/gcc.target/i386/pr86270.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -fno-tree-vectorize -fno-unroll-loops" } */ |
| 3 | |
| 4 | int *a; |
| 5 | long len; |
| 6 | |
| 7 | int |
| 8 | test () |
| 9 | { |
| 10 | for (int i = 0; i < len + 1; i++) |
| 11 | a[i]=i; |
| 12 | } |
| 13 | |
| 14 | /* Check we do not split the backedge but keep nice loop form. */ |
| 15 | /* { dg-final { scan-assembler-times "L\[0-9\]+:" 2 } } */ |
| 16 | /* Check we do not end up with reg-reg moves from a pre-increment IV |
| 17 | exit test. */ |
| 18 | /* { dg-final { scan-assembler-not "mov\[lq\]\?\t%\?\[er\].x, %\?\[er\].x" } } */ |