From 7561575f135e0ba72f0a90a5859d19f7b02a31e8 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sat, 30 Nov 2019 12:12:40 -0800 Subject: fix 0x98 and 0x99 opcodes, lss/lfs/lgs decodes also remove unnecessary variants in unlikely_operands and adjust expectations of several tests --- test/test.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/test.rs b/test/test.rs index 634dd54..479faef 100644 --- a/test/test.rs +++ b/test/test.rs @@ -232,15 +232,15 @@ fn test_bitwise() { fn test_misc() { test_display(&[0x9c], "pushf"); test_display(&[0x48, 0x98], "cdqe"); - test_display(&[0x66, 0x2e, 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00], "nop cs:[rax + rax]"); - test_display(&[0x66, 0x0f, 0x1f, 0x44, 0x00, 0x00], "nop cs:[rax + rax]"); + test_display(&[0x66, 0x2e, 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00], "nop cs:[rax + rax * 1]"); + test_display(&[0x66, 0x0f, 0x1f, 0x44, 0x00, 0x00], "nop [rax + rax * 1]"); 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]"); test_display(&[0x31, 0xc9], "xor ecx, ecx"); test_display(&[0x48, 0x29, 0xc8], "sub rax, rcx"); test_display(&[0x48, 0x03, 0x0b], "add rcx, [rbx]"); - test_display(&[0x48, 0x8d, 0x0c, 0x12], "lea rcx, [rdx + rdx]"); + test_display(&[0x48, 0x8d, 0x0c, 0x12], "lea rcx, [rdx + rdx * 1]"); test_display(&[0xf6, 0xc2, 0x18], "test dl, 0x18"); test_display(&[0xf3, 0x48, 0xab], "rep stosq"); test_display(&[0xf3, 0x48, 0xa5], "rep movsq"); -- cgit v1.1