* Contribute Hitachi SH5 simulator.
[deliverable/binutils-gdb.git] / sim / testsuite / sim / sh64 / compact / cmppz.cgs
1 # sh testcase for cmp/pz $rn -*- Asm -*-
2 # mach: all
3 # as: -isa=shcompact
4 # ld: -m shelf32
5
6 .include "compact/testutils.inc"
7
8 start
9
10 zero:
11 mov #0, r0
12 cmp/pz r0
13 bf wrong
14
15 plus:
16 mov #10, r0
17 cmp/pz r0
18 bf wrong
19
20 minus:
21 mov #10, r0
22 neg r0, r0
23 cmp/pz r0
24 bt wrong
25
26 large:
27 mov #10, r0
28 shll8 r0
29 add #123, r0
30 cmp/pz r0
31 bf wrong
32
33 okay:
34 pass
35
36 wrong:
37 fail
This page took 0.02981 seconds and 4 git commands to generate.