1;; This test is meant to exercise every unusual reloc supported
2;; by the mrisc port.  (Ok, so there's only one so far.  :P)
3
4	.text
5text:
6	.global _start
7_start:
8	add R1,R1,R3
9
10; Make sure local fixups work.
11local:
12        jmp (dummy2-dummy1)
13
14; Test the PC16 reloc.
15none:
16	 or R0,R0,R0 ;nop to conform to scheduling restrictions
17	 jmp local
18
19; Test the %hi16 and %lo16 relocs
20addui R1,R2,#%hi16(d2)
21addui R1,R2,#%lo16(d2)
22addui R1,R2,#%hi16(65536)
23addui R1,R2,#%lo16(65536)
24addui R1,R2,#%hi16($FFFFEEEE)
25addui R1,R2,#%lo16($FFFFEEEE)
26
27dummy1: addui R1, R2, #5
28dummy2: addui R1, R2, #6
29
30	.data
31d1:	.byte $f
32