From 28321c96c5c2ea4ee8d9a2b48ad5b63499029d5b Mon Sep 17 00:00:00 2001 Message-Id: <28321c96c5c2ea4ee8d9a2b48ad5b63499029d5b.1716358413.git.mdw@distorted.org.uk> From: Mark Wooding Date: Wed, 13 Jul 2016 23:16:38 +0100 Subject: [PATCH] symm/rijndael-x86ish-aesni.S: Move setup of endswap table after prologue. Organization: Straylight/Edgeware From: Mark Wooding When we introduce metadata for Windows stack unwinding, it will be ugly to have to count this code as part of the stack-frame establishment prologue. Move it later. --- symm/rijndael-x86ish-aesni.S | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/symm/rijndael-x86ish-aesni.S b/symm/rijndael-x86ish-aesni.S index 12d4267f..3dcdfc58 100644 --- a/symm/rijndael-x86ish-aesni.S +++ b/symm/rijndael-x86ish-aesni.S @@ -391,10 +391,6 @@ ENDFUNC .macro encdec op, aes, koff FUNC(rijndael_\op\()_x86ish_aesni) - // Find the magic endianness-swapping table. - ldgot ecx - movdqa xmm5, [INTADDR(endswap_tab, ecx)] - #if CPUFAM_X86 // Arguments come in on the stack, and need to be collected. We // don't have a shortage of registers. @@ -426,6 +422,10 @@ ENDFUNC # define NR eax #endif + // Find the magic endianness-swapping table. + ldgot ecx + movdqa xmm5, [INTADDR(endswap_tab, ecx)] + // Initial setup. movdqu xmm0, [SRC] pshufb xmm0, xmm5 -- [mdw]