aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/cr16/bcc.cgs
blob: b0bee2b455d7fa61d3482b56d0e6d5a5e1a5895c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# cr16 testcase for beq disp16
# mach(): cr16

	.include "testutils.inc"

	start

	.global beq
beq:
	mvi_h_condbit 0
	movw $12, r4
	movw $10, r5
	cmpw r4, r5
	bcc ok
not_ok:
	fail
ok:
	movw $11, r5
	cmpw r4, r5
	beq not_ok

	pass