Add support for bitreverse primop
authorAlexandre <alexandrer_b@outlook.com>
Thu, 28 Mar 2019 16:21:35 +0000 (16:21 +0000)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Mon, 1 Apr 2019 07:32:28 +0000 (03:32 -0400)
commit33173a51c77d9960d5009576ad9b67b646dfda3c
treee9a1e709cefdfdb65516323ed40fbcf3bb8cd0e4
parent6f7115dfd4fbb439a309a8381c4d02c450170cdc
Add support for bitreverse primop

    This commit includes the necessary changes in code and
    documentation to support a primop that reverses a word's
    bits. It also includes a test.
20 files changed:
compiler/cmm/CmmMachOp.hs
compiler/cmm/PprC.hs
compiler/codeGen/StgCmmPrim.hs
compiler/llvmGen/LlvmCodeGen/CodeGen.hs
compiler/nativeGen/CPrim.hs
compiler/nativeGen/PPC/CodeGen.hs
compiler/nativeGen/SPARC/CodeGen.hs
compiler/nativeGen/X86/CodeGen.hs
compiler/prelude/primops.txt.pp
docs/users_guide/8.10.1-notes.rst
includes/stg/Prim.h
libraries/base/Data/Word.hs
libraries/base/GHC/Word.hs
libraries/ghc-prim/cbits/bitrev.c [new file with mode: 0644]
libraries/ghc-prim/changelog.md
libraries/ghc-prim/ghc-prim.cabal
testsuite/.gitignore
testsuite/tests/primops/should_run/T16164.hs [new file with mode: 0644]
testsuite/tests/primops/should_run/T16164.stdout [new file with mode: 0644]
testsuite/tests/primops/should_run/all.T