Add AArch64 CLZ, CTZ, RBIT primop implementations.
Adds support for emitting the clz and rbit instructions, which are used by GHC.Prim.clz*#, GHC.Prim.ctz*# and GHC.Prim.bitReverse*#.
Showing
- compiler/GHC/CmmToAsm/AArch64/CodeGen.hs 131 additions, 3 deletionscompiler/GHC/CmmToAsm/AArch64/CodeGen.hs
- compiler/GHC/CmmToAsm/AArch64/Instr.hs 12 additions, 2 deletionscompiler/GHC/CmmToAsm/AArch64/Instr.hs
- compiler/GHC/CmmToAsm/AArch64/Ppr.hs 2 additions, 0 deletionscompiler/GHC/CmmToAsm/AArch64/Ppr.hs
- testsuite/tests/codeGen/should_run/CtzClz0.hs 27 additions, 0 deletionstestsuite/tests/codeGen/should_run/CtzClz0.hs
- testsuite/tests/codeGen/should_run/all.T 1 addition, 0 deletionstestsuite/tests/codeGen/should_run/all.T
Loading
Please register or sign in to comment