1 /* Test gcse handling of IEEE 0/-0 rules. */
2 static double zero
= 0.0;
5 negzero_check (double d
)
8 return !!memcmp ((void *)&zero
, (void *)&d
, sizeof (double));
13 sub (double d
, double e
)
15 if (d
== 0.0 && e
== 0.0
16 && negzero_check (d
) == 0 && negzero_check (e
) == 0)
25 double minus_zero
= -0.0;
26 if (sub (minus_zero
, 0))