[Git][ghc/ghc][wip/js-staging] Primop: WriteByteArrayOp_Word8AsChar use setInt8

doyougnu (@doyougnu) gitlab at gitlab.haskell.org
Wed Sep 7 13:15:37 UTC 2022



doyougnu pushed to branch wip/js-staging at Glasgow Haskell Compiler / GHC


Commits:
a39992ae by doyougnu at 2022-09-07T09:14:49-04:00
Primop: WriteByteArrayOp_Word8AsChar use setInt8

- - - - -


1 changed file:

- compiler/GHC/StgToJS/Prim.hs


Changes:

=====================================
compiler/GHC/StgToJS/Prim.hs
=====================================
@@ -1117,7 +1117,7 @@ genPrim prof ty op = case op of
         ]
   ReadByteArrayOp_Word8AsWord       -> \[r] [a,i] -> PrimInline $ r |= dv_u32  a i
 
-  WriteByteArrayOp_Word8AsChar      -> \[] [a,i,e] -> PrimInline $ dv_s_u8  a i e
+  WriteByteArrayOp_Word8AsChar      -> \[] [a,i,e] -> PrimInline $ dv_s_i8  a i e
   WriteByteArrayOp_Word8AsWideChar  -> \[] [a,i,e] -> PrimInline $ dv_s_i32 a i e
   WriteByteArrayOp_Word8AsAddr      -> \[] [a,i,e1,e2] ->
     PrimInline $ mconcat



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/a39992ae2c425a5c0ece62f1bcc4ead7b54db4ea

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/a39992ae2c425a5c0ece62f1bcc4ead7b54db4ea
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/20220907/f0b178e6/attachment.html>


More information about the ghc-commits mailing list