Commit 0a6121cf authored by Michael Ellerman's avatar Michael Ellerman Committed by Benjamin Herrenschmidt

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

Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 3df48c98
...@@ -3,44 +3,41 @@ ...@@ -3,44 +3,41 @@
* Licensed under GPLv2. * Licensed under GPLv2.
*/ */
#include <ppc-asm.h>
.text .text
.global thirty_two_instruction_loop FUNC_START(thirty_two_instruction_loop)
.type .thirty_two_instruction_loop,@function cmpdi r3,0
.section ".opd","aw",@progbits
thirty_two_instruction_loop:
.quad .thirty_two_instruction_loop, .TOC.@tocbase, 0
.previous
.thirty_two_instruction_loop:
cmpwi %r3,0
beqlr beqlr
addi %r4,%r3,1 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 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 addi r4,r4,1 # 28 addi's
subi %r3,%r3,1 subi r3,r3,1
b .thirty_two_instruction_loop b FUNC_NAME(thirty_two_instruction_loop)
FUNC_END(thirty_two_instruction_loop)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment