[Git][ghc/ghc][wip/romes/25002] cmm: Don't parse MO_BSwap for W8
Rodrigo Mesquita (@alt-romes)
gitlab at gitlab.haskell.org
Tue Jun 18 15:16:37 UTC 2024
Rodrigo Mesquita pushed to branch wip/romes/25002 at Glasgow Haskell Compiler / GHC
Commits:
9c12ebe0 by Rodrigo Mesquita at 2024-06-18T16:16:25+01:00
cmm: Don't parse MO_BSwap for W8
Don't support parsing bswap8, since bswap8 is not really an operation
and would have to be implemented as a no-op (and currently is not
implemented at all).
Fixes #25002
- - - - -
1 changed file:
- compiler/GHC/Cmm/Parser.y
Changes:
=====================================
compiler/GHC/Cmm/Parser.y
=====================================
@@ -1146,12 +1146,15 @@ callishMachOps platform = listToUFM $
( "prefetch0", (MO_Prefetch_Data 0,)),
( "prefetch1", (MO_Prefetch_Data 1,)),
( "prefetch2", (MO_Prefetch_Data 2,)),
- ( "prefetch3", (MO_Prefetch_Data 3,))
+ ( "prefetch3", (MO_Prefetch_Data 3,)),
+
+ ( "bswap16", (MO_BSwap W16,) ),
+ ( "bswap32", (MO_BSwap W32,) ),
+ ( "bswap64", (MO_BSwap W64,) )
] ++ concat
[ allWidths "popcnt" MO_PopCnt
, allWidths "pdep" MO_Pdep
, allWidths "pext" MO_Pext
- , allWidths "bswap" MO_BSwap
, allWidths "cmpxchg" MO_Cmpxchg
, allWidths "xchg" MO_Xchg
, allWidths "load_relaxed" (\w -> MO_AtomicRead w MemOrderAcquire)
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/9c12ebe08cee135cc7951efd4bcc1d5a1f9a3e1e
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/9c12ebe08cee135cc7951efd4bcc1d5a1f9a3e1e
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/20240618/3794d3c4/attachment-0001.html>
More information about the ghc-commits
mailing list