From 23d99d7a247818823519ead86985dd0a668d793c Mon Sep 17 00:00:00 2001 From: dzaima Date: Sat, 4 Feb 2023 18:16:51 +0200 Subject: [PATCH] =?UTF-8?q?more=20precise=20detection=20of=20when=20bit=20?= =?UTF-8?q?=F0=9D=95=A9=20won't=20use=20simd=20for=20widening=20path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/builtins/select.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/builtins/select.c b/src/builtins/select.c index bdeef5e2..e260be25 100644 --- a/src/builtins/select.c +++ b/src/builtins/select.c @@ -206,7 +206,7 @@ B select_c2(B t, B w, B x) { #define BOOL_SPECIAL(W) #endif - if (!BOOL_USE_SIMD && xe==el_bit && wia>=256 && we!=el_bit && ((csz&7)!=0) && (xl==0? wia/4>=xia : wia>=xia/4 && csz<40)) { + if (!(BOOL_USE_SIMD && xl==0 && we==el_i8) && xe==el_bit && wia>=256 && we!=el_bit && ((csz&7)!=0) && (xl==0? wia/4>=xia : wia>=xia/4 && csz<40)) { return taga(cpyBitArr(select_c2(m_f64(0), w, taga(cpyI8Arr(x))))); }