aboutsummaryrefslogtreecommitdiff
path: root/src/armv8/a64.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2021-10-24 22:00:54 -0700
committeriximeow <me@iximeow.net>2021-10-24 22:00:54 -0700
commitb3ae0895e1e423415fd9bfaef45ea76424cb1641 (patch)
tree3486b2196410a82b02df0ada7a3a904efa5192f9 /src/armv8/a64.rs
parentb55e519458d8f01be0dbe205de4f7f9aeb8a3ca2 (diff)
use correct bitmask to select imm6
Diffstat (limited to 'src/armv8/a64.rs')
-rw-r--r--src/armv8/a64.rs2
1 files changed, 1 insertions, 1 deletions
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<ARMv8> 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);