mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-06 19:54:18 +00:00
failures, but they can be fixed up in-repo. This resolves bug 198395. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10444
23 lines
491 B
ArmAsm
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
|
|
|