From 5c86aaf06d0f638d3fc1d302ef4d401b0222bee1 Mon Sep 17 00:00:00 2001 From: iximeow Date: Fri, 29 Nov 2019 16:50:18 -0800 Subject: support imul, >2 operands, and 4-bit register bank --- test/test.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/test.rs b/test/test.rs index 3182503..b88e470 100644 --- a/test/test.rs +++ b/test/test.rs @@ -88,6 +88,9 @@ fn test_system() { fn test_arithmetic() { test_display(&[0x81, 0xec, 0x10, 0x03, 0x00, 0x00], "sub esp, 0x310"); test_display(&[0x0f, 0xaf, 0xc2], "imul eax, edx"); + test_display(&[0x4b, 0x69, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65], "imul rax, [r11 + 0x6f], 0x656c706d"); + test_display(&[0x4b, 0x6b, 0x43, 0x6f, 0x6d], "imul al, [r11 + 0x6f], 0x6d"); + test_display(&[0x4f, 0x4e, 0x00, 0xcc], "add spl, r9b"); } #[test] @@ -188,6 +191,7 @@ fn test_control_flow() { #[test] fn test_test_cmp() { + test_display(&[0xf6, 0x05, 0x2c, 0x9b, 0xff, 0xff, 0x01], "test [rip - 0x64d4], 0x1"); test_display(&[0x48, 0x3d, 0x01, 0xf0, 0xff, 0xff], "cmp rax, -0xfff"); test_display(&[0x3d, 0x01, 0xf0, 0xff, 0xff], "cmp eax, -0xfff"); test_display(&[0x48, 0x83, 0xf8, 0xff], "cmp rax, -0x1"); -- cgit v1.1