From 1d63fee4c2d8439564e34a8a2c92e6167ae8fb0b Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Thu, 11 Aug 2016 10:07:04 +0100 Subject: [PATCH] symm/rijndael-x86ish-aesni.S: Load destination pointer earlier on 32-bit. We don't need EDX for anything for most of the code, so repurpose it earlier ready for the final store. --- symm/rijndael-x86ish-aesni.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/symm/rijndael-x86ish-aesni.S b/symm/rijndael-x86ish-aesni.S index c22d23a8..5293d12e 100644 --- a/symm/rijndael-x86ish-aesni.S +++ b/symm/rijndael-x86ish-aesni.S @@ -432,6 +432,9 @@ ENDFUNC movdqu xmm1, [K] add K, 16 pxor xmm0, xmm1 +#if CPUFAM_X86 + mov DST, [esp + 12] +#endif // Dispatch to the correct code. cmp NR, 10 @@ -509,9 +512,6 @@ ENDFUNC // Unpermute the ciphertext block and store it. pshufb xmm0, xmm5 -#if CPUFAM_X86 - mov DST, [esp + 12] -#endif movdqu [DST], xmm0 // And we're done. -- 2.11.0