From 711803c427fa0d3c87720c73e43984be96ba43e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20S=C3=A1nchez?= Date: Thu, 3 Mar 2022 04:32:13 +0000 Subject: [PATCH] Skip denormal test if `Cond` is false. --- test/packetmath.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/packetmath.cpp b/test/packetmath.cpp index 39dae5074..081e59475 100644 --- a/test/packetmath.cpp +++ b/test/packetmath.cpp @@ -693,7 +693,7 @@ void packetmath_test_IEEE_corner_cases(const RefFunctorT& ref_fun, } // Test for subnormals. - if (std::numeric_limits::has_denorm == std::denorm_present) { + if (Cond && std::numeric_limits::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