summaryrefslogtreecommitdiff
path: root/mpn/arm
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2011-07-15 22:32:54 +0200
committerTorbjorn Granlund <tege@gmplib.org>2011-07-15 22:32:54 +0200
commited918fef013a49459a717057cc7d673cad3e84f1 (patch)
tree767a6a1f35d88b695db56820d1f49574f1b37306 /mpn/arm
parent9a98bf49e935025f978118cb2a92ff2acb7ceb60 (diff)
downloadgmp-ed918fef013a49459a717057cc7d673cad3e84f1.tar.gz
Swap around some registers to silence 'as' warnings.
Diffstat (limited to 'mpn/arm')
-rw-r--r--mpn/arm/invert_limb.asm26
1 files changed, 13 insertions, 13 deletions
diff --git a/mpn/arm/invert_limb.asm b/mpn/arm/invert_limb.asm
index 5d74e4391..bbc9b9a60 100644
--- a/mpn/arm/invert_limb.asm
+++ b/mpn/arm/invert_limb.asm
@@ -1,6 +1,6 @@
dnl ARM mpn_invert_limb -- Invert a normalized limb.
-dnl Copyright 2001, 2009 Free Software Foundation, Inc.
+dnl Copyright 2001, 2009, 2011 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
@@ -27,21 +27,21 @@ L(2): add r2, pc, r2
mov r3, r3, asl #1
ldrh r3, [r3, r2]
mov r1, r3, asl #17
- mul r3, r3, r3
- umull r12, r2, r3, r0
+ mul r12, r3, r3
+ umull r3, r2, r12, r0
sub r1, r1, r2, asl #1
- umull r12, r2, r1, r1
- umull r3, r12, r0, r12
- umull r2, r3, r0, r2
- adds r2, r2, r12
- adc r3, r3, #0
- rsb r1, r3, r1
+ umull r3, r2, r1, r1
+ umull r12, r3, r0, r3
+ umull r2, r12, r0, r2
+ adds r2, r2, r3
+ adc r12, r12, #0
+ rsb r1, r12, r1
mvn r2, r2, lsr #30
add r2, r2, r1, asl #2
- umull r3, r12, r0, r2
- adds r1, r3, r0
- adc r12, r12, r0
- rsb r0, r12, r2
+ umull r12, r3, r0, r2
+ adds r1, r12, r0
+ adc r3, r3, r0
+ rsb r0, r3, r2
bx lr
ALIGN(4)