aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/unalignedcount.cpp
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2014-01-29 11:43:05 -0800
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2014-01-29 11:43:05 -0800
commit64a85800bd3573a7da7a396fde9707dce87a58d9 (patch)
tree6f82e2c24497038548e594f00b8b29f9affe66b9 /test/unalignedcount.cpp
parenta7621809fe0fc7c65446ab9a83739ebe313004d4 (diff)
Added support for AVX to Eigen.
Diffstat (limited to 'test/unalignedcount.cpp')
-rw-r--r--test/unalignedcount.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/unalignedcount.cpp b/test/unalignedcount.cpp
index ca7e159f3..d6ffeafdf 100644
--- a/test/unalignedcount.cpp
+++ b/test/unalignedcount.cpp
@@ -30,7 +30,14 @@ static int nb_storeu;
void test_unalignedcount()
{
- #ifdef EIGEN_VECTORIZE_SSE
+ #if defined(EIGEN_VECTORIZE_AVX)
+ VectorXf a(40), b(40);
+ VERIFY_ALIGNED_UNALIGNED_COUNT(a += b, 10, 0, 5, 0);
+ VERIFY_ALIGNED_UNALIGNED_COUNT(a.segment(0,40) += b.segment(0,40), 5, 5, 5, 0);
+ VERIFY_ALIGNED_UNALIGNED_COUNT(a.segment(0,40) -= b.segment(0,40), 5, 5, 5, 0);
+ VERIFY_ALIGNED_UNALIGNED_COUNT(a.segment(0,40) *= 3.5, 5, 0, 5, 0);
+ VERIFY_ALIGNED_UNALIGNED_COUNT(a.segment(0,40) /= 3.5, 5, 0, 5, 0);
+ #elif defined(EIGEN_VECTORIZE_SSE)
VectorXf a(40), b(40);
VERIFY_ALIGNED_UNALIGNED_COUNT(a += b, 20, 0, 10, 0);
VERIFY_ALIGNED_UNALIGNED_COUNT(a.segment(0,40) += b.segment(0,40), 10, 10, 10, 0);