bn: Use a basic branch-if-not-zero
authorMartin Schwenke <martin@meltin.net>
Thu, 1 Jul 2021 04:23:50 +0000 (14:23 +1000)
committerPauli <pauli@openssl.org>
Tue, 6 Jul 2021 00:49:01 +0000 (10:49 +1000)
Ancient toolchains fail the build because they don't like the hints,
newer ISAs recommend not using the hints and relying on dynamic branch
prediction.

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

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

index da4967a730f7b92f91bbc11dd90a9edd0851d9b8..ce666117597997f33a94c42d86e099bfc5e1b1bb 100755 (executable)
@@ -267,7 +267,7 @@ ___
        addze           $tp[$n],$tp[$n+1]
 
        addi            $i,$i,$SIZE_T
-       bc              25,0,$label->{"outer"}
+       bdnz            $label->{"outer"}
 
        and.            $tp[$n],$tp[$n],$tp[$n]
        bne             $label->{"sub"}