selftests/powerpc: Fix instruction loop for ABIv2 (LE)

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
Michael Ellerman 2014-06-10 22:23:07 +10:00 committed by Benjamin Herrenschmidt
parent 3df48c981d
commit 0a6121cf33
1 changed files with 35 additions and 38 deletions

View File

@ -3,44 +3,41 @@
* Licensed under GPLv2.
*/
#include <ppc-asm.h>
.text
.global thirty_two_instruction_loop
.type .thirty_two_instruction_loop,@function
.section ".opd","aw",@progbits
thirty_two_instruction_loop:
.quad .thirty_two_instruction_loop, .TOC.@tocbase, 0
.previous
.thirty_two_instruction_loop:
cmpwi %r3,0
FUNC_START(thirty_two_instruction_loop)
cmpdi r3,0
beqlr
addi %r4,%r3,1
addi %r4,%r4,1
addi %r4,%r4,1
addi %r4,%r4,1
addi %r4,%r4,1
addi %r4,%r4,1
addi %r4,%r4,1
addi %r4,%r4,1
addi %r4,%r4,1
addi %r4,%r4,1
addi %r4,%r4,1
addi %r4,%r4,1
addi %r4,%r4,1
addi %r4,%r4,1
addi %r4,%r4,1
addi %r4,%r4,1
addi %r4,%r4,1
addi %r4,%r4,1
addi %r4,%r4,1
addi %r4,%r4,1
addi %r4,%r4,1
addi %r4,%r4,1
addi %r4,%r4,1
addi %r4,%r4,1
addi %r4,%r4,1
addi %r4,%r4,1
addi %r4,%r4,1
addi %r4,%r4,1 # 28 addi's
subi %r3,%r3,1
b .thirty_two_instruction_loop
addi r4,r3,1
addi r4,r4,1
addi r4,r4,1
addi r4,r4,1
addi r4,r4,1
addi r4,r4,1
addi r4,r4,1
addi r4,r4,1
addi r4,r4,1
addi r4,r4,1
addi r4,r4,1
addi r4,r4,1
addi r4,r4,1
addi r4,r4,1
addi r4,r4,1
addi r4,r4,1
addi r4,r4,1
addi r4,r4,1
addi r4,r4,1
addi r4,r4,1
addi r4,r4,1
addi r4,r4,1
addi r4,r4,1
addi r4,r4,1
addi r4,r4,1
addi r4,r4,1
addi r4,r4,1
addi r4,r4,1 # 28 addi's
subi r3,r3,1
b FUNC_NAME(thirty_two_instruction_loop)
FUNC_END(thirty_two_instruction_loop)