Bug 1025729 - Fix register saving in s_mp_sqr_comba_4. NSS_3_16_3_PLUS_BRANCH
authorDavid Major <dmajor@mozilla.com>
Fri, 27 Jun 2014 15:21:56 -0700
branchNSS_3_16_3_PLUS_BRANCH
changeset 11216 0f6effa542e60e9beea0020c3786acc335bd3de6
parent 11215 354504312e4d1faee86990540313633da9b48650
child 11217 8415f0f743765af7378264d8d31b7f9e0f47c7f5
push id451
push userkaie@kuix.de
push dateTue, 05 Aug 2014 13:16:51 +0000
bugs1025729
Bug 1025729 - Fix register saving in s_mp_sqr_comba_4. r=m_kato,wtc.
lib/freebl/mpi/mp_comba_amd64_masm.asm
--- a/lib/freebl/mpi/mp_comba_amd64_masm.asm
+++ b/lib/freebl/mpi/mp_comba_amd64_masm.asm
@@ -7858,23 +7858,23 @@ s_mp_sqr_comba_4 PROC
 
         push rdi
         push rsi
 
         mov rdi, rcx
         mov rsi, rdx
 
         push rbp
+        push rbx
         sub rsp, 80
         mov r11, rsi
         xor esi, esi
         mov r10, rsi
         mov rbp, rsi
         mov r8, rsi
-        push rbx
         mov rbx, rsi
         mov rcx, qword ptr [16+rdi]
         mov rdi, rsi
         mov rax, qword ptr [rcx]
         mul rax
         add r10, rax
         adc rbx, rdx
         adc rdi, 0