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