* gcc.dg/const-elim-1.c: xfail for xtensa.
[official-gcc.git] / gcc / testsuite / gcc.dg / i386-signbit-3.c
blobae97f215603210ad5460ffdeb959f31d15847893
1 /* PR optimization/8746 */
2 /* { dg-do run { target i?86-*-* } } */
3 /* { dg-options "-O1 -mtune=i586" } */
5 extern void abort (void);
7 volatile int j;
9 void f0() { j=0; }
10 void f1() { j=1; }
12 int foo(int x)
14 if ((short int)(x&0x8000) > (short int)0)
16 f0();
17 return 0;
19 else
21 f1();
22 return 1;
26 int main(void)
28 if (foo(0x8000) != 1)
29 abort();
31 return 0;