X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fx86-64%2Fmacros.lisp;h=eeb35c1846c926eded80dc66c78a6602a1ec73fa;hb=3eb0a28fe6a7912d6ff2b97221325c0e3bfc5703;hp=8e9f735e0b589aee37d9122755e11b90d3af6347;hpb=4d5a8689d1d303f65c2fa933bb8757063641a8f9;p=sbcl.git diff --git a/src/compiler/x86-64/macros.lisp b/src/compiler/x86-64/macros.lisp index 8e9f735..eeb35c1 100644 --- a/src/compiler/x86-64/macros.lisp +++ b/src/compiler/x86-64/macros.lisp @@ -19,7 +19,13 @@ (once-only ((n-dst dst) (n-src src)) `(unless (location= ,n-dst ,n-src) - (inst mov ,n-dst ,n-src)))) + (sc-case ,n-dst + (single-reg + (inst movss ,n-dst ,n-src)) + (double-reg + (inst movsd ,n-dst ,n-src)) + (t + (inst mov ,n-dst ,n-src)))))) (defmacro make-ea-for-object-slot (ptr slot lowtag) `(make-ea :qword :base ,ptr :disp (- (* ,slot n-word-bytes) ,lowtag)))