| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-require-effective-target ia32 } */ |
| 3 |
/* { dg-require-effective-target fpic } */ |
| 4 |
/* { dg-skip-if "" { *-*-* } { "-march=*" } { "-march=atom" } } */ |
| 5 |
/* { dg-skip-if "No Windows PIC" { *-*-mingw* *-*-cygwin } } */ |
| 6 |
/* { dg-options "-O2 -fomit-frame-pointer -march=atom -fPIC" } */ |
| 7 |
/* { dg-final { scan-assembler-times "nop" 8 } } */ |
| 8 |
/* { dg-final { scan-assembler-not "rep" } } */ |
| 9 |
|
| 10 |
extern int bar; |
| 11 |
|
| 12 |
int |
| 13 |
foo () |
| 14 |
{ |
| 15 |
asm volatile (""); |
| 16 |
return bar; |
| 17 |
} |