[GHC] #14206: Add bit deposit and bit extraction primops
GHC
ghc-devs at haskell.org
Wed Sep 20 22:19:46 UTC 2017
#14206: Add bit deposit and bit extraction primops
-------------------------------------+-------------------------------------
Reporter: newhoggy | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.2.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by newhoggy):
I thought to use `-mbmi2` because there are already a bunch of `-m` flags.
Would that be fine?
{{{#!haskell
------ Machine dependent (-m<blah>) stuff
---------------------------
, make_ord_flag defGhcFlag "msse" (noArg (\d ->
d { sseVersion = Just
SSE1 }))
, make_ord_flag defGhcFlag "msse2" (noArg (\d ->
d { sseVersion = Just
SSE2 }))
, make_ord_flag defGhcFlag "msse3" (noArg (\d ->
d { sseVersion = Just
SSE3 }))
, make_ord_flag defGhcFlag "msse4" (noArg (\d ->
d { sseVersion = Just
SSE4 }))
, make_ord_flag defGhcFlag "msse4.2" (noArg (\d ->
d { sseVersion = Just
SSE42 }))
, make_ord_flag defGhcFlag "mavx" (noArg (\d -> d { avx = True
}))
, make_ord_flag defGhcFlag "mavx2" (noArg (\d -> d { avx2 = True
}))
, make_ord_flag defGhcFlag "mavx512cd" (noArg (\d ->
d { avx512cd =
True }))
, make_ord_flag defGhcFlag "mavx512er" (noArg (\d ->
d { avx512er =
True }))
, make_ord_flag defGhcFlag "mavx512f" (noArg (\d -> d { avx512f =
True }))
, make_ord_flag defGhcFlag "mavx512pf" (noArg (\d ->
d { avx512pf =
True }))
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14206#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list