summaryrefslogtreecommitdiff
path: root/compiler/GHC/Cmm/Ppr.hs
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-01-27 14:47:33 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-02-04 16:14:47 -0500
commit99ea5f2cfa09f50bf3ea105821dc095942552e59 (patch)
tree87cfa9dbe92582d390f242bad5971e315cd76c3d /compiler/GHC/Cmm/Ppr.hs
parent7217156c40240c0aed5ffd83ead0fe4ba0484c75 (diff)
downloadhaskell-99ea5f2cfa09f50bf3ea105821dc095942552e59.tar.gz
Introduce alignment to CmmStore
Diffstat (limited to 'compiler/GHC/Cmm/Ppr.hs')
-rw-r--r--compiler/GHC/Cmm/Ppr.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/GHC/Cmm/Ppr.hs b/compiler/GHC/Cmm/Ppr.hs
index 455a7d639a..c7a1579962 100644
--- a/compiler/GHC/Cmm/Ppr.hs
+++ b/compiler/GHC/Cmm/Ppr.hs
@@ -215,8 +215,11 @@ pprNode platform node = pp_node <+> pp_debug
CmmAssign reg expr -> ppr reg <+> equals <+> pdoc platform expr <> semi
-- rep[lv] = expr;
- CmmStore lv expr -> rep <> brackets (pdoc platform lv) <+> equals <+> pdoc platform expr <> semi
+ CmmStore lv expr align -> rep <> align_mark <> brackets (pdoc platform lv) <+> equals <+> pdoc platform expr <> semi
where
+ align_mark = case align of
+ Unaligned -> text "^"
+ NaturallyAligned -> empty
rep = ppr ( cmmExprType platform expr )
-- call "ccall" foo(x, y)[r1, r2];