aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2019-06-23 01:07:47 -0700
committeriximeow <me@iximeow.net>2020-01-12 16:10:13 -0800
commit66bc9435b54495e24715939e119b059b06231e8b (patch)
treee1dc7a0b5f5bb0d88bf3b984112f6f48fa0fba45 /test
parent605ec39d74cb061baf5cc0641b9d9c83f103c0f7 (diff)
initial support for xmm instructions
Diffstat (limited to 'test')
-rw-r--r--test/test.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test.rs b/test/test.rs
index ebfda5a..bc4660c 100644
--- a/test/test.rs
+++ b/test/test.rs
@@ -66,6 +66,14 @@ fn test_E_decode() {
test_display(&[0xff, 0x75, 0x08], "push [rbp + 0x8]");
}
+#[test]
+fn test_sse() {
+ test_display(&[0xf2, 0x0f, 0x10, 0x0c, 0xc6], "movsd xmm1, [rsi + rax * 8]");
+ test_display(&[0xf2, 0x0f, 0x59, 0xc8], "mulsd xmm1, xmm0");
+ test_display(&[0xf2, 0x4f, 0x0f, 0x59, 0xc8], "mulsd xmm9, xmm8");
+ test_display(&[0xf2, 0x0f, 0x11, 0x0c, 0xc7], "movsd [rdi + rax * 8], xmm1");
+}
+
// SETLE, SETNG, ...
#[test]