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