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
8x:
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
12yy:
13 jump zz
14
15y:
16 .dword 0xaaeebb11
17y2:
18 .dword 0xde378218
19
20zz:
21 dumpr3
22 jump z
23 quit
24
25; Check a negative offset.
26 .space 50
27z:
28 move.d [pc+y2-(.+2)],r3
29 dumpr3
30 quit
31