]>
Commit | Line | Data |
---|---|---|
cbb38b47 BE |
1 | # sh testcase for mova @($imm8x4, pc), r0 -*- Asm -*- |
2 | # mach: all | |
3 | # as: -isa=shcompact | |
4 | # ld: -m shelf32 | |
5 | ||
6 | .include "compact/testutils.inc" | |
7 | ||
8 | start | |
9 | ||
10 | .global mova | |
11 | mova: | |
12 | mova @(40, pc), r0 | |
13 | mov #16, r1 | |
14 | shll8 r1 | |
15 | add #40, r1 | |
16 | cmp/eq r0, r1 | |
17 | bf wrong | |
18 | mova @(12, pc), r0 | |
19 | mov #16, r1 | |
20 | shll8 r1 | |
21 | add #24, r1 | |
22 | cmp/eq r0, r1 | |
23 | bf wrong | |
24 | ||
25 | okay: | |
26 | pass | |
27 | ||
28 | wrong: | |
29 | fail |