aboutsummaryrefslogtreecommitdiff
path: root/src/armv8/a64.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2021-11-20 15:04:43 -0800
committeriximeow <me@iximeow.net>2021-11-20 15:04:43 -0800
commitbd56c0b0fb0e2594288a41cf6fa9fc8aa5ff9c0e (patch)
treea61290d91d376c9ebe99d17c464dbdafdb3457e9 /src/armv8/a64.rs
parent1e26fb0a7b1194ee80145a44569466c2129f4b0e (diff)
quiet some warnings
Diffstat (limited to 'src/armv8/a64.rs')
-rw-r--r--src/armv8/a64.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/armv8/a64.rs b/src/armv8/a64.rs
index 5531c8f..0b29bb9 100644
--- a/src/armv8/a64.rs
+++ b/src/armv8/a64.rs
@@ -147,7 +147,7 @@ mod docs {
let exp = imm8 >> 4;
let exp = (exp as i16) << 13 >> 13;
let exp = exp ^ 0b1_00_0000_0000;
- let frac = (imm8 << 4);
+ let frac = imm8 << 4;
let bits = ((sign as u64) << 63) |
(((exp as u64) & 0b1_11_1111_1111) << 52) |
@@ -5786,7 +5786,7 @@ impl Decoder<ARMv8> for InstDecoder {
0b01001 => { // conditional branch (imm)
// probably actually an invalid opcode?
return Err(DecodeError::IncompleteDecoder);
- inst.opcode = Opcode::Invalid;
+ // inst.opcode = Opcode::Invalid;
}
/* 0b01010 to 0b01111 seem all invalid? */
0b10000 |