projects
/
deliverable
/
binutils-gdb.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
* Contribute Hitachi SH5 simulator.
[deliverable/binutils-gdb.git]
/
sim
/
testsuite
/
sim
/
sh64
/
media
/
byterev.cgs
1
# sh testcase for byterev $rm, $rd -*- Asm -*-
2
# mach: all
3
# as: -isa=shmedia
4
# ld: -m shelf64
5
6
.include "media/testutils.inc"
7
8
start
9
pta wrong, tr0
10
init:
11
# Put a distinctive pattern in r0.
12
movi 10, r0
13
shlli r0, 8, r0
14
ori r0, 20, r0
15
shlli r0, 8, r0
16
ori r0, 30, r0
17
shlli r0, 8, r0
18
ori r0, 40, r0
19
shlli r0, 8, r0
20
ori r0, 50, r0
21
shlli r0, 8, r0
22
ori r0, 60, r0
23
shlli r0, 8, r0
24
ori r0, 70, r0
25
shlli r0, 8, r0
26
ori r0, 80, r0
27
28
byterev:
29
byterev r0, r1
30
31
check:
32
andi r1, 255, r2
33
movi 10, r3
34
bne r2, r3, tr0
35
shlri r1, 8, r1
36
andi r1, 255, r2
37
movi 20, r3
38
bne r2, r3, tr0
39
shlri r1, 8, r1
40
andi r1, 255, r2
41
movi 30, r3
42
bne r2, r3, tr0
43
shlri r1, 8, r1
44
andi r1, 255, r2
45
movi 40, r3
46
bne r2, r3, tr0
47
shlri r1, 8, r1
48
andi r1, 255, r2
49
movi 50, r3
50
bne r2, r3, tr0
51
shlri r1, 8, r1
52
andi r1, 255, r2
53
movi 60, r3
54
bne r2, r3, tr0
55
shlri r1, 8, r1
56
andi r1, 255, r2
57
movi 70, r3
58
bne r2, r3, tr0
59
shlri r1, 8, r1
60
andi r1, 255, r2
61
movi 80, r3
62
bne r2, r3, tr0
63
64
okay:
65
pass
66
wrong:
67
fail
This page took
0.032104 seconds
and
5
git commands to generate.