Fix FMA primops generating broken assembly on x86.
`genFMA3Code` assumed that we had to take extra precations to avoid overwriting the result of `getNonClobberedReg`. One of these special cases caused a bug resulting in broken assembly. I believe we don't need to hadle these cases specially at all, which means this MR simply deletes the special cases to fix the bug. Fixes #24160
Showing
- compiler/GHC/CmmToAsm/X86/CodeGen.hs 0 additions, 23 deletionscompiler/GHC/CmmToAsm/X86/CodeGen.hs
- compiler/GHC/CmmToAsm/X86/Instr.hs 4 additions, 2 deletionscompiler/GHC/CmmToAsm/X86/Instr.hs
- testsuite/tests/primops/should_compile/T24160_FMA.hs 8 additions, 0 deletionstestsuite/tests/primops/should_compile/T24160_FMA.hs
- testsuite/tests/primops/should_compile/all.T 5 additions, 0 deletionstestsuite/tests/primops/should_compile/all.T
Loading
Please register or sign in to comment