summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/pmu/loop.S
blob: 8820e3df144460e3dc44d60af83c25443755bd4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
 * Copyright 2013, Michael Ellerman, IBM Corp.
 * Licensed under GPLv2.
 */

	.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
	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
OpenPOWER on IntegriCloud