Nicholas Nethercote 9c040c96bf Add exp-bbv to the tool-suite. I'm seeing a couple of amd64-linux test
failures, but they can be fixed up in-repo.  This resolves bug 198395.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10444
2009-07-14 01:39:54 +00:00

24 lines
581 B
ArmAsm

# count for 1 million instructions
# total is 3 + 499997*2 + 3
.globl _start
_start:
nop # to give us an even million
lis 15,499997@ha # load high 16-bits of counter
addi 15,15,499997@l # load low 16-bits of counter
test_loop:
addic. 15,15,-1 # decrement counter
bne 0,test_loop # loop until zero
#================================
# Exit
#================================
exit:
li 3,0 # 0 exit value
li 0,1 # put the exit syscall number (1) in r0
sc # and exit