diff options
author | Joel Holdsworth <joel.holdsworth@vcatechnology.com> | 2019-11-14 16:03:48 +0000 |
---|---|---|
committer | Joel Holdsworth <joel.holdsworth@vcatechnology.com> | 2020-03-10 22:46:19 +0000 |
commit | 9e68977578f94cf18a1d757b19384f5f3c7eef41 (patch) | |
tree | cee261a2036f4aea165540bed0da1ed72143e2c2 /test | |
parent | b733b8b680885c0fcdfddea5423171468609b5a6 (diff) |
test/packetmath: Made negate non-mandatory
Diffstat (limited to 'test')
-rw-r--r-- | test/packetmath.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/packetmath.cpp b/test/packetmath.cpp index 578441f96..4cf697764 100644 --- a/test/packetmath.cpp +++ b/test/packetmath.cpp @@ -127,9 +127,6 @@ template<typename Scalar,typename Packet> void packetmath() VERIFY((!PacketTraits::Vectorizable) || PacketTraits::HasAdd); VERIFY((!PacketTraits::Vectorizable) || PacketTraits::HasSub); VERIFY((!PacketTraits::Vectorizable) || PacketTraits::HasMul); - VERIFY((!PacketTraits::Vectorizable) || PacketTraits::HasNegate); - // Disabled as it is not clear why it would be mandatory to support division. - //VERIFY((internal::is_same<Scalar,int>::value) || (!PacketTraits::Vectorizable) || PacketTraits::HasDiv); CHECK_CWISE2_IF(PacketTraits::HasAdd, REF_ADD, internal::padd); CHECK_CWISE2_IF(PacketTraits::HasSub, REF_SUB, internal::psub); @@ -139,7 +136,8 @@ template<typename Scalar,typename Packet> void packetmath() CHECK_CWISE1(internal::pnot, internal::pnot); CHECK_CWISE1(internal::pzero, internal::pzero); CHECK_CWISE1(internal::ptrue, internal::ptrue); - CHECK_CWISE1(internal::negate, internal::pnegate); + if (PacketTraits::HasNegate) + CHECK_CWISE1(internal::negate, internal::pnegate); CHECK_CWISE1(numext::conj, internal::pconj); for(int offset=0;offset<3;++offset) |