aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2020-01-15 01:23:51 -0800
committeriximeow <me@iximeow.net>2020-01-15 01:23:51 -0800
commit95fbfd0165a6ed2aac9098ab015a25de68030a3b (patch)
treeede831fb6b4259c8afae02e53c834e4db6692413 /test
parentc03917812aa6ce5a731d743298cb2ab46627189a (diff)
negative displacements were printed wrong, test against that for the future
this was accidentally fixed in no_std-ing, the prior commit
Diffstat (limited to 'test')
-rw-r--r--test/test.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test.rs b/test/test.rs
index 8c8ad25..0945328 100644
--- a/test/test.rs
+++ b/test/test.rs
@@ -351,6 +351,7 @@ fn test_mov() {
test_display(&[0x48, 0xc7, 0x43, 0x10, 0x00, 0x00, 0x00, 0x00], "mov [rbx + 0x10], 0x0");
test_display(&[0x49, 0x89, 0x4e, 0x08], "mov [r14 + 0x8], rcx");
test_display(&[0x48, 0x8b, 0x32], "mov rsi, [rdx]");
+ test_display(&[0x4d, 0x8b, 0x4c, 0x10, 0xf8], "mov r9, [r8 + rdx * 1 - 0x8]");
test_display(&[0x49, 0x89, 0x46, 0x10], "mov [r14 + 0x10], rax");
test_display(&[0x4d, 0x0f, 0x43, 0xec], "cmovnb r13, r12");
test_display(&[0x0f, 0xb6, 0x06], "movzx eax, byte [rsi]");