aboutsummaryrefslogtreecommitdiff
path: root/test/long_mode/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test/long_mode/mod.rs')
-rw-r--r--test/long_mode/mod.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/long_mode/mod.rs b/test/long_mode/mod.rs
index 7c4c5fa..0d81d02 100644
--- a/test/long_mode/mod.rs
+++ b/test/long_mode/mod.rs
@@ -1107,6 +1107,18 @@ fn test_control_flow() {
}
#[test]
+fn bad_instructions() {
+ // too long
+ test_invalid(&[
+ 0x2e, 0x2e, 0x2e, 0x2e,
+ 0x2e, 0x2e, 0x2e, 0x2e,
+ 0x2e, 0x2e, 0x2e, 0x2e,
+ 0x2e, 0x2e, 0x2e, 0x2e,
+ 0x33, 0xc0,
+ ]);
+}
+
+#[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");