From b3ae0895e1e423415fd9bfaef45ea76424cb1641 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 24 Oct 2021 22:00:54 -0700 Subject: use correct bitmask to select imm6 --- src/armv8/a64.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/armv8') diff --git a/src/armv8/a64.rs b/src/armv8/a64.rs index 5dd3d1c..5830768 100644 --- a/src/armv8/a64.rs +++ b/src/armv8/a64.rs @@ -1586,7 +1586,7 @@ impl Decoder for InstDecoder { let Rd = (word & 0x1f) as u16; let Rn = ((word >> 5) & 0x1f) as u16; - let imm6 = ((word >> 10) & 0x13) as u8; + let imm6 = ((word >> 10) & 0x3f) as u8; let Rm = ((word >> 16) & 0x1f) as u16; inst.operands[0] = Operand::Register(size, Rd); -- cgit v1.1