From 4bfe38eda2c95a1294788b11df82231e7e9078eb Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 24 Feb 2011 00:22:10 +0300 Subject: [PATCH] extend testing of ploaddup --- test/packetmath.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/test/packetmath.cpp b/test/packetmath.cpp index a804e8e73..48f80d9db 100644 --- a/test/packetmath.cpp +++ b/test/packetmath.cpp @@ -173,7 +173,7 @@ template void packetmath() CHECK_CWISE1(internal::negate, internal::pnegate); CHECK_CWISE1(internal::conj, internal::pconj); - for(int offset=0;offset<3) + for(int offset=0;offset<3;++offset) { for (int i=0; i void packetmath() if(PacketSize>1) { - for(int i=0;i(data1)); - VERIFY(areApprox(ref, data2, PacketSize) && "ploaddup"); + for(int offset=0;offset<4;++offset) + { + for(int i=0;i(data1+offset)); + VERIFY(areApprox(ref, data2, PacketSize) && "ploaddup"); + } } ref[0] = 0;