aboutsummaryrefslogtreecommitdiff
path: root/test/long_mode/mod.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2021-08-21 14:33:13 -0700
committeriximeow <me@iximeow.net>2021-08-21 14:33:13 -0700
commitdff9a7e4a14984705db8fb18550af5a4fa9ce3d5 (patch)
tree01fcd2794040ad1b29ac2638726a090a312f05f4 /test/long_mode/mod.rs
parentd7208834963c46a6da74a3837d9e82bad33dfd7f (diff)
fix negative relative branches (again!!! +- is bad!!!)
Diffstat (limited to 'test/long_mode/mod.rs')
-rw-r--r--test/long_mode/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/long_mode/mod.rs b/test/long_mode/mod.rs
index 015f1c6..dab4e91 100644
--- a/test/long_mode/mod.rs
+++ b/test/long_mode/mod.rs
@@ -1212,6 +1212,7 @@ fn test_prefixes() {
fn test_control_flow() {
test_display(&[0x73, 0x31], "jnb $+0x31");
test_display(&[0x72, 0x5a], "jb $+0x5a");
+ test_display(&[0x72, 0xf0], "jb $-0x10");
test_display(&[0x0f, 0x86, 0x8b, 0x01, 0x00, 0x00], "jna $+0x18b");
test_display(&[0x74, 0x47], "jz $+0x47");
test_display(&[0xff, 0x15, 0x7e, 0x72, 0x24, 0x00], "call qword [rip + 0x24727e]");
@@ -1225,7 +1226,7 @@ fn test_control_flow() {
test_display(&[0xe1, 0x12], "loopz $+0x12");
test_display(&[0xe2, 0x12], "loop $+0x12");
test_display(&[0xe3, 0x12], "jrcxz $+0x12");
- test_display(&[0xe3, 0xf0], "jrcxz $+-0x10");
+ test_display(&[0xe3, 0xf0], "jrcxz $-0x10");
test_display(&[0xc3], "ret");
}