bn: Drop unnecessary use of r9
authorMartin Schwenke <martin@meltin.net>
Wed, 16 Jun 2021 04:58:08 +0000 (14:58 +1000)
committerPauli <pauli@openssl.org>
Tue, 22 Jun 2021 08:30:17 +0000 (18:30 +1000)
This is done in other versions due to the possibility of an early
return.  However, there is no early return here.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15798)

crypto/bn/asm/ppc64-mont-fixed.pl

index b96f60d5aa03156fc3d1ce584b01a420f6082e3c..941882ec82fc5471699f93e8d9acaca34cdea92c 100755 (executable)
@@ -72,8 +72,6 @@ my $np        = "r6";
 my $n0 = "r7";
 my $num        = "r8";
 
-$rp    = "r9"; # $rp is reassigned
-
 my $c0 = "r10";
 my $bp0        = "r11";
 my $bpi        = "r11";
@@ -188,7 +186,6 @@ sub mul_mont_fixed($)
 .globl .${fname}
 .align 5
 .${fname}:
-       mr      $rp,r3
 
 ___