cd951aa22de4b70e5e011b5619e308f47f1dc39c
[binutils-gdb.git] / gas / ChangeLog
1 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
2
3 * config/tc-arm.c (do_mve_vqdmladh): New encoding function.
4 (insns): Add entries for MVE mnemonics.
5 * testsuite/gas/arm/mve-vqdmladh-bad.d: New test.
6 * testsuite/gas/arm/mve-vqdmladh-bad.l: New test.
7 * testsuite/gas/arm/mve-vqdmladh-bad.s: New test.
8 * testsuite/gas/arm/mve-vqdmlsdh-bad.d: New test.
9 * testsuite/gas/arm/mve-vqdmlsdh-bad.l: New test.
10 * testsuite/gas/arm/mve-vqdmlsdh-bad.s: New test.
11
12 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
13
14 * config/tc-arm.c (do_mve_vpsel): New encoding function.
15 (do_mve_vpnot): Likewise.
16 (insns): Add entries for MVE mnemonics.
17 * testsuite/gas/arm/mve-vpnot-bad.d: New test.
18 * testsuite/gas/arm/mve-vpnot-bad.l: New test.
19 * testsuite/gas/arm/mve-vpnot-bad.s: New test.
20 * testsuite/gas/arm/mve-vpsel-bad.d: New test.
21 * testsuite/gas/arm/mve-vpsel-bad.l: New test.
22 * testsuite/gas/arm/mve-vpsel-bad.s: New test.
23
24 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
25
26 * config/tc-arm.c (do_neon_mvn): Change to accept MVE variants.
27 (do_neon_sat_abs_neg): Likewise.
28 (insns): Likewise.
29 * testsuite/gas/arm/mve-vmvn-bad.d: New test.
30 * testsuite/gas/arm/mve-vmvn-bad.l: New test.
31 * testsuite/gas/arm/mve-vmvn-bad.s: New test.
32 * testsuite/gas/arm/mve-vqabsneg-bad.d: New test.
33 * testsuite/gas/arm/mve-vqabsneg-bad.l: New test.
34 * testsuite/gas/arm/mve-vqabsneg-bad.s: New test.
35
36 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
37
38 * config/tc-arm.c (do_mve_vmlas): New encoding function.
39 (do_mve_vmulh): Likewise.
40 (insns): Add entries for MVE mnemonics.
41 * testsuite/gas/arm/mve-vmlas-bad.d: New test.
42 * testsuite/gas/arm/mve-vmlas-bad.l: New test.
43 * testsuite/gas/arm/mve-vmlas-bad.s: New test.
44 * testsuite/gas/arm/mve-vmulh-bad.d: New test.
45 * testsuite/gas/arm/mve-vmulh-bad.l: New test.
46 * testsuite/gas/arm/mve-vmulh-bad.s: New test.
47
48 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
49
50 * config/tc-arm.c (enum operand_parse_code): New operand.
51 (parse_operands): Handle new operand.
52 (mve_encode_qqr): Handle new instructions.
53 (do_neon_dyadic_i64_su): Accept MVE variants.
54 (neon_dyadic_misc): Likewise.
55 (do_neon_mac_maybe_scalar): Likewise.
56 (do_neon_mul): Likewise.
57 (insns): Change to accept MVE variants.
58 * testsuite/gas/arm/mve-vmla-bad.d: New test.
59 * testsuite/gas/arm/mve-vmla-bad.l: New test.
60 * testsuite/gas/arm/mve-vmla-bad.s: New test.
61 * testsuite/gas/arm/mve-vmul-bad-1.d: New test.
62 * testsuite/gas/arm/mve-vmul-bad-1.l: New test.
63 * testsuite/gas/arm/mve-vmul-bad-1.s: New test.
64 * testsuite/gas/arm/mve-vmul-bad-2.d: New test.
65 * testsuite/gas/arm/mve-vmul-bad-2.l: New test.
66 * testsuite/gas/arm/mve-vmul-bad-2.s: New test.
67 * testsuite/gas/arm/mve-vqaddsub-bad.d: New test.
68 * testsuite/gas/arm/mve-vqaddsub-bad.l: New test.
69 * testsuite/gas/arm/mve-vqaddsub-bad.s: New test.
70
71 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
72
73 * config/tc-arm.c (M_MNEM_vmlaldav, M_MNEM_vmlaldava,
74 M_MNEM_vmlaldavx, M_MNEM_vmlaldavax, M_MNEM_vmlsldav,
75 M_MNEM_vmlsldava, M_MNEM_vmlsldavx, M_MNEM_vmlsldavax,
76 M_MNEM_vrmlaldavhx, M_MNEM_vrmlaldavhax, M_MNEM_vrmlsldavh,
77 M_MNEM_vrmlsldavha, M_MNEM_vrmlsldavhx, M_MNEM_vrmlsldavhax): New
78 instruction encodings.
79 (NEON_SHAPE_DEF): New shape
80 (mve_encode_rrqq): New encoding helper function.
81 (do_mve_vmlaldav): New encoding function.
82 (do_mve_vrmlaldavh): New encoding function.
83 (insns): Add entries for MVE mnemonics.
84 * testsuite/gas/arm/mve-vmlaldav-bad.d: New test.
85 * testsuite/gas/arm/mve-vmlaldav-bad.l: New test.
86 * testsuite/gas/arm/mve-vmlaldav-bad.s: New test.
87 * testsuite/gas/arm/mve-vmlalv-bad.d: New test.
88 * testsuite/gas/arm/mve-vmlalv-bad.l: New test.
89 * testsuite/gas/arm/mve-vmlalv-bad.s: New test.
90 * testsuite/gas/arm/mve-vmlsldav-bad.d: New test.
91 * testsuite/gas/arm/mve-vmlsldav-bad.l: New test.
92 * testsuite/gas/arm/mve-vmlsldav-bad.s: New test.
93 * testsuite/gas/arm/mve-vrmlaldavh-bad.d: New test.
94 * testsuite/gas/arm/mve-vrmlaldavh-bad.l: New test.
95 * testsuite/gas/arm/mve-vrmlaldavh-bad.s: New test.
96
97 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
98
99 * config/tc-arm.c (M_MNEM_vmaxv, M_MNEM_vmaxav, M_MNEM_vminv,
100 M_MNEM_vminav): New instruction encodings.
101 (do_mve_vmaxv): New encoding function.
102 (insns): Add entries for new MVE mnemonics.
103 * testsuite/gas/arm/mve-vmaxv-vminv-bad.d: New test.
104 * testsuite/gas/arm/mve-vmaxv-vminv-bad.l: New test.
105 * testsuite/gas/arm/mve-vmaxv-vminv-bad.s: New test.
106
107 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
108
109 * config/tc-arm.c (do_mve_vmaxnmv): New encoding function.
110 (insns): Add entries for new mnemonics.
111 * testsuite/gas/arm/mve-vmaxnmv-vminnmv-bad.d: New test.
112 * testsuite/gas/arm/mve-vmaxnmv-vminnmv-bad.l: New test.
113 * testsuite/gas/arm/mve-vmaxnmv-vminnmv-bad.s: New test.
114
115 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
116
117 * config/tc-arm.c (do_mve_vmaxa_vmina): New encoding function.
118 (do_mve_vmaxnma_vminnma): Likewise.
119 (do_neon_dyadic_if_su): Change to support MVE variants.
120 (do_vmaxnm): Likewise.
121 (insns): Change to accept MVE variants and add new.
122 * testsuite/gas/arm/mve-vmax-vmin-bad.d: New test.
123 * testsuite/gas/arm/mve-vmax-vmin-bad.l: New test.
124 * testsuite/gas/arm/mve-vmax-vmin-bad.s: New test.
125 * testsuite/gas/arm/mve-vmaxa-vmina-bad.d: New test.
126 * testsuite/gas/arm/mve-vmaxa-vmina-bad.l: New test.
127 * testsuite/gas/arm/mve-vmaxa-vmina-bad.s: New test.
128 * testsuite/gas/arm/mve-vmaxnm-vminnm-bad.d: New test.
129 * testsuite/gas/arm/mve-vmaxnm-vminnm-bad.l: New test.
130 * testsuite/gas/arm/mve-vmaxnm-vminnm-bad.s: New test.
131 * testsuite/gas/arm/mve-vmaxnma-vminnma-bad.d: New test.
132 * testsuite/gas/arm/mve-vmaxnma-vminnma-bad.l: New test.
133 * testsuite/gas/arm/mve-vmaxnma-vminnma-bad.s: New test.
134
135 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
136
137 * config/tc-arm.c (enum operand_parse_code): New operand.
138 (parse_operands): Handle new operand.
139 (mve_encode_qqr): Change to support new instructions.
140 (enum vfp_or_neon_is_neon_bits): Moved.
141 (vfp_or_neon_is_neon): Moved.
142 (check_simd_pred_availability): Moved.
143 (do_neon_dyadic_i_su): Changed to support MVE variants.
144 (neon_dyadic_misc): Changed mve_encode_qqr call.
145 (do_mve_vbrsr): Likewise.
146 (do_mve_vhcadd): New encoding function.
147 (insns): Change existing to accept MVE variants and add new.
148 * testsuite/gas/arm/mve-vhadd-vhsub-vrhadd-bad.d: New test.
149 * testsuite/gas/arm/mve-vhadd-vhsub-vrhadd-bad.l: New test.
150 * testsuite/gas/arm/mve-vhadd-vhsub-vrhadd-bad.s: New test.
151 * testsuite/gas/arm/mve-vhcadd-bad.d: New test.
152 * testsuite/gas/arm/mve-vhcadd-bad.l: New test.
153 * testsuite/gas/arm/mve-vhcadd-bad.s: New test.
154
155 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
156
157 * config/tc-arm.c (do_neon_fmac): Change to support MVE variants.
158 (insns): Change to accept MVE variants.
159 * testsuite/gas/arm/mve-vfma-vfms-bad.d: New test.
160 * testsuite/gas/arm/mve-vfma-vfms-bad.l: New test.
161 * testsuite/gas/arm/mve-vfma-vfms-bad.s: New test.
162
163 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
164
165 * config/tc-arm.c (M_MNEM_vddup, M_MNEM_vdwdup, M_MNEM_vidup,
166 M_MNEM_viwdup): New instruction encodings.
167 (NEON_SHAPE_DEF): New shapes.
168 (do_mve_viddup): New encoding function.
169 (do_neon_dup): Change to support new MVE variants.
170 (insns): Change existing to accept MVE variants and add new.
171 * testsuite/gas/arm/mve-vddup-bad.d: New test.
172 * testsuite/gas/arm/mve-vddup-bad.l: New test.
173 * testsuite/gas/arm/mve-vddup-bad.s: New test.
174 * testsuite/gas/arm/mve-vdup-bad.d: New test.
175 * testsuite/gas/arm/mve-vdup-bad.l: New test.
176 * testsuite/gas/arm/mve-vdup-bad.s: New test.
177 * testsuite/gas/arm/mve-vidup-bad.d: New test.
178 * testsuite/gas/arm/mve-vidup-bad.l: New test.
179 * testsuite/gas/arm/mve-vidup-bad.s: New test.
180
181 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
182
183 * config/tc-arm.c (do_mve_vfmas): New encoding function.
184 (do_neon_cls): Change to support MVE variants.
185 (do_neon_clz): Change to support MVE variants.
186 (insns): Change to support MVE variants and add new.
187 * testsuite/gas/arm/mve-vcls-bad.d: New test.
188 * testsuite/gas/arm/mve-vcls-bad.l: New test.
189 * testsuite/gas/arm/mve-vcls-bad.s: New test.
190 * testsuite/gas/arm/mve-vclz-bad.d: New test.
191 * testsuite/gas/arm/mve-vclz-bad.l: New test.
192 * testsuite/gas/arm/mve-vclz-bad.s: New test.
193 * testsuite/gas/arm/mve-vfmas-bad.d: New test.
194 * testsuite/gas/arm/mve-vfmas-bad.l: New test.
195 * testsuite/gas/arm/mve-vfmas-bad.s: New test.
196
197 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
198
199 * config/tc-arm.c (enum operand_parse_code): New operands.
200 (parse_operands): Handle new operands.
201 (do_mve_vcmul): New encoding function.
202 (do_vcmla): Change to support MVE variants.
203 (do_vcadd): Change to support MVE variants.
204 (insns): Change existing to support MVE variants and add new.
205 * testsuite/gas/arm/mve-vcadd-bad-1.d: New test.
206 * testsuite/gas/arm/mve-vcadd-bad-1.l: New test.
207 * testsuite/gas/arm/mve-vcadd-bad-1.s: New test.
208 * testsuite/gas/arm/mve-vcadd-bad-2.d: New test.
209 * testsuite/gas/arm/mve-vcadd-bad-2.l: New test.
210 * testsuite/gas/arm/mve-vcadd-bad-2.s: New test.
211 * testsuite/gas/arm/mve-vcmla-bad-1.d: New test.
212 * testsuite/gas/arm/mve-vcmla-bad-1.l: New test.
213 * testsuite/gas/arm/mve-vcmla-bad-1.s: New test.
214 * testsuite/gas/arm/mve-vcmla-bad-2.d: New test.
215 * testsuite/gas/arm/mve-vcmla-bad-2.l: New test.
216 * testsuite/gas/arm/mve-vcmla-bad-2.s: New test.
217 * testsuite/gas/arm/mve-vcmul-bad-1.d: New test.
218 * testsuite/gas/arm/mve-vcmul-bad-1.l: New test.
219 * testsuite/gas/arm/mve-vcmul-bad-1.s: New test.
220 * testsuite/gas/arm/mve-vcmul-bad-2.d: New test.
221 * testsuite/gas/arm/mve-vcmul-bad-2.l: New test.
222 * testsuite/gas/arm/mve-vcmul-bad-2.s: New test.
223
224 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
225
226 * config/tc-arm.c (enum operand_parse_code): New operands.
227 (parse_operands): Handle new operands.
228 (enum vfp_or_neon_is_neon_bits): Moved
229 (vfp_or_neon_is_neon): Moved
230 (check_simd_pred_availability): Moved.
231 (do_neon_logic): Change to accept MVE variants.
232 (insns): Changed to accept MVE variants.
233 * testsuite/gas/arm/mve-vand-bad.d: New test.
234 * testsuite/gas/arm/mve-vand-bad.l: New test.
235 * testsuite/gas/arm/mve-vand-bad.s: New test.
236 * testsuite/gas/arm/mve-vbic-bad.d: New test.
237 * testsuite/gas/arm/mve-vbic-bad.l: New test.
238 * testsuite/gas/arm/mve-vbic-bad.s: New test.
239 * testsuite/gas/arm/mve-veor-bad.d: New test.
240 * testsuite/gas/arm/mve-veor-bad.l: New test.
241 * testsuite/gas/arm/mve-veor-bad.s: New test.
242 * testsuite/gas/arm/mve-vorn-bad.d: New test.
243 * testsuite/gas/arm/mve-vorn-bad.l: New test.
244 * testsuite/gas/arm/mve-vorn-bad.s: New test.
245 * testsuite/gas/arm/mve-vorr-bad.d: New test.
246 * testsuite/gas/arm/mve-vorr-bad.l: New test.
247 * testsuite/gas/arm/mve-vorr-bad.s: New test.
248
249 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
250
251 * config/tc-arm.c (M_MNEM_vaddlv, M_MNEM_vaddlva, M_MNEM_vaddv,
252 M_MNEM_vaddva): New instruction encodings.
253 (mve_encode_rq): New encoding helper function.
254 (do_mve_vaddlv): New encoding function.
255 (do_mve_vaddv): New encoding function.
256 * testsuite/gas/arm/mve-vaddlv-bad.d: New test.
257 * testsuite/gas/arm/mve-vaddlv-bad.l: New test.
258 * testsuite/gas/arm/mve-vaddlv-bad.s: New test.
259 * testsuite/gas/arm/mve-vaddv-bad.d: New test.
260 * testsuite/gas/arm/mve-vaddv-bad.l: New test.
261 * testsuite/gas/arm/mve-vaddv-bad.s: New test.
262
263 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
264
265 * config/tc-arm.c (M_MNEM_vadc, M_MNEM_vadci, M_MNEM_vbrsr):
266 New instruction encodings.
267 (do_mve_vadc): New encoding instruction.
268 (do_mve_vbrsr): Likewise.
269 (do_mve_vsbc): Likewise.
270 * testsuite/gas/arm/mve-vadc-bad.d: New test.
271 * testsuite/gas/arm/mve-vadc-bad.l: New test.
272 * testsuite/gas/arm/mve-vadc-bad.s: New test.
273 * testsuite/gas/arm/mve-vbrsr-bad.d: New test.
274 * testsuite/gas/arm/mve-vbrsr-bad.l: New test.
275 * testsuite/gas/arm/mve-vbrsr-bad.s: New test.
276 * testsuite/gas/arm/mve-vsbc-bad.d: New test.
277 * testsuite/gas/arm/mve-vsbc-bad.l: New test.
278 * testsuite/gas/arm/mve-vsbc-bad.s: New test.
279
280 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
281
282 * config/tc-arm.c (MVE_BAD_QREG): New error message.
283 (enum operand_parse_code): Define new operand.
284 (parse_operands): Handle new operand.
285 (do_mve_vpt): Change for VPT blocks.
286 (NEON_SHAPE_DEF): New shape.
287 (neon_logbits): Moved.
288 (LOW4): Moved
289 (HI1): Moved
290 (mve_get_vcmp_vpt_cond): New function to translate vpt conditions.
291 (do_mve_vcmp): New encoding function.
292 (do_vfp_nsyn_cmp): Changed to support MVE variants.
293 (insns): Change to support MVE variants of vcmp and add vpt.
294 * testsuite/gas/arm/mve-vcmp-bad-1.d: New test.
295 * testsuite/gas/arm/mve-vcmp-bad-1.l: New test.
296 * testsuite/gas/arm/mve-vcmp-bad-1.s: New test.
297 * testsuite/gas/arm/mve-vcmp-bad-2.d: New test.
298 * testsuite/gas/arm/mve-vcmp-bad-2.l: New test.
299 * testsuite/gas/arm/mve-vcmp-bad-2.s: New test.
300 * testsuite/gas/arm/mve-vpt-bad-1.d: New test.
301 * testsuite/gas/arm/mve-vpt-bad-1.l: New test.
302 * testsuite/gas/arm/mve-vpt-bad-1.s: New test.
303 * testsuite/gas/arm/mve-vpt-bad-2.d: New test.
304 * testsuite/gas/arm/mve-vpt-bad-2.l: New test.
305 * testsuite/gas/arm/mve-vpt-bad-2.s: New test.
306
307 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
308
309 * config/tc-arm.c (struct arm_it): Expand isscalar field to be able to
310 distinguish between types of scalar.
311 (parse_typed_reg_or_scalar): Change to accept MVE scalar variants.
312 (parse_scalar): Likewise.
313 (parse_neon_mov): Accept MVE variant.
314 (po_scalar_or_goto): Make use reg_type.
315 (parse_operands): Change uses of po_scalar_or_goto.
316 (do_vfp_sp_monadic): Change to accept MVE variants.
317 (do_vfp_reg_from_sp): Likewise.
318 (do_vfp_sp_from_reg): Likewise.
319 (do_vfp_dp_rd_rm): Likewise.
320 (do_vfp_dp_rd_rn_rm): Likewise.
321 (do_vfp_dp_rm_rd_rn): Likewise.
322 (M_MNEM_vmovlt, M_MNEM_vmovlb, M_MNEM_vmovnt, M_MNEM_vmovnb): New
323 instruction encodings.
324 (NEON_SHAPE_DEF): New shape.
325 (do_mve_mov): New encoding fuction.
326 (do_mve_movn): Likewise.
327 (do_mve_movl): Likewise.
328 (do_neon_mov): Change to accept MVE variants.
329 (mcCE): New MACRO.
330 (insns): Accept new MVE variants and instructions.
331 * testsuite/gas/arm/mve-vmov-bad-1.d: New test.
332 * testsuite/gas/arm/mve-vmov-bad-1.l: New test.
333 * testsuite/gas/arm/mve-vmov-bad-1.s: New test.
334 * testsuite/gas/arm/mve-vmov-bad-2.d: New test.
335 * testsuite/gas/arm/mve-vmov-bad-2.l: New test.
336 * testsuite/gas/arm/mve-vmov-bad-2.s: New test.
337
338 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
339
340 * config/tc-arm.c (enum operand_parse_code): Add new operand.
341 (parse_operands): Handle new operand.
342 (do_neon_cvt_1): Handle MVE variants.
343 (do_neon_cvttb_1): Likewise.
344 (insns): Accept MVE variants.
345 * testsuite/gas/arm/mve-vcvt-bad-1.d: New test.
346 * testsuite/gas/arm/mve-vcvt-bad-1.l: New test.
347 * testsuite/gas/arm/mve-vcvt-bad-1.s: New test.
348 * testsuite/gas/arm/mve-vcvt-bad-2.d: New test.
349 * testsuite/gas/arm/mve-vcvt-bad-2.l: New test.
350 * testsuite/gas/arm/mve-vcvt-bad-2.s: New test.
351 * testsuite/gas/arm/mve-vcvt-bad-3.d: New test.
352 * testsuite/gas/arm/mve-vcvt-bad-3.l: New test.
353 * testsuite/gas/arm/mve-vcvt-bad-3.s: New test.
354 * testsuite/gas/arm/mve-vcvt-bad-4.d: New test.
355 * testsuite/gas/arm/mve-vcvt-bad-4.l: New test.
356 * testsuite/gas/arm/mve-vcvt-bad-4.s: New test.
357 * testsuite/gas/arm/mve-vcvt-bad.d: New test.
358 * testsuite/gas/arm/mve-vcvt-bad.l: New test.
359 * testsuite/gas/arm/mve-vcvt-bad.s: New test.
360
361 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
362
363 * config/tc-arm.c (struct arm_it): Make immisreg field larger to hold
364 type of register.
365 (enum shift_kind): Add SHIFT_UXTW shift kind.
366 (enum parse_shift_mode): Add SHIFT_UXTW_IMMEDIATE shift mode.
367 (parse_shift): Handle new shift type.
368 (parse_address_main): Accept new addressing modes.
369 (M_MNEM_vstrb, M_MNEM_vstrh, M_MNEM_vstrw, M_MNEM_vstrd,
370 M_MNEM_vldrb, M_MNEM_vldrh, M_MNEM_vldrw, M_MNEM_vldrd): New
371 instruction encodings.
372 (do_mve_vstr_vldr_QI): New encoding functions.
373 (do_mve_vstr_vldr_RQ): Likewise.
374 (do_mve_vstr_vldr_RI): Likewise.
375 (do_mve_vstr_vldr): Likewise.
376 * testsuite/gas/arm/mve-vldr-bad-1.d: New test.
377 * testsuite/gas/arm/mve-vldr-bad-1.l: New test.
378 * testsuite/gas/arm/mve-vldr-bad-1.s: New test.
379 * testsuite/gas/arm/mve-vldr-bad-2.d: New test.
380 * testsuite/gas/arm/mve-vldr-bad-2.l: New test.
381 * testsuite/gas/arm/mve-vldr-bad-2.s: New test.
382 * testsuite/gas/arm/mve-vldr-bad-3.d: New test.
383 * testsuite/gas/arm/mve-vldr-bad-3.l: New test.
384 * testsuite/gas/arm/mve-vldr-bad-3.s: New test.
385 * testsuite/gas/arm/mve-vstr-bad-1.d: New test.
386 * testsuite/gas/arm/mve-vstr-bad-1.l: New test.
387 * testsuite/gas/arm/mve-vstr-bad-1.s: New test.
388 * testsuite/gas/arm/mve-vstr-bad-2.d: New test.
389 * testsuite/gas/arm/mve-vstr-bad-2.l: New test.
390 * testsuite/gas/arm/mve-vstr-bad-2.s: New test.
391 * testsuite/gas/arm/mve-vstr-bad-3.d: New test.
392 * testsuite/gas/arm/mve-vstr-bad-3.l: New test.
393 * testsuite/gas/arm/mve-vstr-bad-3.s: New test.
394
395 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
396
397 * config/tc-arm.c (enum it_instruction_type): Add MVE_UNPREDICABLE_INSN.
398 (BAD_EL_TYPE): New error message.
399 (parse_neon_el_struct_list): Adapt to be able to accept MVE variant.
400 (parse_address_main): Likewise.
401 (group_reloc_type): Add GROUP_MVE.
402 (enum operand_parse_code): Add new operands.
403 (parse_operands): Handle new operands.
404 (M_MNEM_vst20, M_MNEM_vst21, M_MNEM_vst40, M_MNEM_vst41, M_MNEM_vst42,
405 M_MNEM_vst43, M_MNEM_vld20, M_MNEM_vld21, M_MNEM_vld40, M_MNEM_vld41,
406 M_MNEM_vld42, M_MNEM_vld43): New encodings.
407 (do_mve_vst_vld): New encoding function.
408 (do_neon_ld_st_interleave): Use BAD_EL_TYPE.
409 (it_fsm_pre_encode): Handle new it_instruction_type
410 (handle_pred_state): Likewise.
411 * testsuite/gas/arm/mve-vstld-bad.d: New test.
412 * testsuite/gas/arm/mve-vstld-bad.l: New test.
413 * testsuite/gas/arm/mve-vstld-bad.s: New test.
414
415 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
416
417 * config/tc-arm.c (BAD_MVE_AUTO): New error message.
418 (BAD_MVE_SRCDEST): Likewise.
419 (mark_feature_used): Diagnose MVE only instructions when in
420 auto-detection mode or -march=all.
421 (enum operand_parse_code): Define new operand.
422 (parse_operands): Handle new operand.
423 (M_MNEM_vmullt, M_MNEM_vmullb): New encodings.
424 (mve_encode_qqq): New encoding helper function.
425 (do_mve_vmull): New encoding function.
426 (insns): Handle new instructions.
427 * testsuite/gas/arm/mve-vmullbt-bad.d: New test.
428 * testsuite/gas/arm/mve-vmullbt-bad.l: New test.
429 * testsuite/gas/arm/mve-vmullbt-bad.s: New test.
430
431 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
432
433 * config/tc-arm.c (struct asm_opcode): Make avalue a full int.
434 (BAD_ODD, BAD_EVEN, BAD_SIMD_TYPE): New errors.
435 (enum operand_parse_code): Handle new operands.
436 (parse_operands): Likewise.
437 (M_MNEM_vabav, M_MNEM_vmladav, M_MNEM_vmladava, M_MNEM_vmladavx,
438 M_MNEM_vmladavax, M_MNEM_vmlsdav, M_MNEM_vmlsdava, M_MNEM_vmlsdavx,
439 M_MNEM_vmlsdavax): Define new encodings.
440 (NEON_SHAPE_DEF): Add new shape.
441 (neon_check_type): Use BAD_SIMD_TYPE.
442 (mve_encode_rqq): New encoding helper function.
443 (do_mve_vabav, do_mve_vmladav): New encoding functions.
444 (mCEF): New MACRO.
445 * testsuite/gas/arm/mve-vabav-bad.d: New test.
446 * testsuite/gas/arm/mve-vabav-bad.l: New test.
447 * testsuite/gas/arm/mve-vabav-bad.s: New test.
448 * testsuite/gas/arm/mve-vmladav-bad.d: New test.
449 * testsuite/gas/arm/mve-vmladav-bad.l: New test.
450 * testsuite/gas/arm/mve-vmladav-bad.s: New test.
451 * testsuite/gas/arm/mve-vmlav-bad.d: New test.
452 * testsuite/gas/arm/mve-vmlav-bad.l: New test.
453 * testsuite/gas/arm/mve-vmlav-bad.s: New test.
454 * testsuite/gas/arm/mve-vmlsdav-bad.d: New test.
455 * testsuite/gas/arm/mve-vmlsdav-bad.l: New test.
456 * testsuite/gas/arm/mve-vmlsdav-bad.s: New test.
457
458 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
459
460 * config/tc-arm.c (do_neon_abs_neg): Make it accept MVE variant.
461 (insns): Change vabs and vneg entries to accept MVE variants.
462 * testsuite/gas/arm/mve-vabsneg-bad-1.d: New test.
463 * testsuite/gas/arm/mve-vabsneg-bad-1.l: New test.
464 * testsuite/gas/arm/mve-vabsneg-bad-1.s: New test.
465 * testsuite/gas/arm/mve-vabsneg-bad-2.d: New test.
466 * testsuite/gas/arm/mve-vabsneg-bad-2.l: New test.
467 * testsuite/gas/arm/mve-vabsneg-bad-2.s: New test.
468
469 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
470
471 * config/tc-arm.c (enum it_instruction_type): Rename to...
472 (enum pred_instruction_type): ... this. Include VPT types.
473 (it_insn_type): Rename to ...
474 (pred_insn_type): .. this.
475 (arm_it): Change comment.
476 (enum arm_reg_type): Add new value.
477 (reg_expected_msgs): New entry.
478 (asm_opcode): Add mayBeVecPred member.
479 (BAD_SYNTAX, BAD_NOT_VPT, BAD_OUT_VPT, BAD_VPT_COND, MVE_NOT_IT,
480 MVE_NOT_VPT, MVE_BAD_PC, MVE_BAD_SP): New diagnostic MACROS.
481 (arm_vcond_hsh): New table for vector condition codes.
482 (now_it): Rename to ...
483 (now_pred): ... this.
484 (now_it_compatible): Rename to ...
485 (now_pred_compatible): ... this.
486 (in_it_block): Rename to ...
487 (in_pred_block): ... this.
488 (handle_it_state): Rename to ...
489 (handle_pred_state): ... this. And change it to accept VPT blocks.
490 (set_it_insn_type): Rename to ...
491 (set_pred_insn_type): ... this.
492 (set_it_insn_type_nonvoid): Rename to ...
493 (set_pred_insn_type_nonvoid): ... this.
494 (set_it_insn_type_last): Rename to ...
495 (set_pred_insn_type_last): ... this.
496 (record_feature_use): Moved.
497 (mark_feature_used): Likewise.
498 (parse_typed_reg_or_scalar): Add new case for REG_TYPE_MQ.
499 (emit_insn): Use renamed functions and variables.
500 (enum operand_parse_code): Add new operands.
501 (parse_operands): Handle new operands.
502 (do_scalar_fp16_v82_encode): Change predication detection.
503 (do_it): Use renamed functions and variables.
504 (do_t_add_sub): Likewise.
505 (do_t_arit3): Likewise.
506 (do_t_arit3c): Likewise.
507 (do_t_blx): Likewise.
508 (do_t_branch): Likewise.
509 (do_t_bkpt_hlt1): Likewise.
510 (do_t_branch23): Likewise.
511 (do_t_bx): Likewise.
512 (do_t_bxj): Likewise.
513 (do_t_cond): Likewise.
514 (do_t_csdb): Likewise.
515 (do_t_cps): Likewise.
516 (do_t_cpsi): Likewise.
517 (do_t_cbz): Likewise.
518 (do_t_it): Likewise.
519 (do_mve_vpt): New function to handle VPT blocks.
520 (encode_thumb2_multi): Use renamed functions and variables.
521 (do_t_ldst): Use renamed functions and variables.
522 (do_t_mov_cmp): Likewise.
523 (do_t_mvn_tst): Likewise.
524 (do_t_mul): Likewise.
525 (do_t_nop): Likewise.
526 (do_t_neg): Likewise.
527 (do_t_rsb): Likewise.
528 (do_t_setend): Likewise.
529 (do_t_shift): Likewise.
530 (do_t_smc): Likewise.
531 (do_t_tb): Likewise.
532 (do_t_udf): Likewise.
533 (do_t_loloop): Likewise.
534 (do_neon_cvt_1): Likewise.
535 (do_vfp_nsyn_cvt_fpv8): Likewise.
536 (do_vsel): Likewise.
537 (do_vmaxnm): Likewise.
538 (do_vrint_1): Likewise.
539 (do_crypto_2op_1): Likewise.
540 (do_crypto_3op_1): Likewise.
541 (do_crc32_1): Likewise.
542 (it_fsm_pre_encode): Likewise.
543 (it_fsm_post_encode): Likewise.
544 (force_automatic_it_block_close): Likewise.
545 (check_it_blocks_finished): Likewise.
546 (check_pred_blocks_finished): Likewise.
547 (arm_cleanup): Likewise.
548 (now_it_add_mask): Rename to ...
549 (now_pred_add_mask): ... this. And use new variables and functions.
550 (NEON_ENC_TAB): Add entries for vabdl, vaddl and vsubl.
551 (N_I_MVE, N_F_MVE, N_SU_MVE): New MACROs.
552 (neon_check_type): Generalize error message.
553 (mve_encode_qqr): New MVE generic encoding function.
554 (neon_dyadic_misc): Change to accept MVE variants.
555 (do_neon_dyadic_if_su): Likewise.
556 (do_neon_addsub_if_i): Likewise.
557 (do_neon_dyadic_long): Likewise.
558 (vfp_or_neon_is_neon): Add extra checks.
559 (check_simd_pred_availability): Helper function to check SIMD
560 instruction availability with respect to predication.
561 (enum opcode_tag): New suffix value.
562 (opcode_lookup): Change to handle VPT blocks.
563 (new_automatic_it_block): Rename to ...
564 (close_automatic_it_block): ...this.
565 (TxCE, TxC3, TxC3w, TUE, TUEc, TUF, CE, C3, ToC, ToU,
566 toC, toU, CL, cCE, cCL, C3E, xCM_, UE, UF, NUF, nUF,
567 NCE_tag, NCE, NCEF, nCE_tag, nCE, nCEF): Add default value for new
568 field.
569 (mCEF, mnCEF, mnCE, MNUF, mnUF, mToC, MNCE, MNCEF): New MACROs.
570 (insns): Redefine vadd, vsub, cabd, vabdl, vaddl, vsubl to accept MVE
571 variants. Add entries for vscclrm, and vpst.
572 (md_begin): Add arm_vcond_hsh initialization.
573 * config/tc-arm.h (enum it_state): Rename to...
574 (enum pred_state): ...this.
575 (struct current_it): Rename to...
576 (struct current_pred): ...this.
577 (enum pred_type): New enum.
578 (struct arm_segment_info_type): Use current_pred.
579 * testsuite/gas/arm/armv8_3-a-fp-bad.l: Update error message.
580 * testsuite/gas/arm/armv8_3-a-simd-bad.l: Update error message.
581 * testsuite/gas/arm/dotprod-illegal.l: Update error message.
582 * testsuite/gas/arm/mve-vaddsubabd-bad-1.d: New test.
583 * testsuite/gas/arm/mve-vaddsubabd-bad-1.l: New test.
584 * testsuite/gas/arm/mve-vaddsubabd-bad-1.s: New test.
585 * testsuite/gas/arm/mve-vaddsubabd-bad-2.d: New test.
586 * testsuite/gas/arm/mve-vaddsubabd-bad-2.l: New test.
587 * testsuite/gas/arm/mve-vaddsubabd-bad-2.s: New test.
588 * testsuite/gas/arm/mve-vpst-bad.d: New test.
589 * testsuite/gas/arm/mve-vpst-bad.l: New test.
590 * testsuite/gas/arm/mve-vpst-bad.s: New test.
591 * testsuite/gas/arm/neon-ldst-es-bad.l: Updated error message.
592
593 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
594
595 * config/tc-arm.c (mve_ext, mve_fp_ext): New features.
596 (armv8_1m_main_ext_table): Add new extensions.
597 (aeabi_set_public_attributes): Translate new features to new build attributes.
598 (arm_convert_symbolic_attribute): Add Tag_MVE_arch.
599 * doc/c-arm.texi: Document new extensions and new build attribute.
600
601 2019-05-15 John Darrington <john@darrington.wattle.id.au>
602
603 * config/tc-s12z.c (register_prefix): New variable. (md_show_usage,
604 md_parse_option): parse the new option.
605 (lex_reg_name): Scan the prefix if one is set.
606 * doc/c-s12z.texi (S12Z-Opts): Document the new option.
607 * testsuite/gas/s12z/reg-prefix.d: New file.
608 * testsuite/gas/s12z/reg-prefix.s: New file.
609 * testsuite/gas/s12z/s12z.exp: Add them.
610
611 2019-05-14 John Darrington <john@darrington.wattle.id.au>
612
613 * doc/as.texi (Machine Dependencies): Fix misaligned menu entry.
614
615 2019-05-15 Alan Modra <amodra@gmail.com>
616
617 * config/tc-csky.c (md_convert_frag): Initialise trailing
618 padding for COND_JUMP_PIC.
619
620 2019-05-15 Alan Modra <amodra@gmail.com>
621
622 * dwarf2dbg.c: Whitespace fixes.
623 (get_filenum): Don't strdup "file". Adjust error message.
624 (dwarf2_directive_filename): Use an unsigned type for "num".
625 Catch truncation of file number and overflow of get_filenum
626 XRESIZEVEC multiplication. Delete dead code.
627
628 2019-05-15 Alan Modra <amodra@gmail.com>
629
630 PR 24538
631 * config/tc-tic54x.c (tic54x_start_line_hook): Do skip end of line
632 chars in setting endp.
633
634 2019-05-14 Nick Clifton <nickc@redhat.com>
635
636 PR 24538
637 * config/tc-i386-intel.c (i386_intel_simplify_register): Reject
638 illegal register numbers.
639
640 2019-05-10 Nick Clifton <nickc@redhat.com>
641
642 PR 24538
643 * macro.c (get_any_string): Increase size of buffer used to hold
644 decimal value of expression result.
645 * dw2gencfi.c (get_debugseg_name): Handle an empty name.
646 * dwarf2dbg.c (get_filenum): Catch integer wraparound when
647 extending allocate file array.
648 (dwarf2_directive_filename): Add extra checks of the computed file
649 number.
650 * config/tc-arm.c (arm_tc_equal_in_insn): Insert copy of name into
651 warning hash table.
652 (s_arm_eabi_attribute): Check for obj_elf_vendor_attribute
653 returning -1.
654 * config/tc-i386.c (i386_output_nops): Catch an attempt to
655 generate nops of negative lengths.
656 * as.h (MAX_LITTLENUMS): Move definition to here from...
657 * config/atof-ieee.c: ...here.
658 * config/tc-aarch64.c: ...here.
659 * config/tc-arc.c: ...here.
660 * config/tc-arm.c: ...here.
661 * config/tc-epiphany.c: ...here.
662 * config/tc-i386.c: ...here.
663 * config/tc-ia64.c: ...here. (And correct the value).
664 * config/tc-m32c.c: ...here.
665 * config/tc-m32r.c: ...here.
666 * config/tc-metag.c: ...here.
667 * config/tc-microblaze.c: ...here.
668 * config/tc-nds32.c: ...here.
669 * config/tc-or1k.c: ...here.
670 * config/tc-score.c: ...here.
671 * config/tc-score7.c: ...here.
672 * config/tc-tic4x.c: ...here.
673 * config/tc-tilegx.c: ...here.
674 * config/tc-tilepro.c: ...here.
675 * config/tc-visium.c: ...here.
676 * config/tc-sh.c (md_assemble): Add check for an instruction with
677 no opcodes.
678 * config/tc-mips.c (mips_lookup_insn): Add check for very short
679 instruction name.
680 * config/tc-tic54x.c: Use unsigned chars to access is_end_of_line
681 array.
682 (tic54x_start_line_hook): Check for an empty line.
683 (next_line_shows_parallel): Do not walk off the end of the string.
684 (tic54x_macro_start): Check for too much macro nesting.
685 (tic54x_start_label): Add label_start parameter. Use this
686 parameter to check the first character of the label.
687
688 * config/tc-tic54x.h (TC_START_LABEL_WITHOUT_COLON): Pass
689 line_start variable to tic54x_start_label.
690
691 2019-05-10 Faraz Shahbazker <fshahbazker@wavecomp.com>
692
693 * config/tc-mips.c (macro) <M_ADD_I, M_SUB_I, M_DADD_I, M_DSUB_I>:
694 Add expansions for MIPS r6.
695 * testsuite/gas/mips/add.s: Enable tests for R6.
696 * testsuite/gas/mips/daddi.s: Annotate to test DADD for R6.
697 * testsuite/gas/mips/mipsr6@add.d: Likewise.
698 * gas/testsuite/gas/mips/mipsr6@dadd.d: New test.
699 * gas/testsuite/gas/mips/mips.exp: Run the new test.
700
701 2019-05-09 Matthew Malcomson <matthew.malcomson@arm.com>
702
703 * testsuite/gas/aarch64/sve2.d: Remove file format restriction.
704
705 2019-05-09 Matthew Malcomson <matthew.malcomson@arm.com>
706
707 * testsuite/gas/aarch64/illegal-sve2-aes.d: New test.
708 * testsuite/gas/aarch64/illegal-sve2-bitperm.d: New test.
709 * testsuite/gas/aarch64/illegal-sve2-sha3.d: Test new instructions.
710 * testsuite/gas/aarch64/illegal-sve2-sm4.d: Test new instructions.
711 * testsuite/gas/aarch64/illegal-sve2-sve1ext.d: Test new instructions.
712 * testsuite/gas/aarch64/illegal-sve2-sve1ext.l: Test new instructions.
713 * testsuite/gas/aarch64/illegal-sve2.d: Test new instructions.
714 * testsuite/gas/aarch64/illegal-sve2.l: Test new instructions.
715 * testsuite/gas/aarch64/illegal-sve2.s: Test new instructions.
716 * testsuite/gas/aarch64/sve1-extended-sve2.s: New test.
717 * testsuite/gas/aarch64/sve2.d: Test new instructions.
718 * testsuite/gas/aarch64/sve2.s: Test new instructions.
719
720 2019-05-09 Matthew Malcomson <matthew.malcomson@arm.com>
721
722 * config/tc-aarch64.c (parse_operands): Handle new SVE_SHLIMM_UNPRED_22
723 operand.
724
725 2019-05-09 Matthew Malcomson <matthew.malcomson@arm.com>
726
727 * config/tc-aarch64.c (parse_operands): Handle new SVE_Zm4_11_INDEX
728 operand.
729
730 2019-05-09 Matthew Malcomson <matthew.malcomson@arm.com>
731
732 * config/tc-aarch64.c (parse_operands): Handle new SVE_SHRIMM_UNPRED_22
733 operand.
734
735 2019-05-09 Matthew Malcomson <matthew.malcomson@arm.com>
736
737 * config/tc-aarch64.c (REG_ZR): Macro specifying zero register.
738 (parse_address_main): Account for new addressing mode [Zn.S, Xm].
739 (parse_operands): Handle new SVE_ADDR_ZX operand.
740
741 2019-05-09 Matthew Malcomson <matthew.malcomson@arm.com>
742
743 * config/tc-aarch64.c (parse_operands): Handle new SVE_Zm3_11_INDEX
744 operand.
745
746 2019-05-09 Matthew Malcomson <matthew.malcomson@arm.com>
747
748 * config/tc-aarch64.c (parse_operands): Handle new SVE_IMM_ROT3 operand.
749
750 2019-05-09 Matthew Malcomson <matthew.malcomson@arm.com>
751
752 * config/tc-aarch64.c: Add command line architecture feature flags
753 "sve2", "sve2-sm4", "sve2-aes", "sve2-sha3", "bitperm".
754 * doc/c-aarch64.texi: Document new architecture feature flags.
755
756 2019-05-08 Alan Modra <amodra@gmail.com>
757
758 * testsuite/gas/elf/dwarf2-1.s,
759 * testsuite/gas/elf/dwarf2-2.s,
760 * testsuite/gas/elf/dwarf2-5.s,
761 * testsuite/gas/elf/dwarf2-7.s,
762 * testsuite/gas/elf/dwarf2-8.s,
763 * testsuite/gas/elf/dwarf2-9.s,
764 * testsuite/gas/elf/dwarf2-10.s,
765 * testsuite/gas/elf/dwarf2-11.s,
766 * testsuite/gas/elf/dwarf2-12.s,
767 * testsuite/gas/elf/dwarf2-13.s,
768 * testsuite/gas/elf/dwarf2-14.s,
769 * testsuite/gas/elf/dwarf2-15.s,
770 * testsuite/gas/elf/dwarf2-16.s,
771 * testsuite/gas/elf/dwarf2-17.s,
772 * testsuite/gas/elf/dwarf2-18.s,
773 * testsuite/gas/elf/dwarf2-19.s: Double size of align and simulated
774 instructions.
775 * testsuite/gas/elf/dwarf2-1.d,
776 * testsuite/gas/elf/dwarf2-2.d,
777 * testsuite/gas/elf/dwarf2-5.d,
778 * testsuite/gas/elf/dwarf2-7.d,
779 * testsuite/gas/elf/dwarf2-8.d,
780 * testsuite/gas/elf/dwarf2-9.d,
781 * testsuite/gas/elf/dwarf2-10.d,
782 * testsuite/gas/elf/dwarf2-11.d,
783 * testsuite/gas/elf/dwarf2-12.d,
784 * testsuite/gas/elf/dwarf2-13.d,
785 * testsuite/gas/elf/dwarf2-14.d,
786 * testsuite/gas/elf/dwarf2-15.d,
787 * testsuite/gas/elf/dwarf2-16.d,
788 * testsuite/gas/elf/dwarf2-17.d,
789 * testsuite/gas/elf/dwarf2-18.d,
790 * testsuite/gas/elf/dwarf2-19.d: Use xfail rather than notarget.
791 Remove avr, pru, tile, xtensa from xfails. Update expected output.
792 * testsuite/gas/elf/elf.exp: Sort targets.
793 (dump_opts): Pass {as -mno-relax} for riscv, {as -mno-link-relax}
794 for avr and pru, and {as --no-link-relax} for xtensa to dwarf tests.
795 * testsuite/gas/elf/section2.e-miwmmxt: Delete unused file.
796
797 2019-05-08 Alan Modra <amodra@gmail.com>
798
799 * config/tc-xtensa.c (opt_linkrelax): New variable.
800 (md_parse_option): Set it here.
801 (md_begin): Copy opt_linkrelax to linkrelax.
802
803 2019-05-07 Alexandre Oliva <aoliva@redhat.com>
804
805 * testsuite/gas/elf/dwarf2-18.d: Xfail mep-*.
806 * testsuite/gas/elf/dwarf2-19.d: Likewise.
807
808 2019-05-07 Alan Modra <amodra@gmail.com>
809
810 * symbols.c (use_complex_relocs_for): Formatting. Factor out
811 X_add_symbol tests.
812
813 2019-05-06 Andrew Bennett <andrew.bennett@imgtec.com>
814 Faraz Shahbazker <fshahbazker@wavecomp.com>
815
816 * config/tc-mips.c (mips_set_ase): Handle ASE_EVA_R6.
817 (macro) <M_LLWPE_AB, M_SCWPE_AB>: New cases.
818 (mips_after_parse_args): Translate EVA to EVA_R6.
819 * testsuite/gas/mips/ase-errors-1.s: Add new instructions.
820 * testsuite/gas/mips/eva.s: Likewise.
821 * testsuite/gas/mips/ase-errors-1.l: Check errors for
822 new instructions.
823 * testsuite/gas/mips/mipsr6@eva.d: Check new test cases.
824
825 2019-05-06 Alan Modra <amodra@gmail.com>
826
827 * symbols.c (symbol_relc_make_sym): Do not access sym->sy_value
828 directly.
829
830 2019-05-06 Alan Modra <amodra@gmail.com>
831
832 * config/tc-ppc.c (ppc_fix_adjustable): Exclude all GOT and PLT
833 relocs, and VLE sdarel relocs.
834 * testsuite/gas/ppc/power4.d: Adjust.
835
836 2019-05-05 Alexandre Oliva <aoliva@redhat.com>
837
838 * dwarf2dbg.c (set_or_check_view): Skip heads when assigning
839 views of prior locs.
840 (dwarf2_gen_line_info_1): Skip heads.
841 (size_inc_line_addr, emit_inc_line_addr): Drop
842 DW_LNS_advance_pc for zero addr delta.
843 (dwarf2_finish): Assign views for heads of segments.
844 * testsuite/gas/elf/dwarf2-19.d: New.
845 * testsuite/gas/elf/dwarf2-19.s: New.
846 * testsuite/gas/elf/elf.exp: Test it.
847
848 2019-05-04 Alan Modra <amodra@gmail.com>
849
850 * config/tc-m32c.c (insn_size): Delete static var.
851 (md_begin): Don't set it.
852 (m32c_md_end): Delete.
853 (md_assemble): Add insn_size auto var.
854 * config/tc-m32c.h (md_end): Don't define.
855 (m32c_md_end): Delete.
856 (NOP_OPCODE, HANDLE_ALIGN, MAX_MEM_FOR_RS_ALIGN_CODE): Define.
857 * testsuite/gas/all/align.d: Remove m32c from notarget list.
858 * testsuite/gas/all/incbin.d: Likewise.
859 * testsuite/gas/elf/dwarf2-11.d: Likewise.
860 * testsuite/gas/macros/semi.d: Likewise.
861 * testsuite/gas/all/gas.exp (do_comment): Similarly.
862
863 2019-05-02 H.J. Lu <hongjiu.lu@intel.com>
864
865 PR gas/24485
866 * config/tc-i386.c (process_suffix): Issue a warning to IRET
867 without a suffix for .code16gcc.
868 * testsuite/gas/i386/jump16.s: Add tests for iretX.
869 * testsuite/gas/i386/jump16.d: Updated.
870 * testsuite/gas/i386/jump16.e: New file.
871
872 2019-05-01 Sudakshina Das <sudi.das@arm.com>
873
874 * config/tc-aarch64.c (parse_operands): Add case for
875 AARCH64_OPND_TME_UIMM16.
876 (aarch64_features): Add "tme".
877 * doc/c-aarch64.texi: Document the same.
878 * testsuite/gas/aarch64/tme-invalid.d: New test.
879 * testsuite/gas/aarch64/tme-invalid.l: New test.
880 * testsuite/gas/aarch64/tme-invalid.s: New test.
881 * testsuite/gas/aarch64/tme.d: New test.
882 * testsuite/gas/aarch64/tme.s: New test.
883
884 2019-04-29 John Darrington <john@darrington.wattle.id.au>
885
886 * testsuite/gas/s12z/truncated.d: New file.
887 * testsuite/gas/s12z/truncated.s: New file.
888 * testsuite/gas/s12z/s12z.exp: Add new test.
889
890 2019-04-26 Andrew Bennett <andrew.bennett@imgtec.com>
891 Faraz Shahbazker <fshahbazker@wavecomp.com>
892
893 * config/tc-mips.c (macro) <M_LLWP_AB, M_LLDP_AB, M_SCWP_AB,
894 M_SCDP_AB>: New cases and expansions for paired instructions.
895 * testsuite/gas/mips/llpscp-32.s: New test source.
896 * testsuite/gas/mips/llpscp-64.s: Likewise.
897 * testsuite/gas/mips/llpscp-32.d: New test.
898 * testsuite/gas/mips/llpscp-64.d: Likewise.
899 * testsuite/gas/mips/mips.exp: Run the new tests.
900 * testsuite/gas/mips/r6.s: Add new instructions to test source.
901 * testsuite/gas/mips/r6-64.s: Likewise.
902 * testsuite/gas/mips/r6-64-n32.d: Check new instructions.
903 * testsuite/gas/mips/r6-64-n64.d: Likewise.
904 * testsuite/gas/mips/r6-n32.d: Likewise.
905 * testsuite/gas/mips/r6-n64.d: Likwwise.
906 * testsuite/gas/mips/r6.d: Likewise.
907
908 2019-04-26 H.J. Lu <hongjiu.lu@intel.com>
909
910 PR gas/24485
911 * config/tc-i386.c (process_suffix): Don't add DATA_PREFIX_OPCODE
912 to IRET for .code16gcc.
913 * testsuite/gas/i386/jump16.s: Add IRET tests.
914 * testsuite/gas/i386/jump16.d: Updated.
915
916 2019-04-25 Alexandre Oliva <aoliva@redhat.com>
917 Alan Modra <amodra@gmail.com>
918
919 PR gas/24444
920 * frags.c (frag_gtoffset_p): New.
921 * frags.h (frag_gtoffset_p): Declare it.
922 * expr.c (resolve_expression): Use it.
923
924 2019-04-24 Alan Modra <amodra@gmail.com>
925
926 PR 24444
927 * symbols.c (resolve_symbol_value): When handling symbols
928 marked as sy_flags.resolved, return correct value for the
929 case of expression symbols left as an O_symbol expression.
930 Merge O_symbol code handling undefined and common symbols with
931 code handling special cases of expression symbols. Use
932 seg_left to test for undefined and common symbols. Don't
933 leave an O_symbol expression when X_add_symbol resolves to
934 the absolute_section. Init final_val later.
935 * testsuite/gas/mmix/basep-7.d: Adjust expected output.
936
937 2019-04-24 John Darrington <john@darrington.wattle.id.au>
938
939 * testsuite/gas/s12z/bit-manip-invalid.s: Extend test for BSET
940 and BCLR instructions with an invalid mode.
941 * testsuite/gas/s12z/bit-manip-invalid.d: ditto.
942
943 2019-04-19 Nick Clifton <nickc@redhat.com>
944
945 PR 24464
946 * config/tc-rx.h (md_relax_frag): Pass the max_iterations variable
947 to the relaxation function.
948 * config/tc-rx.c (rx_relax_frag): Add new parameter - the maximum
949 number of iterations. Make sure that our internal iteration limit
950 does not exceed this external iteration limit.
951
952 2019-04-18 Matthew Fortune <matthew.fortune@mips.com>
953
954 * config/tc-mips.c (match_non_zero_reg_operand): Update
955 warning message.
956 * testsuite/gas/mips/r6-branch-constraints.l: Likewise.
957
958 2019-04-18 Jozef Lawrynowicz <jozef.l@mittosystems.com>
959
960 * config/tc-msp430.c (msp430_make_init_symbols): Define
961 __crt0_run_{preinit,init,fini}_array symbols if
962 .{preinit,init,fini}_array sections exist.
963 * testsuite/gas/msp430/fini-array.d: New test.
964 * testsuite/gas/msp430/init-array.d: New test.
965 * testsuite/gas/msp430/preinit-array.d: New test.
966 * testsuite/gas/msp430/fini-array.s: New test source.
967 * testsuite/gas/msp430/init-array.s: New test source.
968 * testsuite/gas/msp430/preinit-array.s: New test source.
969 * testsuite/gas/msp430/msp430.exp: Add new tests to driver.
970
971 2019-04-17 Jozef Lawrynowicz <jozef.l@mittosystems.com>
972
973 * config/tc-msp430.c (msp430_make_init_symbols): Define __crt0_init_bss
974 symbol when .lower.bss or .either.bss sections exist.
975 Define __crt0_movedata when .lower.data or .either.data sections exist.
976 * testsuite/gas/msp430/either-data-bss-sym.d: New test.
977 * testsuite/gas/msp430/low-data-bss-sym.d: New test.
978 * testsuite/gas/msp430/either-data-bss-sym.s: New test source.
979 * testsuite/gas/msp430/low-data-bss-sym.s: New test source.
980 * testsuite/gas/msp430/msp430.exp: Run new tests.
981 Enable large code model when running -mdata-region={upper,either}
982 tests.
983
984 2019-04-17 Jozef Lawrynowicz <jozef.l@mittosystems.com>
985
986 * config/tc-msp430.c (options): New OPTION_UNKNOWN_INTR_NOPS,
987 OPTION_NO_UNKNOWN_INTR_NOPS and do_unknown_interrupt_nops.
988 (md_parse_option): Handle OPTION_UNKNOWN_INTR_NOPS and
989 OPTION_NO_UNKNOWN_INTR_NOPS by setting do_unknown_interrupt_nops
990 accordingly.
991 (md_show_usage): Likewise.
992 (md_shortopts): Add "mu" for OPTION_UNKNOWN_INTR_NOPS and
993 "mU" for OPTION_NO_UNKNOWN_INTR_NOPS.
994 (md_longopts): Likewise.
995 (warn_eint_nop): Update comment.
996 (warn_unsure_interrupt): Don't warn if prev_insn_is_nop or
997 prev_insn_is_dint or we are assembling for 430 ISA.
998 (msp430_operands): Only call warn_unsure_interrupt if
999 do_unknown_interrupt_nops == TRUE.
1000 * testsuite/gas/msp430/nop-unknown-intr.s: New test source file.
1001 * testsuite/gas/msp430/nop-unknown-intr-430.d: New test.
1002 * testsuite/gas/msp430/nop-unknown-intr-430x.d: New test.
1003 * testsuite/gas/msp430/nop-unknown-intr-430x-ignore.d: New test.
1004 * testsuite/gas/msp430/nop-unknown-intr-430.l: Warning output for new
1005 test.
1006 * testsuite/gas/msp430/nop-unknown-intr-430x.l: Likewise.
1007 * testsuite/gas/msp430/msp430.exp: Add new tests to driver.
1008
1009 2019-04-16 Alan Modra <amodra@gmail.com>
1010
1011 * testsuite/gas/all/weakref1.d: xfail nds32.
1012
1013 2019-04-16 Alan Modra <amodra@gmail.com>
1014
1015 * testsuite/gas/all/gas.exp: Remove ns32k xfails.
1016 * testsuite/gas/all/weakref1u.d: Don't run for ns32k-*-*.
1017
1018 2019-04-16 Alan Modra <amodra@gmail.com>
1019
1020 * write.h: Don't include bit_fix.h.
1021 (struct fix): Rearrange some fields. Delete fx_im_disp and
1022 fx_bit_fixP. Use bitfields for fx_size and fx_pcrel_adjust.
1023 * write.c (fix_new_internal): Don't init fx_im_disp and fx_bit_fixP.
1024 (fixup_segment): Don't exclude overflow checks on fx_bit_fixP.
1025 (print_fixup): Don't print im_disp.
1026 * config/tc-cris.c (md_apply_fix): Remove tests of fx_bit_fixP
1027 and fx_im_disp.
1028 * config/tc-dlx.c (md_apply_fix): Remove wrong debug code. Set
1029 fx_no_overflow when fx_bit_fixP.
1030 * config/tc-dlx.h: Include bit_fix.h.
1031 (TC_FIX_TYPE, tc_fix_data, TC_INIT_FIX_DATA): Define.
1032 * config/tc-ns32k.c (fix_new_ns32k, fix_new_ns32k_exp): Set
1033 fx_no_overflow when bit_fixP.
1034 * config/tc-ns32k.h (TC_FIX_TYPE): Add fx_bit_fixP and fx_im_disp.
1035 (fix_im_disp, fix_bit_fixP): Adjust to suit.
1036 (TC_INIT_FIX_DATA, TC_FIX_DATA_PRINT): Likewise.
1037
1038 2019-04-16 Alan Modra <amodra@gmail.com>
1039
1040 * write.h (struct fix <fx_where>): Make unsigned.
1041 (fix_new, fix_at_start, fix_new_exp): Adjust prototypes.
1042 * write.c (fix_new, fix_new_exp, fix_at_start): Make "where" and
1043 "size" parameters unsigned long.
1044 (fix_new_internal): Likewise. Adjust error format string to suit.
1045 * config/tc-mips.c (md_convert_frag): Remove cast of fx_where.
1046 * config/tc-sparc.c (md_apply_fix): Likewise.
1047 * config/tc-score.c (s3_convert_frag): Adjust for unsigned fx_where.
1048 * config/tc-score7.c (s7_convert_frag): Likewise.
1049
1050 2019-04-16 Alan Modra <amodra@gmail.com>
1051
1052 * frags.h (struct frag <fr_fix>): Use unsigned type.
1053 * frags.c (frag_new): Assert that current size exceeds
1054 old_frags_var_max_size.
1055 * ehopt.c (get_cie_info): Adjust for unsigned fr_fix.
1056 * listing.c (calc_hex): Likewise.
1057 * write.c (cvt_frag_to_fill, write_relocs): Likewise.
1058 * config/tc-arc.c (md_convert_frag): Likewise.
1059 * config/tc-avr.c (avr_patch_gccisr_frag): Likewise.
1060 * config/tc-mips.c (md_convert_frag): Likewise.
1061 * config/tc-rl78.c (md_convert_frag): Likewise.
1062 * config/tc-rx.c (md_convert_frag): Likewise.
1063 * config/tc-sparc.c (md_apply_fix): Likewise.
1064 * config/tc-xtensa.c (next_instrs_are_b_retw): Likewise.
1065 (unrelaxed_frag_min_insn_count, unrelaxed_frag_has_b_j): Likewise.
1066
1067 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
1068
1069 * config/tc-arm.c (parse_sys_vldr_vstr): New function.
1070 (OP_VLDR): New enum operand_parse_code enumerator.
1071 (parse_operands): Add logic for OP_VLDR.
1072 (do_t_vldr_vstr_sysreg): New function.
1073 (do_vldr_vstr): Likewise.
1074 (insns): Guard VLDR and VSTR by arm_ext_v4t for Thumb mode.
1075 (md_apply_fix): Add bound check for VLDR and VSTR co-processor offset.
1076 Add masking logic for BFD_RELOC_ARM_T32_VLDR_VSTR_OFF_IMM relocation.
1077 * testsuite/gas/arm/archv8m_1m-cmse-main-bad.s: Add examples of bad
1078 uses of VLDR and VSTR.
1079 * testsuite/gas/arm/archv8m_1m-cmse-main-bad.l: Add error messages for
1080 above bad uses.
1081 * testsuite/gas/arm/archv8m_1m-cmse-main.s: Add examples of VLDR and
1082 VSTR valid uses.
1083 * testsuite/gas/arm/archv8m_1m-cmse-main.d: Add disassembly for the
1084 above examples.
1085
1086 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
1087
1088 * config/tc-arm.c (arm_typed_reg_parse): Fix typo in comment.
1089 (enum reg_list_els): New REGLIST_VFP_S_VPR and REGLIST_VFP_D_VPR
1090 enumerators.
1091 (parse_vfp_reg_list): Add new partial_match parameter. Set
1092 *partial_match to TRUE if at least one element in the register list has
1093 matched. Add support for REGLIST_VFP_S_VPR and REGLIST_VFP_D_VPR
1094 register lists which expect VPR as last element in the list.
1095 (s_arm_unwind_save_vfp_armv6): Adapt call to parse_vfp_reg_list to new
1096 prototype.
1097 (s_arm_unwind_save_vfp): Likewise.
1098 (enum operand_parse_code): New OP_VRSDVLST enumerator.
1099 (parse_operands): Adapt call to parse_vfp_reg_list to new prototype.
1100 Handle new OP_VRSDVLST case.
1101 (do_t_vscclrm): New function.
1102 (insns): New entry for VSCCLRM instruction.
1103 * testsuite/gas/arm/archv8m_1m-cmse-main-bad.s: Add invalid VSCCLRM
1104 instructions.
1105 * testsuite/gas/arm/archv8m_1m-cmse-main-bad.l: Add error expectations
1106 for above instructions.
1107 * testsuite/gas/arm/archv8m_1m-cmse-main.s: Add tests for VSCCLRM
1108 instruction.
1109 * testsuite/gas/arm/archv8m_1m-cmse-main.d: Add expected disassembly
1110 for above instructions.
1111
1112 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
1113
1114 * config/tc-arm.c (enum reg_list_els): Define earlier and add
1115 REGLIST_RN and REGLIST_CLRM enumerators.
1116 (parse_reg_list): Add etype parameter to distinguish between regular
1117 core register list and CLRM register list. Add logic to
1118 recognize CLRM register list.
1119 (parse_vfp_reg_list): Assert type is not for core register list.
1120 (s_arm_unwind_save_core): Update call to parse_reg_list to new
1121 prototype.
1122 (enum operand_parse_code): Declare OP_CLRMLST enumerator.
1123 (parse_operands): Update call to parse_reg_list to new prototype. Add
1124 logic for OP_CLRMLST.
1125 (encode_thumb2_ldmstm): Rename into ...
1126 (encode_thumb2_multi): This. Add do_io parameter. Add logic to
1127 encode CLRM and guard LDM/STM only code by do_io.
1128 (do_t_ldmstm): Adapt to use encode_thumb2_multi.
1129 (do_t_push_pop): Likewise.
1130 (do_t_clrm): New function.
1131 (insns): Define CLRM.
1132 * testsuite/gas/arm/archv8m_1m-cmse-main-bad.d: New file.
1133 * testsuite/gas/arm/archv8m_1m-cmse-main-bad.l: Likewise.
1134 * testsuite/gas/arm/archv8m_1m-cmse-main-bad.s: Likewise.
1135 * testsuite/gas/arm/archv8m_1m-cmse-main.d: Likewise.
1136 * testsuite/gas/arm/archv8m_1m-cmse-main.s: Likewise.
1137
1138 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1139 Andre Vieira <andre.simoesdiasvieira@arm.com>
1140
1141 * config/tc-arm.c (operand_parse_code): Add OP_LR and OP_oLR
1142 for the LR operand and optional LR operand.
1143 (parse_operands): Add switch cases for OP_LR and OP_oLR for
1144 both type checking and value checking.
1145 (encode_thumb32_addr_mode): New entries for DLS, WLS and LE.
1146 (v8_1_loop_reloc): New helper function for handling labels
1147 for the low overhead loop instructions.
1148 (do_t_loloop): New function to encode DLS, WLS and LE.
1149 (insns): New entries for WLS, DLS and LE.
1150 (md_pcrel_from_section): New switch case
1151 for BFD_RELOC_ARM_THUMB_LOOP12.
1152 (md_appdy_fix): Likewise.
1153 (tc_gen_reloc): Likewise.
1154 * testsuite/gas/arm/armv8_1-m-tloop.s: New.
1155 * testsuite/gas/arm/armv8_1-m-tloop.d: New.
1156 * testsuite/gas/arm/armv8_1-m-tloop-bad.s: New.
1157 * testsuite/gas/arm/armv8_1-m-tloop-bad.d: New.
1158 * testsuite/gas/arm/armv8_1-m-tloop-bad.l: New.
1159
1160 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1161 Andre Vieira <andre.simoesdiasvieira@arm.com>
1162
1163 * config/tc-arm.c (T16_32_TAB): New entriy for bfcsel.
1164 (do_t_v8_1_branch): New switch case for bfcsel.
1165 (toU): Define.
1166 (insns): New instruction for bfcsel.
1167 (md_pcrel_from_section): New switch case
1168 for BFD_RELOC_THUMB_PCREL_BFCSEL.
1169 (md_appdy_fix): Likewise
1170 (tc_gen_reloc): Likewise.
1171 * testsuite/gas/arm/armv8_1-m-bfcsel.d: New.
1172 * testsuite/gas/arm/armv8_1-m-bfcsel.s: New.
1173
1174 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1175
1176 * config/tc-arm.c (md_pcrel_from_section): New switch case for
1177 BFD_RELOC_ARM_THUMB_BF13.
1178 (md_appdy_fix): Likewise.
1179 (tc_gen_reloc): Likewise.
1180
1181 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1182 Andre Vieira <andre.simoesdiasvieira@arm.com>
1183
1184 * config/tc-arm.c (T16_32_TAB): New entrie for bfl.
1185 (do_t_v8_1_branch): New switch case for bfl.
1186 (insns): New instruction for bfl.
1187 * testsuite/gas/arm/armv8_1-m-bfl.d: New.
1188 * testsuite/gas/arm/armv8_1-m-bfl.s: New.
1189 * testsuite/gas/arm/armv8_1-m-bfl-bad.s: New.
1190 * testsuite/gas/arm/armv8_1-m-bfl-bad.d: New.
1191 * testsuite/gas/arm/armv8_1-m-bfl-bad.l: New.
1192 * testsuite/gas/arm/armv8_1-m-bfl-rel.d: New.
1193 * testsuite/gas/arm/armv8_1-m-bfl-rel.s: New.
1194
1195 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1196
1197 * config/tc-arm.c (md_pcrel_from_section): New switch case for
1198 BFD_RELOC_ARM_THUMB_BF19.
1199 (md_appdy_fix): Likewise.
1200 (tc_gen_reloc): Likewise.
1201
1202 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1203
1204 * config/tc-arm.c (T16_32_TAB): New entries for bfx and bflx.
1205 (do_t_v8_1_branch): New switch cases for bfx and bflx.
1206 (insns): New instruction for bfx and bflx.
1207 * testsuite/gas/arm/armv8_1-m-bf-exchange.d: New.
1208 * testsuite/gas/arm/armv8_1-m-bf-exchange.s: New.
1209 * testsuite/gas/arm/armv8_1-m-bf-exchange-bad.s: New
1210 * testsuite/gas/arm/armv8_1-m-bf-exchange-bad.l: New
1211 * testsuite/gas/arm/armv8_1-m-bf-exchange-bad.d: New
1212
1213 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1214 Andre Vieira <andre.simoesdiasvieira@arm.com>
1215
1216 * config/tc-arm.c (T16_32_TAB): New entries for bf.
1217 (do_t_branch_future): New.
1218 (insns): New instruction for bf.
1219 * testsuite/gas/arm/armv8_1-m-bf.d: New.
1220 * testsuite/gas/arm/armv8_1-m-bf.s: New.
1221 * testsuite/gas/arm/armv8_1-m-bf-bad.s: New.
1222 * testsuite/gas/arm/armv8_1-m-bf-bad.l: New.
1223 * testsuite/gas/arm/armv8_1-m-bf-bad.d: New.
1224 * testsuite/gas/arm/armv8_1-m-bf-rel.d: New.
1225 * testsuite/gas/arm/armv8_1-m-bf-rel.s: New.
1226
1227 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1228
1229 * config/tc-arm.c (md_pcrel_from_section): New switch case for
1230 BFD_RELOC_ARM_THUMB_BF17.
1231 (md_appdy_fix): Likewise.
1232 (tc_gen_reloc): Likewise.
1233
1234 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1235
1236 * config/tc-arm.c (ARM_IT_MAX_RELOCS): New macro.
1237 (arm_it): Member reloc renamed relocs and updated to an array.
1238 Rest: Replace all occurrences of reloc to relocs[0].
1239
1240 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1241
1242 * config/tc-arm.c (md_pcrel_from_section): New switch case
1243 for BFD_RELOC_THUMB_PCREL_BRANCH5.
1244 (v8_1_branch_value_check): New function to check branch
1245 offsets.
1246 (md_appdy_fix): New switch case for
1247 BFD_RELOC_THUMB_PCREL_BRANCH5.
1248 (tc_gen_reloc): Likewise.
1249
1250 2019-04-15 Andre Vieira <andre.simoesdiasvieira@arm.com>
1251
1252 * config/tc-arm.c (do_neon_movhf): Remove fp-armv8 check.
1253 (armv8_1m_main_ext_table): New extension table.
1254 (arm_archs): Use the new extension table.
1255 * doc/c-arm.texi: Add missing arch and document new extensions.
1256 * testsuite/gas/arm/armv8.1-m.main-fp.d: New.
1257 * testsuite/gas/arm/armv8.1-m.main-fp-dp.d: New.
1258 * testsuite/gas/arm/armv8.1-m.main-hp.d: New.
1259
1260 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
1261
1262 * config/tc-arm.c (cpu_arch_ver): Add entry for Armv8.1-M Mainline
1263 Tag_CPU_arch build attribute value. Reindent.
1264 (get_aeabi_cpu_arch_from_fset): Update assert.
1265 (aeabi_set_public_attributes): Update assert for Tag_DIV_use logic.
1266 * testsuite/gas/arm/attr-march-armv8_1-m.main.d: New test.
1267
1268 2019-04-09 Matthew Fortune <matthew.fortune@mips.com>
1269
1270 * config/tc-mips.c (mips_cpu_info_table): Add i6500. Update
1271 default ASEs for i6400.
1272 * doc/c-mips.texi (-march): Document i6500.
1273 * testsuite/gas/mips/elf_mach_i6400.d: New test.
1274 * testsuite/gas/mips/elf_mach_i6500.d: New test.
1275 * testsuite/gas/mips/mips.exp: Run the new tests.
1276
1277 2019-04-09 Matthew Fortune <matthew.fortune@mips.com>
1278
1279 * config/tc-mips.c (mips_set_options) <init_ase>: New field.
1280 (file_mips_opts, mips_opts) <init_ase>: Initialize new field.
1281 (file_mips_check_options): Propagate initial ASE settings.
1282 (mips_after_parse_args, parse_code_option): Track the initial
1283 ASE settings for a CPU.
1284 (s_mipsset): Restore the initial ASE settings when reverting
1285 to the default arch.
1286 * testsuite/gas/mips/elf_mach_p6600.d: New test.
1287 * testsuite/gas/mips/mips.exp: Run the new test.
1288
1289 2019-04-12 John Darrington <john@darrington.wattle.id.au>
1290
1291 config/tc-s12z.h: Remove definition of macro TC_M68K
1292
1293 2019-04-01 John Darrington <john@darrington.wattle.id.au>
1294
1295 config/tc-s12z.c: Use bfd_boolean where appropriate.
1296
1297 2019-04-11 Max Filippov <jcmvbkbc@gmail.com>
1298
1299 * testsuite/gas/xtensa/loop-relax-2.d: New test definition.
1300 * testsuite/gas/xtensa/loop-relax.d: New test definition.
1301 * testsuite/gas/xtensa/loop-relax.s: New test source.
1302 * testsuite/gas/xtensa/text-section-literals-1a.d: New test
1303 definition.
1304 * testsuite/gas/xtensa/text-section-literals-2.d: New test
1305 definition.
1306 * testsuite/gas/xtensa/text-section-literals-2.s: New test
1307 source.
1308 * testsuite/gas/xtensa/text-section-literals-2a.d: New test
1309 definition.
1310 * testsuite/gas/xtensa/text-section-literals-3.d: New test
1311 definition.
1312 * testsuite/gas/xtensa/text-section-literals-3.s: New test
1313 source.
1314 * testsuite/gas/xtensa/text-section-literals-4.d: New test
1315 definition.
1316 * testsuite/gas/xtensa/text-section-literals-4.s: New test
1317 source.
1318 * testsuite/gas/xtensa/text-section-literals-4a.d: New test
1319 definition.
1320
1321 2019-04-11 Max Filippov <jcmvbkbc@gmail.com>
1322
1323 * testsuite/gas/xtensa/all.exp: Remove all expect-based
1324 tests and all explicit run_dump_test / run_list_test
1325 invocations. Add run_dump_tests for all .d files in the
1326 test subdirectory.
1327 * testsuite/gas/xtensa/entry_align.d: New test definition.
1328 * testsuite/gas/xtensa/entry_align.l: New test output.
1329 * testsuite/gas/xtensa/entry_misalign.d: New test definition.
1330 * testsuite/gas/xtensa/entry_misalign2.d: New test definition.
1331 * testsuite/gas/xtensa/j_too_far.d: New test definition.
1332 * testsuite/gas/xtensa/j_too_far.l: New test output.
1333 * testsuite/gas/xtensa/loop_align.d: New test definition.
1334 * testsuite/gas/xtensa/loop_misalign.d: New test definition.
1335 * testsuite/gas/xtensa/trampoline-2.d: New test definition.
1336 * testsuite/gas/xtensa/trampoline-2.l: Remove empty output.
1337 * testsuite/gas/xtensa/xtensa-err.exp: Use positive logic.
1338
1339 2019-04-11 Max Filippov <jcmvbkbc@gmail.com>
1340
1341 * config/tc-xtensa.c (xtensa_literal_pseudo): Drop code that has
1342 no effect.
1343 (get_literal_pool_location): Only search for the literal pool
1344 when auto litpools is used, otherwise take one recorded in the
1345 tc_segment_info_data.
1346 (xtensa_assign_litpool_addresses): New function.
1347 (xtensa_move_literals): Don't duplicate 'literal pool location
1348 required...' error message. Call xtensa_assign_litpool_addresses.
1349
1350 2019-04-11 Max Filippov <jcmvbkbc@gmail.com>
1351
1352 * config/tc-xtensa.c (xtensa_is_init_fini): Add declaration.
1353 (xtensa_mark_literal_pool_location): Don't add fill frag to literal
1354 section that records literal pool location.
1355 (md_begin): Call xtensa_mark_literal_pool_location when text
1356 section literals or auto litpools are used.
1357 (xtensa_elf_section_change_hook): Call
1358 xtensa_mark_literal_pool_location when text section literals or
1359 auto litpools are used, there's no literal pool location defined
1360 for the current section and it's not .init or .fini.
1361 * testsuite/gas/xtensa/auto-litpools-first1.d: Fix up addresses.
1362 * testsuite/gas/xtensa/auto-litpools-first2.d: Likewise.
1363 * testsuite/gas/xtensa/auto-litpools.d: Likewise.
1364
1365 2019-04-11 Sudakshina Das <sudi.das@arm.com>
1366
1367 * config/tc-aarch64.c (process_omitted_operand): Add case for
1368 AARCH64_OPND_Rt_SP.
1369 (parse_operands): Likewise.
1370 * testsuite/gas/aarch64/armv8_5-a-memtag.d: Update tests.
1371 * testsuite/gas/aarch64/armv8_5-a-memtag.s: Likewise.
1372 * testsuite/gas/aarch64/illegal-memtag.l: Likewise.
1373 * testsuite/gas/aarch64/illegal-memtag.s: Likewise.
1374
1375 2019-04-11 Sudakshina Das <sudi.das@arm.com>
1376
1377 * testsuite/gas/aarch64/armv8_5-a-memtag.d: New tests for ldgm and stgm.
1378 * testsuite/gas/aarch64/armv8_5-a-memtag.s: Likewise.
1379 * testsuite/gas/aarch64/illegal-memtag.l: Likewise.
1380 * testsuite/gas/aarch64/illegal-memtag.s: Likewise.
1381
1382 2019-04-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1383
1384 * config/tc-i386.c (need_plt32_p) [TE_SOLARIS]: Return FALSE.
1385 * testsuite/gas/i386/solaris/solaris.exp: New driver.
1386 * testsuite/gas/i386/solaris/reloc64.d,
1387 testsuite/gas/i386/solaris/x86-64-jump.d,
1388 testsuite/gas/i386/solaris/x86-64-mpx-branch-1.d,
1389 testsuite/gas/i386/solaris/x86-64-mpx-branch-2.d,
1390 testsuite/gas/i386/solaris/x86-64-nop-3.d,
1391 testsuite/gas/i386/solaris/x86-64-nop-4.d,
1392 testsuite/gas/i386/solaris/x86-64-nop-5.d,
1393 testsuite/gas/i386/solaris/x86-64-relax-2.d,
1394 testsuite/gas/i386/solaris/x86-64-relax-3.d: New tests.
1395 * testsuite/gas/i386/reloc64.d,
1396 testsuite/gas/i386/x86-64-jump.d,
1397 testsuite/gas/i386/x86-64-mpx-branch-1.d,
1398 testsuite/gas/i386/x86-64-mpx-branch-2.d,
1399 testsuite/gas/i386/x86-64-nop-3.d,
1400 testsuite/gas/i386/x86-64-nop-4.d,
1401 testsuite/gas/i386/x86-64-nop-5.d,
1402 testsuite/gas/i386/x86-64-relax-2.d,
1403 testsuite/gas/i386/x86-64-relax-3.d: Skip on *-*-solaris*.
1404
1405 2019-04-10 Alan Modra <amodra@gmail.com>
1406
1407 * config/te-cloudabi.h: New file.
1408 * config/tc-aarch64.c (aarch64_after_parse_args): Use TE_CLOUDABI
1409 rather than TARGET_OS to select cloudabi.
1410 * config/tc-i386.h (ELF_TARGET_FORMAT64): Define for TE_CLOUDABI.
1411 * configure.tgt (*-*-cloudabi*): Set em=cloudabi.
1412
1413 2019-04-09 Robert Suchanek <robert.suchanek@mips.com>
1414
1415 * testsuite/gas/mips/mips.exp: Run hwr-names test.
1416 * testsuite/gas/mips/hwr-names.s: Add test cases for RDHWR with
1417 the SEL field.
1418 * testsuite/gas/mips/mipsr6@hwr-names.d: New file.
1419
1420 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1421
1422 * config/tc-i386.c (output_insn): Support
1423 GNU_PROPERTY_X86_ISA_1_AVX512_BF16.
1424 * testsuite/gas/i386/property-2.s: Add AVX512_BF16 test.
1425 * testsuite/gas/i386/property-2.d: Updated.
1426 * testsuite/gas/i386/x86-64-property-2.d: Likewise.
1427
1428 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1429
1430 * configure.tgt: Remove i386-*-kaos* and i386-*-chaos targets.
1431 * testsuite/gas/i386/i386.exp: Remove *-*-caos* and "*-*-kaos*
1432 check.
1433
1434 2019-04-05 H.J. Lu <hongjiu.lu@intel.com>
1435
1436 * testsuite/gas/i386/i386.exp: Run -mx86-used-note=yes tests.
1437 * testsuite/gas/i386/property-2.d: New file.
1438 * testsuite/gas/i386/property-2.s: Likewise.
1439 * testsuite/gas/i386/x86-64-property-2.d: Likewise.
1440
1441 2019-04-05 Xuepeng Guo <xuepeng.guo@intel.com>
1442
1443 * config/tc-i386.c (cpu_arch): Add .avx512_bf16.
1444 (cpu_noarch): Add noavx512_bf16.
1445 * doc/c-i386.texi: Document avx512_bf16.
1446 * testsuite/gas/i386/avx512_bf16.d: New file.
1447 * testsuite/gas/i386/avx512_bf16.s: Likewise.
1448 * testsuite/gas/i386/avx512_bf16_vl-inval.l: Likewise.
1449 * testsuite/gas/i386/avx512_bf16_vl-inval.s: Likewise.
1450 * testsuite/gas/i386/avx512_bf16_vl.d: Likewise.
1451 * testsuite/gas/i386/avx512_bf16_vl.s: Likewise.
1452 * testsuite/gas/i386/x86-64-avx512_bf16.d: Likewise.
1453 * testsuite/gas/i386/x86-64-avx512_bf16.s: Likewise.
1454 * testsuite/gas/i386/x86-64-avx512_bf16_vl-inval.l: Likesie.
1455 * testsuite/gas/i386/x86-64-avx512_bf16_vl-inval.s: Likewise.
1456 * testsuite/gas/i386/x86-64-avx512_bf16_vl.d: Likewise.
1457 * testsuite/gas/i386/x86-64-avx512_bf16_vl.s: Likewise.
1458 * testsuite/gas/i386/i386.exp: Add BF16 related tests.
1459
1460 2019-04-05 Alan Modra <amodra@gmail.com>
1461
1462 * testsuite/gas/ppc/bc.s,
1463 * testsuite/gas/ppc/bcat.d,
1464 * testsuite/gas/ppc/bcaterr.d,
1465 * testsuite/gas/ppc/bcaterr.l,
1466 * testsuite/gas/ppc/bcy.d,
1467 * testsuite/gas/ppc/bcyerr.d,
1468 * testsuite/gas/ppc/bcyerr.l: New tests.
1469 * testsuite/gas/ppc/ppc.exp: Run them.
1470
1471 2019-04-05 Alan Modra <amodra@gmail.com>
1472
1473 * testsuite/gas/ppc/476.d: Remove trailing spaces.
1474 * testsuite/gas/ppc/a2.d: Likewise.
1475 * testsuite/gas/ppc/booke.d: Likewise.
1476 * testsuite/gas/ppc/booke_xcoff.d: Likewise.
1477 * testsuite/gas/ppc/e500.d: Likewise.
1478 * testsuite/gas/ppc/e500mc.d: Likewise.
1479 * testsuite/gas/ppc/e6500.d: Likewise.
1480 * testsuite/gas/ppc/htm.d: Likewise.
1481 * testsuite/gas/ppc/power6.d: Likewise.
1482 * testsuite/gas/ppc/power8.d: Likewise.
1483 * testsuite/gas/ppc/power9.d: Likewise.
1484 * testsuite/gas/ppc/vle.d: Likewise.
1485
1486 2019-04-04 Peter Bergner <bergner@linux.ibm.com>
1487
1488 PR gas/24349
1489 * testsuite/gas/ppc/power8.s: (bdnztar, bdnztarl, bdztar, bdztarl,
1490 btar, btarl, bdnztar-, bdnztarl-, bdnztar+, bdnztarl+, bdztar-,
1491 bdztarl-, bdztar+, bdztarl+, bgetar, bnltar, bgetarl, bnltarl,
1492 bletar, bngtar, bletarl, bngtarl, bnetar, bnetarl, bnstar, bnutar,
1493 bnstarl, bnutarl, bgetar-, bnltar-, bgetarl-, bnltarl-, bletar-,
1494 bngtar-, bletarl-, bngtarl-, bnetar-, bnetarl-, bnstar-, bnutar-,
1495 bnstarl-, bnutarl-, bgetar+, bnltar+, bgetarl+, bnltarl+, bletar+,
1496 bngtar+, bletarl+, bngtarl+, bnetar+, bnetarl+, bnstar+, bnutar+,
1497 bnstarl+, bnutarl+, blttar, blttarl, bgttar, bgttarl, beqtar,
1498 beqtarl, bsotar, buntar, bsotarl, buntarl, blttar-, blttarl-,
1499 bgttar-, bgttarl-, beqtar-, beqtarl-, bsotar-, buntar-, bsotarl-,
1500 buntarl-, blttar+, blttarl+, bgttar+, bgttarl+, beqtar+, beqtarl+,
1501 bsotar+, buntar+, bsotarl+, buntarl+, bdnzftar, bdnzftarl, bdzftar,
1502 bdzftarl, bftar, bftarl, bftar-, bftarl-, bftar+, bftarl+, bdnzttar,
1503 bdnzttarl, bdzttar, bdzttarl, bttar, bttarl, bttar-, bttarl-, bttar+,
1504 bttarl+): Add tests of extended mnemonics.
1505 * testsuite/gas/ppc/power8.d: Likewise. Update previous bctar tests
1506 to expect new extended mnemonics.
1507 * testsuite/gas/ppc/a2.s: <bc, bc-, bc+, bcl, bcl-, bcl+>: Update test
1508 to not use illegal BO value. Use a more convenient BI value.
1509 * testsuite/gas/ppc/a2.d: Update tests for new expect output.
1510
1511 2019-04-03 Max Filippov <jcmvbkbc@gmail.com>
1512
1513 * config/tc-xtensa.c (convert_frag_immed): Drop
1514 convert_frag_immed_finish_loop invocation.
1515 (convert_frag_immed_finish_loop): Drop declaration and
1516 definition.
1517 * config/xtensa-relax.c (widen_spec_list): Replace loop
1518 widening that uses addi/addmi with widening that uses l32r
1519 and const16.
1520
1521 2019-04-01 Andre Vieira <andre.simoesdiasvieira@arm.com>
1522
1523 * config/tc-arm.c (arm_ext_table): New struct type.
1524 (arm_arch_option_table): Add new 'arm_ext_table' field.
1525 (ARM_EXT,ARM_ADD,ARM_REMOVE, ALL_FP): New macros.
1526 (armv5te_ext_table, armv7ve_ext_table, armv7a_ext_table,
1527 armv7r_ext_table, armv7em_ext_table, armv8a_ext_table,
1528 armv81a_ext_table, armv82a_ext_table, armv84a_ext_table,
1529 armv85a_ext_table, armv8m_main_ext_table,
1530 armv8r_ext_table): New architecture extension tables.
1531 (ARM_ARCH_OPT): Add new default field.
1532 (ARM_ARCH_OPT2): New macro.
1533 (arm_archs): Extend some architectures with the new architecture
1534 extension tables mentioned above.
1535 (arm_extensions): Add DEPRECATED comment with instructions to
1536 use new table.
1537 (arm_parse_extension): Change to use new extension tables.
1538 (arm_parse_cpu): Don't change existing behavior.
1539 (arm_parse_arch): Change to use new extension tables.
1540 * doc/c-arm.texi: Document new architecture extensions.
1541 * testsuite/gas/arm/attr-mfpu-neon-fp16.d: Change test to use new
1542 extension option rather than -mfpu and change expected behaviour to
1543 sane outputs.
1544 * testsuite/gas/arm/armv8-2-fp16-scalar-bad-ext.d: New.
1545 * testsuite/gas/arm/armv8-2-fp16-scalar-ext.d: New.
1546 * testsuite/gas/arm/armv8-2-fp16-scalar-thumb-ext.d: New.
1547 * testsuite/gas/arm/armv8-2-fp16-simd-ext.d: New.
1548 * testsuite/gas/arm/armv8-2-fp16-simd-thumb-ext.d: New.
1549 * testsuite/gas/arm/armv8-2-fp16-simd-warning-ext.d: New.
1550 * testsuite/gas/arm/armv8-2-fp16-simd-warning-thumb-ext.d: New.
1551 * testsuite/gas/arm/armv8_2+rdma-ext.d: New.
1552 * testsuite/gas/arm/armv8_2-a-fp16-thumb2-ext.d: New.
1553 * testsuite/gas/arm/armv8_2-a-fp16_ext.d: New.
1554 * testsuite/gas/arm/armv8_3-a-fp-bad-ext.d: New.
1555 * testsuite/gas/arm/armv8_3-a-fp-ext.d: New.
1556 * testsuite/gas/arm/armv8_3-a-fp16-ext.d: New.
1557 * testsuite/gas/arm/armv8_3-a-simd-bad-ext.d: New.
1558 * testsuite/gas/arm/armv8_4-a-fp16-ext.d: New.
1559 * testsuite/gas/arm/armv8m.main+fp.d: New.
1560 * testsuite/gas/arm/armv8m.main+fp.dp.d: New.
1561 * testsuite/gas/arm/attr-ext-fpv5-d16.d: New.
1562 * testsuite/gas/arm/attr-ext-fpv5.d: New.
1563 * testsuite/gas/arm/attr-ext-idiv.d: New.
1564 * testsuite/gas/arm/attr-ext-mp.d: New.
1565 * testsuite/gas/arm/attr-ext-neon-fp16.d: New.
1566 * testsuite/gas/arm/attr-ext-neon-vfpv3.d: New.
1567 * testsuite/gas/arm/attr-ext-neon-vfpv4.d: New.
1568 * testsuite/gas/arm/attr-ext-sec.d: New.
1569 * testsuite/gas/arm/attr-ext-vfpv3-d16-fp16.d: New.
1570 * testsuite/gas/arm/attr-ext-vfpv3-d16.d: New.
1571 * testsuite/gas/arm/attr-ext-vfpv3-fp16.d: New.
1572 * testsuite/gas/arm/attr-ext-vfpv3.d: New.
1573 * testsuite/gas/arm/attr-ext-vfpv3xd-fp.d: New.
1574 * testsuite/gas/arm/attr-ext-vfpv3xd.d: New.
1575 * testsuite/gas/arm/attr-ext-vfpv4-d16.d: New.
1576 * testsuite/gas/arm/attr-ext-vfpv4-sp-d16.d: New.
1577 * testsuite/gas/arm/attr-ext-vfpv4.d: New.
1578 * testsuite/gas/arm/dotprod-mandatory-ext.d: New.
1579 * testsuite/gas/arm/fpv5-d16.s: New.
1580 * testsuite/gas/arm/fpv5-sp-d16.s: New.
1581
1582 2019-03-28 Alan Modra <amodra@gmail.com>
1583
1584 PR 24390
1585 * testsuite/gas/ppc/476.d: Update mtfsb*.
1586 * testsuite/gas/ppc/a2.d: Likewise.
1587
1588 2019-03-21 Alan Modra <amodra@gmail.com>
1589
1590 * emul.h (struct emulation): Delete strip_underscore.
1591 * emul-target.h (emul_strip_underscore): Don't define.
1592 (emul_struct_name): Update initialization.
1593
1594 2019-03-21 Alan Modra <amodra@gmail.com>
1595
1596 * config/tc-d10v.c (md_apply_fix): Apply BFD_RELOC_8.
1597 * config/tc-pdp11.c (md_apply_fix): Likewise.
1598 * config/tc-d30v.c (md_apply_fix): Don't emit errors for BFD_RELOC_8,
1599 BFD_RELOC_16, and BFD_RELOC_64.
1600 * testsuite/gas/all/gas.exp: Move target exclusions for forward
1601 test, but not cr16, to..
1602 * testsuite/gas/all/forward.d: ..here, with explanation. Remove
1603 d10v, d30v, and pdp11 xfails.
1604
1605 2019-03-19 H.J. Lu <hongjiu.lu@intel.com>
1606
1607 * config/tc-i386.c (optimize_encoding): Don't check AVX for
1608 EVEX vector load/store optimization. Check both operands for
1609 ZMM register. Update EVEX vector load/store opcode check.
1610 Choose EVEX Disp8 over VEX Disp32.
1611 * testsuite/gas/i386/optimize-1.d: Updated.
1612 * testsuite/gas/i386/optimize-1a.d: Likewise.
1613 * testsuite/gas/i386/optimize-2.d: Likewise.
1614 * testsuite/gas/i386/optimize-4.d: Likewise.
1615 * testsuite/gas/i386/optimize-5.d: Likewise.
1616 * testsuite/gas/i386/x86-64-optimize-2.d: Likewise.
1617 * testsuite/gas/i386/x86-64-optimize-2a.d: Likewise.
1618 * testsuite/gas/i386/x86-64-optimize-2b.d: Likewise.
1619 * testsuite/gas/i386/x86-64-optimize-3.d: Likewise.
1620 * testsuite/gas/i386/x86-64-optimize-5.d: Likewise.
1621 * testsuite/gas/i386/x86-64-optimize-6.d: Likewise.
1622 * testsuite/gas/i386/optimize-1.s: Add ZMM register load
1623 test.
1624 * testsuite/gas/i386/x86-64-optimize-2.s: Likewise.
1625
1626 2019-03-19 H.J. Lu <hongjiu.lu@intel.com>
1627
1628 PR gas/24352
1629 * config/tc-i386.c (optimize_encoding): Check only
1630 cpu_arch_flags.bitfield.cpuavx512vl.
1631 * testsuite/gas/i386/i386.exp: Run x86-64-optimize-2b.
1632 * testsuite/gas/i386/x86-64-optimize-2.d: Revert the last
1633 change.
1634 * testsuite/gas/i386/x86-64-optimize-2b.d: New file.
1635 * testsuite/gas/i386/x86-64-optimize-2b.s: Likewise.
1636
1637 2019-03-19 H.J. Lu <hongjiu.lu@intel.com>
1638
1639 PR gas/24359
1640 * testsuite/gas/i386/i386.exp: Change optimize-6a, optimize-7,
1641 x86-64-optimize-7a and x86-64-optimize-8 tests to run_list_test.
1642 Remove optimize-6c and x86-64-optimize-7c tests.
1643 * testsuite/gas/i386/noavx-3.l: Updated.
1644 * testsuite/gas/i386/noavx-4.d: Likewise.
1645 * testsuite/gas/i386/noavx-5.d: Likewise.
1646 * testsuite/gas/i386/noavx-3.s: Add AVX512F tests.
1647 * testsuite/gas/i386/noavx-4.s: Remove AVX512F tests.
1648 * testsuite/gas/i386/nosse-5.s: Likewise.
1649 * testsuite/gas/i386/optimize-6a.d: Removed.
1650 * testsuite/gas/i386/optimize-6c.d: Likewise.
1651 * testsuite/gas/i386/optimize-7.d: Likewise.
1652 * testsuite/gas/i386/x86-64-optimize-7a.d: Likewise.
1653 * testsuite/gas/i386/x86-64-optimize-7c.d: Likewise.
1654 * testsuite/gas/i386/x86-64-optimize-8.d: Likewise.
1655 * testsuite/gas/i386/optimize-6a.l: New file.
1656 * testsuite/gas/i386/optimize-6a.s: Likewise.
1657 * testsuite/gas/i386/optimize-7.l: Likewise.
1658 * testsuite/gas/i386/x86-64-optimize-7a.l: Likewise.
1659 * testsuite/gas/i386/x86-64-optimize-7a.s: Likewise.
1660 * testsuite/gas/i386/x86-64-optimize-8.l: Likewise.
1661
1662 2019-03-18 Alan Modra <amodra@gmail.com>
1663
1664 * config/m68k-parse.y (yylex): Use temp_ilp and restore_ilp.
1665 * as.c (macro_expr): Likewise.
1666 * macro.c (buffer_and_nest): Likewise.
1667 * read.c (temp_ilp): Remove FIXME.
1668
1669 2019-03-18 H.J. Lu <hongjiu.lu@intel.com>
1670
1671 * testsuite/gas/i386/att-regs.d: Pass -O0 to assembler.
1672 * testsuite/gas/i386/avx512bw-intel.d: Likewise.
1673 * testsuite/gas/i386/avx512bw.d: Likewise.
1674 * testsuite/gas/i386/avx512f-intel.d: Likewise.
1675 * testsuite/gas/i386/avx512f.d: Likewise.
1676 * testsuite/gas/i386/disp32.d: Likewise.
1677 * testsuite/gas/i386/intel-regs.d: Likewise.
1678 * testsuite/gas/i386/pseudos.d: Likewise.
1679 * testsuite/gas/i386/x86-64-disp32.d: Likewise.
1680 * testsuite/gas/i386/x86-64-pseudos.d: Likewise.
1681
1682 2019-03-18 H.J. Lu <hongjiu.lu@intel.com>
1683
1684 PR gas/24348
1685 * config/tc-i386.c (optimize_encoding): Encode 128-bit and
1686 256-bit EVEX vector register load/store instructions as VEX
1687 vector register load/store instructions for -O1.
1688 * doc/c-i386.texi: Update -O1 documentation.
1689 * testsuite/gas/i386/i386.exp: Run PR gas/24348 tests.
1690 * testsuite/gas/i386/optimize-1.s: Add tests for EVEX vector
1691 load/store instructions.
1692 * testsuite/gas/i386/optimize-2.s: Likewise.
1693 * testsuite/gas/i386/optimize-3.s: Likewise.
1694 * testsuite/gas/i386/optimize-5.s: Likewise.
1695 * testsuite/gas/i386/x86-64-optimize-2.s: Likewise.
1696 * testsuite/gas/i386/x86-64-optimize-3.s: Likewise.
1697 * testsuite/gas/i386/x86-64-optimize-4.s: Likewise.
1698 * testsuite/gas/i386/x86-64-optimize-5.s: Likewise.
1699 * testsuite/gas/i386/x86-64-optimize-6.s: Likewise.
1700 * testsuite/gas/i386/optimize-1.d: Updated.
1701 * testsuite/gas/i386/optimize-2.d: Likewise.
1702 * testsuite/gas/i386/optimize-3.d: Likewise.
1703 * testsuite/gas/i386/optimize-4.d: Likewise.
1704 * testsuite/gas/i386/optimize-5.d: Likewise.
1705 * testsuite/gas/i386/x86-64-optimize-2.d: Likewise.
1706 * testsuite/gas/i386/x86-64-optimize-3.d: Likewise.
1707 * testsuite/gas/i386/x86-64-optimize-4.d: Likewise.
1708 * testsuite/gas/i386/x86-64-optimize-5.d: Likewise.
1709 * testsuite/gas/i386/x86-64-optimize-6.d: Likewise.
1710 * testsuite/gas/i386/optimize-7.d: New file.
1711 * testsuite/gas/i386/optimize-7.s: Likewise.
1712 * testsuite/gas/i386/x86-64-optimize-8.d: Likewise.
1713 * testsuite/gas/i386/x86-64-optimize-8.s: Likewise.
1714
1715 2019-03-18 H.J. Lu <hongjiu.lu@intel.com>
1716
1717 * config/tc-i386.c (optimize_encoding): Encode 256-bit/512-bit
1718 VEX/EVEX vector register clearing instructions with 128-bit VEX
1719 vector register clearing instructions at -O1.
1720 * doc/c-i386.texi: Update -O1 and -O2 documentation.
1721 * testsuite/gas/i386/i386.exp: Run optimize-1a and
1722 x86-64-optimize-2a.
1723 * testsuite/gas/i386/optimize-1a.d: New file.
1724 * testsuite/gas/i386/x86-64-optimize-2a.d: Likewise.
1725
1726 2019-03-17 H.J. Lu <hongjiu.lu@intel.com>
1727
1728 PR gas/24353
1729 * config/tc-i386.c: Include <limits.h> if it exists and try
1730 including <sys/param.h> if we have it.
1731 (INT_MAX): Define if not defined.
1732 (md_parse_option): Set optimize to INT_MAX for -Os.
1733 * testsuite/gas/i386/optimize-2.s: Add a test.
1734 * testsuite/gas/i386/x86-64-optimize-3.s: Likewise.
1735 * testsuite/gas/i386/optimize-2.d: Updated.
1736 * testsuite/gas/i386/x86-64-optimize-3.d: Likewise.
1737
1738 2019-03-17 H.J. Lu <hongjiu.lu@intel.com>
1739
1740 PR gas/24352
1741 * config/tc-i386.c (optimize_encoding): Encode 512-bit EVEX
1742 with 128-bit VEX encoding only when AVX is enabled and with
1743 128-bit EVEX encoding only when AVX512VL is enabled.
1744 * testsuite/gas/i386/i386.exp: Run PR gas/24352 tests.
1745 * testsuite/gas/i386/optimize-6.s: New file.
1746 * testsuite/gas/i386/optimize-6a.d: Likewise.
1747 * testsuite/gas/i386/optimize-6b.d: Likewise.
1748 * testsuite/gas/i386/optimize-6c.d: Likewise.
1749 * testsuite/gas/i386/x86-64-optimize-7.s: Likewise.
1750 * testsuite/gas/i386/x86-64-optimize-7a.d: Likewise.
1751 * testsuite/gas/i386/x86-64-optimize-7b.d: Likewise.
1752 * testsuite/gas/i386/x86-64-optimize-7c.d: Likewise.
1753 * testsuite/gas/i386/x86-64-optimize-2.d: Updated.
1754
1755 2019-03-15 Li Hao <li.hao296@zte.com.cn>
1756
1757 PR 24308
1758 * config/tc-i386.c (parse_insn): Check mnemp before using it to
1759 determine if a suffix can be trimmed.
1760
1761 2019-03-13 Christian Eggers <ceggers@gmx.de>
1762
1763 * dwarf2dbg.c (out_set_addr): Align relocation within .debug_line.
1764
1765 2019-03-13 Christian Eggers <ceggers@gmx.de>
1766
1767 * dwarf2dbg.c (out_debug_line): Pad size of .debug_line section.
1768
1769 2019-03-13 Christian Eggers <ceggers@gmx.de>
1770
1771 * dwarf2dbg.c (out_debug_str): Use octets for .debug_string pointers.
1772
1773 2019-03-13 Christian Eggers <ceggers@gmx.de>
1774
1775 * dwarf2dbg.c (out_debug_line): Use octets for .debug_line prologue.
1776
1777 2019-03-13 Christian Eggers <ceggers@gmx.de>
1778
1779 * dwarf2dbg.c (out_debug_line): Use octets for dwarf2 headers.
1780 (out_debug_aranges, out_debug_info): Likewise.
1781
1782 2019-03-13 Christian Eggers <ceggers@gmx.de>
1783
1784 * symbols.h (symbol_temp_new_now_octets): Declare.
1785 (symbol_set_value_now_octets, symbol_octets_p): Declare.
1786 * symbols.c (struct symbol_flags): New member sy_octets.
1787 (symbol_temp_new_now_octets): New function.
1788 (resolve_symbol_value): Return octets instead of bytes if
1789 sy_octets is set.
1790 (symbol_set_value_now_octets): New function.
1791 (symbol_octets_p): New function.
1792
1793 2019-03-13 Christian Eggers <ceggers@gmx.de>
1794
1795 * dwarf2dbg.c (dwarf2_emit_insn): Fix calculation of line info offset.
1796
1797 2019-03-12 Andreas Krebbel <krebbel@linux.ibm.com>
1798
1799 * testsuite/gas/s390/zarch-arch13.s: Adjust testcase to optable changes.
1800 * testsuite/gas/s390/zarch-arch13.d: Likewise.
1801
1802 2019-02-27 Matthew Malcomson <matthew.malcomson@arm.com>
1803
1804 * testsuite/gas/aarch64/dotproduct.d: Use multiple "as" lines.
1805 * testsuite/gas/aarch64/dotproduct_armv8_4.d: Remove.
1806 * testsuite/gas/aarch64/dotproduct_armv8_4.s: Remove.
1807 * testsuite/gas/aarch64/illegal-dotproduct.d: Use multiple "as"
1808 lines.
1809 * testsuite/gas/aarch64/ldst-rcpc-armv8_2.d: Remove.
1810 * testsuite/gas/aarch64/ldst-rcpc.d: Use multiple "as" lines.
1811
1812 2019-02-24 Alan Modra <amodra@gmail.com>
1813
1814 * config/tc-ppc.c (parse_tls_arg): Wrap in #ifdef OBJ_ELF.
1815
1816 2019-02-24 Alan Modra <amodra@gmail.com>
1817
1818 PR 24144
1819 * config/obj-aout.c (obj_aout_frob_file_before_fix): Write to end
1820 of section to ensure file contents cover aligned section size.
1821
1822 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1823
1824 * config/tc-arm.c (arm_cpus): Add neoverse-n1.
1825 * doc/c-arm.texi (-mcpu): Document neoverse-n1 value.
1826
1827 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1828
1829 * config/tc-aarch64.c (aarch64_cpus): Add neoverse-e1.
1830 * doc/c-aarch64.texi (-mcpu): Document neoverse-e1 value.
1831
1832 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1833
1834 * config/tc-aarch64.c (aarch64_cpus): Add neoverse-n1.
1835 * doc/c-aarch64.texi (-mcpu): Document neoverse-n1 value.
1836
1837 2019-02-19 Paul Hua <paul.hua.gm@gmail.com>
1838
1839 * NEWS: Mention -m[no-]fix-loongson3-llsc.
1840 * configure.ac: Add --enable-mips-fix-loongson3-llsc.
1841 Define DEFAULT_MIPS_FIX_LOONGSON3_LLSC.
1842 * config.in: Regenerated.
1843 * configure: Likewise.
1844 * config/tc-mips.c (sync_insn, mips_fix_loongson3_llsc):
1845 New variables.
1846 (options): New OPTION_FIX_LOONGSON3_LLSC,
1847 OPTION_NO_FIX_LOONGSON3_LLSC.
1848 (md_longopts): Add -m[no-]fix-loongson3-llsc.
1849 (md_begin): Initialize sync insn.
1850 (fix_loongson3_llsc): New.
1851 (append_insn): Call fix_loongson3_llsc.
1852 (md_parse_option): Handle OPTION_FIX_LOONGSON3_LLSC,
1853 OPTION_NO_FIX_LOONGSON3_LLSC.
1854 (md_show_usage): Display -m[no-]fix-loongson3-llsc.
1855 * doc/c-mips.texi: Document -m[no-]fix-loongson3-llsc,
1856 --enable-mips-fix-loongson3-llsc=[yes|no].
1857
1858 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
1859
1860 PR gas/24165
1861 * frags.c (frag_var_init): Pass max_chars to TC_FRAG_INIT as
1862 max_bytes.
1863 * config/tc-aarch64.h (TC_FRAG_INIT): Add and pass max_bytes to
1864 aarch64_init_frag.
1865 * /config/tc-arm.h (TC_FRAG_INIT): And and pass max_bytes to
1866 arm_init_frag.
1867 * config/tc-avr.h (TC_FRAG_INIT): And and ignore max_bytes.
1868 * config/tc-ia64.h (TC_FRAG_INIT): Likewise.
1869 * config/tc-mmix.h (TC_FRAG_INIT): Likewise.
1870 * config/tc-nds32.h (TC_FRAG_INIT): Likewise.
1871 * config/tc-ns32k.h (TC_FRAG_INIT): Likewise.
1872 * config/tc-rl78.h (TC_FRAG_INIT): Likewise.
1873 * config/tc-rx.h (TC_FRAG_INIT): Likewise.
1874 * config/tc-score.h (TC_FRAG_INIT): Likewise.
1875 * config/tc-tic54x.h (TC_FRAG_INIT): Likewise.
1876 * config/tc-tic6x.h (TC_FRAG_INIT): Likewise.
1877 * config/tc-xtensa.h (TC_FRAG_INIT): Likewise.
1878 * config/tc-i386.h (MAX_MEM_FOR_RS_ALIGN_CODE): Set to
1879 (alignment ? ((1 << alignment) - 1) : 1)
1880 (i386_tc_frag_data): Add max_bytes.
1881 (TC_FRAG_INIT): Add and track max_bytes.
1882 (HANDLE_ALIGN): Replace MAX_MEM_FOR_RS_ALIGN_CODE with
1883 fragP->tc_frag_data.max_bytes.
1884 * doc/internals.texi: Update TC_FRAG_TYPE with max_bytes.
1885
1886 2019-02-08 Jim Wilson <jimw@sifive.com>
1887
1888 * config/tc-riscv.c (validate_riscv_insn) <'C'>: Add 'z' support.
1889 (riscv_ip) <'C'>: Add 'z' support.
1890
1891 2019-02-07 Tamar Christina <tamar.christina@arm.com>
1892
1893 * config/tc-arm.c (insns): Redefine THUMB_VARIANT and ARM_VARIANT for
1894 hlt to armv1.
1895 * testsuite/gas/arm/armv8a-automatic-hlt.d: Update TAGs
1896 * testsuite/gas/arm/hlt.d: New test.
1897 * testsuite/gas/arm/hlt.s: New test.
1898
1899 2019-02-07 Tamar Christina <tamar.christina@arm.com>
1900
1901 * testsuite/gas/aarch64/undefined_advsimd_armv8_3.d: New test.
1902 * testsuite/gas/aarch64/undefined_advsimd_armv8_3.s: New test.
1903
1904 2019-02-07 Tamar Christina <tamar.christina@arm.com>
1905
1906 PR binutils/23212
1907 * testsuite/gas/aarch64/undefined_by_elem_sz_l.s: New test.
1908 * testsuite/gas/aarch64/undefined_by_elem_sz_l.d: New test.
1909
1910 2019-02-07 Eric Botcazou <ebotcazou@adacore.com>
1911
1912 * config/tc-visium.c (md_assemble) <mode_cad>: Align instruction on
1913 64-bit boundaries for the GR6.
1914 * testsuite/gas/visium/allinsn_gr6.s: Tweak.
1915 * testsuite/gas/visium/allinsn_gr6.d: Likewise.
1916 * testsuite/gas/visium/bra-1.d: New test.
1917 * testsuite/gas/visium/bra-1.s: Likewise.
1918 * testsuite/gas/visium/visium.exp: Run bra-1 test.
1919
1920 2019-01-31 John Darrington <john@darrington.wattle.id.au>
1921
1922 * config/tc-s12z.c (lex_imm): Add new argument exp_o.
1923 (emit_reloc): New function.
1924 (md_apply_fix): [BFD_RELOC_S12Z_OPR] Recognise that it
1925 can be either 2 bytes or 3 bytes long.
1926 * testsuite/gas/s12z/mov-imm-reloc.d: New file.
1927 * testsuite/gas/s12z/mov-imm-reloc.s: New file.
1928 * testsuite/gas/s12z/s12z.exp: Add them.
1929
1930 2019-01-31 John Darrington <john@darrington.wattle.id.au>
1931
1932 * config/tc-s12z.c (md_apply_fix): Fix incorrect limits.
1933 * testsuite/gas/s12z/pc-rel-bad.d: New file.
1934 * testsuite/gas/s12z/pc-rel-bad.l: New file.
1935 * testsuite/gas/s12z/pc-rel-bad.s: New file.
1936 * testsuite/gas/s12z/pc-rel-good.d: New file.
1937 * testsuite/gas/s12z/pc-rel-good.s: New file.
1938 * testsuite/gas/s12z/s12z.exp: Add them.
1939
1940 2019-01-31 John Darrington <john@darrington.wattle.id.au>
1941
1942 * config/tc-s12z.c (tfr): Emit warning if operands are the same.
1943 * testsuite/gas/s12z/exg.d: New test case.
1944 * testsuite/gas/s12z/exg.l: New file.
1945
1946 2019-01-31 John Darrington <john@darrington.wattle.id.au>
1947
1948 * config/tc-s12z.c (lex_opr): Add a parameter to indicate whether
1949 immediate mode operands should be permitted.
1950 * testsuite/s12z/imm-dest.d: New file.
1951 * testsuite/s12z/imm-dest.l: New file.
1952 * testsuite/s12z/imm-dest.s: New file.
1953 * testsuite/s12z/s12z.exp: Add them.
1954
1955 2019-01-31 Andreas Krebbel <krebbel@linux.ibm.com>
1956
1957 * config/tc-s390.c (s390_parse_cpu): New entry for arch13.
1958 * doc/c-s390.texi: Document arch13 march option.
1959 * testsuite/gas/s390/s390.exp: Run the arch13 related tests.
1960 * testsuite/gas/s390/zarch-arch13.d: New test.
1961 * testsuite/gas/s390/zarch-arch13.s: New test.
1962 * testsuite/gas/s390/zarch-z13.d: Expect the renamed mnemonics
1963 also for z13.
1964
1965 2019-01-31 Alan Modra <amodra@gmail.com>
1966
1967 * config/tc-alpha.c (md_apply_fix): Correct range checks for
1968 BFD_RELOC_ALPHA_NOP, BFD_RELOC_ALPHA_LDA, BFD_RELOC_ALPHA_BSR.
1969 * config/tc-arm.c (md_apply_fix): Use llabs rather than abs.
1970 * config/tc-csky.c (get_macro_reg_vals): Pass s to csky_show_error.
1971
1972 2019-01-28 Max Filippov <jcmvbkbc@gmail.com>
1973
1974 * config/tc-xtensa.c (md_apply_fix): Mark fixups for constant
1975 symbols as done in md_apply_fix.
1976 * testsuite/gas/all/forward.d: Don't XFAIL for xtensa.
1977
1978 2019-01-28 Nick Clifton <nickc@redhat.com>
1979
1980 * po/fr.po: Updated French translation.
1981 * po/ru.po: Updated Russian translation.
1982
1983 2019-01-28 Alan Modra <amodra@gmail.com>
1984
1985 * configure.ac (ac_checking): Set from bfd/development.sh
1986 development variable.
1987 * configure: Regenerate.
1988
1989 2019-01-25 Sudakshina Das <sudi.das@arm.com>
1990
1991 * config/tc-aarch64.c (warn_unpredictable_ldst): Exempt
1992 stg, st2g, stzg and stz2g from Xt == Xn with writeback warning.
1993 * testsuite/gas/aarch64/armv8_5-a-memtag.d: Change tests for
1994 stg, stzg, st2g and stz2g.
1995 * testsuite/gas/aarch64/armv8_5-a-memtag.s: Likewise.
1996 * testsuite/gas/aarch64/illegal-memtag.l: Likewise.
1997 * testsuite/gas/aarch64/illegal-memtag.s: Likewise.
1998
1999 2019-01-25 Sudakshina Das <sudi.das@arm.com>
2000
2001 * testsuite/gas/aarch64/armv8_5-a-memtag.d: New tests for stzgm.
2002 * testsuite/gas/aarch64/armv8_5-a-memtag.s: Likewise.
2003 * testsuite/gas/aarch64/illegal-memtag.l: Likewise.
2004 * testsuite/gas/aarch64/illegal-memtag.s: Likewise.
2005
2006 2019-01-25 Sudakshina Das <sudi.das@arm.com>
2007 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2008
2009 * config/tc-aarch64.c (parse_address_main): Remove support for
2010 [base]! address expression.
2011 (parse_operands): Remove support for AARCH64_OPND_ADDR_SIMPLE_2.
2012 (warn_unpredictable_ldst): Remove support for ldstgv_indexed.
2013 * testsuite/gas/aarch64/armv8_5-a-memtag.d: Remove tests for ldgv
2014 and stgv.
2015 * testsuite/gas/aarch64/armv8_5-a-memtag.s: Likewise.
2016 * testsuite/gas/aarch64/illegal-memtag.l: Likewise.
2017 * testsuite/gas/aarch64/illegal-memtag.s: Likewise.
2018
2019 2019-01-25 Wu Heng <wu.heng@zte.com.cn>
2020
2021 PR gas/23940
2022 * macro.c (getstring): Check array bound before accessing.
2023
2024 2019-01-25 Alan Modra <amodra@gmail.com>
2025
2026 PR 20902
2027 PR 24125
2028 * read.c (stringer): Delete assertion.
2029
2030 2019-01-21 Nick Clifton <nickc@redhat.com>
2031
2032 * po/uk.po: Updated Ukranian translation.
2033
2034 2019-01-19 Nick Clifton <nickc@redhat.com>
2035
2036 * config.in: Regenerate.
2037 * configure: Regenerate.
2038 * po/gas.pot: Regenerate.
2039
2040 2018-06-24 Nick Clifton <nickc@redhat.com>
2041
2042 2.32 branch created.
2043
2044 2019-01-17 Tamar Christina <tamar.christina@arm.com>
2045
2046 * testsuite/gas/arm/archv6t2-1-pe.d: New test.
2047 * testsuite/gas/arm/archv6t2-1.d: Skip pe.
2048 * testsuite/gas/arm/csdb.d: Skip pe.
2049 * testsuite/gas/arm/sb-thumb1-pe.d: New test.
2050 * testsuite/gas/arm/sb-thumb1.d: Skip pe.
2051 * testsuite/gas/arm/sb-thumb2-pe.d: New test.
2052 * testsuite/gas/arm/sb-thumb2.d: Skip pe.
2053 * testsuite/gas/arm/udf.d: Skip pe.
2054
2055 2019-01-16 Kito Cheng <kito@andestech.com>
2056
2057 * testsuite/gas/riscv/attribute-empty.d: New.
2058
2059 2019-01-16 Kito Cheng <kito@andestech.com>
2060 Nelson Chu <nelson@andestech.com>
2061
2062 * config/tc-riscv.c (DEFAULT_RISCV_ATTR): Define to 0 if not defined.
2063 (riscv_set_options): Add `arch_attr` field.
2064 (riscv_opts): Set default value for arch_attr.
2065 (riscv_write_out_arch_attr): New.
2066 (riscv_set_public_attributes): Likewise.
2067 (riscv_md_end): Likewise.
2068 (riscv_convert_symbolic_attribute): Likewise.
2069 (s_riscv_attribute): Likewise.
2070 (explicit_arch_attr): Likewise.
2071 (riscv_pseudo_table): Add .attribute to the table.
2072 (options): Add OPTION_ARCH_ATTR and OPTION_NO_ARCH_ATTR
2073 enumeration constants.
2074 (md_longopts): Add `march-attr' and `mno-arch-attr' options.
2075 (md_parse_option): Handle the new options.
2076 (md_show_usage): Document the `march-attr' option.
2077 * config/tc-riscv.h (md_end): Define as riscv_md_end
2078 (riscv_md_end): Declare.
2079 (CONVERT_SYMBOLIC_ATTRIBUTE): Define as
2080 riscv_convert_symbolic_attribute.
2081 (riscv_convert_symbolic_attribute): Declare.
2082 (start_assemble): Declare.
2083 * testsuite/gas/elf/elf.exp: Adjust test case for section2.e.
2084 * testsuite/gas/elf/section2.e-riscv: New.
2085 * testsuite/gas/riscv/attribute-01.d: New test
2086 * testsuite/gas/riscv/attribute-02.d: Likewise.
2087 * testsuite/gas/riscv/attribute-03.d: Likewise.
2088 * testsuite/gas/riscv/attribute-04.d: Likewise.
2089 * testsuite/gas/riscv/attribute-04.s: Likewise.
2090 * testsuite/gas/riscv/attribute-05.d: Likewise.
2091 * testsuite/gas/riscv/attribute-05.s: Likewise.
2092 * testsuite/gas/riscv/attribute-06.d: Likewise.
2093 * testsuite/gas/riscv/attribute-06.s: Likewise.
2094 * testsuite/gas/riscv/attribute-07.d: Likewise.
2095 * testsuite/gas/riscv/attribute-07.s: Likewise.
2096 * testsuite/gas/riscv/attribute-08.d: Likewise.
2097 * testsuite/gas/riscv/attribute-08.s: Likewise.
2098 * testsuite/gas/riscv/attribute-unknown.d: Likewise.
2099 * testsuite/gas/riscv/attribute-unknown.s: Likewise.
2100 * testsuite/gas/riscv/empty.l: Likewise.
2101 * doc/c-riscv.texi (.attribute): Add documentation.
2102 * configure.ac (--enable-default-riscv-attribute): New options.
2103 * configure: Re-generate.
2104 * config.in: Re-generate.
2105
2106 2019-01-16 John Darrington <john@darrington.wattle.id.au>
2107
2108 * config/tc-s12z.c (lex_reg_name): Compare the length of the strings
2109 before the contents.
2110 * testsuite/gas/s12z/labels.d: New file.
2111 * testsuite/gas/s12z/labels.s: New file.
2112 * testsuite/gas/s12z/s12z.exp: Add them.
2113 * config/tc-s12z.c (tfr): Change as_bad to as_warn.
2114 Also fix message typo and semantics.
2115 * config/tc-s12z.c (emit_opr): Emit BFD_RELOC_S12Z_OPR instead of
2116 BFD_RELOC_24.
2117 * testsuite/gas/s12z/opr-indirect-expr.d: Expect R_S12Z_OPR instead
2118 of R_S12Z_EXT24.
2119
2120 2019-01-14 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2121
2122 * config/tc-arm.c (arm_ext_v6k_v6t2): Define.
2123 (insns) [ARM_VARIANT]: Modified.
2124 (insns) [THUMB_VARIANT]: To implement few ARMv6K instructions
2125 in ARMv6T2 as well.
2126 * testsuite/gas/arm/archv6t2-1.d: New test.
2127 * testsuite/gas/arm/archv6t2-1.s: Likewise.
2128 * testsuite/gas/arm/archv6t2-2.d: Likewise.
2129
2130 2019-01-11 Alan Modra <amodra@gmail.com>
2131
2132 PR 23963
2133 * testsuite/gas/m68hc11/lbranch-dwarf2.d: Adjust for PR23963 change.
2134 * testsuite/gas/m68hc11/opers12-dwarf2.d: Likewise.
2135
2136 2019-01-10 Nick Clifton <nickc@redhat.com>
2137
2138 PR 23963
2139 * testsuite/gas/mips/mips16-branch-absolute-1.d: Adjust for the
2140 fact that control characters are now displayed as escape
2141 sequences.
2142 * testsuite/gas/mips/mips16-e.d: Likewise.
2143 * testsuite/gas/mips/mips16-pcrel-0.d: Likewise.
2144 * testsuite/gas/mips/mips16-pcrel-1.d: Likewise.
2145 * testsuite/gas/mips/mips16-pcrel-delay-0.d: Likewise.
2146 * testsuite/gas/mips/mips16-pcrel-delay-1.d: Likewise.
2147 * testsuite/gas/mips/mips16-pcrel-n32-0.d: Likewise.
2148 * testsuite/gas/mips/mips16-pcrel-n32-1.d: Likewise.
2149 * testsuite/gas/mips/mips16-pcrel-n64-sym32-0.d: Likewise.
2150 * testsuite/gas/mips/mips16-pcrel-n64-sym32-1.d: Likewise.
2151 * testsuite/gas/mips/mips16e2@mips16-pcrel-0.d: Likewise.
2152 * testsuite/gas/mips/mips16e2@mips16-pcrel-1.d: Likewise.
2153 * testsuite/gas/mips/mips16e2@mips16-pcrel-delay-0.d: Likewise.
2154 * testsuite/gas/mips/mips16e2@mips16-pcrel-delay-1.d: Likewise.
2155 * testsuite/gas/mips/mips16e2@mips16-pcrel-n32-0.d: Likewise.
2156 * testsuite/gas/mips/mips16e2@mips16-pcrel-n32-1.d: Likewise.
2157 * testsuite/gas/mips/mips16e2@mips16-pcrel-n64-sym32-0.d:
2158 Likewise.
2159 * testsuite/gas/mips/mips16e2@mips16-pcrel-n64-sym32-1.d:
2160 Likewise.
2161 * testsuite/gas/mips/mipsel16-e.d: Likewise.
2162 * testsuite/gas/mips/mipsr6@msa.d: Likewise.
2163 * testsuite/gas/mips/mipsr6@relax-swap3.d: Likewise.
2164 * testsuite/gas/mips/r6-64-n32.d: Likewise.
2165 * testsuite/gas/mips/r6-64-n64.d: Likewise.
2166 * testsuite/gas/mips/r6-n32.d: Likewise.
2167 * testsuite/gas/mips/r6-n64.d: Likewise.
2168 * testsuite/gas/mips/r6.d: Likewise.
2169 * testsuite/gas/mips/tmips16-e.d: Likewise.
2170 * testsuite/gas/mips/tmipsel16-e.d: Likewise.
2171 * testsuite/gas/mn10300/relax.d: Likewise.
2172
2173 2019-01-09 John Darrington <john@darrington.wattle.id.au>
2174
2175 * testsuite/gas/s12z/jsr.s: New case.
2176 * testsuite/gas/s12z/jsr.d: New case.
2177
2178 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
2179
2180 * configure: Regenerate.
2181
2182 2019-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2183
2184 * config/tc-aarch64.c (aarch64_cpus): Add ares.
2185 * doc/c-aarch64.texi (-mcpu): Document ares value.
2186
2187 2019-01-08 Alan Modra <amodra@gmail.com>
2188
2189 * testsuite/gas/rx/rx.exp: Create generated test source in
2190 current directory.
2191 * testsuite/gas/rx/Xtod.d, * testsuite/gas/rx/abs.d,
2192 * testsuite/gas/rx/adc.d, * testsuite/gas/rx/add.d,
2193 * testsuite/gas/rx/and.d, * testsuite/gas/rx/bclr.d,
2194 * testsuite/gas/rx/bcnd.d, * testsuite/gas/rx/bfmov.d,
2195 * testsuite/gas/rx/bmcnd.d, * testsuite/gas/rx/bnot.d,
2196 * testsuite/gas/rx/bra.d, * testsuite/gas/rx/brk.d,
2197 * testsuite/gas/rx/bset.d, * testsuite/gas/rx/bsr.d,
2198 * testsuite/gas/rx/btst.d, * testsuite/gas/rx/clrpsw.d,
2199 * testsuite/gas/rx/cmp.d, * testsuite/gas/rx/dabs.d,
2200 * testsuite/gas/rx/dadd.d, * testsuite/gas/rx/dbt.d,
2201 * testsuite/gas/rx/dcmp.d, * testsuite/gas/rx/ddiv.d,
2202 * testsuite/gas/rx/div.d, * testsuite/gas/rx/divu.d,
2203 * testsuite/gas/rx/dmov.d, * testsuite/gas/rx/dmul.d,
2204 * testsuite/gas/rx/dneg.d, * testsuite/gas/rx/dpopm.d,
2205 * testsuite/gas/rx/dpushm.d, * testsuite/gas/rx/dround.d,
2206 * testsuite/gas/rx/dsqrt.d, * testsuite/gas/rx/dsub.d,
2207 * testsuite/gas/rx/dtoX.d, * testsuite/gas/rx/emaca.d,
2208 * testsuite/gas/rx/emsba.d, * testsuite/gas/rx/emul.d,
2209 * testsuite/gas/rx/emula.d, * testsuite/gas/rx/emulu.d,
2210 * testsuite/gas/rx/fadd.d, * testsuite/gas/rx/fcmp.d,
2211 * testsuite/gas/rx/fdiv.d, * testsuite/gas/rx/fmul.d,
2212 * testsuite/gas/rx/fsqrt.d, * testsuite/gas/rx/fsub.d,
2213 * testsuite/gas/rx/ftoi.d, * testsuite/gas/rx/ftou.d,
2214 * testsuite/gas/rx/gprel.d, * testsuite/gas/rx/int.d,
2215 * testsuite/gas/rx/itof.d, * testsuite/gas/rx/jmp.d,
2216 * testsuite/gas/rx/jsr.d, * testsuite/gas/rx/machi.d,
2217 * testsuite/gas/rx/maclh.d, * testsuite/gas/rx/maclo.d,
2218 * testsuite/gas/rx/max.d, * testsuite/gas/rx/min.d,
2219 * testsuite/gas/rx/mov.d, * testsuite/gas/rx/movco.d,
2220 * testsuite/gas/rx/movli.d, * testsuite/gas/rx/movu.d,
2221 * testsuite/gas/rx/msbhi.d, * testsuite/gas/rx/msblh.d,
2222 * testsuite/gas/rx/msblo.d, * testsuite/gas/rx/mul.d,
2223 * testsuite/gas/rx/mulhi.d, * testsuite/gas/rx/mullh.d,
2224 * testsuite/gas/rx/mullo.d, * testsuite/gas/rx/mvfacgu.d,
2225 * testsuite/gas/rx/mvfachi.d, * testsuite/gas/rx/mvfaclo.d,
2226 * testsuite/gas/rx/mvfacmi.d, * testsuite/gas/rx/mvfc.d,
2227 * testsuite/gas/rx/mvfcp.d, * testsuite/gas/rx/mvfdc.d,
2228 * testsuite/gas/rx/mvfdr.d, * testsuite/gas/rx/mvtacgu.d,
2229 * testsuite/gas/rx/mvtachi.d, * testsuite/gas/rx/mvtaclo.d,
2230 * testsuite/gas/rx/mvtc.d, * testsuite/gas/rx/mvtcp.d,
2231 * testsuite/gas/rx/mvtdc.d, * testsuite/gas/rx/neg.d,
2232 * testsuite/gas/rx/nop.d, * testsuite/gas/rx/not.d,
2233 * testsuite/gas/rx/opecp.d, * testsuite/gas/rx/or.d,
2234 * testsuite/gas/rx/pop.d, * testsuite/gas/rx/popc.d,
2235 * testsuite/gas/rx/popm.d, * testsuite/gas/rx/push.d,
2236 * testsuite/gas/rx/pushc.d, * testsuite/gas/rx/pushm.d,
2237 * testsuite/gas/rx/r-bcc.d, * testsuite/gas/rx/r-bra.d,
2238 * testsuite/gas/rx/racl.d, * testsuite/gas/rx/racw.d,
2239 * testsuite/gas/rx/rdacl.d, * testsuite/gas/rx/rdacw.d,
2240 * testsuite/gas/rx/revl.d, * testsuite/gas/rx/revw.d,
2241 * testsuite/gas/rx/rmpa.d, * testsuite/gas/rx/rolc.d,
2242 * testsuite/gas/rx/rorc.d, * testsuite/gas/rx/rotl.d,
2243 * testsuite/gas/rx/rotr.d, * testsuite/gas/rx/round.d,
2244 * testsuite/gas/rx/rstr.d, * testsuite/gas/rx/rte.d,
2245 * testsuite/gas/rx/rtfi.d, * testsuite/gas/rx/rts.d,
2246 * testsuite/gas/rx/rtsd.d, * testsuite/gas/rx/sat.d,
2247 * testsuite/gas/rx/satr.d, * testsuite/gas/rx/save.d,
2248 * testsuite/gas/rx/sbb.d, * testsuite/gas/rx/sccnd.d,
2249 * testsuite/gas/rx/scmpu.d, * testsuite/gas/rx/setpsw.d,
2250 * testsuite/gas/rx/shar.d, * testsuite/gas/rx/shll.d,
2251 * testsuite/gas/rx/shlr.d, * testsuite/gas/rx/smovb.d,
2252 * testsuite/gas/rx/smovf.d, * testsuite/gas/rx/smovu.d,
2253 * testsuite/gas/rx/sstr.d, * testsuite/gas/rx/stnz.d,
2254 * testsuite/gas/rx/stz.d, * testsuite/gas/rx/sub.d,
2255 * testsuite/gas/rx/suntil.d, * testsuite/gas/rx/swhile.d,
2256 * testsuite/gas/rx/tst.d, * testsuite/gas/rx/utof.d,
2257 * testsuite/gas/rx/wait.d, * testsuite/gas/rx/xchg.d,
2258 * testsuite/gas/rx/xor.d: Add #source line.
2259
2260 2019-01-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2261
2262 * config/tc-arm.c (arm_cpus): Add ares.
2263 * doc/c-arm.texi (-mcpu): Document ares value.
2264
2265 2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
2266
2267 * config/rx-defs.h (rx_cpu_types): Add type RXV3 and RXV3FPU.
2268 (rx_bfield): Add prototype.
2269 (rx_post): Likewise.
2270 * config/rx-parse.y: Add v3 instructions and Double FPU registers.
2271 (DSIZE): Define.
2272 (POST): Define.
2273 (rx_check_v3): New. check v3 type.
2274 (rx_check_dfpu): New. check have double support.
2275 (double_condition_table): New. dcmp<cond> contiditon.
2276 (check_condition): Multiple condition support.
2277 (rx_lex): RXv3 instructions support.
2278 Add parse dcmp<cond> instruction and Double FPU registers.
2279 (immediate): Disable optimize in dmov #imm case.
2280 (displacement): Add double displacement in dmov instraction.
2281 * config/tc-rx.c (rx_use_conventional_section_names):
2282 Invert default value in rx-*-linux target.
2283 (cpu_type): Add additional ELF flags.
2284 (cpu_type_list): Add RXv3.
2285 (md_parse_option): Refer elf_flags from cpu_type_list.
2286 (md_show_usage): Add rxv3 and rxv3-dfpu.
2287 (rx_bytesT): Add post byte.
2288 (rx_bfield): New. generate bfmov / bfmovz "imm" field.
2289 (rx_post): New. Set instruction post byte.
2290 (md_assemble): Add post byte.
2291 doc/c-rx.texi: Add cpu types.
2292 * testsuite/gas/rx/Xtod.d: New.
2293 * testsuite/gas/rx/Xtod.sm: New.
2294 * testsuite/gas/rx/bfmov.d: New.
2295 * testsuite/gas/rx/bfmov.sm: New.
2296 * testsuite/gas/rx/dabs.d: New.
2297 * testsuite/gas/rx/dabs.sm: New.
2298 * testsuite/gas/rx/dadd.d: New.
2299 * testsuite/gas/rx/dadd.sm: New.
2300 * testsuite/gas/rx/dcmp.d: New.
2301 * testsuite/gas/rx/dcmp.sm: New.
2302 * testsuite/gas/rx/ddiv.d: New.
2303 * testsuite/gas/rx/ddiv.sm: New.
2304 * testsuite/gas/rx/dmov.d: New.
2305 * testsuite/gas/rx/dmov.sm: New.
2306 * testsuite/gas/rx/dmul.d: New.
2307 * testsuite/gas/rx/dmul.sm: New.
2308 * testsuite/gas/rx/dneg.d: New.
2309 * testsuite/gas/rx/dneg.sm: New.
2310 * testsuite/gas/rx/dpopm.d: New.
2311 * testsuite/gas/rx/dpopm.sm: New.
2312 * testsuite/gas/rx/dpushm.d: New.
2313 * testsuite/gas/rx/dpushm.sm: New.
2314 * testsuite/gas/rx/dround.d: New.
2315 * testsuite/gas/rx/dround.sm: New.
2316 * testsuite/gas/rx/dsqrt.d: New.
2317 * testsuite/gas/rx/dsqrt.sm: New.
2318 * testsuite/gas/rx/dsub.d: New.
2319 * testsuite/gas/rx/dsub.sm: New.
2320 * testsuite/gas/rx/dtoX.d: New.
2321 * testsuite/gas/rx/dtoX.sm: New.
2322 * testsuite/gas/rx/macros.inc: Add double FPU registers.
2323 * testsuite/gas/rx/mvfdc.d: New.
2324 * testsuite/gas/rx/mvfdc.sm: New.
2325 * testsuite/gas/rx/mvfdr.d: New.
2326 * testsuite/gas/rx/mvfdr.sm: New.
2327 * testsuite/gas/rx/mvtdc.d: New.
2328 * testsuite/gas/rx/mvtdc.sm: New.
2329 * testsuite/gas/rx/rstr.d: New.
2330 * testsuite/gas/rx/rstr.sm: New.
2331 * testsuite/gas/rx/rx.exp: Use rxv3-dfpu option.
2332 * testsuite/gas/rx/save.d: New.
2333 * testsuite/gas/rx/save.sm: New.
2334 * testsuite/gas/rx/xor.d: New.
2335 * testsuite/gas/rx/xor.sm: Add pattern.
2336
2337 2019-01-04 Wu Heng <wu.heng@zte.com.cn>
2338
2339 PR 24010
2340 * macro.c (get_any_string): Check for end of input whilst scanning
2341 for separators.
2342
2343 2019-01-04 Wu Heng <wu.heng@zte.com.cn>
2344
2345 PR 24009
2346 * read.c (stringer): Fix handling of missing '>' character at end
2347 of <...> sequence.
2348
2349 2019-01-01 Alan Modra <amodra@gmail.com>
2350
2351 Update year range in copyright notice of all files.
2352
2353 For older changes see ChangeLog-2018
2354 \f
2355 Copyright (C) 2019 Free Software Foundation, Inc.
2356
2357 Copying and distribution of this file, with or without modification,
2358 are permitted in any medium without royalty provided the copyright
2359 notice and this notice are preserved.
2360
2361 Local Variables:
2362 mode: change-log
2363 left-margin: 8
2364 fill-column: 74
2365 version-control: never
2366 End: