projects
/
deliverable
/
binutils-gdb.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
sim: clean up stale AC_PREREQ refs
[deliverable/binutils-gdb.git]
/
sim
/
testsuite
/
sim
/
sh64
/
compact
/
tst.cgs
1
# sh testcase for tst $rm, $rn
2
# mach: all
3
# as: -isa=shcompact
4
# ld: -m shelf32
5
6
.include "compact/testutils.inc"
7
8
start
9
10
.global tst1
11
tst1:
12
mov #0, r0
13
mov #0, r1
14
tst r0, r0
15
bf wrong
16
17
test2:
18
mov #0, r0
19
mov #1, r1
20
tst r0, r1
21
bf wrong
22
23
test3:
24
mov #0, r0
25
mov #1, r1
26
tst r1, r0
27
bf wrong
28
29
test4:
30
mov #1, r0
31
mov #1, r1
32
tst r0, r1
33
bt wrong
34
35
test5:
36
mov #1, r0
37
rotr r0
38
add #85, r0
39
shll16 r0
40
add #12, r0
41
mov #1, r1
42
rotr r1
43
add #85, r1
44
shll16 r1
45
add #12, r1
46
tst r0, r1
47
bt wrong
48
49
test6:
50
mov #1, r0
51
rotr r0
52
add #85, r0
53
shll16 r0
54
add #12, r0
55
mov #1, r1
56
tst r0, r1
57
bf wrong
58
59
okay:
60
pass
61
wrong:
62
fail
This page took
0.032679 seconds
and
4
git commands to generate.