1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/* { dg-do assemble } */ /* { dg-options "-Os -fdump-tree-ivopts -save-temps -marm" } */ void tr5 (short array[], int n) { int x; if (n > 0) for (x = 0; x < n; x++) array[x] = 0; } /* { dg-final { scan-tree-dump-times "PHI <" 1 "ivopts"} } */ /* { dg-final { object-size text <= 32 } } */ /* { dg-final { cleanup-tree-dump "ivopts" } } */