diff options
author | Ben Gamari <ben@smart-cactus.org> | 2022-06-14 23:19:45 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-06-18 10:44:11 -0400 |
commit | d05d90d26d0820d4d24c461888bcd1993ebef36c (patch) | |
tree | c51c15258847e1e2a130a8d063c7b959b6436d21 | |
parent | 711cb417606e351ea525d7a322b591b3b0e23bdd (diff) | |
download | haskell-d05d90d26d0820d4d24c461888bcd1993ebef36c.tar.gz |
CmmToAsm/AArch64: Fix syntax of OpRegShift operands
Previously this produced invalid assembly containing a redundant comma.
-rw-r--r-- | compiler/GHC/CmmToAsm/AArch64/Ppr.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/CmmToAsm/AArch64/Ppr.hs b/compiler/GHC/CmmToAsm/AArch64/Ppr.hs index e753672908..b1761a1db2 100644 --- a/compiler/GHC/CmmToAsm/AArch64/Ppr.hs +++ b/compiler/GHC/CmmToAsm/AArch64/Ppr.hs @@ -308,7 +308,7 @@ pprOp plat op = case op of OpReg w r -> pprReg w r OpRegExt w r x 0 -> pprReg w r <> comma <+> pprExt x OpRegExt w r x i -> pprReg w r <> comma <+> pprExt x <> comma <+> char '#' <> int i - OpRegShift w r s i -> pprReg w r <> comma <+> pprShift s <> comma <+> char '#' <> int i + OpRegShift w r s i -> pprReg w r <> comma <+> pprShift s <+> char '#' <> int i OpImm im -> pprIm plat im OpImmShift im s i -> pprIm plat im <> comma <+> pprShift s <+> char '#' <> int i -- TODO: Address compuation always use registers as 64bit -- is this correct? |