projects
/
external
/
binutils.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
daily update
[external/binutils.git]
/
sim
/
testsuite
/
sim
/
sh64
/
compact
/
movb3.cgs
1
# sh testcase for mov.b $rm, @(r0,$rn) -*- Asm -*-
2
# mach: all
3
# as: -isa=shcompact
4
# ld: -m shelf32
5
6
.include "compact/testutils.inc"
7
8
start
9
mov #40, r2
10
shll8 r2
11
mov #3, r1
12
mov #0, r0
13
or #170, r0
14
mov r0, r3
15
mov r2, r0
16
mov.b r3, @(r0, r1)
17
18
# Load the value back into a different register.
19
mov.b @(r0, r1), r4
20
# Check the lowest order byte matches the stored value.
21
mov r4, r0
22
and #255, r0
23
cmp/eq r0, r3
24
bf wrong
25
26
okay:
27
pass
28
29
wrong:
30
fail