master: Off by one in simd-copy-character-string-to-utf8-byte-array-avx2

stassats via Sbcl-commits <[email protected]> Wed, 08 Jul 2026 20:34:53 +0000
Newsgroups gmane.lisp.steel-bank.cvs
Message-ID <[email protected]>
The branch "master" has been updated in SBCL:
       via  c61d1ca77b19beb3b53b4d216392bc6d8b78ac22 (commit)
      from  262b56a6e88397ce1a02bd4a61a3e89b13d7e6ac (commit)

- Log -----------------------------------------------------------------
commit c61d1ca77b19beb3b53b4d216392bc6d8b78ac22
Author: Stas Boukarev <[email protected]>
Date:   Wed Jul 8 23:31:49 2026 +0300

    Off by one in simd-copy-character-string-to-utf8-byte-array-avx2
---
 src/code/x86-64-simd.lisp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/code/x86-64-simd.lisp b/src/code/x86-64-simd.lisp
index a6ec631d1..9c6c79ea1 100644
--- a/src/code/x86-64-simd.lisp
+++ b/src/code/x86-64-simd.lisp
@@ -2470,7 +2470,7 @@
                        ((temp complex-double-reg))
                        ((bytes complex-double-reg))
                        ((mask-3f complex-double-reg))
-                       ((mask-7f complex-double-reg))
+                       ((mask-80 complex-double-reg))
                        ((mask-7ff int-avx2-reg))
                        ((low-bytes complex-double-reg))
                        ((high-bytes complex-double-reg))
@@ -2488,9 +2488,9 @@
             (inst vmovd temp tmp)
             (inst vpbroadcastw utf8-mask temp)
 
-            (inst mov tmp #x7f)
+            (inst mov tmp #x80)
             (inst vmovd temp tmp)
-            (inst vpbroadcastw mask-7f temp)
+            (inst vpbroadcastw mask-80 temp)
 
             (inst mov tmp #x7ff)
             (inst vmovd temp tmp)
@@ -2511,7 +2511,7 @@
                              (t
                               (inst vpackusdw bytes bytes zero))))
 
-                     (inst vpcmpgtw ascii mask-7f bytes)
+                     (inst vpcmpgtw ascii mask-80 bytes)
 
                      ;; Construct
                      ;; (logior

-----------------------------------------------------------------------


hooks/post-receive
-- 
SBCL