Added bitrev instruction for 32 and 64 bit integers (#486)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user