diff --git a/test/vectorization_logic.cpp b/test/vectorization_logic.cpp index 62d3f60ff09e5d71ddf43b44150ff14f1296f6d3..98a5b4340e2f730d8fced4299a805a1255b642b6 100644 --- a/test/vectorization_logic.cpp +++ b/test/vectorization_logic.cpp @@ -283,10 +283,12 @@ struct vectorization_logic internal::is_same::type, PacketType>::value )); // In situations where the picking the full-packet would be detrimental the half-packet - // is chosen. + // is chosen. We restrict this test specifically for 32bit types: if we have 12 scalars, + // working at full-packet will involve 1+4 = 5 instructions, with half-packet 3 + // instructions. STATIC_CHECK(( - !(PacketSize > 2) || - internal::is_same::type, HalfPacketType>::value + (PacketSize != 8) || + internal::is_same::type, HalfPacketType>::value )); }