summaryrefslogtreecommitdiff
path: root/sim/testsuite/sim/cr16/popret3.cgs
blob: 31aaa9b2aaf4a2c6dd91bb25b5aaabb1e8587dde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# cr16 testcase for popret RA insns.
# mach:	 cr16

	.include "testutils.inc"

	start

	.global popret3
popret3:
	movd $0x1006, (sp)
	movd $ok, (ra)
	lshd $-1, (ra)
	stord (ra), 0x1006
	popret RA

ok:
	pass