projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1.0.35.17: micro-optimize x86-64 MOVE-TO-SINGLE
[sbcl.git]
/
src
/
compiler
/
x86-64
/
float.lisp
diff --git
a/src/compiler/x86-64/float.lisp
b/src/compiler/x86-64/float.lisp
index
6943574
..
6f0a27f
100644
(file)
--- a/
src/compiler/x86-64/float.lisp
+++ b/
src/compiler/x86-64/float.lisp
@@
-194,14
+194,20
@@
(define-vop (move-to-single)
(:args (x :scs (descriptor-reg) :target tmp))
(:temporary (:sc unsigned-reg) tmp)
(define-vop (move-to-single)
(:args (x :scs (descriptor-reg) :target tmp))
(:temporary (:sc unsigned-reg) tmp)
- (:results (y :scs (single-reg)))
+ (:results (y :scs (single-reg single-stack)))
(:note "pointer to float coercion")
(:generator 2
(move tmp x)
(inst shr tmp 32)
(:note "pointer to float coercion")
(:generator 2
(move tmp x)
(inst shr tmp 32)
- (inst movd y tmp)))
+ (sc-case y
+ (single-reg
+ (inst movd y tmp))
+ (single-stack
+ (let ((slot (make-ea :dword :base rbp-tn
+ :disp (frame-byte-offset (tn-offset y)))))
+ (inst mov slot (reg-in-size tmp :dword)))))))
-(define-move-vop move-to-single :move (descriptor-reg) (single-reg))
+(define-move-vop move-to-single :move (descriptor-reg) (single-reg single-stack))
(define-vop (move-to-double)
(:args (x :scs (descriptor-reg)))
(define-vop (move-to-double)
(:args (x :scs (descriptor-reg)))