From 0bb08a980d52db277a6da8758486bac22342a882 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sat, 30 Nov 2019 17:22:05 -0800 Subject: more careful prefix handling --- test/test.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') diff --git a/test/test.rs b/test/test.rs index dc945e7..30e6eac 100644 --- a/test/test.rs +++ b/test/test.rs @@ -260,6 +260,13 @@ fn vex() { } #[test] +fn strange_prefixing() { + test_display(&[0x45, 0x66, 0x0f, 0x21, 0xc8], "mov rax, dr1"); + test_display(&[0x45, 0xf2, 0x0f, 0x21, 0xc8], "mov rax, dr1"); + test_display(&[0x45, 0xf3, 0x0f, 0x21, 0xc8], "mov rax, dr1"); +} + +#[test] fn prefixed_0f() { test_display(&[0x0f, 0x02, 0xc0], "lar eax, ax"); test_display(&[0x48, 0x0f, 0x02, 0xc0], "lar rax, ax"); -- cgit v1.1