aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/i386/i586/add_n.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/i386/i586/add_n.S')
-rw-r--r--sysdeps/i386/i586/add_n.S50
1 files changed, 25 insertions, 25 deletions
diff --git a/sysdeps/i386/i586/add_n.S b/sysdeps/i386/i586/add_n.S
index 9bea31b068..7e30cac729 100644
--- a/sysdeps/i386/i586/add_n.S
+++ b/sysdeps/i386/i586/add_n.S
@@ -34,15 +34,15 @@ ENTRY(__mpn_add_n)
pushl %edi
pushl %esi
- pushl %ebx
pushl %ebp
+ pushl %ebx
movl RES(%esp),%edi
movl S1(%esp),%esi
- movl S2(%esp),%ebp
+ movl S2(%esp),%ebx
movl SIZE(%esp),%ecx
- movl (%ebp),%ebx
+ movl (%ebx),%ebp
decl %ecx
movl %ecx,%edx
@@ -58,42 +58,42 @@ L(oop): movl 28(%edi),%eax /* fetch destination cache line */
L(1): movl (%esi),%eax
movl 4(%esi),%edx
- adcl %ebx,%eax
- movl 4(%ebp),%ebx
- adcl %ebx,%edx
- movl 8(%ebp),%ebx
+ adcl %ebp,%eax
+ movl 4(%ebx),%ebp
+ adcl %ebp,%edx
+ movl 8(%ebx),%ebp
movl %eax,-32(%edi)
movl %edx,-28(%edi)
L(2): movl 8(%esi),%eax
movl 12(%esi),%edx
- adcl %ebx,%eax
- movl 12(%ebp),%ebx
- adcl %ebx,%edx
- movl 16(%ebp),%ebx
+ adcl %ebp,%eax
+ movl 12(%ebx),%ebp
+ adcl %ebp,%edx
+ movl 16(%ebx),%ebp
movl %eax,-24(%edi)
movl %edx,-20(%edi)
L(3): movl 16(%esi),%eax
movl 20(%esi),%edx
- adcl %ebx,%eax
- movl 20(%ebp),%ebx
- adcl %ebx,%edx
- movl 24(%ebp),%ebx
+ adcl %ebp,%eax
+ movl 20(%ebx),%ebp
+ adcl %ebp,%edx
+ movl 24(%ebx),%ebp
movl %eax,-16(%edi)
movl %edx,-12(%edi)
L(4): movl 24(%esi),%eax
movl 28(%esi),%edx
- adcl %ebx,%eax
- movl 28(%ebp),%ebx
- adcl %ebx,%edx
- movl 32(%ebp),%ebx
+ adcl %ebp,%eax
+ movl 28(%ebx),%ebp
+ adcl %ebp,%edx
+ movl 32(%ebx),%ebp
movl %eax,-8(%edi)
movl %edx,-4(%edi)
leal 32(%esi),%esi
- leal 32(%ebp),%ebp
+ leal 32(%ebx),%ebx
decl %ecx
jnz L(oop)
@@ -105,23 +105,23 @@ L(end):
L(oop2):
leal 4(%edi),%edi
movl (%esi),%eax
- adcl %ebx,%eax
- movl 4(%ebp),%ebx
+ adcl %ebp,%eax
+ movl 4(%ebx),%ebp
movl %eax,-4(%edi)
leal 4(%esi),%esi
- leal 4(%ebp),%ebp
+ leal 4(%ebx),%ebx
decl %edx
jnz L(oop2)
L(end2):
movl (%esi),%eax
- adcl %ebx,%eax
+ adcl %ebp,%eax
movl %eax,(%edi)
sbbl %eax,%eax
negl %eax
- popl %ebp
popl %ebx
+ popl %ebp
popl %esi
popl %edi