From 1b9c5f2e2f283a3b12d02a89c11b8e8d97bc6312 Mon Sep 17 00:00:00 2001 From: Hua Zhang Date: Wed, 13 Mar 2019 14:28:44 +0800 Subject: Fix compiling error for mips32r6 and mips64r6 There are some compiling errors for mips32r6 and mips64r6: crypto/bn/bn-mips.S:56: Error: opcode not supported on this processor: mips2 (mips2) `mulu $1,$12,$7' crypto/mips_arch.h: Assembler messages: crypto/mips_arch.h:15: Error: junk at end of line, first unrecognized character is `&' Signed-off-by: Hua Zhang Reviewed-by: Matt Caswell Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/8464) --- crypto/bn/asm/mips.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/bn/asm') diff --git a/crypto/bn/asm/mips.pl b/crypto/bn/asm/mips.pl index 51a4b5fb36..bff624d186 100644 --- a/crypto/bn/asm/mips.pl +++ b/crypto/bn/asm/mips.pl @@ -88,7 +88,7 @@ if ($flavour =~ /64|n32/i) { $SZREG=4; $REG_S="sw"; $REG_L="lw"; - $code=".set mips2\n"; + $code="#if !(defined (__mips_isa_rev) && (__mips_isa_rev >= 6))\n.set mips2\n#endif\n"; } # Below is N32/64 register layout used in the original module. -- cgit v1.2.3