diff options
author | iximeow <me@iximeow.net> | 2019-06-23 01:07:47 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2020-01-12 16:10:13 -0800 |
commit | 66bc9435b54495e24715939e119b059b06231e8b (patch) | |
tree | e1dc7a0b5f5bb0d88bf3b984112f6f48fa0fba45 /test/test.rs | |
parent | 605ec39d74cb061baf5cc0641b9d9c83f103c0f7 (diff) |
initial support for xmm instructions
Diffstat (limited to 'test/test.rs')
-rw-r--r-- | test/test.rs | 8 |
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] |