Commit | Line | Data |
---|---|---|
5e1f6430 HPN |
1 | # mach: crisv3 crisv8 crisv10 |
2 | # output: aaeebb11\nde378218\n | |
3 | ||
4 | # Test that the special case "X [pc+I],Y" works, where I byte-sized. | |
5 | ||
6 | .include "testutils.inc" | |
7 | start | |
8 | x: | |
9 | ; FIXME: Gas bugs are making this a bit harder than necessary. | |
10 | ; move.d [pc+y-(.+2)],r3 | |
11 | move.d [pc+8],r3 | |
12 | yy: | |
13 | jump zz | |
14 | ||
15 | y: | |
16 | .dword 0xaaeebb11 | |
17 | y2: | |
18 | .dword 0xde378218 | |
19 | ||
20 | zz: | |
21 | dumpr3 | |
22 | jump z | |
23 | quit | |
24 | ||
25 | ; Check a negative offset. | |
26 | .space 50 | |
27 | z: | |
28 | move.d [pc+y2-(.+2)],r3 | |
29 | dumpr3 | |
30 | quit |