提交 0a6121cf 编写于 作者: M Michael Ellerman 提交者: Benjamin Herrenschmidt

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

Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
上级 3df48c98
......@@ -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)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册