gvsu/cs672/ILP-example1.s
josh a6e8d33cb0 added files so i can delete them from my home directory
git-svn-id: svn://anubis/gvsu@429 45c1a28c-8058-47b2-ae61-ca45b979098e
2009-10-01 21:48:41 +00:00

12 lines
294 B
ArmAsm

addi r1, r0, #32 ; initialize loop counter
Loop: ld f0, 0(r1) ; get value from M into f0
addd f4, f0, f2 ; add to scalar in f2, result into f4
sd 0(r1), f4 ; store result back into M
subi r1, r1, #8 ; decrement array pointer
bnez r1, Loop ; branch if not done
nop
nop
nop
nop
trap #0