xref: /netbsd-src/external/gpl3/gdb/dist/sim/testsuite/cr16/jhs.cgs (revision 4b169a6ba595ae283ca507b26b15fdff40495b1c)
1# cr16 testcase for jhs (regp)
2# mach(): cr16
3
4	.include "testutils.inc"
5
6	start
7
8	.global jhs
9jhs:
10	movd $ok, (r7,r6)
11        lshd $-1, (r7,r6)
12
13	mvi_h_condbit 0
14	movw $1, r4
15	movw $2, r5
16	subw r4, r5
17	jhs (r7,r6)
18not_ok:
19	fail
20ok:
21	pass
22