Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/external/bsd/openssl/dist/crypto/bn/asm For mips64:



details:   https://anonhg.NetBSD.org/src/rev/e789dbd7cee4
branches:  trunk
changeset: 321213:e789dbd7cee4
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Mar 06 18:32:37 2018 +0000

description:
For mips64:

Avoid branch delay spot warnings: Warning: macro instruction expanded into
multiple instructions in a branch delay slot

diffstat:

 crypto/external/bsd/openssl/dist/crypto/bn/asm/mips.pl |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r dfde75c6e3d5 -r e789dbd7cee4 crypto/external/bsd/openssl/dist/crypto/bn/asm/mips.pl
--- a/crypto/external/bsd/openssl/dist/crypto/bn/asm/mips.pl    Tue Mar 06 17:40:04 2018 +0000
+++ b/crypto/external/bsd/openssl/dist/crypto/bn/asm/mips.pl    Tue Mar 06 18:32:37 2018 +0000
@@ -470,8 +470,9 @@
        $ST     $ta3,-2*$BNSZ($a0)
 
        .set    noreorder
+       $ST     $ta2,-$BNSZ($a0)
        bgtz    $ta0,.L_bn_sqr_words_loop
-       $ST     $ta2,-$BNSZ($a0)
+       nop
 
        beqz    $a2,.L_bn_sqr_words_return
        nop
@@ -795,8 +796,9 @@
                                
        $LD     $a0,($a3)
        move    $ta2,$a1
+       $LD     $a1,-$BNSZ($a3)
        bne     $a0,$a2,bn_div_3_words_internal
-       $LD     $a1,-$BNSZ($a3)
+        nop
        li      $v0,-1
        jr      $ra
        move    $a0,$v0



Home | Main Index | Thread Index | Old Index