From ba370cf84740727498a27de1427ec04e4ff554a6 Mon Sep 17 00:00:00 2001 From: Francesco Mazzoli Date: Tue, 30 Nov 2021 21:52:42 +0000 Subject: [PATCH] Restrict packet-selecting logic test to 32-bit scalars --- test/vectorization_logic.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/vectorization_logic.cpp b/test/vectorization_logic.cpp index 62d3f60ff..98a5b4340 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 )); } -- GitLab