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

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

parent 261a97b9
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