From c484f8ee8da64d24c34f8258fc80c4650e73117c Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Sun, 16 Jul 2023 17:22:26 -0400 Subject: [PATCH] Avoid UB from shifting by 64 --- src/singeli/src/slash.singeli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/singeli/src/slash.singeli b/src/singeli/src/slash.singeli index dcebe0a6..9062b1ad 100644 --- a/src/singeli/src/slash.singeli +++ b/src/singeli/src/slash.singeli @@ -225,7 +225,7 @@ fn slash{c==1, T & hasarch{if (width{T}>=32) 'AVX512F' else 'AVX512VBMI2'}}(w:*u # The compress-store instruction performs very poorly on Zen4, # and is also a lot worse than the following on Tiger Lake # emitT{void, 'mask_compressstoreu', r, m, x} - cs := cast_i{I,promote{i64,1}<>6 v := emitT{V, 'mask_compress', x, m, x} emitT{void, 'mask_storeu', r, to_mask{cs}, v}