summaryrefslogtreecommitdiff
path: root/mpn/sh
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2011-09-26 22:48:00 +0200
committerTorbjorn Granlund <tege@gmplib.org>2011-09-26 22:48:00 +0200
commit6afdc2c52720b2cd0468a12f506464dcaeca5ad9 (patch)
tree34996acf27e1088d5334336acab57f305f220030 /mpn/sh
parent527e51e72d7d354576ca55122bd59fed30c7170b (diff)
downloadgmp-6afdc2c52720b2cd0468a12f506464dcaeca5ad9.tar.gz
Make this old submul_1 implementation actually compute intended function.
Diffstat (limited to 'mpn/sh')
-rw-r--r--mpn/sh/sh2/submul_1.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/mpn/sh/sh2/submul_1.asm b/mpn/sh/sh2/submul_1.asm
index 3866c028f..c701eba24 100644
--- a/mpn/sh/sh2/submul_1.asm
+++ b/mpn/sh/sh2/submul_1.asm
@@ -27,7 +27,7 @@ C s1_ptr r5
C size r6
C s2_limb r7
-changecom(blah) C disable # to make C all comments below work
+changecom(blah) C disable # to make all C comments below work
ASM_START()
PROLOGUE(mpn_submul_1)
@@ -42,10 +42,10 @@ L(top): mov.l @r5+,r3
sts mach,r2 C new cy_limb = hi_prod
mov.l @r4,r3
addc r0,r2 C cy_limb += T, T = 0
- subc r3,r1
+ subc r1,r3
addc r0,r2 C cy_limb += T, T = 0
dt r6
- mov.l r1,@r4
+ mov.l r3,@r4
bf.s L(top)
add #4,r4