| 1 |
/* { dg-do compile { target powerpc*-*-* ia64-*-* i?86-*-* x86_64-*-* } } */ |
| 2 |
/* { dg-options "-O2 -fselective-scheduling2 -fvar-tracking-assignments -fno-guess-branch-probability -fno-peephole2 -fno-ssa-phiopt -fno-tree-pre --param max-jump-thread-duplication-stmts=8 -w" } */ |
| 3 |
/* { dg-additional-options "-march=nano" { target i?86-*-* x86_64-*-* } } */ |
| 4 |
|
| 5 |
int vn, xm; |
| 6 |
|
| 7 |
void |
| 8 |
i1 (int); |
| 9 |
|
| 10 |
void |
| 11 |
mb (int *ap, int ev) |
| 12 |
{ |
| 13 |
while (vn < 1) |
| 14 |
{ |
| 15 |
i1 (vn); |
| 16 |
|
| 17 |
ev += *ap && ++vn; |
| 18 |
|
| 19 |
while (xm < 1) |
| 20 |
++xm; |
| 21 |
|
| 22 |
if (*ap == 0) |
| 23 |
*ap = ev; |
| 24 |
|
| 25 |
++vn; |
| 26 |
} |
| 27 |
} |