x86-ncg: Fix fma codegen when arguments are globals
Fix a bug in the x86 ncg where results would be wrong when the desired output register and one of the input registers were the same global. Also adds a tiny optimization to make use of the memory addressing support when convenient. Fixes #24496
Showing
- compiler/GHC/CmmToAsm/X86/CodeGen.hs 33 additions, 6 deletionscompiler/GHC/CmmToAsm/X86/CodeGen.hs
- testsuite/tests/primops/should_run/T24496.hs 18 additions, 0 deletionstestsuite/tests/primops/should_run/T24496.hs
- testsuite/tests/primops/should_run/T24496.stdout 2 additions, 0 deletionstestsuite/tests/primops/should_run/T24496.stdout
- testsuite/tests/primops/should_run/all.T 7 additions, 0 deletionstestsuite/tests/primops/should_run/all.T
Loading
Please register or sign in to comment