Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.target / i386 / signbit-2.c
blobc09bba3b8b35be90d4a0aacde75586503bda3bac
1 /* PR optimization/8746 */
2 /* { dg-do run } */
3 /* { dg-require-effective-target ilp32 } */
4 /* { dg-options "-O1 -mtune=i586" } */
6 extern void abort (void);
8 unsigned short r0;
10 int foo(int x)
12 unsigned short r = x&0xf000;
14 if (!(r&0x8000))
16 r0 = r;
17 return 0;
19 else
20 return 1;
23 int main(void)
25 if (foo(0x8000) != 1)
26 abort();
28 return 0;