summaryrefslogtreecommitdiff
path: root/mpn/mips3
diff options
context:
space:
mode:
authortege <tege@gmplib.org>2001-12-18 18:47:05 +0100
committertege <tege@gmplib.org>2001-12-18 18:47:05 +0100
commit2f471f5013228d94eb2899d74b82de6fffd80554 (patch)
tree563fa00c94c04e499e4b4fc63699ff3b11c69dac /mpn/mips3
parent63117f61a8f3650166fece2952386c29c32022de (diff)
downloadgmp-2f471f5013228d94eb2899d74b82de6fffd80554.tar.gz
Add NOPs to save a cycle on R1x000.
Diffstat (limited to 'mpn/mips3')
-rw-r--r--mpn/mips3/mul_1.asm5
1 files changed, 4 insertions, 1 deletions
diff --git a/mpn/mips3/mul_1.asm b/mpn/mips3/mul_1.asm
index c1059150f..302a63174 100644
--- a/mpn/mips3/mul_1.asm
+++ b/mpn/mips3/mul_1.asm
@@ -46,7 +46,8 @@ C feed-in phase 1
beq $6,$0,$LC1
ld $8,0($5) C load new s1 limb as early as possible
-Loop: mflo $10
+Loop: nop
+ mflo $10
mfhi $9
daddiu $5,$5,8
daddu $10,$10,$2 C add old carry limb to low product limb
@@ -54,6 +55,8 @@ Loop: mflo $10
ld $8,0($5) C load new s1 limb as early as possible
daddiu $6,$6,-1 C decrement loop counter
sltu $2,$10,$2 C carry from previous addition -> $2
+ nop
+ nop
sd $10,0($4)
daddiu $4,$4,8
bne $6,$0,Loop