| 1 |
/* { dg-do assemble } */ |
| 2 |
/* { dg-options "-Os -fdump-tree-ivopts -save-temps -fno-tree-loop-distribute-patterns" } */ |
| 3 |
|
| 4 |
void |
| 5 |
tr5 (short array[], int n) |
| 6 |
{ |
| 7 |
int x; |
| 8 |
if (n > 0) |
| 9 |
for (x = 0; x < n; x++) |
| 10 |
array[x] = 0; |
| 11 |
} |
| 12 |
|
| 13 |
/* { dg-final { scan-tree-dump-times "PHI <" 1 "ivopts"} } */ |
| 14 |
/* { dg-final { object-size text <= 20 { target { arm_thumb2_no_arm_v8_1m_lob } } } } */ |
| 15 |
/* { dg-final { object-size text <= 32 { target { arm_nothumb && { ! arm_iwmmxt_ok } } } } } */ |
| 16 |
/* { dg-final { object-size text <= 36 { target { arm_nothumb && arm_iwmmxt_ok } } } } */ |