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/lib/libcrypto/arch/mips Avoid br...



details:   https://anonhg.NetBSD.org/src/rev/ebe994f7ad0b
branches:  trunk
changeset: 321209:ebe994f7ad0b
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Mar 06 13:47:25 2018 +0000

description:
Avoid branch delay spot warnings: Warning: macro instruction expanded into
multiple instructions in a branch delay slot
XXX: Manually need to fix in auto-generation.

diffstat:

 crypto/external/bsd/openssl/lib/libcrypto/arch/mips/mips64.S |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r e497305a54af -r ebe994f7ad0b crypto/external/bsd/openssl/lib/libcrypto/arch/mips/mips64.S
--- a/crypto/external/bsd/openssl/lib/libcrypto/arch/mips/mips64.S      Tue Mar 06 13:37:43 2018 +0000
+++ b/crypto/external/bsd/openssl/lib/libcrypto/arch/mips/mips64.S      Tue Mar 06 13:47:25 2018 +0000
@@ -297,8 +297,9 @@
        sd      $11,-2*8($4)
 
        .set    noreorder
+       sd      $10,-8($4)
        bgtz    $8,.L_bn_sqr_words_loop
-       sd      $10,-8($4)
+       nop
 
        beqz    $6,.L_bn_sqr_words_return
        nop
@@ -564,8 +565,9 @@
                                
        ld      $4,($7)
        move    $10,$5
+       ld      $5,-8($7)
        bne     $4,$6,bn_div_3_words_internal
-       ld      $5,-8($7)
+       nop
        li      $2,-1
        jr      $31
        move    $4,$2



Home | Main Index | Thread Index | Old Index