diff options
Diffstat (limited to 'tests/armv8/a64.rs')
-rw-r--r-- | tests/armv8/a64.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/armv8/a64.rs b/tests/armv8/a64.rs index 38080ef..74bb89f 100644 --- a/tests/armv8/a64.rs +++ b/tests/armv8/a64.rs @@ -4757,10 +4757,14 @@ fn test_vec_shift() { #[test] fn test_reserved() { test_err([0x00, 0x00, 0x20, 0xd5], DecodeError::InvalidOpcode); + test_err([0x00, 0x00, 0x00, 0xd5], DecodeError::InvalidOpcode); } #[test] fn test_system() { + // capstone says `msr s0_0_c2_c0_0, xzr`, but this looks like an unallocated encoding? + test_err([0x1f, 0x20, 0x00, 0xd5], DecodeError::InvalidOpcode); + const TESTS: &[([u8; 4], &'static str)] = &[ ([0x00, 0x00, 0x08, 0xd5], "sys #0x0, c0, c0, #0x0, x0"), ([0x00, 0x00, 0x28, 0xd5], "sysl x0, #0x0, c0, c0, #0x0"), |