xref: /netbsd-src/external/gpl3/gdb/dist/sim/testsuite/m32r/cmpu.cgs (revision 4b169a6ba595ae283ca507b26b15fdff40495b1c)
1# m32r testcase for cmpu $src1,$src2
2# mach(): m32r m32rx
3
4	.include "testutils.inc"
5
6	start
7
8	.global cmpu
9cmpu:
10	mvi_h_condbit 0
11	mvi_h_gr r4, 1
12	mvi_h_gr r5, -2
13	cmpu r4, r5
14	bc ok
15not_ok:
16	fail
17ok:
18	mvi_h_condbit 1
19	mvi_h_gr r4, -1
20	cmpu r4, r5
21	bc not_ok
22
23	pass
24