2 /* { dg-options "-O1 -funroll-loops" } */
3 /* { dg-add-options ieee } */
5 extern void exit (int);
6 extern void abort (void);
9 compare (double a
, double b
)
13 double s1
= __builtin_copysign ((double) 1.0, a
);
14 double s2
= __builtin_copysign ((double) 1.0, b
);
19 if ((__builtin_isnan (a
) != 0) != (__builtin_isnan (b
) != 0))
22 if ((a
!= b
) != (__builtin_isnan (a
) != 0))
32 _Complex
double cr
= __builtin_complex (a
, b
);
33 static _Complex
double cs
= __builtin_complex (0.0, 0.0);
35 compare (__real__ cr
, 0.0);
36 compare (__imag__ cr
, 0.0);
37 compare (__real__ cs
, 0.0);
38 compare (__imag__ cs
, 0.0);