* tree-ssa-loop-manip.c (split_loop_exit_edge): Return the new block.
[official-gcc.git] / gcc / testsuite / gcc.dg / c99-math.h
blob3f42f67319d0d654494133afd544a6136ba816d4
1 #include <math.h>
3 extern void abort(void);
5 #define C99_MATH_TESTS(nan, inf, huge, norm, zero) \
6 { \
7 if (fpclassify (nan) != FP_NAN) \
8 abort (); \
10 if (fpclassify (inf) != FP_INFINITE) \
11 abort (); \
13 if (fpclassify (huge) != FP_INFINITE) \
14 abort (); \
16 if (fpclassify (norm) != FP_NORMAL) \
17 abort (); \
19 if (fpclassify (zero) != FP_ZERO) \
20 abort (); \
23 if (!isnan (nan)) \
24 abort (); \
26 if (isnan (inf)) \
27 abort (); \
29 if (isnan (huge)) \
30 abort (); \
32 if (isnan (norm)) \
33 abort (); \
35 if (isnan (zero)) \
36 abort (); \
39 if (isinf (nan)) \
40 abort (); \
42 if (!isinf (inf)) \
43 abort (); \
45 if (!isinf (huge)) \
46 abort (); \
48 if (isnan (norm)) \
49 abort (); \
51 if (isinf (zero)) \
52 abort (); \
55 if (isfinite (nan)) \
56 abort (); \
58 if (isfinite (inf)) \
59 abort (); \
61 if (isfinite (huge)) \
62 abort (); \
64 if (!isfinite (norm)) \
65 abort (); \
67 if (!isfinite (zero)) \
68 abort (); \
71 if (isnormal (nan)) \
72 abort (); \
74 if (isnormal (inf)) \
75 abort (); \
77 if (isnormal (huge)) \
78 abort (); \
80 if (!isnormal (norm)) \
81 abort (); \
83 if (isnormal (zero)) \
84 abort (); \
87 if (signbit (norm)) \
88 abort (); \
90 if (!signbit (-(norm))) \
91 abort (); \
94 if (!isgreater ((inf), (norm))) \
95 abort (); \
97 if (!isgreaterequal ((inf), (huge))) \
98 abort (); \
100 if (!isless ((norm), (inf))) \
101 abort (); \
103 if (!islessequal ((huge), (inf))) \
104 abort (); \
106 if (!islessgreater ((inf), (norm))) \
107 abort (); \
109 if (!isunordered ((nan), (norm))) \
110 abort (); \