[Git][ghc/ghc][wip/nr/typed-wasm-control-flow] correct botched opcode in assembly emitter
Norman Ramsey (@nrnrnr)
gitlab at gitlab.haskell.org
Tue Aug 9 19:18:25 UTC 2022
Norman Ramsey pushed to branch wip/nr/typed-wasm-control-flow at Glasgow Haskell Compiler / GHC
Commits:
780d2d00 by Norman Ramsey at 2022-08-09T15:17:51-04:00
correct botched opcode in assembly emitter
- - - - -
1 changed file:
- compiler/GHC/Wasm/ControlFlow/ToAsm.hs
Changes:
=====================================
compiler/GHC/Wasm/ControlFlow/ToAsm.hs
=====================================
@@ -64,9 +64,9 @@ toIndentedAsm ps pe indent s = print s
print (WasmFallthrough `WasmSeq` s) = print s
print (s `WasmSeq` WasmFallthrough) = print s
print (WasmIfTop t s WasmFallthrough) =
- "br_if" <+> ty t `newline` shift s `newline` "end_if"
+ "if" <+> ty t `newline` shift s `newline` "end_if"
print (WasmIfTop t WasmFallthrough s) =
- "br_if" <+> ty t `newline` "else" `newline` shift s `newline` "end_if"
+ "if" <+> ty t `newline` "else" `newline` shift s `newline` "end_if"
-- normal cases
print (WasmPush _ e) = pe indent e
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/780d2d005eab567f2c616c8b747a836829208dcf
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/780d2d005eab567f2c616c8b747a836829208dcf
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/20220809/86d88cf7/attachment-0001.html>
More information about the ghc-commits
mailing list