summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@c-s.fr>2016-02-09 17:08:33 +0100
committerScott Wood <oss@buserror.net>2016-03-12 00:20:12 +0100
commit737b01fca3f853a1f3373a79c06e4ee3a574e5b7 (patch)
tree4f7af7fe5f42ea2821a6b65cd1274a2a7d37daff /arch
parentpowerpc32: small optimisation in flush_icache_range() (diff)
downloadlinux-737b01fca3f853a1f3373a79c06e4ee3a574e5b7.tar.xz
linux-737b01fca3f853a1f3373a79c06e4ee3a574e5b7.zip
powerpc32: Remove one insn in mulhdu
Remove one instruction in mulhdu Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Scott Wood <oss@buserror.net>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kernel/misc_32.S11
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/powerpc/kernel/misc_32.S b/arch/powerpc/kernel/misc_32.S
index 3ec5a2204f26..bf5160fbf9d8 100644
--- a/arch/powerpc/kernel/misc_32.S
+++ b/arch/powerpc/kernel/misc_32.S
@@ -91,17 +91,16 @@ _GLOBAL(mulhdu)
addc r7,r0,r7
addze r4,r4
1: beqlr cr1 /* all done if high part of A is 0 */
- mr r10,r3
mullw r9,r3,r5
- mulhwu r3,r3,r5
+ mulhwu r10,r3,r5
beq 2f
- mullw r0,r10,r6
- mulhwu r8,r10,r6
+ mullw r0,r3,r6
+ mulhwu r8,r3,r6
addc r7,r0,r7
adde r4,r4,r8
- addze r3,r3
+ addze r10,r10
2: addc r4,r4,r9
- addze r3,r3
+ addze r3,r10
blr
/*