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