Skip denormal test if Cond is false.

This commit is contained in:
Antonio Sánchez 2022-03-03 04:32:13 +00:00
parent d819a33bf6
commit 711803c427

View File

@ -693,7 +693,7 @@ void packetmath_test_IEEE_corner_cases(const RefFunctorT& ref_fun,
}
// Test for subnormals.
if (std::numeric_limits<Scalar>::has_denorm == std::denorm_present) {
if (Cond && std::numeric_limits<Scalar>::has_denorm == std::denorm_present) {
for (int scale = 1; scale < 5; ++scale) {
// When EIGEN_FAST_MATH is 1 we relax the conditions slightly, and allow the function