aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2020-05-03 13:52:39 -0700
committeriximeow <me@iximeow.net>2020-05-03 13:52:39 -0700
commitc9df7910c914d04644aee660d48de1245467f384 (patch)
tree33d1a0f5f21b4356d8a4c544f8a5aa901461d93d /test
parent79388a4ff09fe21d31fe41a68e59a92263c2eea5 (diff)
that instruction is cwd, not cbd
Diffstat (limited to 'test')
-rw-r--r--test/long_mode/mod.rs2
-rw-r--r--test/protected_mode/mod.rs1
2 files changed, 3 insertions, 0 deletions
diff --git a/test/long_mode/mod.rs b/test/long_mode/mod.rs
index ca8a557..addaae4 100644
--- a/test/long_mode/mod.rs
+++ b/test/long_mode/mod.rs
@@ -804,6 +804,8 @@ fn test_misc() {
test_display(&[0xcd, 0xff], "int 0xff");
test_display(&[0x9c], "pushf");
test_display(&[0x48, 0x98], "cdqe");
+ test_display(&[0x98], "cwde");
+ test_display(&[0x66, 0x99], "cwd");
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]");
diff --git a/test/protected_mode/mod.rs b/test/protected_mode/mod.rs
index dd07159..37a3b24 100644
--- a/test/protected_mode/mod.rs
+++ b/test/protected_mode/mod.rs
@@ -748,6 +748,7 @@ fn test_misc() {
test_display(&[0xcd, 0xff], "int 0xff");
test_display(&[0x9c], "pushf");
test_display(&[0x98], "cwde");
+ test_display(&[0x66, 0x99], "cwd");
test_display(&[0x66, 0x2e, 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00], "nop cs:[eax + eax * 1]");
test_display(&[0x66, 0x0f, 0x1f, 0x44, 0x00, 0x00], "nop [eax + eax * 1]");
test_display(&[0x8d, 0xa4, 0xc7, 0x20, 0x00, 0x00, 0x12], "lea esp, [edi + eax * 8 + 0x12000020]");