From 999eb2ac6950c589e8649651f9b538b85900cf39 Mon Sep 17 00:00:00 2001 From: iximeow Date: Mon, 27 Dec 2021 20:37:51 -0800 Subject: that decode arm is already handled --- src/armv8/a64.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/armv8/a64.rs b/src/armv8/a64.rs index a38511d..a02be49 100644 --- a/src/armv8/a64.rs +++ b/src/armv8/a64.rs @@ -5806,13 +5806,10 @@ impl Decoder for InstDecoder { (SIMDSizeCode::S, ((immh & 0b0011) << 4)| immb) } 0 => { - if !Q { - return Err(DecodeError::InvalidOperand); - } else { - // `Advanced SIMD modified immediate` - return Err(DecodeError::IncompleteDecoder); - } - (SIMDSizeCode::D, ((immh & 0b0111) << 4)| immb) + // the +q version of this check would be `Advanced SIMD + // modified immediate`, checked well before we got + // here. so assume q is 0, error. + return Err(DecodeError::InvalidOperand); } _ => { return Err(DecodeError::InvalidOperand); -- cgit v1.1