| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O2 -mcpu=v4" } */ |
| 3 |
|
| 4 |
int bar_int(void); |
| 5 |
|
| 6 |
int foo_int(void) { |
| 7 |
if (bar_int() != 1) return 0; else return 1; |
| 8 |
} |
| 9 |
|
| 10 |
/* { dg-final { scan-assembler-not {r0 = r0} } } */ |
| 11 |
/* { dg-final { scan-assembler-times {w0 = w0} 1 } } */ |