xref: /netbsd-src/external/gpl3/gdb/dist/sim/testsuite/cr16/pop3.cgs (revision 4b169a6ba595ae283ca507b26b15fdff40495b1c)
1# cr16 testcase for pop RA insns.
2# mach:	 cr16
3
4	.include "testutils.inc"
5
6	start
7
8	.global pop3
9pop3:
10	movd $0x1006, (sp)
11	movd $0xabcd, (r3,r2)
12	stord (r3,r2), 0x1006
13	pop RA
14
15
16	cmpd $0xabcd, (ra)
17	beq ok
18	br not_ok
19not_ok:
20	fail
21ok:
22	pass
23
24
25