]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/testsuite/sim/sh64/compact/movw9.cgs
opcodes: bfin: simplify field width processing and fix build warnings
[thirdparty/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