From 09c0085a577a142b6e90b5c803a048ab7a4405c1 Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Thu, 27 Jan 2022 02:09:25 +0000 Subject: [PATCH] Only test pmsub, pnmadd, and pnmsub on signed types. --- test/packetmath.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/packetmath.cpp b/test/packetmath.cpp index c4cc448e2..be6c90d5f 100644 --- a/test/packetmath.cpp +++ b/test/packetmath.cpp @@ -643,7 +643,7 @@ void packetmath() { CHECK_CWISE1_IF(PacketTraits::HasSqrt, numext::sqrt, internal::psqrt); CHECK_CWISE1_IF(PacketTraits::HasRsqrt, numext::rsqrt, internal::prsqrt); CHECK_CWISE3_IF(true, REF_MADD, internal::pmadd); - if (!std::is_same::value) { + if (!std::is_same::value && NumTraits::IsSigned)) { CHECK_CWISE3_IF(true, REF_MSUB, internal::pmsub); CHECK_CWISE3_IF(true, REF_NMADD, internal::pnmadd); CHECK_CWISE3_IF(true, REF_NMSUB, internal::pnmsub);