aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2019-11-30 17:22:05 -0800
committeriximeow <me@iximeow.net>2020-01-12 16:10:13 -0800
commit0bb08a980d52db277a6da8758486bac22342a882 (patch)
tree864d99b950bb4841a01674546acf9be5142ca9e4 /test
parent639bcc836b70069e9569b21bd07e5764eba86b66 (diff)
more careful prefix handling
Diffstat (limited to 'test')
-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");