[Git][ghc/ghc][wip/andreask/arm_immediates] wip

Andreas Klebinger (@AndreasK) gitlab at gitlab.haskell.org
Fri Jul 7 16:58:13 UTC 2023



Andreas Klebinger pushed to branch wip/andreask/arm_immediates at Glasgow Haskell Compiler / GHC


Commits:
7d1ebddc by Andreas Klebinger at 2023-07-07T19:00:20+02:00
wip

- - - - -


1 changed file:

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


Changes:

=====================================
compiler/GHC/CmmToAsm/AArch64/CodeGen.hs
=====================================
@@ -418,7 +418,7 @@ getArithImm n
 
   -- 12 bits shifted by 12 places.
   | trailing_zeros >= 12 && sized_n < 2^(24::Int)
-  = Just $ OpImmShift (ImmInteger n) SLSL 12
+  = Just $ OpImmShift (ImmInteger n `shiftR` 12) SLSL 12
 
   | otherwise
   = Nothing



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

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/7d1ebddcd12887d5e03dbe9442578160693927e9
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/20230707/650580f5/attachment.html>


More information about the ghc-commits mailing list