aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/frv/grloop.ms
blob: 00609637a17a7787aa8f3e6c5a5f7e8a2a2f6af3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# mach: all
# output:

	.global _start
_start:
	setlo	0x0400,gr10
loop:	
	addicc	gr10,-1,gr10,icc0
	bne	icc0,0,loop
; exit (0)
	setlos	#0,gr8
	setlos	#1,gr7
	tira	gr0,#0