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

23 lines
491 B
ArmAsm

# count for 1 million instructions
# total is 2 + 1 + 499997*2 + 3
.globl _start
_start:
xor %rcx,%rcx # not needed, pads total to 1M
xor %rax,%rax # not needed, pads total to 1M
mov $499997,%rcx # load counter
test_loop:
dec %rcx # repeat count times
jnz test_loop
#================================
# Exit
#================================
exit:
xor %rdi,%rdi # we return 0
mov $60,%rax # put exit syscall number (60) in rax
syscall