diff options
author | iximeow <me@iximeow.net> | 2021-08-21 13:13:26 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2021-08-21 13:15:46 -0700 |
commit | 9687a5af1d712da41992cba8d241ddef8bdc50ec (patch) | |
tree | a17d37ad3096c86f7c0247ed08ef2ff5a9f27cf2 /test/long_mode | |
parent | cef4feeaf9c64e03a6728f267750ac2fb32eb9ff (diff) |
clarify inaccurate 32/16-bit `call/jmp [mem]` mem_size
Diffstat (limited to 'test/long_mode')
-rw-r--r-- | test/long_mode/operand.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/long_mode/operand.rs b/test/long_mode/operand.rs index 4cdaf35..a47e6c8 100644 --- a/test/long_mode/operand.rs +++ b/test/long_mode/operand.rs @@ -45,4 +45,7 @@ fn test_implied_memory_width() { assert_eq!(mem_size_of(&[0x66, 0x58]), Some(8)); assert_eq!(mem_size_of(&[0xff, 0xf0]), Some(8)); assert_eq!(mem_size_of(&[0x66, 0xff, 0xf0]), Some(2)); + // operand-size prefixed call and jump still reads 8 bytes (prefix ignored) + assert_eq!(mem_size_of(&[0x66, 0xff, 0x10]), Some(8)); + assert_eq!(mem_size_of(&[0x66, 0xff, 0x20]), Some(8)); } |