From 29e72b2a3f7bd4e74419645f99af4e51083124c6 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 12 Feb 2023 12:12:47 -0800 Subject: two more test cases --- test/long_mode/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/long_mode/mod.rs b/test/long_mode/mod.rs index 5a1d02d..ab1cc23 100644 --- a/test/long_mode/mod.rs +++ b/test/long_mode/mod.rs @@ -1242,6 +1242,7 @@ fn test_control_flow() { test_display(&[0x72, 0x5a], "jb $+0x5a"); test_display(&[0x72, 0xf0], "jb $-0x10"); test_display(&[0x0f, 0x86, 0x8b, 0x01, 0x00, 0x00], "jna $+0x18b"); + test_display(&[0x0f, 0x85, 0x3b, 0x25, 0x00, 0x00], "jnz $+0x253b"); test_display(&[0x74, 0x47], "jz $+0x47"); test_display(&[0xff, 0x15, 0x7e, 0x72, 0x24, 0x00], "call qword [rip + 0x24727e]"); test_display(&[0xff, 0x24, 0xcd, 0x70, 0xa0, 0xbc, 0x01], "jmp qword [rcx * 8 + 0x1bca070]"); @@ -1411,6 +1412,7 @@ fn test_misc() { test_display(&[0x48, 0x03, 0x0b], "add rcx, qword [rbx]"); test_display(&[0x48, 0x8d, 0x0c, 0x12], "lea rcx, qword [rdx + rdx * 1]"); test_display(&[0xf6, 0xc2, 0x18], "test dl, 0x18"); + test_display(&[0x41, 0xf6, 0xc7, 0x03], "test r15b, 0x3"); test_display(&[0xf3, 0x48, 0xab], "rep stos qword es:[rdi], rax"); test_display(&[0xf3, 0x48, 0xa5], "rep movs qword es:[rdi], qword ds:[rsi]"); test_display(&[0xf3, 0x45, 0x0f, 0xbc, 0xd7], "tzcnt r10d, r15d"); -- cgit v1.1