From f523478b3c6f5f29f600368afb1b84c9f5a41eba Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 9 Aug 2020 19:47:08 -0700 Subject: reject instructions made invalid by lock prefixes --- test/long_mode/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/long_mode/mod.rs') diff --git a/test/long_mode/mod.rs b/test/long_mode/mod.rs index 25c8deb..a3ff318 100644 --- a/test/long_mode/mod.rs +++ b/test/long_mode/mod.rs @@ -1095,6 +1095,9 @@ fn test_prefixes() { test_display(&[0x66, 0x41, 0x31, 0xc0], "xor r8w, ax"); test_display(&[0x66, 0x41, 0x32, 0xc0], "xor al, r8b"); test_display(&[0x40, 0x32, 0xc5], "xor al, bpl"); + test_invalid(&[0xf0, 0x33, 0xc0]); + test_display(&[0xf0, 0x31, 0x00], "lock xor [rax], eax"); + test_invalid(&[0xf0, 0xc7, 0x00, 0x00, 0x00, 0x00]); } #[test] -- cgit v1.1