1# Test C674x instructions generating PC-relative relocations.
2.text
3.nocmp
4.globl ext1
5.globl ext2
6.globl ext3
7.globl a1
8.globl b1
9.globl irp
10.globl nrp
11f:
12	nop
13	nop
14	nop
15	nop
16	nop
17	nop
18	nop
19	addkpc .S2 f,b1,3
20	[a2] addkpc .S2 f+4,b3,7
21	addkpc .S2 g,b4,0
22	addkpc .S2 ext1+8,b5,4
23g:
24	nop
25	nop
26	nop
27	nop
28	nop
29f2:
30	nop
31	nop
32	b .S2 ext3+4
33	b .S1 ext2
34	b .S2 (nrp)
35	b .S2 (irp)
36	b .S1 (a1)
37	b .S2 f2
38	[b2] b .S2 f2+4
39	b .S2 g2
40	b .S2 (b1)
41g2:
42	nop
43	nop
44	nop
45	nop
46	nop
47f3:
48	nop
49	nop
50	call .S2 ext3+4
51	call .S1 ext2
52	call .S2 (nrp)
53	call .S2 (irp)
54	call .S1 (a1)
55	call .S2 f3
56	[b2] call .S2 f3+4
57	call .S2 g3
58	call .S2 (b1)
59g3:
60	nop
61	nop
62	nop
63	nop
64	nop
65f4:
66	nop
67	nop
68	bdec .S2 ext3+4,b2
69	bdec .S1 ext2,a2
70	bdec .S2 (nrp),b2
71	bdec .S2 (irp),b2
72	bdec .S1 (a1),a2
73	bdec .S2 f4,b2
74	[!a1] bdec .S2 f4+4,b2
75	bdec .S2 g4,b2
76	bdec .S2 (b1),b2
77g4:
78	nop
79	nop
80	nop
81	nop
82	nop
83f5:
84	nop
85	nop
86	bpos .S2 ext3+4,b2
87	bpos .S1 ext2,a2
88	bpos .S2 (nrp),b2
89	bpos .S2 (irp),b2
90	bpos .S1 (a1),a2
91	bpos .S2 f5,b2
92	[!b1] bpos .S2 f5+4,b2
93	bpos .S2 g5,b2
94	bpos .S2 (b1),b2
95g5:
96	nop
97	nop
98	nop
99	nop
100	nop
101f6:
102	nop
103	nop
104	bnop .S2 ext3+4,0
105	bnop .S1 ext2,1
106	bnop (nrp),2
107	bnop .S2 (irp),3
108	bnop .S1 (a1),4
109	bnop .S2 f6,5
110	[!b1] bnop .S2 f6+4,6
111	bnop g6,7
112	bnop .S2 (b1),0
113g6:
114	nop
115	nop
116	nop
117	nop
118	nop
119f7:
120	nop
121	nop
122	callnop .S2 ext3+4,0
123	callnop .S1 ext2,1
124	callnop (nrp),2
125	callnop .S2 (irp),3
126	callnop .S1 (a1),4
127	callnop .S2 f7,5
128	[a0] callnop .S2 f7+4,6
129	callnop g7,7
130	callnop .S2 (b1),0
131g7:
132	nop
133	nop
134	nop
135	nop
136	nop
137f8:
138	nop
139	nop
140	callp .S2 ext3+4,b3
141	callp .S1 ext2,a3
142	callp .S1 (nrp),a3
143	callp .S2 (irp),b3
144	callp .S1 (a1),a3
145	callp .S2 f8,b3
146	callp .S2 f8+4,b3
147	callp .S1 g8,a3
148	callp .S2 (b1),b3
149g8:
150	nop
151	nop
152	nop
153	nop
154	nop
155f9:
156	nop
157	nop
158	callret .S2 ext3+4
159	callret .S1 ext2
160	callret .S2 (nrp)
161	callret .S2 (irp)
162	callret .S1 (a1)
163	callret .S2 f9
164	[b2] callret .S2 f9+4
165	callret .S2 g9
166	callret .S2 (b1)
167g9:
168	nop
169	nop
170	nop
171	nop
172	nop
173f10:
174	nop
175	nop
176	ret .S2 ext3+4
177	ret .S1 ext2
178	ret .S2 (nrp)
179	ret .S2 (irp)
180	ret .S1 (a1)
181	ret .S2 f10
182	[b2] ret .S2 f10+4
183	ret .S2 g10
184	ret .S2 (b1)
185g10:
186	nop
187	nop
188	nop
189	nop
190	nop
191f11:
192	nop
193	nop
194	retp .S2 ext3+4,b3
195	retp .S1 ext2,a3
196	retp .S1 (nrp),a3
197	retp .S2 (irp),b3
198	retp .S1 (a1),a3
199	retp .S2 f11,b3
200	retp .S2 f11+4,b3
201	retp .S1 g11,a3
202	retp .S2 (b1),b3
203g11:
204	nop
205	nop
206	nop
207	nop
208	nop
209g12:
210	.word 0x3014a120
211	.word 0x2010a120
212	.word 0x00000410
213	nop
214	nop
215	nop
216	nop
217	nop
218	nop
219	nop
220	nop
221	nop
222	nop
223	nop
224	.word 0x80801021
225	nop
226	nop
227	nop
228	nop
229	nop
230	nop
231	nop
232	nop
233	nop
234g13:
235	.word 0x3014a120
236	.word 0x2010a120
237	.word 0x00000410
238	nop
239	nop
240	nop
241	nop
242	.word 0xe0000000
243	nop
244	nop
245	nop
246	nop
247	nop
248	nop
249	.word 0x80801021
250	.word 0xe0000000
251