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-05-25 00:59:27 +0000
commitbbdb82bd41234021cc8dbe3337e88bd9f19cade9 (patch)
tree9135b6e5113c2e1455b4dcc00ccc4c0e77d6c941 /test/long_mode
parent470ddb9a0329a8f1823674bca2c108e012ca2780 (diff)
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..379cc7b 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(), "qword");
+
+ // "maskmovdqu xmm0, xmm1"
+ assert_eq!(mem_size_of(&[0x66, 0x4f, 0x0f, 0xf7, 0xc1]).size_name(), "xmmword");
+ assert_eq!(mem_size_of(&[0x67, 0x66, 0x0f, 0xf7, 0xc1]).size_name(), "xmmword");
}
#[test]