Skip to content
Snippets Groups Projects
Commit fc5aa5d8 authored by Simon Marlow's avatar Simon Marlow Committed by Austin Seipp
Browse files

Use the correct callClobberedRegs on Windows/x64 (#8834)


Signed-off-by: default avatarAustin Seipp <austin@well-typed.com>
(cherry picked from commit c4eeacdf)
parent 65aa60b5
No related branches found
No related tags found
No related merge requests found
......@@ -403,6 +403,9 @@ callClobberedRegs :: Platform -> [Reg]
-- caller-saves registers
callClobberedRegs platform
| target32Bit platform = [eax,ecx,edx] ++ map regSingle (floatregnos platform)
| platformOS platform == OSMinGW32
= [rax,rcx,rdx,r8,r9,r10,r11]
++ map regSingle (floatregnos platform)
| otherwise
-- all xmm regs are caller-saves
-- caller-saves registers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment