@@ -4022,10 +4022,13 @@ range_tests_floats ()
r0.intersect (r1);
ASSERT_TRUE (r0.undefined_p ());
- // Make sure [-Inf, -Inf] doesn't get normalized.
- r0 = frange_float ("-Inf", "-Inf");
- ASSERT_TRUE (real_isinf (&r0.lower_bound (), true));
- ASSERT_TRUE (real_isinf (&r0.upper_bound (), true));
+ if (!flag_finite_math_only)
+ {
+ // Make sure [-Inf, -Inf] doesn't get normalized.
+ r0 = frange_float ("-Inf", "-Inf");
+ ASSERT_TRUE (real_isinf (&r0.lower_bound (), true));
+ ASSERT_TRUE (real_isinf (&r0.upper_bound (), true));
+ }
}
void