PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr78477.c
blob62e894ee19074291dbcd21a4c169c8e23e2cba4b
1 /* PR rtl-optimization/78477 */
3 unsigned a;
4 unsigned short b;
6 unsigned
7 foo (unsigned x)
9 b = x;
10 a >>= (b & 1);
11 b = 1 | (b << 5);
12 b >>= 15;
13 x = (unsigned char) b > ((2 - (unsigned char) b) & 1);
14 b = 0;
15 return x;
18 int
19 main ()
21 if (__CHAR_BIT__ != 8 || sizeof (short) != 2 || sizeof (int) < 4)
22 return 0;
23 unsigned x = foo (12345);
24 if (x != 0)
25 __builtin_abort ();
26 return 0;