PR tree-optimization/81384 - built-in form of strnlen missing
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / extzvsi.c
blob81f16185d21aaced1d51f4766be2097c83e3f49b
1 /* The bit-field below would have a problem if __INT_MAX__ is too
2 small. */
3 #if __INT_MAX__ < 2147483647
4 int
5 main (void)
7 exit (0);
9 #else
10 /* Failed on powerpc due to bad extzvsi pattern. */
12 struct ieee
14 unsigned int negative:1;
15 unsigned int exponent:11;
16 unsigned int mantissa0:20;
17 unsigned int mantissa1:32;
18 } x;
20 unsigned int
21 foo (void)
23 unsigned int exponent;
25 exponent = x.exponent;
26 if (exponent == 0)
27 return 1;
28 else if (exponent > 1)
29 return 2;
30 return 0;
33 int
34 main (void)
36 x.exponent = 1;
37 if (foo () != 0)
38 abort ();
39 return 0;
41 #endif