sim: clean up stale AC_PREREQ refs
[deliverable/binutils-gdb.git] / sim / testsuite / sim / sh64 / compact / movl2.cgs
CommitLineData
cbb38b47
BE
1# sh testcase for mov.l $rm, @-$rn -*- Asm -*-
2# mach: all
3# as: -isa=shcompact
4# ld: -m shelf32
5
6 .include "compact/testutils.inc"
7
8 start
9
10 mov #30, r1
11 shll8 r1
12 # Save address.
13 mov r1, r7
14
15init:
16 # Build up a distinctive bit pattern.
17 mov #1, r2
18 shll8 r2
19 add #12, r2
20 shll8 r2
21 add #85, r2
22 shll8 r2
23 add #170, r2
24 mov.l r2, @-r1
25
26check:
27 # Compare the value loaded into another reg.
28 mov.l @r1, r3
29 cmp/eq r2, r3
30 bf wrong
31
32dec:
33 # Ensure address is decremented.
34 mov #4, r6
35 sub r6, r7
36 cmp/eq r1, r7
37 bf wrong
38
39okay:
40 pass
41
42wrong:
43 fail
This page took 0.832399 seconds and 4 git commands to generate.