summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pad-4.c
blob: ad6b029e2cb63e8f768e16f1306c44d8ba21e9c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */
/* { dg-require-effective-target fpic } */
/* { dg-options "-O2 -fomit-frame-pointer -march=atom -fPIC" } */
/* { dg-final { scan-assembler-times "nop" 8 } } */
/* { dg-final { scan-assembler-not "rep" } } */

extern int bar;

int
foo ()
{
  asm volatile ("");
  return bar;
}