1 #objdump: -dr --prefix-addresses --show-raw-insn
2 #skip: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix* *-*-vxworks
3 #name: Group relocation tests (ldr)
4 
5 .*: +file format .*arm.*
6 
7 Disassembly of section .text:
8 0[0-9a-f]+ <[^>]+> e5900fff 	ldr	r0, \[r0, #4095\].*
9 			0: R_ARM_LDR_PC_G0	f
10 0[0-9a-f]+ <[^>]+> e5900fff 	ldr	r0, \[r0, #4095\].*
11 			4: R_ARM_LDR_PC_G1	f
12 0[0-9a-f]+ <[^>]+> e5900fff 	ldr	r0, \[r0, #4095\].*
13 			8: R_ARM_LDR_PC_G2	f
14 0[0-9a-f]+ <[^>]+> e5900fff 	ldr	r0, \[r0, #4095\].*
15 			c: R_ARM_LDR_SB_G0	f
16 0[0-9a-f]+ <[^>]+> e5900fff 	ldr	r0, \[r0, #4095\].*
17 			10: R_ARM_LDR_SB_G1	f
18 0[0-9a-f]+ <[^>]+> e5900fff 	ldr	r0, \[r0, #4095\].*
19 			14: R_ARM_LDR_SB_G2	f
20 0[0-9a-f]+ <[^>]+> e5800fff 	str	r0, \[r0, #4095\].*
21 			18: R_ARM_LDR_PC_G0	f
22 0[0-9a-f]+ <[^>]+> e5800fff 	str	r0, \[r0, #4095\].*
23 			1c: R_ARM_LDR_PC_G1	f
24 0[0-9a-f]+ <[^>]+> e5800fff 	str	r0, \[r0, #4095\].*
25 			20: R_ARM_LDR_PC_G2	f
26 0[0-9a-f]+ <[^>]+> e5800fff 	str	r0, \[r0, #4095\].*
27 			24: R_ARM_LDR_SB_G0	f
28 0[0-9a-f]+ <[^>]+> e5800fff 	str	r0, \[r0, #4095\].*
29 			28: R_ARM_LDR_SB_G1	f
30 0[0-9a-f]+ <[^>]+> e5800fff 	str	r0, \[r0, #4095\].*
31 			2c: R_ARM_LDR_SB_G2	f
32 0[0-9a-f]+ <[^>]+> e5d00fff 	ldrb	r0, \[r0, #4095\].*
33 			30: R_ARM_LDR_PC_G0	f
34 0[0-9a-f]+ <[^>]+> e5d00fff 	ldrb	r0, \[r0, #4095\].*
35 			34: R_ARM_LDR_PC_G1	f
36 0[0-9a-f]+ <[^>]+> e5d00fff 	ldrb	r0, \[r0, #4095\].*
37 			38: R_ARM_LDR_PC_G2	f
38 0[0-9a-f]+ <[^>]+> e5d00fff 	ldrb	r0, \[r0, #4095\].*
39 			3c: R_ARM_LDR_SB_G0	f
40 0[0-9a-f]+ <[^>]+> e5d00fff 	ldrb	r0, \[r0, #4095\].*
41 			40: R_ARM_LDR_SB_G1	f
42 0[0-9a-f]+ <[^>]+> e5d00fff 	ldrb	r0, \[r0, #4095\].*
43 			44: R_ARM_LDR_SB_G2	f
44 0[0-9a-f]+ <[^>]+> e5c00fff 	strb	r0, \[r0, #4095\].*
45 			48: R_ARM_LDR_PC_G0	f
46 0[0-9a-f]+ <[^>]+> e5c00fff 	strb	r0, \[r0, #4095\].*
47 			4c: R_ARM_LDR_PC_G1	f
48 0[0-9a-f]+ <[^>]+> e5c00fff 	strb	r0, \[r0, #4095\].*
49 			50: R_ARM_LDR_PC_G2	f
50 0[0-9a-f]+ <[^>]+> e5c00fff 	strb	r0, \[r0, #4095\].*
51 			54: R_ARM_LDR_SB_G0	f
52 0[0-9a-f]+ <[^>]+> e5c00fff 	strb	r0, \[r0, #4095\].*
53 			58: R_ARM_LDR_SB_G1	f
54 0[0-9a-f]+ <[^>]+> e5c00fff 	strb	r0, \[r0, #4095\].*
55 			5c: R_ARM_LDR_SB_G2	f
56 0[0-9a-f]+ <[^>]+> e5100fff 	ldr	r0, \[r0, #-4095\].*
57 			60: R_ARM_LDR_PC_G0	f
58 0[0-9a-f]+ <[^>]+> e5100fff 	ldr	r0, \[r0, #-4095\].*
59 			64: R_ARM_LDR_PC_G1	f
60 0[0-9a-f]+ <[^>]+> e5100fff 	ldr	r0, \[r0, #-4095\].*
61 			68: R_ARM_LDR_PC_G2	f
62 0[0-9a-f]+ <[^>]+> e5100fff 	ldr	r0, \[r0, #-4095\].*
63 			6c: R_ARM_LDR_SB_G0	f
64 0[0-9a-f]+ <[^>]+> e5100fff 	ldr	r0, \[r0, #-4095\].*
65 			70: R_ARM_LDR_SB_G1	f
66 0[0-9a-f]+ <[^>]+> e5100fff 	ldr	r0, \[r0, #-4095\].*
67 			74: R_ARM_LDR_SB_G2	f
68 0[0-9a-f]+ <[^>]+> e5000fff 	str	r0, \[r0, #-4095\].*
69 			78: R_ARM_LDR_PC_G0	f
70 0[0-9a-f]+ <[^>]+> e5000fff 	str	r0, \[r0, #-4095\].*
71 			7c: R_ARM_LDR_PC_G1	f
72 0[0-9a-f]+ <[^>]+> e5000fff 	str	r0, \[r0, #-4095\].*
73 			80: R_ARM_LDR_PC_G2	f
74 0[0-9a-f]+ <[^>]+> e5000fff 	str	r0, \[r0, #-4095\].*
75 			84: R_ARM_LDR_SB_G0	f
76 0[0-9a-f]+ <[^>]+> e5000fff 	str	r0, \[r0, #-4095\].*
77 			88: R_ARM_LDR_SB_G1	f
78 0[0-9a-f]+ <[^>]+> e5000fff 	str	r0, \[r0, #-4095\].*
79 			8c: R_ARM_LDR_SB_G2	f
80 0[0-9a-f]+ <[^>]+> e5500fff 	ldrb	r0, \[r0, #-4095\].*
81 			90: R_ARM_LDR_PC_G0	f
82 0[0-9a-f]+ <[^>]+> e5500fff 	ldrb	r0, \[r0, #-4095\].*
83 			94: R_ARM_LDR_PC_G1	f
84 0[0-9a-f]+ <[^>]+> e5500fff 	ldrb	r0, \[r0, #-4095\].*
85 			98: R_ARM_LDR_PC_G2	f
86 0[0-9a-f]+ <[^>]+> e5500fff 	ldrb	r0, \[r0, #-4095\].*
87 			9c: R_ARM_LDR_SB_G0	f
88 0[0-9a-f]+ <[^>]+> e5500fff 	ldrb	r0, \[r0, #-4095\].*
89 			a0: R_ARM_LDR_SB_G1	f
90 0[0-9a-f]+ <[^>]+> e5500fff 	ldrb	r0, \[r0, #-4095\].*
91 			a4: R_ARM_LDR_SB_G2	f
92 0[0-9a-f]+ <[^>]+> e5400fff 	strb	r0, \[r0, #-4095\].*
93 			a8: R_ARM_LDR_PC_G0	f
94 0[0-9a-f]+ <[^>]+> e5400fff 	strb	r0, \[r0, #-4095\].*
95 			ac: R_ARM_LDR_PC_G1	f
96 0[0-9a-f]+ <[^>]+> e5400fff 	strb	r0, \[r0, #-4095\].*
97 			b0: R_ARM_LDR_PC_G2	f
98 0[0-9a-f]+ <[^>]+> e5400fff 	strb	r0, \[r0, #-4095\].*
99 			b4: R_ARM_LDR_SB_G0	f
100 0[0-9a-f]+ <[^>]+> e5400fff 	strb	r0, \[r0, #-4095\].*
101 			b8: R_ARM_LDR_SB_G1	f
102 0[0-9a-f]+ <[^>]+> e5400fff 	strb	r0, \[r0, #-4095\].*
103 			bc: R_ARM_LDR_SB_G2	f
104 0[0-9a-f]+ <[^>]+> e5900fff 	ldr	r0, \[r0, #4095\].*
105 			c0: R_ARM_LDR_PC_G0	localsym
106 0[0-9a-f]+ <[^>]+> e5900fff 	ldr	r0, \[r0, #4095\].*
107 			c4: R_ARM_LDR_PC_G1	localsym
108 0[0-9a-f]+ <[^>]+> e5900fff 	ldr	r0, \[r0, #4095\].*
109 			c8: R_ARM_LDR_PC_G2	localsym
110 0[0-9a-f]+ <[^>]+> e5900fff 	ldr	r0, \[r0, #4095\].*
111 			cc: R_ARM_LDR_SB_G0	localsym
112 0[0-9a-f]+ <[^>]+> e5900fff 	ldr	r0, \[r0, #4095\].*
113 			d0: R_ARM_LDR_SB_G1	localsym
114 0[0-9a-f]+ <[^>]+> e5900fff 	ldr	r0, \[r0, #4095\].*
115 			d4: R_ARM_LDR_SB_G2	localsym
116 0[0-9a-f]+ <[^>]+> e5800fff 	str	r0, \[r0, #4095\].*
117 			d8: R_ARM_LDR_PC_G0	localsym
118 0[0-9a-f]+ <[^>]+> e5800fff 	str	r0, \[r0, #4095\].*
119 			dc: R_ARM_LDR_PC_G1	localsym
120 0[0-9a-f]+ <[^>]+> e5800fff 	str	r0, \[r0, #4095\].*
121 			e0: R_ARM_LDR_PC_G2	localsym
122 0[0-9a-f]+ <[^>]+> e5800fff 	str	r0, \[r0, #4095\].*
123 			e4: R_ARM_LDR_SB_G0	localsym
124 0[0-9a-f]+ <[^>]+> e5800fff 	str	r0, \[r0, #4095\].*
125 			e8: R_ARM_LDR_SB_G1	localsym
126 0[0-9a-f]+ <[^>]+> e5800fff 	str	r0, \[r0, #4095\].*
127 			ec: R_ARM_LDR_SB_G2	localsym
128 0[0-9a-f]+ <[^>]+> e5d00fff 	ldrb	r0, \[r0, #4095\].*
129 			f0: R_ARM_LDR_PC_G0	localsym
130 0[0-9a-f]+ <[^>]+> e5d00fff 	ldrb	r0, \[r0, #4095\].*
131 			f4: R_ARM_LDR_PC_G1	localsym
132 0[0-9a-f]+ <[^>]+> e5d00fff 	ldrb	r0, \[r0, #4095\].*
133 			f8: R_ARM_LDR_PC_G2	localsym
134 0[0-9a-f]+ <[^>]+> e5d00fff 	ldrb	r0, \[r0, #4095\].*
135 			fc: R_ARM_LDR_SB_G0	localsym
136 0[0-9a-f]+ <[^>]+> e5d00fff 	ldrb	r0, \[r0, #4095\].*
137 			100: R_ARM_LDR_SB_G1	localsym
138 0[0-9a-f]+ <[^>]+> e5d00fff 	ldrb	r0, \[r0, #4095\].*
139 			104: R_ARM_LDR_SB_G2	localsym
140 0[0-9a-f]+ <[^>]+> e5c00fff 	strb	r0, \[r0, #4095\].*
141 			108: R_ARM_LDR_PC_G0	localsym
142 0[0-9a-f]+ <[^>]+> e5c00fff 	strb	r0, \[r0, #4095\].*
143 			10c: R_ARM_LDR_PC_G1	localsym
144 0[0-9a-f]+ <[^>]+> e5c00fff 	strb	r0, \[r0, #4095\].*
145 			110: R_ARM_LDR_PC_G2	localsym
146 0[0-9a-f]+ <[^>]+> e5c00fff 	strb	r0, \[r0, #4095\].*
147 			114: R_ARM_LDR_SB_G0	localsym
148 0[0-9a-f]+ <[^>]+> e5c00fff 	strb	r0, \[r0, #4095\].*
149 			118: R_ARM_LDR_SB_G1	localsym
150 0[0-9a-f]+ <[^>]+> e5c00fff 	strb	r0, \[r0, #4095\].*
151 			11c: R_ARM_LDR_SB_G2	localsym
152 0[0-9a-f]+ <[^>]+> e5100fff 	ldr	r0, \[r0, #-4095\].*
153 			120: R_ARM_LDR_PC_G0	localsym
154 0[0-9a-f]+ <[^>]+> e5100fff 	ldr	r0, \[r0, #-4095\].*
155 			124: R_ARM_LDR_PC_G1	localsym
156 0[0-9a-f]+ <[^>]+> e5100fff 	ldr	r0, \[r0, #-4095\].*
157 			128: R_ARM_LDR_PC_G2	localsym
158 0[0-9a-f]+ <[^>]+> e5100fff 	ldr	r0, \[r0, #-4095\].*
159 			12c: R_ARM_LDR_SB_G0	localsym
160 0[0-9a-f]+ <[^>]+> e5100fff 	ldr	r0, \[r0, #-4095\].*
161 			130: R_ARM_LDR_SB_G1	localsym
162 0[0-9a-f]+ <[^>]+> e5100fff 	ldr	r0, \[r0, #-4095\].*
163 			134: R_ARM_LDR_SB_G2	localsym
164 0[0-9a-f]+ <[^>]+> e5000fff 	str	r0, \[r0, #-4095\].*
165 			138: R_ARM_LDR_PC_G0	localsym
166 0[0-9a-f]+ <[^>]+> e5000fff 	str	r0, \[r0, #-4095\].*
167 			13c: R_ARM_LDR_PC_G1	localsym
168 0[0-9a-f]+ <[^>]+> e5000fff 	str	r0, \[r0, #-4095\].*
169 			140: R_ARM_LDR_PC_G2	localsym
170 0[0-9a-f]+ <[^>]+> e5000fff 	str	r0, \[r0, #-4095\].*
171 			144: R_ARM_LDR_SB_G0	localsym
172 0[0-9a-f]+ <[^>]+> e5000fff 	str	r0, \[r0, #-4095\].*
173 			148: R_ARM_LDR_SB_G1	localsym
174 0[0-9a-f]+ <[^>]+> e5000fff 	str	r0, \[r0, #-4095\].*
175 			14c: R_ARM_LDR_SB_G2	localsym
176 0[0-9a-f]+ <[^>]+> e5500fff 	ldrb	r0, \[r0, #-4095\].*
177 			150: R_ARM_LDR_PC_G0	localsym
178 0[0-9a-f]+ <[^>]+> e5500fff 	ldrb	r0, \[r0, #-4095\].*
179 			154: R_ARM_LDR_PC_G1	localsym
180 0[0-9a-f]+ <[^>]+> e5500fff 	ldrb	r0, \[r0, #-4095\].*
181 			158: R_ARM_LDR_PC_G2	localsym
182 0[0-9a-f]+ <[^>]+> e5500fff 	ldrb	r0, \[r0, #-4095\].*
183 			15c: R_ARM_LDR_SB_G0	localsym
184 0[0-9a-f]+ <[^>]+> e5500fff 	ldrb	r0, \[r0, #-4095\].*
185 			160: R_ARM_LDR_SB_G1	localsym
186 0[0-9a-f]+ <[^>]+> e5500fff 	ldrb	r0, \[r0, #-4095\].*
187 			164: R_ARM_LDR_SB_G2	localsym
188 0[0-9a-f]+ <[^>]+> e5400fff 	strb	r0, \[r0, #-4095\].*
189 			168: R_ARM_LDR_PC_G0	localsym
190 0[0-9a-f]+ <[^>]+> e5400fff 	strb	r0, \[r0, #-4095\].*
191 			16c: R_ARM_LDR_PC_G1	localsym
192 0[0-9a-f]+ <[^>]+> e5400fff 	strb	r0, \[r0, #-4095\].*
193 			170: R_ARM_LDR_PC_G2	localsym
194 0[0-9a-f]+ <[^>]+> e5400fff 	strb	r0, \[r0, #-4095\].*
195 			174: R_ARM_LDR_SB_G0	localsym
196 0[0-9a-f]+ <[^>]+> e5400fff 	strb	r0, \[r0, #-4095\].*
197 			178: R_ARM_LDR_SB_G1	localsym
198 0[0-9a-f]+ <[^>]+> e5400fff 	strb	r0, \[r0, #-4095\].*
199 			17c: R_ARM_LDR_SB_G2	localsym
200 0[0-9a-f]+ <[^>]+> e3a00000 	mov	r0, #0
201