Merge from trunk @ 138209
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / funcspec-11.c
blobec32e0c669ed2ff82f391e535c9ca49857392696
1 /* PR target/36936 */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target ilp32 } */
4 /* { dg-options "-O2 -march=i386" } */
5 /* { dg-final { scan-assembler "cmov" } } */
7 extern int foo (int) __attribute__((__option__("arch=i686")));
9 int
10 foo (int x)
12 if (x < 0)
13 x = 1;
14 return x;