From 953054bb2dd86fb54a320123373ba23c7e08c332 Mon Sep 17 00:00:00 2001 From: iximeow Date: Fri, 5 Jun 2026 08:21:59 +0000 Subject: fix mnemonics for prefetcht* --- test/long_mode/mod.rs | 6 +++--- test/protected_mode/mod.rs | 6 +++--- test/real_mode/mod.rs | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'test') diff --git a/test/long_mode/mod.rs b/test/long_mode/mod.rs index 4d20cf9..0342dd6 100644 --- a/test/long_mode/mod.rs +++ b/test/long_mode/mod.rs @@ -3219,9 +3219,9 @@ mod prefixed_0f { testcase!(&[0x0f, 0x17, 0x00], "movhps qword [rax], xmm0"), testcase!(&[0x0f, 0x18, 0xc0], "nop eax"), // capstone says invalid, xed says nop testcase!(&[0x0f, 0x18, 0x00], "prefetchnta zmmword [rax]"), - testcase!(&[0x0f, 0x18, 0x08], "prefetch0 zmmword [rax]"), - testcase!(&[0x0f, 0x18, 0x10], "prefetch1 zmmword [rax]"), - testcase!(&[0x0f, 0x18, 0x18], "prefetch2 zmmword [rax]"), + testcase!(&[0x0f, 0x18, 0x08], "prefetcht0 zmmword [rax]"), + testcase!(&[0x0f, 0x18, 0x10], "prefetcht1 zmmword [rax]"), + testcase!(&[0x0f, 0x18, 0x18], "prefetcht2 zmmword [rax]"), testcase!(&[0x0f, 0x18, 0x20], "nop zmmword [rax]"), testcase!(&[0x4f, 0x0f, 0x18, 0x20], "nop zmmword [r8]"), testcase!(&[0x0f, 0x18, 0xcc], "nop esp"), diff --git a/test/protected_mode/mod.rs b/test/protected_mode/mod.rs index f6e69cf..f0450b1 100644 --- a/test/protected_mode/mod.rs +++ b/test/protected_mode/mod.rs @@ -2395,9 +2395,9 @@ fn prefixed_0f() { test_display(&[0x0f, 0x17, 0x00], "movhps qword [eax], xmm0"); test_display(&[0x0f, 0x18, 0xc0], "nop eax"); // capstone says invalid, xed says nop test_display(&[0x0f, 0x18, 0x00], "prefetchnta zmmword [eax]"); - test_display(&[0x0f, 0x18, 0x08], "prefetch0 zmmword [eax]"); - test_display(&[0x0f, 0x18, 0x10], "prefetch1 zmmword [eax]"); - test_display(&[0x0f, 0x18, 0x18], "prefetch2 zmmword [eax]"); + test_display(&[0x0f, 0x18, 0x08], "prefetcht0 zmmword [eax]"); + test_display(&[0x0f, 0x18, 0x10], "prefetcht1 zmmword [eax]"); + test_display(&[0x0f, 0x18, 0x18], "prefetcht2 zmmword [eax]"); test_display(&[0x0f, 0x18, 0x20], "nop zmmword [eax]"); test_display(&[0x0f, 0x18, 0xcc], "nop esp"); test_display(&[0x0f, 0x19, 0x20], "nop dword [eax]"); diff --git a/test/real_mode/mod.rs b/test/real_mode/mod.rs index 33ac3d2..a55b823 100644 --- a/test/real_mode/mod.rs +++ b/test/real_mode/mod.rs @@ -188,9 +188,9 @@ fn test_real_mode() { test_display(&[0x0f, 0x16, 0xcf], "movlhps xmm1, xmm7"); test_display(&[0x0f, 0x17, 0x00], "movhps qword [bx + si * 1], xmm0"); test_display(&[0x0f, 0x18, 0x00], "prefetchnta zmmword [bx + si * 1]"); - test_display(&[0x0f, 0x18, 0x08], "prefetch0 zmmword [bx + si * 1]"); - test_display(&[0x0f, 0x18, 0x10], "prefetch1 zmmword [bx + si * 1]"); - test_display(&[0x0f, 0x18, 0x18], "prefetch2 zmmword [bx + si * 1]"); + test_display(&[0x0f, 0x18, 0x08], "prefetcht0 zmmword [bx + si * 1]"); + test_display(&[0x0f, 0x18, 0x10], "prefetcht1 zmmword [bx + si * 1]"); + test_display(&[0x0f, 0x18, 0x18], "prefetcht2 zmmword [bx + si * 1]"); test_display(&[0x0f, 0x18, 0x20], "nop zmmword [bx + si * 1]"); test_display(&[0x0f, 0x18, 0xc0], "nop ax"); test_display(&[0x0f, 0x18, 0xcc], "nop sp"); -- cgit v1.1