From bf9b78214d651f84ca328506fee1bd0bd857fed8 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Thu, 1 Jul 2021 14:23:50 +1000 Subject: [PATCH] bn: Use a basic branch-if-not-zero 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 Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/15971) --- crypto/bn/asm/ppc64-mont-fixed.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/bn/asm/ppc64-mont-fixed.pl b/crypto/bn/asm/ppc64-mont-fixed.pl index da4967a730..ce66611759 100755 --- a/crypto/bn/asm/ppc64-mont-fixed.pl +++ b/crypto/bn/asm/ppc64-mont-fixed.pl @@ -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"}