From: Andy Polyakov Date: Fri, 14 Oct 2005 15:24:06 +0000 (+0000) Subject: Make sure x86-mont.pl returns zero even if compiled with no-sse2. X-Git-Tag: OpenSSL_0_9_8k^2~1763 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5f50d597f2c9106824ea48f47e318f7b2d13a867;p=oweals%2Fopenssl.git Make sure x86-mont.pl returns zero even if compiled with no-sse2. --- diff --git a/crypto/bn/asm/x86-mont.pl b/crypto/bn/asm/x86-mont.pl index 98a7f09627..6ba2041df3 100755 --- a/crypto/bn/asm/x86-mont.pl +++ b/crypto/bn/asm/x86-mont.pl @@ -60,7 +60,6 @@ $mask="mm7"; if($sse2) { &picmeup("eax","OPENSSL_ia32cap_P"); &bt (&DWP(0,"eax"),26); - &mov ("eax",0); # zero signals "we did nothing" &jnc (&label("non_sse2")); ################################# load argument block... @@ -232,9 +231,13 @@ if($sse2) { &set_label("exit_sse2"); &mov ("esp",$_sp); # pull saved stack pointer &mov ("eax",1); + &jmp (&label("leave")); &set_label("non_sse2"); } + &xor ("eax","eax"); # zero signals "not implemented [yet]" + +&set_label("leave"); &function_end("bn_mul_mont"); &asm_finish();