blob: e334e86ff89162da5faa02ad1f91cdbb877aee07 [file] [log] [blame]
njndbebecc2009-07-14 01:39:54 +00001
2 # count for 1 million instructions
3 # total is 3 + 499997*2 + 3
4
5 .globl _start
6_start:
7 nop # to give us an even million
8 lis 15,499997@ha # load high 16-bits of counter
9 addi 15,15,499997@l # load low 16-bits of counter
10test_loop:
11 addic. 15,15,-1 # decrement counter
12 bne 0,test_loop # loop until zero
13
14 #================================
15 # Exit
16 #================================
17
18exit:
19 li 3,0 # 0 exit value
20 li 0,1 # put the exit syscall number (1) in r0
21 sc # and exit
22
23