aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2019-11-30 12:12:40 -0800
committeriximeow <me@iximeow.net>2020-01-12 16:10:13 -0800
commit7561575f135e0ba72f0a90a5859d19f7b02a31e8 (patch)
tree77f1f9edddc5eec033d6ac442abbc1f851dc6c7a /test
parent2b9f85fed5c720725748417a2d91b6bb38ca2747 (diff)
fix 0x98 and 0x99 opcodes, lss/lfs/lgs decodes
also remove unnecessary variants in unlikely_operands and adjust expectations of several tests
Diffstat (limited to 'test')
-rw-r--r--test/test.rs6
1 files changed, 3 insertions, 3 deletions
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");