NEON: disable unaligned assertion checking for non vectorized types

(transplanted from 7f2a88c91f
)
This commit is contained in:
Gael Guennebaud
2011-05-18 14:11:40 +02:00
parent 99ab2411e5
commit f07fca2c80
2 changed files with 18 additions and 8 deletions

View File

@@ -50,7 +50,10 @@ template<typename VectorType> void map_class_vector(const VectorType& m)
VERIFY_IS_EQUAL(ma1, ma2);
VERIFY_IS_EQUAL(ma1, ma3);
#ifdef EIGEN_VECTORIZE
VERIFY_RAISES_ASSERT((Map<VectorType,Aligned>(array3unaligned, size)))
if(internal::packet_traits<Scalar>::Vectorizable)
{
VERIFY_RAISES_ASSERT((Map<VectorType,Aligned>(array3unaligned, size)))
}
#endif
internal::aligned_delete(array1, size);