repo.or.cz
/
valgrind.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
git-HOWTO.txt: Add to repository
[valgrind.git]
/
exp-bbv
/
tests
/
arm-linux
/
million.S
blob
a522f833923f9b1070e415e9f5b70eed2483517c
1
2
# count for 1 million instructions
3
# total is 1 + 333332*3 + 2
4
5
6
# Sycscalls
7
.equ SYSCALL_EXIT, 1
8
9
.globl _start
10
_start:
11
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
18
19
@================================
20
@ Exit
21
@================================
22
exit:
23
mov r0,#0 @ result is zero
24
mov r7,#SYSCALL_EXIT
25
swi 0x0 @ and exit
26
27
count: .word 333332