aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/unalignedassert.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2015-12-09 20:46:09 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2015-12-09 20:46:09 +0100
commit21ed29e2c9a3d32a2e9ea2ba91eb8f19ee620b0e (patch)
treee59e4821c68bc55bef5c9a38b8fb262da01b3f7f /test/unalignedassert.cpp
parentfbe18d550780195dc18feb896c35a98b111bd190 (diff)
Disable complex scalar types because the compiler might aggressively vectorize
the initialization of complex coeffs to 0 before we can check for alignedness
Diffstat (limited to 'test/unalignedassert.cpp')
-rw-r--r--test/unalignedassert.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/unalignedassert.cpp b/test/unalignedassert.cpp
index 014cc834b..e2f03ffca 100644
--- a/test/unalignedassert.cpp
+++ b/test/unalignedassert.cpp
@@ -157,7 +157,9 @@ void unalignedassert()
VERIFY_RAISES_ASSERT(construct_at_boundary<Vector8d>(8));
VERIFY_RAISES_ASSERT(construct_at_boundary<Vector10d>(8));
VERIFY_RAISES_ASSERT(construct_at_boundary<Vector12d>(8));
- VERIFY_RAISES_ASSERT(construct_at_boundary<Vector2cf>(8));
+ // Complexes are disabled because the compiler might aggressively vectorize
+ // the initialization of complex coeffs to 0 before we can check for alignedness
+ //VERIFY_RAISES_ASSERT(construct_at_boundary<Vector2cf>(8));
VERIFY_RAISES_ASSERT(construct_at_boundary<Vector4i>(8));
}
for(int b=8; b<EIGEN_MAX_ALIGN_BYTES; b+=8)
@@ -167,7 +169,7 @@ void unalignedassert()
if(b<32) VERIFY_RAISES_ASSERT(construct_at_boundary<Vector4d>(b));
if(b<32) VERIFY_RAISES_ASSERT(construct_at_boundary<Matrix2d>(b));
if(b<128) VERIFY_RAISES_ASSERT(construct_at_boundary<Matrix4d>(b));
- if(b<32) VERIFY_RAISES_ASSERT(construct_at_boundary<Vector2cd>(b));
+ //if(b<32) VERIFY_RAISES_ASSERT(construct_at_boundary<Vector2cd>(b));
}
#endif
}