From 72567f6f3a3f36c1a09a67d2ecd643103c91d352 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Wed, 23 Sep 2020 00:14:28 -0700 Subject: [PATCH] Fixes unit test that relies on unaligned XMM load --- unittests/ASM/OpSize/66_6E.asm | 2 +- unittests/ASM/OpSize/66_7E.asm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/unittests/ASM/OpSize/66_6E.asm b/unittests/ASM/OpSize/66_6E.asm index 0aa04f998..40b92db34 100644 --- a/unittests/ASM/OpSize/66_6E.asm +++ b/unittests/ASM/OpSize/66_6E.asm @@ -27,7 +27,7 @@ mov [rdx + 8 * 4], rax mov [rdx + 8 * 5], rax movaps xmm2, [rdx + 8 * 2] -movaps xmm3, [rdx + 8 * 3] +movaps xmm3, [rdx + 8 * 2] movd xmm0, dword [rdx + 8 * 0] ; AMD's Architecture programmer's manual claims this mnemonic is still movd, but compilers only accept movq diff --git a/unittests/ASM/OpSize/66_7E.asm b/unittests/ASM/OpSize/66_7E.asm index b67b346d9..c56d674f9 100644 --- a/unittests/ASM/OpSize/66_7E.asm +++ b/unittests/ASM/OpSize/66_7E.asm @@ -28,8 +28,8 @@ mov rax, 0x0 mov [rdx + 8 * 4], rax mov [rdx + 8 * 5], rax -movaps xmm2, [rdx + 8 * 2] -movaps xmm3, [rdx + 8 * 3] +movups xmm2, [rdx + 8 * 2] +movups xmm3, [rdx + 8 * 3] movd dword [rdx + 8 * 4], xmm2 ; AMD's Architecture programmer's manual claims this mnemonic is still movd, but compilers only accept movq