aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2026-03-09 16:36:00 +0000
committeriximeow <me@iximeow.net>2026-03-09 16:36:00 +0000
commit12d0170e9283e25709937606483af7d0af7c8e2a (patch)
tree2a96836c0210791349451ef354c92a05f8a36450 /test
parent542edc60acdd5d06f46702775f966d194b615c13 (diff)
separate: more implicit operand size bits
Diffstat (limited to 'test')
-rw-r--r--test/long_mode/operand.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/long_mode/operand.rs b/test/long_mode/operand.rs
index b94d39f..10c4deb 100644
--- a/test/long_mode/operand.rs
+++ b/test/long_mode/operand.rs
@@ -53,4 +53,12 @@ fn test_implied_memory_width() {
// 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));
+ // pushf
+ assert_eq!(mem_size_of(&[0x9c]), Some(8));
+ // popf
+ assert_eq!(mem_size_of(&[0x9d]), Some(8));
+ // leave
+ assert_eq!(mem_size_of(&[0xc9]), Some(8));
+ // xlat
+ assert_eq!(mem_size_of(&[0xd7]), Some(1));
}