1 /* Test for hexadecimal float rounding: bug 21720. */
3 /* { dg-options "-O -std=gnu99" } */
4 /* { dg-skip-if "SPU float rounds towards zero" { spu-*-* } } */
8 extern void link_failure (void);
13 #if FLT_RADIX == 2 && FLT_MANT_DIG == 24
14 if (0x1.0000011p0f
== 1)
16 if (0x1.00000101p0f
== 1)
18 if (0x1.000001001p0f
== 1)
20 if (0x1.0000010001p0f
== 1)
22 if (0x1.00000100001p0f
== 1)
24 if (0x1.000001000001p0f
== 1)
26 if (0x1.0000010000001p0f
== 1)
28 if (0x1.00000100000001p0f
== 1)
30 if (0x1.000001000000001p0f
== 1)
32 if (0x1.0000010000000001p0f
== 1)
34 if (0x1.00000100000000001p0f
== 1)
36 if (0x1.000001000000000001p0f
== 1)
38 if (0x1.0000010000000000001p0f
== 1)
40 if (0x1.00000100000000000001p0f
== 1)
42 if (0x1.000001000000000000001p0f
== 1)
44 if (0x1.0000010000000000000001p0f
== 1)
46 if (0x1.00000100000000000000001p0f
== 1)
48 if (0x1.000001000000000000000001p0f
== 1)
50 if (0x1.0000010000000000000000001p0f
== 1)
52 if (0x1.00000100000000000000000001p0f
== 1)
54 if (0x1.000001000000000000000000001p0f
== 1)
56 if (0x1.0000010000000000000000000001p0f
== 1)
58 if (0x1.00000100000000000000000000001p0f
== 1)
60 if (0x1.000001000000000000000000000001p0f
== 1)
62 if (0x1.0000010000000000000000000000001p0f
== 1)
64 if (0x1.00000100000000000000000000000001p0f
== 1)
66 if (0x1.000001000000000000000000000000001p0f
== 1)
68 if (0x1.0000010000000000000000000000000001p0f
== 1)
70 if (0x1.00000100000000000000000000000000001p0f
== 1)
72 if (0x1.000001000000000000000000000000000001p0f
== 1)
74 if (0x1.0000010000000000000000000000000000001p0f
== 1)
76 if (0x1.00000100000000000000000000000000000001p0f
== 1)
78 if (0x1.000001000000000000000000000000000000001p0f
== 1)
80 if (0x1.0000010000000000000000000000000000000001p0f
== 1)
82 if (0x1.00000100000000000000000000000000000000001p0f
== 1)
84 if (0x1.000001000000000000000000000000000000000001p0f
== 1)
86 if (0x1.0000010000000000000000000000000000000000001p0f
== 1)
88 if (0x1.00000100000000000000000000000000000000000001p0f
== 1)
90 if (0x1.000001000000000000000000000000000000000000001p0f
== 1)
92 if (0x1.0000010000000000000000000000000000000000000001p0f
== 1)
94 if (0x1.00000100000000000000000000000000000000000000001p0f
== 1)
96 if (0x1.000001000000000000000000000000000000000000000001p0f
== 1)
98 if (0x1.0000010000000000000000000000000000000000000000001p0f
== 1)
100 if (0x1.00000100000000000000000000000000000000000000000001p0f
== 1)
102 if (0x1.000001000000000000000000000000000000000000000000001p0f
== 1)
104 if (0x1.0000010000000000000000000000000000000000000000000001p0f
== 1)
106 if (0x1.00000100000000000000000000000000000000000000000000001p0f
== 1)
108 if (0x1.000001000000000000000000000000000000000000000000000001p0f
== 1)
110 if (0x1.0000010000000000000000000000000000000000000000000000001p0f
== 1)