projects
/
binutils-gdb.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
2e0bf48e827bb455e361f31136fabbd8331437bc
[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