aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--test/packetmath.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/packetmath.cpp b/test/packetmath.cpp
index c6c5bd3b0..32ee62752 100644
--- a/test/packetmath.cpp
+++ b/test/packetmath.cpp
@@ -325,6 +325,14 @@ template<typename Scalar> void packetmath_complex()
VERIFY(areApprox(ref, pval, PacketSize) && "conj_helper");
}
+ {
+ for(int i=0;i<PacketSize;++i)
+ ref[i] = Scalar(std::imag(data1[i]),std::real(data1[i]));
+ internal::pstore(pval,internal::pcplxflip(internal::pload<Packet>(data1)));
+ VERIFY(areApprox(ref, pval, PacketSize) && "pcplxflip");
+ }
+
+
}
void test_packetmath()