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
/
movw9.cgs
1
# sh testcase for mov.w @($imm8x2, gbr), r0 -*- Asm -*-
2
# mach: all
3
# as: -isa=shcompact
4
# ld: -m shelf32
5
6
.include "compact/testutils.inc"
7
8
start
9
mov #30, r0
10
shll8 r0
11
ldc r0, gbr
12
13
# Store something first.
14
# Build up a distinctive bit pattern.
15
mov #1, r0
16
shll8 r0
17
add #12, r0
18
# Preserve r0.
19
mov r0, r7
20
mov.w r0, @(12, gbr)
21
22
check:
23
# Load it back.
24
mov.w @(12, gbr), r0
25
shll16 r0
26
shll16 r7
27
cmp/eq r0, r7
28
bf wrong
29
30
okay:
31
pass
32
wrong:
33
fail
This page took
0.037205 seconds
and
4
git commands to generate.