[Git][ghc/ghc][wip/T23576] Fix MO_SS_Conv W8/16 W64 again again
Jaro Reinders (@Noughtmare)
gitlab at gitlab.haskell.org
Thu Jul 6 08:52:40 UTC 2023
Jaro Reinders pushed to branch wip/T23576 at Glasgow Haskell Compiler / GHC
Commits:
04e5569c by Jaro Reinders at 2023-07-06T10:52:34+02:00
Fix MO_SS_Conv W8/16 W64 again again
- - - - -
1 changed file:
- compiler/GHC/CmmToAsm/X86/CodeGen.hs
Changes:
=====================================
compiler/GHC/CmmToAsm/X86/CodeGen.hs
=====================================
@@ -624,7 +624,7 @@ iselExpr64 (CmmMachOp (MO_SS_Conv W16 W64) [expr]) = do
(r, code) <- getByteReg expr
Reg64 r_dst_hi r_dst_lo <- getNewReg64
return $ RegCode64 (code `appOL` toOL [
- MOVZxL II32 (OpReg r) (OpReg eax),
+ MOVSxL II32 (OpReg r) (OpReg eax),
CLTD II32,
MOV II32 (OpReg eax) (OpReg r_dst_lo),
MOV II32 (OpReg edx) (OpReg r_dst_hi)])
@@ -635,7 +635,7 @@ iselExpr64 (CmmMachOp (MO_SS_Conv W8 W64) [expr]) = do
(r, code) <- getByteReg expr
Reg64 r_dst_hi r_dst_lo <- getNewReg64
return $ RegCode64 (code `appOL` toOL [
- MOVZxL II32 (OpReg r) (OpReg eax),
+ MOVSxL II32 (OpReg r) (OpReg eax),
CLTD II32,
MOV II32 (OpReg eax) (OpReg r_dst_lo),
MOV II32 (OpReg edx) (OpReg r_dst_hi)])
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/04e5569c017b009e1bc21aeef86d81d4435c4391
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/04e5569c017b009e1bc21aeef86d81d4435c4391
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/20230706/266986a7/attachment-0001.html>
More information about the ghc-commits
mailing list