From: Andy Polyakov Date: Tue, 8 Nov 2016 19:25:09 +0000 (+0100) Subject: aes/asm/aesp8-ppc.pl: improve [backward] portability. X-Git-Tag: OpenSSL_1_1_0c~9 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=53c6cbf6e9a6e4fe2433a89bf3c970355dd1e29a;p=oweals%2Fopenssl.git aes/asm/aesp8-ppc.pl: improve [backward] portability. Some of stone-age assembler can't cope with r0 in address. It's actually sensible thing to do, because r0 is shunted to 0 in address arithmetic and by refusing r0 assembler effectively makes you understand that. Reviewed-by: Rich Salz (cherry picked from commit a54aba531327285f64cf13a909bc129e9f9d5970) --- diff --git a/crypto/aes/asm/aesp8-ppc.pl b/crypto/aes/asm/aesp8-ppc.pl index 3fdf1ecda0..b7e92f6538 100755 --- a/crypto/aes/asm/aesp8-ppc.pl +++ b/crypto/aes/asm/aesp8-ppc.pl @@ -3011,7 +3011,7 @@ _aesp8_xts_enc5x: vxor $twk0,$twk0,v31 vcipher $out0,$out0,v26 - lvsr $inpperm,r0,$taillen # $in5 is no more + lvsr $inpperm,0,$taillen # $in5 is no more vcipher $out1,$out1,v26 vcipher $out2,$out2,v26 vcipher $out3,$out3,v26