aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2026-03-27 06:32:04 +0000
committeriximeow <me@iximeow.net>2026-03-27 06:32:04 +0000
commitac4daa2404dcfb05b0f080d05895062747b70a47 (patch)
tree319cd73dac7bf9eb3f48764022a47be41b0fced6 /test
parentdc74e3e1b6c49f38e3e91c2aebae5cdcf1f4062b (diff)
push/pop for segment registers has implicit memory access
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 10c4deb..09ac5a2 100644
--- a/test/long_mode/operand.rs
+++ b/test/long_mode/operand.rs
@@ -61,4 +61,12 @@ fn test_implied_memory_width() {
assert_eq!(mem_size_of(&[0xc9]), Some(8));
// xlat
assert_eq!(mem_size_of(&[0xd7]), Some(1));
+ // push fs
+ assert_eq!(mem_size_of(&[0x0f, 0xa0]), Some(8));
+ // pop fs
+ assert_eq!(mem_size_of(&[0x0f, 0xa1]), Some(8));
+ // push gs
+ assert_eq!(mem_size_of(&[0x0f, 0xa8]), Some(8));
+ // pop gs
+ assert_eq!(mem_size_of(&[0x0f, 0xa9]), Some(8));
}