aboutsummaryrefslogtreecommitdiff
path: root/test/long_mode
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2026-04-17 03:02:43 +0000
committeriximeow <me@iximeow.net>2026-04-17 03:02:46 +0000
commitbcdd46a67f81c09d0cd64f9b979aafdbd6328b70 (patch)
treef03bf42f4fc6061e8f13fc7d35156c81de3d263b /test/long_mode
parent5e9c3238e2d7f4565c510f396c57864901d76827 (diff)
TODO: 32/16, maskmov{q,dqu} memory access size
Diffstat (limited to 'test/long_mode')
-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 9f594b5..fe64fb6 100644
--- a/test/long_mode/operand.rs
+++ b/test/long_mode/operand.rs
@@ -29,6 +29,14 @@ fn memory_widths() {
assert_eq!(mem_size_of(&[0x48, 0x33, 0x00]).size_name(), "qword");
assert_eq!(mem_size_of(&[0x6a, 0x00]).size_name(), "qword");
assert_eq!(mem_size_of(&[0x68, 0x00, 0x00, 0x00, 0x00]).size_name(), "qword");
+
+ // "maskmovq mm0, mm1"
+ assert_eq!(mem_size_of(&[0x4f, 0x0f, 0xf7, 0xc1]).size_name(), "qword");
+ assert_eq!(mem_size_of(&[0x67, 0x0f, 0xf7, 0xc1]).size_name(), "dword");
+
+ // "maskmovdqu xmm0, xmm1"
+ assert_eq!(mem_size_of(&[0x66, 0x4f, 0x0f, 0xf7, 0xc1]).size_name(), "qword");
+ assert_eq!(mem_size_of(&[0x67, 0x66, 0x0f, 0xf7, 0xc1]).size_name(), "dword");
}
#[test]