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
/
compact
/
movl2.cgs
1
# sh testcase for mov.l $rm, @-$rn -*- Asm -*-
2
# mach: all
3
# as: -isa=shcompact
4
# ld: -m shelf32
5
6
.include "compact/testutils.inc"
7
8
start
9
10
mov #30, r1
11
shll8 r1
12
# Save address.
13
mov r1, r7
14
15
init:
16
# Build up a distinctive bit pattern.
17
mov #1, r2
18
shll8 r2
19
add #12, r2
20
shll8 r2
21
add #85, r2
22
shll8 r2
23
add #170, r2
24
mov.l r2, @-r1
25
26
check:
27
# Compare the value loaded into another reg.
28
mov.l @r1, r3
29
cmp/eq r2, r3
30
bf wrong
31
32
dec:
33
# Ensure address is decremented.
34
mov #4, r6
35
sub r6, r7
36
cmp/eq r1, r7
37
bf wrong
38
39
okay:
40
pass
41
42
wrong:
43
fail
This page took
0.031258 seconds
and
4
git commands to generate.