diff options
| author | iximeow <me@iximeow.net> | 2026-04-17 02:22:24 +0000 |
|---|---|---|
| committer | iximeow <me@iximeow.net> | 2026-05-25 00:59:27 +0000 |
| commit | 470ddb9a0329a8f1823674bca2c108e012ca2780 (patch) | |
| tree | c5ccc556fdde40ad263caff9dbdb6427597d0a5b /test | |
| parent | a049351c5d512710f557ffb45ee6391fc86a3dc6 (diff) | |
more precise about 0f0d prefetch/nop
Diffstat (limited to 'test')
| -rw-r--r-- | test/long_mode/mod.rs | 2 | ||||
| -rw-r--r-- | test/protected_mode/mod.rs | 2 | ||||
| -rw-r--r-- | test/real_mode/mod.rs | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/test/long_mode/mod.rs b/test/long_mode/mod.rs index 0b6dcc6..6d12c8d 100644 --- a/test/long_mode/mod.rs +++ b/test/long_mode/mod.rs @@ -2852,6 +2852,8 @@ fn test_adx() { #[test] fn test_prefetchw() { test_display(&[0x0f, 0x0d, 0x08], "prefetchw zmmword [rax]"); + test_display(&[0x0f, 0x0d, 0x00], "nop zmmword [rax]"); + test_invalid(&[0x0f, 0x0d, 0xc0]); } #[test] diff --git a/test/protected_mode/mod.rs b/test/protected_mode/mod.rs index d5533cc..800c5ec 100644 --- a/test/protected_mode/mod.rs +++ b/test/protected_mode/mod.rs @@ -2500,6 +2500,8 @@ fn test_adx() { #[test] fn test_prefetchw() { test_display(&[0x0f, 0x0d, 0x08], "prefetchw zmmword [eax]"); + test_display(&[0x0f, 0x0d, 0x00], "nop zmmword [eax]"); + test_invalid(&[0x0f, 0x0d, 0xc0]); } #[test] diff --git a/test/real_mode/mod.rs b/test/real_mode/mod.rs index af8bfaf..b866aa0 100644 --- a/test/real_mode/mod.rs +++ b/test/real_mode/mod.rs @@ -170,6 +170,8 @@ fn test_real_mode() { test_display(&[0x0f, 0x06], "clts"); test_display(&[0x0f, 0x07], "sysret"); test_display(&[0x0f, 0x0d, 0x08], "prefetchw zmmword [bx + si * 1]"); + test_display(&[0x0f, 0x0d, 0x00], "nop zmmword [bx + si * 1]"); + test_invalid(&[0x0f, 0x0d, 0xc0]); test_display(&[0x0f, 0x0f, 0x38, 0x8e], "pfpnacc mm7, qword [bx + si * 1]"); test_display(&[0x0f, 0x0f, 0xc6, 0xb7], "pmulhrw mm0, mm6"); test_display(&[0x0f, 0x0f, 0xe0, 0x8a], "pfnacc mm4, mm0"); |
