From 8da721ee2b3d5a08a17f2faa0695a76a674405f0 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Mon, 30 May 2011 09:15:16 +0000 Subject: [PATCH] aesni-x86[_64].pl: relax alignment requirement. --- crypto/aes/asm/aesni-x86.pl | 2 +- crypto/aes/asm/aesni-x86_64.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/aes/asm/aesni-x86.pl b/crypto/aes/asm/aesni-x86.pl index 712149ab4b..b3c8d1f60a 100644 --- a/crypto/aes/asm/aesni-x86.pl +++ b/crypto/aes/asm/aesni-x86.pl @@ -54,7 +54,7 @@ require "x86asm.pl"; &asm_init($ARGV[0],$0); -if ($PREFIX eq "aesni") { $movekey=*movaps; } +if ($PREFIX eq "aesni") { $movekey=*movups; } else { $movekey=*movups; } $len="eax"; diff --git a/crypto/aes/asm/aesni-x86_64.pl b/crypto/aes/asm/aesni-x86_64.pl index ea9cf9404d..4ab89beb47 100644 --- a/crypto/aes/asm/aesni-x86_64.pl +++ b/crypto/aes/asm/aesni-x86_64.pl @@ -174,7 +174,7 @@ die "can't locate x86_64-xlate.pl"; open STDOUT,"| $^X $xlate $flavour $output"; -$movkey = $PREFIX eq "aesni" ? "movaps" : "movups"; +$movkey = $PREFIX eq "aesni" ? "movups" : "movups"; @_4args=$win64? ("%rcx","%rdx","%r8", "%r9") : # Win64 order ("%rdi","%rsi","%rdx","%rcx"); # Unix order -- 2.34.1