master: x86-64/character-string-utf8-length: don't repeat the same instruction
stassats via Sbcl-commits <[email protected]>
| Newsgroups | gmane.lisp.steel-bank.cvs |
|---|---|
| Message-ID | <[email protected]> |
The branch "master" has been updated in SBCL:
via 6a80d5e791c534ac574594212cfb35c52e5f3a85 (commit)
from 992ff1465ea8a260e0fe09369057a123747dd219 (commit)
- Log -----------------------------------------------------------------
commit 6a80d5e791c534ac574594212cfb35c52e5f3a85
Author: Stas Boukarev <[email protected]>
Date: Tue Aug 11 00:18:49 2026 +0300
x86-64/character-string-utf8-length: don't repeat the same instruction
---
src/code/x86-64-simd.lisp | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/code/x86-64-simd.lisp b/src/code/x86-64-simd.lisp
index 432c6fea4..fdd7c819a 100644
--- a/src/code/x86-64-simd.lisp
+++ b/src/code/x86-64-simd.lisp
@@ -2212,6 +2212,7 @@
((current int-sse-reg))
((tmp1 int-sse-reg))
+ ((tmp2 int-sse-reg))
((mask int-sse-reg)))
((res descriptor-reg t :from :load)
@@ -2270,11 +2271,9 @@
START
;; Check for surrogates #xD800-#xDFFF
- (inst vpsrld tmp1 current 11)
- (inst vpcmpeqd tmp1 tmp1 c-1b)
- (inst vpor errors errors tmp1)
-
- (inst vpcmpgtd tmp1 current c-7f)
+ (inst vpsrld tmp2 current 11)
+ (inst vpcmpeqd tmp2 tmp2 c-1b)
+ (inst vpor errors errors tmp2)
(inst vpcmpgtd mask current c-7ff)
(inst vpaddd tmp1 tmp1 mask)
-----------------------------------------------------------------------
hooks/post-receive
--
SBCL