aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2021-07-04 13:21:09 -0700
committeriximeow <me@iximeow.net>2021-07-04 13:21:09 -0700
commite15ef43a243ae0e0db369cead1786f4f2c4e690e (patch)
treee6ee5bebf5c1681cc67712b01d3b89c04b824af9 /test
parent2c84821ee0d9807d20ea82b8550edde09426a867 (diff)
support xacquire/xrelease prefixing
Diffstat (limited to 'test')
-rw-r--r--test/long_mode/mod.rs2
-rw-r--r--test/protected_mode/mod.rs2
-rw-r--r--test/real_mode/mod.rs3
3 files changed, 3 insertions, 4 deletions
diff --git a/test/long_mode/mod.rs b/test/long_mode/mod.rs
index 6c2cdc9..1573580 100644
--- a/test/long_mode/mod.rs
+++ b/test/long_mode/mod.rs
@@ -1194,7 +1194,7 @@ fn test_prefixes() {
test_display(&[0xf0, 0x31, 0x00], "lock xor dword [rax], eax");
test_display(&[0xf0, 0x80, 0x30, 0x00], "lock xor byte [rax], 0x0");
test_display(&[0xf0, 0x0f, 0xbb, 0x17], "lock btc dword [rdi], edx");
- test_display(&[0x66, 0x2e, 0xf2, 0xf0, 0x0f, 0xbb, 0x13], "lock btc word [rbx], dx");
+ test_display(&[0x66, 0x2e, 0xf2, 0xf0, 0x0f, 0xbb, 0x13], "xacquire lock btc word [rbx], dx");
test_invalid(&[0xf0, 0xc7, 0x00, 0x00, 0x00, 0x00]);
test_display(&[0x0f, 0xc1, 0xcc], "xadd esp, ecx");
test_display(&[0x66, 0x0f, 0xc1, 0xcc], "xadd sp, cx");
diff --git a/test/protected_mode/mod.rs b/test/protected_mode/mod.rs
index dd52cfe..65e112f 100644
--- a/test/protected_mode/mod.rs
+++ b/test/protected_mode/mod.rs
@@ -1080,7 +1080,7 @@ fn test_prefixes() {
test_display(&[0xf0, 0x31, 0x00], "lock xor dword [eax], eax");
test_display(&[0xf0, 0x80, 0x30, 0x00], "lock xor byte [eax], 0x0");
test_display(&[0xf0, 0x0f, 0xbb, 0x17], "lock btc dword [edi], edx");
- test_display(&[0x66, 0x2e, 0xf2, 0xf0, 0x0f, 0xbb, 0x13], "lock btc word cs:[ebx], dx");
+ test_display(&[0x66, 0x2e, 0xf2, 0xf0, 0x0f, 0xbb, 0x13], "xacquire lock btc word cs:[ebx], dx");
test_invalid(&[0xf0, 0xc7, 0x00, 0x00, 0x00, 0x00]);
test_display(&[0x0f, 0xc1, 0xcc], "xadd esp, ecx");
test_display(&[0x66, 0x0f, 0xc1, 0xcc], "xadd sp, cx");
diff --git a/test/real_mode/mod.rs b/test/real_mode/mod.rs
index b182880..54bae05 100644
--- a/test/real_mode/mod.rs
+++ b/test/real_mode/mod.rs
@@ -16878,8 +16878,7 @@ fn test_real_mode() {
test_display(&[0x66, 0x0f, 0xfe, 0xc1], "paddd xmm0, xmm1");
test_display(&[0x66, 0x0f, 0xff, 0x01], "ud0 eax, dword [bx + di]");
test_display(&[0x66, 0x0f, 0xff, 0xc1], "ud0 eax, ecx");
-// TODO:
-// test_display(&[0x66, 0x2e, 0xf2, 0xf0, 0x0f, 0xbb, 0x13], "xacquire lock btc dword cs:[bp + di], edx");
+ test_display(&[0x66, 0x2e, 0xf2, 0xf0, 0x0f, 0xbb, 0x13], "xacquire lock btc dword cs:[bp + di], edx");
test_display(&[0x66, 0x31, 0xc0], "xor eax, eax");
test_display(&[0x66, 0x32, 0xc0], "xor al, al");
test_display(&[0x66, 0x32, 0xc5], "xor al, ch");