| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O1 -mcld" } */ |
| 3 |
|
| 4 |
void test (int x, int **pp) |
| 5 |
{ |
| 6 |
while (x) |
| 7 |
{ |
| 8 |
int *ip = *pp; |
| 9 |
int *op = *pp; |
| 10 |
while (*ip) |
| 11 |
{ |
| 12 |
int v = *ip++; |
| 13 |
*op++ = v + 1; |
| 14 |
} |
| 15 |
} |
| 16 |
} |
| 17 |
|
| 18 |
/* { dg-final { scan-assembler-not "stosl" } } */ |