[Git][ghc/ghc][wip/T23576] Fix typo

Jaro Reinders (@Noughtmare) gitlab at gitlab.haskell.org
Mon Jul 3 12:13:02 UTC 2023



Jaro Reinders pushed to branch wip/T23576 at Glasgow Haskell Compiler / GHC


Commits:
c426666e by Jaro Reinders at 2023-07-03T14:12:56+02:00
Fix typo

- - - - -


1 changed file:

- compiler/GHC/CmmToAsm/X86/CodeGen.hs


Changes:

=====================================
compiler/GHC/CmmToAsm/X86/CodeGen.hs
=====================================
@@ -1500,7 +1500,9 @@ getAmode e = do
          , is_label lit
          -> return (Amode (AddrBaseIndex EABaseRip EAIndexNone (litToImm lit)) nilOL)
 
-      CmmLit litsnoc
+      CmmLit lit
+         | is32BitLit platform lit
+         -> return (Amode (ImmAddr (litToImm lit) 0) nilOL)
       -- Literal with offsets too big (> 32 bits) fails during the linking phase
       -- (#15570). We already handled valid literals above so we don't have to
       -- test anything here.



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

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/c426666e2d88e7d0fceb39317d47825be27a334d
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/20230703/c7d3e4b7/attachment.html>


More information about the ghc-commits mailing list