[Git][ghc/ghc][wip/supersven/riscv64-ncg] Fix wrong fcvt widths
Sven Tennie (@supersven)
gitlab at gitlab.haskell.org
Sat Dec 2 16:43:30 UTC 2023
Sven Tennie pushed to branch wip/supersven/riscv64-ncg at Glasgow Haskell Compiler / GHC
Commits:
880f6f1c by Sven Tennie at 2023-12-02T12:49:43+01:00
Fix wrong fcvt widths
- - - - -
1 changed file:
- compiler/GHC/CmmToAsm/RV64/Ppr.hs
Changes:
=====================================
compiler/GHC/CmmToAsm/RV64/Ppr.hs
=====================================
@@ -690,8 +690,8 @@ pprInstr platform instr = case instr of
line (pprOp platform o1 <> text "->" <> pprOp platform o2)
SCVTF o1@(OpReg W32 _) o2@(OpReg W32 _) -> op2 (text "\tfcvt.s.w") o1 o2
- SCVTF o1@(OpReg W32 _) o2@(OpReg W64 _) -> op2 (text "\tfcvt.s.w") o1 o2
- SCVTF o1@(OpReg W64 _) o2@(OpReg W32 _) -> op2 (text "\tfcvt.d.l") o1 o2
+ SCVTF o1@(OpReg W32 _) o2@(OpReg W64 _) -> op2 (text "\tfcvt.s.l") o1 o2
+ SCVTF o1@(OpReg W64 _) o2@(OpReg W32 _) -> op2 (text "\tfcvt.d.w") o1 o2
SCVTF o1@(OpReg W64 _) o2@(OpReg W64 _) -> op2 (text "\tfcvt.d.l") o1 o2
SCVTF o1 o2 -> pprPanic "RV64.pprInstr - impossible integer to float conversion" $
line (pprOp platform o1 <> text "->" <> pprOp platform o2)
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/880f6f1cfa2a93a791487526c6eacca67f223260
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/880f6f1cfa2a93a791487526c6eacca67f223260
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20231202/619b55d2/attachment-0001.html>
More information about the ghc-commits
mailing list