From 06b9d518496b90e83ad8b9857973442b978ed3e6 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 23 Jun 2019 16:09:26 -0700 Subject: begin supporting f30f instructions fix issue where non-relevant prefixes on 0f opcodes may cause incorrect invalid decodes --- test/test.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') 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]"); -- cgit v1.1