[Git][ghc/ghc][wip/T23576] Add SHRD to pprInstr
Jaro Reinders (@Noughtmare)
gitlab at gitlab.haskell.org
Fri Jun 30 15:13:38 UTC 2023
Jaro Reinders pushed to branch wip/T23576 at Glasgow Haskell Compiler / GHC
Commits:
131e830a by Jaro Reinders at 2023-06-30T17:13:32+02:00
Add SHRD to pprInstr
- - - - -
1 changed file:
- compiler/GHC/CmmToAsm/X86/Ppr.hs
Changes:
=====================================
compiler/GHC/CmmToAsm/X86/Ppr.hs
=====================================
@@ -731,6 +731,16 @@ pprInstr platform i = case i of
SHR format src dst
-> pprShift (text "shr") format src dst
+
+ SHRD format src dst1 dst2
+ -> line $ hcat [
+ pprMnemonic (text "shrd") format,
+ pprOperand platform II8 src, -- src is 8-bit sized
+ comma,
+ pprOperand platform format dst1,
+ comma,
+ pprOperand platform format dst2
+ ]
BT format imm src
-> pprFormatImmOp (text "bt") format imm src
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/131e830a7a60e3d7256c4b7f1e6fbd53ff18d073
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/131e830a7a60e3d7256c4b7f1e6fbd53ff18d073
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/20230630/f4497531/attachment-0001.html>
More information about the ghc-commits
mailing list