1 /* Test for hexadecimal float rounding: bug 21720. */
3 /* { dg-options "-O -std=gnu99" } */
7 extern void link_failure (void);
12 #if FLT_RADIX == 2 && FLT_MANT_DIG == 24
13 if (0x1.0000011p0f
== 1)
15 if (0x1.00000101p0f
== 1)
17 if (0x1.000001001p0f
== 1)
19 if (0x1.0000010001p0f
== 1)
21 if (0x1.00000100001p0f
== 1)
23 if (0x1.000001000001p0f
== 1)
25 if (0x1.0000010000001p0f
== 1)
27 if (0x1.00000100000001p0f
== 1)
29 if (0x1.000001000000001p0f
== 1)
31 if (0x1.0000010000000001p0f
== 1)
33 if (0x1.00000100000000001p0f
== 1)
35 if (0x1.000001000000000001p0f
== 1)
37 if (0x1.0000010000000000001p0f
== 1)
39 if (0x1.00000100000000000001p0f
== 1)
41 if (0x1.000001000000000000001p0f
== 1)
43 if (0x1.0000010000000000000001p0f
== 1)
45 if (0x1.00000100000000000000001p0f
== 1)
47 if (0x1.000001000000000000000001p0f
== 1)
49 if (0x1.0000010000000000000000001p0f
== 1)
51 if (0x1.00000100000000000000000001p0f
== 1)
53 if (0x1.000001000000000000000000001p0f
== 1)
55 if (0x1.0000010000000000000000000001p0f
== 1)
57 if (0x1.00000100000000000000000000001p0f
== 1)
59 if (0x1.000001000000000000000000000001p0f
== 1)
61 if (0x1.0000010000000000000000000000001p0f
== 1)
63 if (0x1.00000100000000000000000000000001p0f
== 1)
65 if (0x1.000001000000000000000000000000001p0f
== 1)
67 if (0x1.0000010000000000000000000000000001p0f
== 1)
69 if (0x1.00000100000000000000000000000000001p0f
== 1)
71 if (0x1.000001000000000000000000000000000001p0f
== 1)
73 if (0x1.0000010000000000000000000000000000001p0f
== 1)
75 if (0x1.00000100000000000000000000000000000001p0f
== 1)
77 if (0x1.000001000000000000000000000000000000001p0f
== 1)
79 if (0x1.0000010000000000000000000000000000000001p0f
== 1)
81 if (0x1.00000100000000000000000000000000000000001p0f
== 1)
83 if (0x1.000001000000000000000000000000000000000001p0f
== 1)
85 if (0x1.0000010000000000000000000000000000000000001p0f
== 1)
87 if (0x1.00000100000000000000000000000000000000000001p0f
== 1)
89 if (0x1.000001000000000000000000000000000000000000001p0f
== 1)
91 if (0x1.0000010000000000000000000000000000000000000001p0f
== 1)
93 if (0x1.00000100000000000000000000000000000000000000001p0f
== 1)
95 if (0x1.000001000000000000000000000000000000000000000001p0f
== 1)
97 if (0x1.0000010000000000000000000000000000000000000000001p0f
== 1)
99 if (0x1.00000100000000000000000000000000000000000000000001p0f
== 1)
101 if (0x1.000001000000000000000000000000000000000000000000001p0f
== 1)
103 if (0x1.0000010000000000000000000000000000000000000000000001p0f
== 1)
105 if (0x1.00000100000000000000000000000000000000000000000000001p0f
== 1)
107 if (0x1.000001000000000000000000000000000000000000000000000001p0f
== 1)
109 if (0x1.0000010000000000000000000000000000000000000000000000001p0f
== 1)