aboutsummaryrefslogtreecommitdiff
path: root/test/test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test/test.rs')
-rw-r--r--test/test.rs7
1 files changed, 7 insertions, 0 deletions
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");