aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.4.3/gcc/testsuite/gcc.target/i386/funcspec-10.c
blob: 9526e7df2eb45f2a579dcdaf79847574f0d5dbff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR target/36936 */
/* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */
/* { dg-options "-O2 -march=i686" } */
/* { dg-final { scan-assembler-not "cmov" } } */

extern int foo (int) __attribute__((__target__("arch=i386")));

int
foo (int x)
{
  if (x < 0)
    x = 1;
  return x;
}