From 8754728a82ff568e27facc020ca07604bd44626f Mon Sep 17 00:00:00 2001 From: MerryMage Date: Sat, 6 Aug 2016 17:11:58 +0100 Subject: [PATCH] BackendX64/RegAlloc: Corrected code emitted by EmitMove for XMM->Spill case --- src/backend_x64/reg_alloc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend_x64/reg_alloc.cpp b/src/backend_x64/reg_alloc.cpp index c38e77fd..f9469480 100644 --- a/src/backend_x64/reg_alloc.cpp +++ b/src/backend_x64/reg_alloc.cpp @@ -410,7 +410,7 @@ void RegAlloc::EmitMove(HostLoc to, HostLoc from) { if (HostLocIsXMM(to) && HostLocIsSpill(from)) { code->MOVSD(HostLocToX64(to), SpillToOpArg(from)); } else if (HostLocIsSpill(to) && HostLocIsXMM(from)) { - code->MOVSD(HostLocToX64(to), SpillToOpArg(from)); + code->MOVSD(SpillToOpArg(to), HostLocToX64(from)); } else if (HostLocIsXMM(to) && HostLocIsXMM(from)) { code->MOVAPS(HostLocToX64(to), Gen::R(HostLocToX64(from))); } else if (HostLocIsGPR(to) && HostLocIsSpill(from)) {