]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
bn: Update .align pseudo-ops to match convention
authorMartin Schwenke <martin@meltin.net>
Wed, 16 Jun 2021 07:29:52 +0000 (17:29 +1000)
committerPauli <pauli@openssl.org>
Tue, 22 Jun 2021 08:30:17 +0000 (18:30 +1000)
64-bit alignment at the beginning of functions, 32-bit alignment for
loop targets.

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 ba78c968a707340402e5f78148b75465e03e21c3..b96f60d5aa03156fc3d1ce584b01a420f6082e3c 100755 (executable)
@@ -186,6 +186,7 @@ sub mul_mont_fixed($)
        $self->add_code(<<___);
 
 .globl .${fname}
+.align 5
 .${fname}:
        mr      $rp,r3
 
@@ -226,6 +227,7 @@ ___
        mtctr           $num
        b               $label->{"enter"}
 
+.align 4
 $label->{"outer"}:
        ldx             $bpi,$bp,$i
 
@@ -247,6 +249,7 @@ ___
 ___
 
        $self->add_code(<<___);
+.align 4
 $label->{"enter"}:
        mulld           $bpi,$tp[0],$n0
 
@@ -561,7 +564,6 @@ my $code;
 $code.=<<___;
 .machine "any"
 .text
-.align 5
 ___
 
 my $mont;