aboutsummaryrefslogtreecommitdiff
path: root/test/test.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2019-06-23 16:09:26 -0700
committeriximeow <me@iximeow.net>2020-01-12 16:10:13 -0800
commit06b9d518496b90e83ad8b9857973442b978ed3e6 (patch)
tree54bd23c987510f6d726bb817979a438034d101e3 /test/test.rs
parent66bc9435b54495e24715939e119b059b06231e8b (diff)
begin supporting f30f instructions
fix issue where non-relevant prefixes on 0f opcodes may cause incorrect invalid decodes
Diffstat (limited to 'test/test.rs')
-rw-r--r--test/test.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test.rs b/test/test.rs
index bc4660c..85288a6 100644
--- a/test/test.rs
+++ b/test/test.rs
@@ -69,7 +69,9 @@ fn test_E_decode() {
#[test]
fn test_sse() {
test_display(&[0xf2, 0x0f, 0x10, 0x0c, 0xc6], "movsd xmm1, [rsi + rax * 8]");
+ test_display(&[0xf3, 0x0f, 0x10, 0x04, 0x86], "movss xmm0, [rsi + rax * 4]");
test_display(&[0xf2, 0x0f, 0x59, 0xc8], "mulsd xmm1, xmm0");
+ test_display(&[0xf3, 0x0f, 0x59, 0xc8], "mulss xmm1, xmm0");
test_display(&[0xf2, 0x4f, 0x0f, 0x59, 0xc8], "mulsd xmm9, xmm8");
test_display(&[0xf2, 0x0f, 0x11, 0x0c, 0xc7], "movsd [rdi + rax * 8], xmm1");
}
@@ -141,6 +143,7 @@ fn test_push_pop() {
#[test]
fn test_misc() {
+ test_display(&[0x66, 0x2e, 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00], "nop cs:[rax + rax]");
test_display(&[0x48, 0x8d, 0xa4, 0xc7, 0x20, 0x00, 0x00, 0x12], "lea rsp, [rdi + rax * 8 + 0x12000020]");
test_display(&[0x33, 0xc0], "xor eax, eax");
test_display(&[0x48, 0x8d, 0x53, 0x08], "lea rdx, [rbx + 0x8]");