Updated the packetmath test to call predux_half instead of predux4

This commit is contained in:
Benoit Steiner 2016-02-01 15:18:33 -08:00
parent ef66f2887b
commit d93b71a301

View File

@ -233,8 +233,8 @@ template<typename Scalar> void packetmath()
ref[i] = 0;
for (int i=0; i<PacketSize; ++i)
ref[i%4] += data1[i];
internal::pstore(data2, internal::predux4(internal::pload<Packet>(data1)));
VERIFY(areApprox(ref, data2, PacketSize>4?PacketSize/2:PacketSize) && "internal::predux4");
internal::pstore(data2, internal::predux_half(internal::pload<Packet>(data1)));
VERIFY(areApprox(ref, data2, PacketSize>4?PacketSize/2:PacketSize) && "internal::predux_half");
}
ref[0] = 1;