diff --git a/test/packetmath.cpp b/test/packetmath.cpp index e4d1b8c06..cdbaad672 100644 --- a/test/packetmath.cpp +++ b/test/packetmath.cpp @@ -199,6 +199,12 @@ struct test_cast_helper::cast(data1, DataSize, data2); VERIFY(test::areApprox(ref, data2, DataSize) && "internal::pcast<>"); + + // Test that pcast generates the same result. + for (int i = 0; i < DataSize; ++i) { + data2[i] = internal::pcast(data1[i]); + } + VERIFY(test::areApprox(ref, data2, DataSize) && "internal::pcast<>"); } }; @@ -1496,7 +1502,7 @@ struct exp_complex_test_impl { template struct exp_complex_test_impl { typedef typename Scalar::value_type RealScalar; - static void run(Scalar*, Scalar*, Scalar*, int){}; + static void run(Scalar*, Scalar*, Scalar*, int) {}; }; template