* Contribute Hitachi SH5 simulator.
[deliverable/binutils-gdb.git] / sim / testsuite / sim / sh64 / compact / movl5.cgs
1 # sh testcase for mov.l $rm, @($imm4x4, $rn) -*- Asm -*-
2 # mach: all
3 # as: -isa=shcompact
4 # ld: -m shelf32
5
6 .include "compact/testutils.inc"
7
8 start
9
10 setaddr:
11 mov #30, r1
12 shll8 r1
13
14 init:
15 # Build up a distinctive bit pattern.
16 mov #1, r0
17 shll8 r0
18 add #12, r0
19 shll8 r0
20 add #85, r0
21 shll8 r0
22 add #170, r0
23 # Preserve.
24 mov r0, r7
25
26 mov.l r0, @(4, r1)
27 check:
28 # Load it back.
29 mov.l @(4, r1), r0
30 cmp/eq r7, r0
31 bf wrong
32
33 okay:
34 pass
35
36 wrong:
37 fail
This page took 0.030566 seconds and 4 git commands to generate.