]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/testsuite/sim/m32r/cmpui.cgs
Initial creation of sourceware repository
[thirdparty/binutils-gdb.git] / sim / testsuite / sim / m32r / cmpui.cgs
1 # m32r testcase for cmpui $src2,#$simm16
2 # mach(): m32r m32rx
3
4 .include "testutils.inc"
5
6 start
7
8 .global cmpui
9 cmpui:
10 mvi_h_condbit 0
11 mvi_h_gr r4, 1
12 cmpui r4, #2
13 bc ok
14 not_ok:
15 fail
16 ok:
17 mvi_h_condbit 1
18 mvi_h_gr r4, -1
19 cmpui r4, #2
20 bc not_ok
21
22 pass