aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2019-11-30 19:25:23 -0800
committeriximeow <me@iximeow.net>2020-01-12 16:10:13 -0800
commit767c604e2ee47cde4edf72b63d17998ce1767bde (patch)
tree2ddebaebd7d9e6ca2961435805f3d5d217c98421 /test
parentccdc601e2a70a0f27891f6db8c9151456d08f05a (diff)
add pxor and some others, support mm operands
Diffstat (limited to 'test')
-rw-r--r--test/test.rs25
1 files changed, 13 insertions, 12 deletions
diff --git a/test/test.rs b/test/test.rs
index f3ae928..a08dbec 100644
--- a/test/test.rs
+++ b/test/test.rs
@@ -142,6 +142,7 @@ fn test_sse() {
test_display(&[0x67, 0x66, 0x4f, 0x0f, 0x28, 0x00], "movapd xmm8, [r8d]");
test_display(&[0x66, 0x0f, 0x29, 0x00], "movapd [rax], xmm0");
test_display(&[0x66, 0x0f, 0xef, 0xc0], "pxor xmm0, xmm0");
+ test_display(&[0x66, 0x4f, 0x0f, 0xef, 0xc0], "pxor xmm8, xmm8");
test_display(&[0xf2, 0x0f, 0x10, 0x0c, 0xc6], "movsd xmm1, [rsi + rax * 8]");
test_display(&[0xf3, 0x0f, 0x10, 0x04, 0x86], "movss xmm0, [rsi + rax * 4]");
test_display(&[0xf2, 0x0f, 0x59, 0xc8], "mulsd xmm1, xmm0");
@@ -328,18 +329,18 @@ fn prefixed_0f() {
test_display(&[0x0f, 0x35], "sysexit");
test_invalid(&[0x0f, 0x36]);
test_display(&[0x0f, 0x37], "getsec");
- test_display(&[0x0f, 0x60, 0x00], "punpcklbw mm0, qword [rax]");
- test_display(&[0x0f, 0x61, 0x00], "punpcklwd mm0, qword [rax]");
- test_display(&[0x0f, 0x62, 0x00], "punpckldq mm0, qword [rax]");
- test_display(&[0x0f, 0x63, 0x00], "packsswb mm0, qword [rax]");
- test_display(&[0x0f, 0x64, 0x00], "pcmpgtb mm0, qword [rax]");
- test_display(&[0x0f, 0x65, 0x00], "pcmpgtw mm0, qword [rax]");
- test_display(&[0x0f, 0x66, 0x00], "pcmpgtd mm0, qword [rax]");
- test_display(&[0x0f, 0x67, 0x00], "packuswb mm0, qword [rax]");
- test_display(&[0x0f, 0x68, 0x00], "punpckhbw mm0, qword [rax]");
- test_display(&[0x0f, 0x69, 0x00], "punpckhbd mm0, qword [rax]");
- test_display(&[0x0f, 0x6a, 0x00], "punpckhdq mm0, qword [rax]");
- test_display(&[0x0f, 0x6b, 0x00], "packssdw mm0, qword [rax]");
+ test_display(&[0x0f, 0x60, 0x00], "punpcklbw mm0, [rax]");
+ test_display(&[0x0f, 0x61, 0x00], "punpcklwd mm0, [rax]");
+ test_display(&[0x0f, 0x62, 0x00], "punpckldq mm0, [rax]");
+ test_display(&[0x0f, 0x63, 0x00], "packsswb mm0, [rax]");
+ test_display(&[0x0f, 0x64, 0x00], "pcmpgtb mm0, [rax]");
+ test_display(&[0x0f, 0x65, 0x00], "pcmpgtw mm0, [rax]");
+ test_display(&[0x0f, 0x66, 0x00], "pcmpgtd mm0, [rax]");
+ test_display(&[0x0f, 0x67, 0x00], "packuswb mm0, [rax]");
+ test_display(&[0x0f, 0x68, 0x00], "punpckhbw mm0, [rax]");
+ test_display(&[0x0f, 0x69, 0x00], "punpckhbd mm0, [rax]");
+ test_display(&[0x0f, 0x6a, 0x00], "punpckhdq mm0, [rax]");
+ test_display(&[0x0f, 0x6b, 0x00], "packssdw mm0, [rax]");
test_invalid(&[0x0f, 0x6c]);
test_invalid(&[0x0f, 0x6d]);
test_display(&[0x0f, 0x6e], "movd mm0, dword [rax]");