projects
/
deliverable
/
binutils-gdb.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
f55a223436b0380082b33159221f593f2e5d0d9f
[deliverable/binutils-gdb.git]
/
sim
/
testsuite
/
sim
/
sh64
/
compact
/
movb7.cgs
1
# sh testcase for mov.b @${rm}+, $rn -*- Asm -*-
2
# mach: all
3
# as: -isa=shcompact
4
# ld: -m shelf32
5
6
.include "compact/testutils.inc"
7
8
start
9
mov #30, r1
10
shll8 r1
11
# Store addr.
12
mov r1, r8
13
14
# Store something there first.
15
mov #0, r0
16
or #170, r0
17
mov r0, r7
18
mov.b r7, @r1
19
# Load it back.
20
mov.b @r1+, r2
21
mov r2, r0
22
and #255, r0
23
cmp/eq r7, r0
24
bf wrong
25
26
# Test address for post-incrementing.
27
add #1, r8
28
cmp/eq r8, r1
29
bf wrong
30
31
okay:
32
pass
33
wrong:
34
fail
35
This page took
0.03049 seconds
and
3
git commands to generate.