aboutsummaryrefslogtreecommitdiff
path: root/test/protected_mode/operand.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test/protected_mode/operand.rs')
-rw-r--r--test/protected_mode/operand.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/protected_mode/operand.rs b/test/protected_mode/operand.rs
index a114e69..6eb9ba5 100644
--- a/test/protected_mode/operand.rs
+++ b/test/protected_mode/operand.rs
@@ -43,4 +43,8 @@ fn test_implied_memory_width() {
assert_eq!(mem_size_of(&[0x66, 0x58]), Some(4));
assert_eq!(mem_size_of(&[0xff, 0xf0]), Some(4));
assert_eq!(mem_size_of(&[0x66, 0xff, 0xf0]), Some(2));
+ // unlike 64-bit mode, operand-size prefixed call and jump do have a different size: they read
+ // two bytes.
+ assert_eq!(mem_size_of(&[0x66, 0xff, 0x10]), Some(2));
+ assert_eq!(mem_size_of(&[0x66, 0xff, 0x20]), Some(2));
}