Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.target / i386 / signbit-3.c
bloba08ca498142f3a9851be9ffa43e2e9ba096a455c
1 /* PR optimization/8746 */
2 /* { dg-do run { target i?86-*-* x86_64-*-* } } */
3 /* { dg-require-effective-target ilp32 } */
4 /* { dg-options "-O1 -mtune=i586" } */
6 extern void abort (void);
8 volatile int j;
10 void f0() { j=0; }
11 void f1() { j=1; }
13 int foo(int x)
15 if ((short int)(x&0x8000) > (short int)0)
17 f0();
18 return 0;
20 else
22 f1();
23 return 1;
27 int main(void)
29 if (foo(0x8000) != 1)
30 abort();
32 return 0;