Added bitrev instruction for 32 and 64 bit integers (#486)

This commit is contained in:
Aaron Power
2018-09-05 00:23:50 +01:00
committed by Dan Gohman
parent 7e571f4a49
commit 17bb62c16c
4 changed files with 293 additions and 4 deletions

View File

@@ -1409,6 +1409,14 @@ sshr_imm = Instruction(
x = Operand('x', iB)
a = Operand('a', iB)
bitrev = Instruction(
'bitrev', r"""
Reverse the bits of a integer.
Reverses the bits in ``x``.
""",
ins=x, outs=a)
clz = Instruction(
'clz', r"""
Count leading zero bits.