git-HOWTO.txt: Add to repository
[valgrind.git] / exp-bbv / tests / arm-linux / million.S
bloba522f833923f9b1070e415e9f5b70eed2483517c
2              # count for 1 million instructions
3              #   total is 1 + 333332*3 + 2
6 # Sycscalls
7 .equ SYSCALL_EXIT,      1
9         .globl _start   
10 _start: 
12        ldr     r2,count                        @ set count
13        
14 big_loop:
15        add     r2,r2,#-1
16        cmp     r2,#0
17        bne     big_loop                        @ repeat till zero
19         @================================
20         @ Exit
21         @================================
22 exit:
23         mov     r0,#0                           @ result is zero
24         mov     r7,#SYSCALL_EXIT
25         swi     0x0                             @ and exit
27 count:       .word 333332