From 702e181b355536d388bd9280184f5a73b114a1b4 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Wed, 31 Aug 2016 23:06:49 +0100 Subject: [PATCH] backend_x64/abi: Reversing XMM list leads to incorrect ordering --- src/backend_x64/abi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend_x64/abi.cpp b/src/backend_x64/abi.cpp index 26e41ef2..21d4e161 100644 --- a/src/backend_x64/abi.cpp +++ b/src/backend_x64/abi.cpp @@ -91,7 +91,7 @@ void ABI_PopCalleeSaveRegistersAndAdjustStack(Xbyak::CodeGenerator* code, size_t FrameInfo frame_info = CalculateFrameInfo(num_gprs, num_xmms, frame_size); size_t xmm_offset = frame_info.xmm_offset; - for (HostLoc xmm : Common::Reverse(ABI_ALL_CALLEE_SAVE)) { + for (HostLoc xmm : ABI_ALL_CALLEE_SAVE) { if (HostLocIsXMM(xmm)) { code->movaps(HostLocToXmm(xmm), code->xword[rsp + xmm_offset]); xmm_offset += XMM_SIZE;