1 2021-07-02 Nick Clifton <nickc@redhat.com>
3 * config/tc-nds32.c: Change all references of keyword_gpr to
6 2021-07-01 Mike Frysinger <vapier@gentoo.org>
8 * config/tc-microblaze.c (md_begin): Make opcode const. Rename
9 opcodes to microblaze_opcodes.
11 2021-07-01 Mike Frysinger <vapier@gentoo.org>
13 * config/tc-aarch64.c (struct templates): Make opcode const.
14 (md_assemble): Likewise.
15 (fill_instruction_hash_table): Likewise.
17 2021-06-24 Clément Chigot <clement.chigot@atos.net>
19 * config/tc-ppc.c (md_assemble): Update ppc_current_csect
20 alignment when finding prefixed instructions.
22 2021-06-22 Alan Modra <amodra@gmail.com>
24 * config/tc-pj.c (md_apply_fix): Apply PJ_CODE_REL32 relocs.
25 * testsuite/gas/pj/ops.s: Update jsr, ret, getstatic,
26 putstatic, getfield, putfield, invokevirtual, invokespecial,
27 invokestatic, invokeinterface, goto_w, jsr_w assembly. Delete
28 version 1 picojava opcodes.
29 * testsuite/gas/pj/ops.d: Match expected output.
31 2021-06-19 Alan Modra <amodra@gmail.com>
33 * config/tc-z80.c (signed_overflow, unsigned_overflow): Avoid UB.
35 2021-06-19 Alan Modra <amodra@gmail.com>
37 * testsuite/gas/ppc/raw.s: Use 0 as pli constant.
38 * testsuite/gas/ppc/raw.d: Update to suit.
40 2021-06-18 Jan Beulich <jbeulich@suse.com>
42 * expr.c (symbol_lookup_or_make): New.
44 * testsuite/gas/elf/startof.s, testsuite/gas/elf/startof.d: New.
45 * testsuite/gas/elf/elf.exp: Run new test.
47 2021-06-17 Nick Clifton <nickc@redhat.com>
50 * config/tc-aarch64.c (ldst_lo12_determine_real_reloc_type):
51 Generate a syntax error message if the reloc qualifier does not
52 match the instruction's size.
54 2021-06-17 Clément Chigot <clement.chigot@atos.net>
56 * config/tc-ppc.c (md_begin): Create bss section with dummy
58 (ppc_frob_symbol): Output XTY_CM for bss csects.
59 (ppc_fix_adjustable): Adjust condition to avoid bss csects.
61 2021-06-17 Clément Chigot <clement.chigot@atos.net>
63 * config/tc-ppc.c (md_apply_fix): Adjust addend to nullify
64 section contents for BFD_RELOC_PPC_TLSM or
66 * testsuite/gas/ppc/xcoff-tlsm-32.d: New test.
67 * testsuite/gas/ppc/xcoff-tlsm-64.d: New test.
68 * testsuite/gas/ppc/xcoff-tlsm.s: New test.
69 * testsuite/gas/ppc/aix.exp: Run new tests.
71 2021-06-16 Jan Beulich <jbeulich@suse.com>
73 * read.c (parse_one_float): New.
74 (s_float_space, float_cons): Use it.
75 * testsuite/gas/all/float.s: Add .dc.*, .dcb.*, and .ds.* cases.
77 2021-06-16 Jan Beulich <jbeulich@suse.com>
79 * read.c (emit_expr_with_reloc): Adjust overflow check. Drop
81 * write.c (fixup_segment): Differentiate signed and non-signed
82 relocs in overflow check.
83 * testsuite/gas/all/overflow.s,
84 testsuite/gas/all/overflow.l: New.
85 * testsuite/gas/all/gas.exp: Run new test.
87 2021-06-15 Jan Beulich <jbeulich@suse.com>
89 * config/tc-i386.c (md_show_usage): Split ELF and PE/COFF parts
90 of object format controlling option. Add Mach-O to the latter.
91 * testsuite/gas/i386/i386.exp (gas_bfd64_check): Adjust
94 2021-06-15 Jan Beulich <jbeulich@suse.com>
96 * config/tc-i386.c (disp16, disp32, disp32s): Delete.
97 (optimize_disp, i386_finalize_displacement): Use
99 (build_modrm_byte): Likewise. Eliminate local variable newdisp.
101 2021-06-15 Jan Beulich <jbeulich@suse.com>
103 * config/tc-i386.c (offset_in_range): Bail early when mask would
104 cover all bits anyway.
106 2021-06-15 Jan Beulich <jbeulich@suse.com>
108 * config/tc-i386.c (optimize_disp): Generalize disp32 part of
109 the BFD64-only logic to also apply to non-64-bit code.
110 (i386_finalize_displacement): Use extend_to_32bit_address for
111 non-64-bit code. Drop now redundant O_constant checks.
112 * testsuite/gas/i386/disp-imm-32.s,
113 testsuite/gas/i386/disp-imm-32.d: New.
114 * testsuite/gas/i386/i386.exp: Run new test.
116 2021-06-15 Jan Beulich <jbeulich@suse.com>
118 * config/tc-i386.c (offset_in_range): Replace uses of
121 2021-06-15 Jan Beulich <jbeulich@suse.com>
123 * config/tc-i386.c (offset_in_range): Adjust conditional.
124 * testsuite/gas/i386/disp-imm-16.s,
125 testsuite/gas/i386/disp-imm-16.l,
126 testsuite/gas/i386/disp-imm-64.s,
127 testsuite/gas/i386/disp-imm-64.l: New.
128 * testsuite/gas/i386/i386.exp: Run new tests.
130 2021-06-15 Jan Beulich <jbeulich@suse.com>
132 * config/tc-i386.c (i386_att_operand): Re-introduce (now
133 properly named) parens_not_balanced.
134 * testsuite/gas/i386/sib.s: Add more cases.
135 * testsuite/gas/i386/sib.d, testsuite/gas/i386/sib-intel.d:
138 2021-06-14 Jan Beulich <jbeulich@suse.com>
140 * read.c (emit_expr_with_reloc): Fold three as_warn().
142 2021-06-14 Jan Beulich <jbeulich@suse.com>
144 * doc/internals.texi (TC_ADDRESS_BYTES): Mention generic default.
145 * read.c (potable, cons_worker): Drop TC_ADDRESS_BYTES
148 2021-06-11 H.J. Lu <hongjiu.lu@intel.com>
150 * config/tc-i386.c (x86_cons): Handle GOT/PLT relocations only
152 * config/tc-i386.h (TC_PARSE_CONS_EXPRESSION): Always define.
154 2021-06-11 Nelson Chu <nelson.chu@sifive.com>
156 * config/tc-riscv.c (riscv_set_arch): Call riscv_set_rvc
157 and riscv_set_rve both for -march and elf attributes.
158 (riscv_after_parse_args): Likewise.
160 2021-06-10 Jan Beulich <jbeulich@suse.com>
162 * config/tc-arm.c (do_bfloat_vfma): Rename index to idx.
163 (do_vusdot): Likewise.
164 (do_vsudot): Likewise.
165 (check_cde_operand): Likewise.
168 2021-06-10 Jan Beulich <jbeulich@suse.com>
170 * config/tc-arm.c (reg_expected_msgs): Add REG_TYPE_ZR entry.
172 2021-06-10 Jan Beulich <jbeulich@suse.com>
174 * config/tc-i386.c (optimize_encoding): Suppress LEA conversion
175 when it would grow code size in 16-bit mode.
176 * testsuite/gas/i386/lea16-optimize.d: Adjust expectations.
177 * testsuite/gas/i386/lea16-optimize2.d: New.
178 * testsuite/gas/i386/i386.exp: Run new test.
180 2021-06-08 Jan Beulich <jbeulich@suse.com>
182 * testsuite/gas/i386/quoted.d, testsuite/gas/i386/wrap32-text.d:
184 * testsuite/gas/i386/wrap32-data.d: Likewise. Correct name.
186 2021-06-08 Jan Beulich <jbeulich@suse.com>
188 * config/tc-i386.c (optimize_imm): Use fits_in_unsigned_word
189 and fits_in_unsigned_long.
191 2021-06-08 Jan Beulich <jbeulich@suse.com>
193 * config/tc-i386.c (optimize_disp): Use fits_in_unsigned_word
194 and fits_in_unsigned_long. Combine if()s.
196 2021-06-08 Jan Beulich <jbeulich@suse.com>
198 * config/tc-i386.c (optimize_disp): Write back updated value.
199 * testsuite/gas/i386/lea16.s, testsuite/gas/i386/lea64.s: New
201 * testsuite/gas/i386/lea16-optimize.d,
202 testsuite/gas/i386/lea64.d, testsuite/gas/i386/lea64-optimize.d:
204 * testsuite/gas/i386/lea16.d: New.
205 * testsuite/gas/i386/i386.exp: Run new test.
207 2021-06-08 Jan Beulich <jbeulich@suse.com>
209 * config/tc-i386.c (optimize_disp): Drop redundant masking.
212 2021-06-07 Jan Beulich <jbeulich@suse.com>
214 * config/tc-i386.c (i386_att_operand): Re-write handling of
215 vector operations operand suffix.
216 * testsuite/gas/i386/unary.s: Add more cases.
217 * testsuite/gas/i386/unary.d: Adjust expectations.
219 2021-06-07 Jan Beulich <jbeulich@suse.com>
221 * config/tc-i386.c (parse_operands): Reduce scope of
222 paren_not_balanced, to match the new in_quotes. Skip over quoted
224 (i386_att_operand): Remove (mis-named) parens_balanced. Respect
226 * testsuite/gas/i386/unary.s: Add more cases.
227 * testsuite/gas/i386/unary.d: Adjust expectations.
229 2021-06-07 Jan Beulich <jbeulich@suse.com>
231 * config/tc-i386.c (digit_chars, is_digit_char): Delete.
232 (md_begin): Fold digit and lower-case letter handling.
233 (starts_memory_operand): Permit more characters.
234 * testsuite/gas/i386/unary.s, testsuite/gas/i386/unary.d: New.
235 * testsuite/gas/i386/i386.exp: Run new test.
237 2021-06-07 Jan Beulich <jbeulich@suse.com>
239 * config/tc-i386.c (starts_memory_operand): New.
240 (i386_att_operand): Use it.
241 * testsuite/gas/i386/quoted.s, testsuite/gas/i386/quoted.d: New.
242 * testsuite/gas/i386/i386.exp: Run new test.
244 2021-06-07 Jan Beulich <jbeulich@suse.com>
246 * config/tc-i386.c (i386_att_operand): Flip checking for '*' and
247 start-of-expression. Don't permit '*' when one was already seen.
249 2021-06-07 Jan Beulich <jbeulich@suse.com>
251 * config/tc-i386.c (parse_operands): Don't check for matched
254 2021-06-07 Jan Beulich <jbeulich@suse.com>
256 * config/tc-i386.c (check_VecOperations): Remove 2nd parameter.
257 (i386_att_operand): Adjust calls to check_VecOperations.
258 * config/tc-i386-intel.c (i386_intel_operand): Likewise.
260 2021-06-07 Jan Beulich <jbeulich@suse.com>
262 * config/tc-i386.c (i386_immediate): Don't call check_VecOperations.
264 2021-06-07 Jan Beulich <jbeulich@suse.com>
266 * config/tc-i386.c (extend_to_32bit_address): New.
267 (x86_cons, i386_finalize_immediate, md_apply_fix): Use it.
268 (signed_cons): Use object_64bit.
269 * testsuite/gas/i386/wrap32.s, testsuite/gas/i386/wrap32-data.d,
270 testsuite/gas/i386/wrap32-text.d: New.
271 * testsuite/gas/i386/i386.exp: Run new tests.
273 2021-06-03 Alan Modra <amodra@gmail.com>
276 * testsuite/gas/mcore/allinsn.d: Correct loopt expected output.
278 2021-05-29 Alan Modra <amodra@gmail.com>
280 * testsuite/gas/ppc/raw.s,
281 * testsuite/gas/ppc/raw.d: New test.
282 * testsuite/gas/ppc/ppc.exp: Run it.
284 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
286 * testsuite/gas/mips/c0.d: New test.
287 * testsuite/gas/mips/mips1@c0.d: New test.
288 * testsuite/gas/mips/mips2@c0.d: New test.
289 * testsuite/gas/mips/mips3@c0.d: New test.
290 * testsuite/gas/mips/mips4@c0.d: New test.
291 * testsuite/gas/mips/mips5@c0.d: New test.
292 * testsuite/gas/mips/mips32@c0.d: New test.
293 * testsuite/gas/mips/mips64@c0.d: New test.
294 * testsuite/gas/mips/r3000@c0.d: New test.
295 * testsuite/gas/mips/r3900@c0.d: New test.
296 * testsuite/gas/mips/r4000@c0.d: New test.
297 * testsuite/gas/mips/vr5400@c0.d: New test.
298 * testsuite/gas/mips/r5900@c0.d: New test.
299 * testsuite/gas/mips/sb1@c0.d: New test.
300 * testsuite/gas/mips/interaptiv-mr2@c0.d: New test.
301 * testsuite/gas/mips/octeon@c0.d: New test.
302 * testsuite/gas/mips/xlr@c0.d: New test.
303 * testsuite/gas/mips/c1.d: New test.
304 * testsuite/gas/mips/mips1@c1.d: New test.
305 * testsuite/gas/mips/mips2@c1.d: New test.
306 * testsuite/gas/mips/mips3@c1.d: New test.
307 * testsuite/gas/mips/mips4@c1.d: New test.
308 * testsuite/gas/mips/mips5@c1.d: New test.
309 * testsuite/gas/mips/mips32@c1.d: New test.
310 * testsuite/gas/mips/mips64@c1.d: New test.
311 * testsuite/gas/mips/mipsr6@c1.d: New test.
312 * testsuite/gas/mips/r3000@c1.d: New test.
313 * testsuite/gas/mips/r3900@c1.d: New test.
314 * testsuite/gas/mips/r4000@c1.d: New test.
315 * testsuite/gas/mips/vr5400@c1.d: New test.
316 * testsuite/gas/mips/r5900@c1.d: New test.
317 * testsuite/gas/mips/sb1@c1.d: New test.
318 * testsuite/gas/mips/interaptiv-mr2@c1.d: New test.
319 * testsuite/gas/mips/octeon@c1.d: New test.
320 * testsuite/gas/mips/xlr@c1.d: New test.
321 * testsuite/gas/mips/c2.d: New test.
322 * testsuite/gas/mips/vr5400@c2.d: New test.
323 * testsuite/gas/mips/r5900@c2.d: New test.
324 * testsuite/gas/mips/octeon@c2.d: New test.
325 * testsuite/gas/mips/c3.d: New test.
326 * testsuite/gas/mips/mips1@c3.d: New test.
327 * testsuite/gas/mips/mips2@c3.d: New test.
328 * testsuite/gas/mips/mips32@c3.d: New test.
329 * testsuite/gas/mips/r3000@c3.d: New test.
330 * testsuite/gas/mips/r3900@c3.d: New test.
331 * testsuite/gas/mips/c0.l: New test stderr output.
332 * testsuite/gas/mips/c2.l: New test stderr output.
333 * testsuite/gas/mips/c3.l: New test stderr output.
334 * testsuite/gas/mips/c0.s: New test source.
335 * testsuite/gas/mips/c1.s: New test source.
336 * testsuite/gas/mips/c2.s: New test source.
337 * testsuite/gas/mips/c3.s: New test source.
338 * testsuite/gas/mips/mips.exp: Run the new tests.
340 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
342 * testsuite/gas/mips/mips.exp: Run RFE test across all ISAs.
343 * testsuite/gas/mips/rfe.d: Update for ISA exclusions.
344 * testsuite/gas/mips/mips1@rfe.d: New test.
345 * testsuite/gas/mips/mips2@rfe.d: New test.
346 * testsuite/gas/mips/r3000@rfe.d: New test.
347 * testsuite/gas/mips/r3900@rfe.d: New test.
348 * testsuite/gas/mips/rfe.l: New test stderr output.
350 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
352 * testsuite/gas/mips/mips.exp: Run coprocessor tests across all
354 * testsuite/gas/mips/cp0b.d: Update for ISA exclusions.
355 * testsuite/gas/mips/cp0bl.d: Update for ISA exclusions.
356 * testsuite/gas/mips/cp0c.d: Update for ISA exclusions.
357 * testsuite/gas/mips/cp0m.d: Update for ISA exclusions.
358 * testsuite/gas/mips/cp3.d: Update for ISA exclusions.
359 * testsuite/gas/mips/cp3b.d: Update for ISA exclusions.
360 * testsuite/gas/mips/cp3bl.d: Update for ISA exclusions.
361 * testsuite/gas/mips/cp3m.d: Update for ISA exclusions.
362 * testsuite/gas/mips/cp3d.d: Update for ISA exclusions.
363 * testsuite/gas/mips/mips1@cp0b.d: New test.
364 * testsuite/gas/mips/mips2@cp0b.d: New test.
365 * testsuite/gas/mips/mips3@cp0b.d: New test.
366 * testsuite/gas/mips/r3000@cp0b.d: New test.
367 * testsuite/gas/mips/r3900@cp0b.d: New test.
368 * testsuite/gas/mips/r4000@cp0b.d: New test.
369 * testsuite/gas/mips/r5900@cp0b.d: New test.
370 * testsuite/gas/mips/mips2@cp0bl.d: New test.
371 * testsuite/gas/mips/mips3@cp0bl.d: New test.
372 * testsuite/gas/mips/r3900@cp0bl.d: New test.
373 * testsuite/gas/mips/r4000@cp0bl.d: New test.
374 * testsuite/gas/mips/r5900@cp0bl.d: New test.
375 * testsuite/gas/mips/mips1@cp0c.d: New test.
376 * testsuite/gas/mips/mips2@cp0c.d: New test.
377 * testsuite/gas/mips/mips3@cp0c.d: New test.
378 * testsuite/gas/mips/mips4@cp0c.d: New test.
379 * testsuite/gas/mips/mips5@cp0c.d: New test.
380 * testsuite/gas/mips/r3000@cp0c.d: New test.
381 * testsuite/gas/mips/r3900@cp0c.d: New test.
382 * testsuite/gas/mips/r4000@cp0c.d: New test.
383 * testsuite/gas/mips/vr5400@cp0c.d: New test.
384 * testsuite/gas/mips/r5900@cp0c.d: New test.
385 * testsuite/gas/mips/mips1@cp0m.d: New test.
386 * testsuite/gas/mips/r3000@cp0m.d: New test.
387 * testsuite/gas/mips/octeon@cp2.d: New test.
388 * testsuite/gas/mips/mipsr6@cp2b.d: New test.
389 * testsuite/gas/mips/vr5400@cp2b.d: New test.
390 * testsuite/gas/mips/octeon@cp2b.d: New test.
391 * testsuite/gas/mips/mips1@cp2bl.d: New test.
392 * testsuite/gas/mips/mipsr6@cp2bl.d: New test.
393 * testsuite/gas/mips/r3000@cp2bl.d: New test.
394 * testsuite/gas/mips/vr5400@cp2bl.d: New test.
395 * testsuite/gas/mips/octeon@cp2bl.d: New test.
396 * testsuite/gas/mips/vr5400@cp2m.d: New test.
397 * testsuite/gas/mips/r5900@cp2m.d: New test.
398 * testsuite/gas/mips/octeon@cp2m.d: New test.
399 * testsuite/gas/mips/mips1@cp2d.d: New test.
400 * testsuite/gas/mips/r3000@cp2d.d: New test.
401 * testsuite/gas/mips/r3900@cp2d.d: New test.
402 * testsuite/gas/mips/vr5400@cp2d.d: New test.
403 * testsuite/gas/mips/r5900@cp2d.d: New test.
404 * testsuite/gas/mips/octeon@cp2d.d: New test.
405 * testsuite/gas/mips/mips1@cp2-64.d: New test.
406 * testsuite/gas/mips/mips2@cp2-64.d: New test.
407 * testsuite/gas/mips/mips32@cp2-64.d: New test.
408 * testsuite/gas/mips/mips32r2@cp2-64.d: New test.
409 * testsuite/gas/mips/mips32r3@cp2-64.d: New test.
410 * testsuite/gas/mips/mips32r5@cp2-64.d: New test.
411 * testsuite/gas/mips/mips32r6@cp2-64.d: New test.
412 * testsuite/gas/mips/r3000@cp2-64.d: New test.
413 * testsuite/gas/mips/r3900@cp2-64.d: New test.
414 * testsuite/gas/mips/interaptiv-mr2@cp2-64.d: New test.
415 * testsuite/gas/mips/mips1@cp3.d: New test.
416 * testsuite/gas/mips/mips2@cp3.d: New test.
417 * testsuite/gas/mips/mips32@cp3.d: New test.
418 * testsuite/gas/mips/r3000@cp3.d: New test.
419 * testsuite/gas/mips/r3900@cp3.d: New test.
420 * testsuite/gas/mips/mips1@cp3b.d: New test.
421 * testsuite/gas/mips/mips2@cp3b.d: New test.
422 * testsuite/gas/mips/mips32@cp3b.d: New test.
423 * testsuite/gas/mips/r3000@cp3b.d: New test.
424 * testsuite/gas/mips/r3900@cp3b.d: New test.
425 * testsuite/gas/mips/mips2@cp3bl.d: New test.
426 * testsuite/gas/mips/mips32@cp3bl.d: New test.
427 * testsuite/gas/mips/r3900@cp3bl.d: New test.
428 * testsuite/gas/mips/mips1@cp3m.d: New test.
429 * testsuite/gas/mips/mips2@cp3m.d: New test.
430 * testsuite/gas/mips/r3000@cp3m.d: New test.
431 * testsuite/gas/mips/r3900@cp3m.d: New test.
432 * testsuite/gas/mips/mips2@cp3d.d: New test.
433 * testsuite/gas/mips/cp0b.l: New test stderr output.
434 * testsuite/gas/mips/cp0bl.l: New test stderr output.
435 * testsuite/gas/mips/cp0c.l: New test stderr output.
436 * testsuite/gas/mips/cp0m.l: New test stderr output.
437 * testsuite/gas/mips/cp2.l: New test stderr output.
438 * testsuite/gas/mips/cp2-64.l: New test stderr output.
439 * testsuite/gas/mips/cp2b.l: New test stderr output.
440 * testsuite/gas/mips/cp2bl.l: New test stderr output.
441 * testsuite/gas/mips/cp2m.l: New test stderr output.
442 * testsuite/gas/mips/cp2d.l: New test stderr output.
443 * testsuite/gas/mips/cp3.l: New test stderr output.
444 * testsuite/gas/mips/cp3b.l: New test stderr output.
445 * testsuite/gas/mips/cp3bl.l: New test stderr output.
446 * testsuite/gas/mips/cp3m.l: New test stderr output.
447 * testsuite/gas/mips/cp3d.l: New test stderr output.
449 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
451 * testsuite/gas/mips/mips32@isa-override-1.d: Update for LDC3
453 * testsuite/gas/mips/mips32r2@isa-override-1.d: Likewise.
455 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
457 * testsuite/gas/mips/cp0b.d: New test.
458 * testsuite/gas/mips/cp0bl.d: New test.
459 * testsuite/gas/mips/cp2b.d: New test.
460 * testsuite/gas/mips/micromips@cp2b.d: New test.
461 * testsuite/gas/mips/cp2bl.d: New test.
462 * testsuite/gas/mips/micromips@cp2bl.d: New test.
463 * testsuite/gas/mips/cp3b.d: New test.
464 * testsuite/gas/mips/cp3bl.d: New test.
465 * testsuite/gas/mips/cp0b.s: New test source.
466 * testsuite/gas/mips/cp0bl.s: New test source.
467 * testsuite/gas/mips/cp2b.s: New test source.
468 * testsuite/gas/mips/cp2bl.s: New test source.
469 * testsuite/gas/mips/cp3b.s: New test source.
470 * testsuite/gas/mips/cp3bl.s: New test source.
471 * testsuite/gas/mips/mips.exp: Run the new tests.
473 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
475 * testsuite/gas/mips/rfe.d: New test.
476 * testsuite/gas/mips/rfe.s: New test source.
477 * testsuite/gas/mips/mips.exp: Run the new test.
479 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
481 * testsuite/gas/mips/cp1-names-r3900.d: New test.
482 * testsuite/gas/mips/mips.exp: Run the new test.
483 * testsuite/gas/mips/branch-misc-3.d: Update disassembly
484 according to changes to opcodes.
485 * testsuite/gas/mips/cp1-names-r3000.d: Likewise.
486 * testsuite/gas/mips/cp1-names-r4000.d: Likewise.
487 * testsuite/gas/mips/relax-swap1-mips1.d: Likewise.
488 * testsuite/gas/mips/relax-swap1-mips2.d: Likewise.
489 * testsuite/gas/mips/trunc.d: Likewise.
491 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
493 * testsuite/gas/mips/cp0c.d: New test.
494 * testsuite/gas/mips/cp0m.d: New test.
495 * testsuite/gas/mips/r3900@cp0m.d: New test.
496 * testsuite/gas/mips/cp2.d: New test.
497 * testsuite/gas/mips/micromips@cp2.d: New test.
498 * testsuite/gas/mips/cp2m.d: New test.
499 * testsuite/gas/mips/mipsr6@cp2m.d: New test.
500 * testsuite/gas/mips/micromips@cp2m.d: New test.
501 * testsuite/gas/mips/cp2d.d: New test.
502 * testsuite/gas/mips/mipsr6@cp2d.d: New test.
503 * testsuite/gas/mips/micromips@cp2d.d: New test.
504 * testsuite/gas/mips/cp2-64.d: New test.
505 * testsuite/gas/mips/micromips@cp2-64.d: New test.
506 * testsuite/gas/mips/cp3.d: New test.
507 * testsuite/gas/mips/cp3m.d: New test.
508 * testsuite/gas/mips/cp3d.d: New test.
509 * testsuite/gas/mips/cp0c.s: New test source.
510 * testsuite/gas/mips/cp0m.s: New test source.
511 * testsuite/gas/mips/cp2.s: New test source.
512 * testsuite/gas/mips/cp2m.s: New test source.
513 * testsuite/gas/mips/cp2d.s: New test source.
514 * testsuite/gas/mips/cp2-64.s: New test source.
515 * testsuite/gas/mips/cp3.s: New test source.
516 * testsuite/gas/mips/cp3m.s: New test source.
517 * testsuite/gas/mips/cp3d.s: New test source.
518 * testsuite/gas/mips/mips.exp: Run the new tests.
520 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
522 * tc-mips.c (convert_reg_type) <OP_REG_CONTROL>: New case.
523 (macro) <M_TRUNCWS, M_TRUNCWD>: Use the `g' rather than `G'
526 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
528 * testsuite/gas/mips/cp0-names-r3900.d: New test.
529 * testsuite/gas/mips/mips.exp: Run it.
531 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
533 * testsuite/gas/mips/micromips.d: Update disassembly according
534 to "dmtc1" entry fix with opcodes.
535 * testsuite/gas/mips/micromips-compact.d: Likewise.
536 * testsuite/gas/mips/micromips-insn32.d: Likewise.
537 * testsuite/gas/mips/micromips-noinsn32.d: Likewise.
538 * testsuite/gas/mips/micromips-trap.d: Likewise.
539 * testsuite/gas/mips/micromips@isa-override-1.d: Likewise.
541 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
543 * config/tc-mips.c (FCSR): New macro.
544 (macro) <M_TRUNCWS, M_TRUNCWD>: Use it in place of RA.
546 2021-05-28 H.J. Lu <hongjiu.lu@intel.com>
549 * config/tc-i386.c (set_code_flag): Revert commit 50c95a739c9.
550 (set_16bit_gcc_code_flag): Likewise.
551 (x86_cleanup): Likewise.
552 * testsuite/gas/i386/code16-2.d: Updated.
553 * testsuite/gas/i386/x86-64-code16-2.d: Likewise.
555 2021-05-27 Peter Bergner <bergner@linux.ibm.com>
557 * testsuite/gas/ppc/vsx.d <xxmr, xxlnot>: Add tests.
558 * testsuite/gas/ppc/vsx.s: Likewise.
560 2021-05-27 Alan Modra <amodra@gmail.com>
562 * config/tc-nds32.c (do_pseudo_push_bhwd, do_pseudo_pop_bhwd),
563 (do_pseudo_pusha, do_pseudo_pushi): Avoid fortify strncpy bound
566 2021-05-26 H.J. Lu <hongjiu.lu@intel.com>
569 * config/tc-i386.c (set_code_flag): Update x86_feature_2_used
570 with GNU_PROPERTY_X86_FEATURE_2_CODE16 for .code16 in ELF
572 (set_16bit_gcc_code_flag): Likewise.
573 (x86_cleanup): Always generate the GNU property note if
574 x86_feature_2_used isn't 0.
575 * testsuite/gas/i386/code16-2.d: New file.
576 * testsuite/gas/i386/code16-2.s: Likewise.
577 * testsuite/gas/i386/x86-64-code16-2.d: Likewise.
578 * testsuite/gas/i386/i386.exp: Run code16-2 and x86-64-code16-2.
580 2021-05-26 Sebastien Villemot <sebastien@debian.org>
583 * doc/c-i386.texi: Replace movsb with movsxb as an alias for
586 2021-05-26 Nelson Chu <nelson.chu@sifive.com>
588 * config/tc-riscv.c (riscv_set_arch): Set
589 check_unknown_prefixed_ext to true for assembler.
591 2021-05-25 Tamar Christina <tamar.christina@arm.com>
594 * config/tc-arm.c (md_convert_frag): Set LSB when Thumb symbol.
595 (relax_adr): Thumb symbols 4 bytes.
596 * testsuite/gas/arm/pr25235.d: New test.
597 * testsuite/gas/arm/pr25235.s: New test.
599 2021-05-24 Nelson Chu <nelson.chu@sifive.com>
602 * config/tc-riscv.c (riscv_set_abi_by_arch): If -mabi isn't set, we
603 will choose ilp32e abi for rv32e. Besides, report errors for the
604 invalid march and mabi combinations.
605 * testsuite/gas/riscv/mabi-attr-rv32e.s: New testcase. Only accept
606 ilp32e abi for rve extension.
607 * testsuite/gas/riscv/mabi-fail-rv32e-lp64f.d: Likewise.
608 * testsuite/gas/riscv/mabi-fail-rv32e-lp64f.l: Likewise.
609 * testsuite/gas/riscv/mabi-fail-rv32e-lp64d.d: Likewise.
610 * testsuite/gas/riscv/mabi-fail-rv32e-lp64d.l: Likewise.
611 * testsuite/gas/riscv/mabi-fail-rv32e-lp64d.q: Likewise.
612 * testsuite/gas/riscv/mabi-fail-rv32e-lp64d.q: Likewise.
613 Renamed all mabi testcases to their march-mabi settings.
615 2021-05-22 Alan Modra <amodra@gmail.com>
618 * config/tc-ia64.c (emit_one_bundle): Expand comment for HP-UX
619 adjustment. Add assertion.
620 * testsuite/gas/ia64/reloc-mlx.d: Pass when slot 2 specified
623 2021-05-20 Sergey Belyashov <sergey.belyashov@gmail.com>
625 * config/tc-z80.c (emit_data_val): Warn on constant overflow.
626 (signed_overflow): New function.
627 (unsigned_overflow): New function.
628 (is_overflow): Use new functions.
629 (md_apply_fix): Use signed_overflow.
630 * testsuite/gas/z80/ez80_adl_suf.d: Fix test.
631 * testsuite/gas/z80/ez80_isuf.s: Likewise.
632 * testsuite/gas/z80/ez80_z80_suf.d: Likewise.
634 2021-05-20 Nicolas Boulenguez <nicolas@debian.org>
637 * Makefile.am (ZLIB): Define.
638 (as_new_LDADD): Add it.
639 * Makefile.in: Regenerate.
641 2021-05-17 Alex Coplan <alex.coplan@arm.com>
643 * config/tc-arm.c (do_mve_mov): Only reject vmov if we're moving
644 into the same GPR twice.
645 * testsuite/gas/arm/mve-vmov-bad-2.l: Tweak error message.
646 * testsuite/gas/arm/mve-vmov-3.d: New test.
647 * testsuite/gas/arm/mve-vmov-3.s: New test.
649 2021-05-12 Alan Modra <amodra@gmail.com>
651 * testsuite/gas/elf/dwarf-5-file0.d: Update.
652 * testsuite/gas/i386/dwarf5-line-1.d: Update.
654 2021-05-11 Sergey Belyashov <sergey.belyashov@gmail.com>
657 * config/tc-z80.c (emit_ld_r_m): Report an illegal load
659 * testsuite/gas/z80/ill_ops.s: New test source file.
660 * testsuite/gas/z80/ill_ops.d: New test driver.
661 * testsuite/gas/z80/ill_ops.l: New test error output.
663 2021-05-10 Sergey Belyashov <sergey.belyashov@gmail.com>
666 * config/tc-z80.c (emit_data_val): Add support for 8-bit and
668 * testsuite/gas/z80/z80_reloc.a: Update tests.
669 * testsuite/gas/z80/z80_reloc.d: Update expected disassembly.
671 2021-05-08 Mike Frysinger <vapier@gentoo.org>
673 * doc/Makefile.am (html-local, as/index.html): New targets.
674 * doc/Makefile.in: Regenerate.
676 2021-05-08 Mike Frysinger <vapier@gentoo.org>
678 * doc/Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
679 * doc/Makefile.in: Regenerate.
681 2021-05-07 Nick Clifton <nickc@redhat.com>
684 * config/obj-elf.c (elf_pseudo_table): Add entry for .bss.
685 (obj_elf_bss): New function. Change to the .bss section.
686 Support an optional subsection number.
687 (obj_elf_change_section): Call obj_elf_section_change_hook.
688 (obj_elf_section): Likewise.
689 (obj_elf_data): Likewise.
690 (obj_elf_text): Likewise.
691 (obj_elf_struct): Likewise.
692 (obj_elf_subsection): Likewise.
693 (obj_elf_previous): Likewise.
694 * config/obj-elf.h (obj_elf_bss): Prototype.
695 * doc/as.texi (Bss): New node.
697 2021-05-07 Clément Chigot <clement.chigot@atos.net>
699 * config/obj-coff.c (coff_frob_symbol): Don't skip C_DWARF.
700 (coff_adjust_section_syms): Use corrext auxent for C_DWARF.
701 (coff_frob_section): Likewise.
702 * config/obj-coff.h (SA_GET_SECT_SCNLEN,
703 SA_GET_SECT_NRELOC, SA_SET_SECT_SCNLEN,
704 SA_SET_SECT_NRELOC) New defines.
705 (SET_SECTION_RELOCS): Adjust for C_DWARF.
706 * config/tc-ppc.c (ppc_frob_symbol): Don't skip C_DWARF.
707 (ppc_adjust_symtab): Reorder C_DWARF symbols.
708 * testsuite/gas/ppc/aix.exp: New tests.
709 * testsuite/gas/ppc/xcoff-dwsect-2-32.d: New test.
710 * testsuite/gas/ppc/xcoff-dwsect-2-64.d: New test.
711 * testsuite/gas/ppc/xcoff-dwsect-2.s: New test.
713 * config/tc-ppc.c (ppc_function): Update comment for
715 (ppc_frob_symbol): Remove ppc_last_function check.
716 Make sure coff_last_function is reset.
717 Correctly set fsize when not provided in .function.
718 * testsuite/gas/ppc/aix.exp: New tests.
719 * testsuite/gas/ppc/xcoff-function-1-32.d: New test.
720 * testsuite/gas/ppc/xcoff-function-1-64.d: New test.
721 * testsuite/gas/ppc/xcoff-function-1.s: New test.
723 2021-05-07 Jan Beulich <jbeulich@suse.com>
725 * testsuite/gas/i386/rela.s, testsuite/gas/i386/rela.d: New.
726 * testsuite/gas/i386/i386.exp: Run new test.
728 2021-05-07 Jan Beulich <jbeulich@suse.com>
730 * config/tc-i386.c (output_disp): Use disps field instead of
733 2021-05-07 Jan Beulich <jbeulich@suse.com>
735 * config/tc-i386.c (i386_finalize_immediate): Move register
737 (i386_immediate): ... here.
739 2021-05-07 Jan Beulich <jbeulich@suse.com>
741 * config/tc-i386.c (optimize_imm): Drop redundant masking.
742 Re-arrange operand type accumulation.
744 2021-05-06 Stafford Horne <shorne@gmail.com>
747 * testsuite/gas/or1k/reloc-1.s: Add test for new relocation.
748 * testsuite/gas/or1k/reloc-1.d: Add test result for new
751 2021-05-03 Christoph Muellner <cmuellner@gcc.gnu.org>
754 * testsuite/gas/riscv/a-ext-64.d: New testcase.
755 * testsuite/gas/riscv/a-ext-64.s: Likewise.
756 * testsuite/gas/riscv/a-ext.d: Likewise.
757 * testsuite/gas/riscv/a-ext.s: Likewise.
759 2021-05-03 Jan Beulich <jbeulich@suse.com>
761 * config/tc-i386.h (TC_PARSE_CONS_EXPRESSION): Adjust surrounding
763 * testsuite/gas/i386/secrel.s: Convert some .secrel32 to .long.
764 Add two further .long and an .equ.
765 * testsuite/gas/i386/secrel.d: Adjust expecations.
767 2021-05-03 Jan Beulich <jbeulich@suse.com>
769 * testsuite/gas/i386/secrel.d, testsuite/gas/i386/secrel.s:
770 Convert Windows to UNIX EOL.
772 2021-05-03 Jan Beulich <jbeulich@suse.com>
774 * config/tc-i386.c (lex_got): Adjust surrounding #if. Fold TE_PE
775 variant into ELF one.
777 2021-05-03 Alan Modra <amodra@gmail.com>
779 * testsuite/gas/elf/section25.s: Don't start directives in first
781 * testsuite/gas/elf/section26.s: Likewise.
783 2021-04-29 Jan Beulich <jbeulich@suse.com>
785 * testsuite/gas/i386/i386.exp: Move x86-64-rip-2 invocation.
786 * testsuite/gas/i386/lea64.d,
787 testsuite/gas/i386/lea64-optimize.d: Allow for COFF relocs.
788 * testsuite/gas/i386/x86-64-rip-inval-1.s,
789 testsuite/gas/i386/x86-64-rip-inval-2.s. Add .end.
791 2021-04-29 Jan Beulich <jbeulich@suse.com>
793 * config/tc-i386.c (i386_validate_fix): Change return type to
794 int. Short-circuit BFD_RELOC_SIZE* handling.
795 (tc_gen_reloc): New local variable sym. Extend logic when
796 processing BFD_RELOC_SIZE*.
797 * config/tc-i386.f (i386_validate_fix): Change return type to
799 (TC_VALIDATE_FIX): Proceed to SKIP when i386_validate_fix()
801 * testsuite/gas/i386/size-5.s, testsuite/gas/i386/size-5a.d,
802 testsuite/gas/i386/size-5b.d: New.
803 * testsuite/gas/i386/i386.exp: Run new tests.
805 2021-04-29 Jan Beulich <jbeulich@suse.com>
807 * config/tc-i386.c (tc_gen_reloc): Use section size for section
808 symbols when resolving BFD_RELOC_SIZE*.
809 * testsuite/gas/i386/size-2.s: Add section size cases.
810 * testsuite/gas/i386/size-2.d,
811 testsuite/gas/i386/x86-64-size-2.d: Adjust expectations.
813 2021-04-28 Jan Beulich <jbeulich@suse.com>
814 H.J. Lu <hjl.tools@gmail.com>
817 * config/tc-i386.c (output_jump): Also mark 2-byte relocs as
818 signed for XBEGIN. Also mark 4-byte relocs as signed for 64-bit.
819 (output_disp): Also mark 4-byte relocs as signed for 64-bit.
820 (md_estimate_size_before_relax): Move local variable fixP. Set
821 it from fix_new() return values. Mark 4-byte relocs as signed
823 * testsuite/gas/i386/pcrel64.s, testsuite/gas/i386/pcrel64.l,
824 * testsuite/gas/i386/x86-64-rip-2.s,
825 * testsuite/gas/i386/x86-64-rip-2.d,
826 * testsuite/gas/i386/x86-64-rip-inval-1.s,
827 * testsuite/gas/i386/x86-64-rip-inval-1.l,
828 * testsuite/gas/i386/x86-64-rip-inval-2.s,
829 * testsuite/gas/i386/x86-64-rip-inval-2.l: New.
830 * testsuite/gas/i386/i386.exp: Run new tests.
832 2021-04-27 H.J. Lu <hongjiu.lu@intel.com>
834 * config/tc-i386.c (optimize_encoding): Add () to silence GCC 5.
836 2021-04-26 Jan Beulich <jbeulich@suse.com>
838 * config/tc-i386.c (tc_gen_reloc): Check IS_ELF for
841 2021-04-26 Jan Beulich <jbeulich@suse.com>
843 * config/tc-i386.c (tc_gen_reloc): Limit BFD_RELOC_SIZE32
844 overflow check to 64-bit objects.
846 2021-04-26 Jan Beulich <jbeulich@suse.com>
848 * config/tc-i386.c (want_disp32): Also check for SIZE32.
849 (optimize_encoding): Handle LEA.
850 * testsuite/gas/i386/lea.s, testsuite/gas/i386/lea.d,
851 testsuite/gas/i386/lea.e, testsuite/gas/i386/lea-optimize.d:
853 * testsuite/gas/i386/lea16.s, testsuite/gas/i386/lea16-optimize.d,
854 testsuite/gas/i386/lea64.s, testsuite/gas/i386/lea64.d,
855 testsuite/gas/i386/lea64.e, testsuite/gas/i386/lea64-optimize.d:
857 * testsuite/gas/i386/i386.exp: Run new tests.
859 2021-04-26 Jan Beulich <jbeulich@suse.com>
861 * config/tc-i386.c (md_apply_fix): Mark BFD_RELOC_X86_64_32S as
863 * testsuite/gas/i386/x86-64-addr32-bad.s,
864 testsuite/gas/i386/x86-64-addr32-bad.l: New.
865 * testsuite/gas/i386/i386.exp: Run new test.
867 2021-04-23 Eric Botcazou<ebotcazou@adacore.com>
869 * testsuite/gas/elf/section25.d: Run it everywhere.
870 * testsuite/gas/elf/section26.d: Likewise.
871 * testsuite/gas/elf/section26.s: Add test for .persistent.bss.
873 2021-04-23 Jérôme Gardou <jerome.gardou@gmail.com>
875 * config/obj-coff-seh.c (obj_coff_seh_pushframe): Allow an
876 optional "code" argument.
878 2021-04-23 Jan Beulich <jbeulich@suse.com>
880 * config/tc-i386.c (want_disp32): New.
881 (md_assemble): Use it.
882 (optimize_disp): Likewise.
883 (build_modrm_byte): Likewise.
885 2021-04-23 Jan Beulich <jbeulich@suse.com>
887 * config/tc-i386.c (i386_finalize_displacement): Move Disp32S
889 (md_assemble): ... here.
891 2021-04-23 Jan Beulich <jbeulich@suse.com>
893 * config/tc-i386.c (optimize_disp): Move down BFD64 section.
894 Move up setting of disp32.
896 2021-04-23 Jan Beulich <jbeulich@suse.com>
898 * config/tc-i386.c (pe): Don't truncate expression value.
899 (i386_finalize_displacement): Likewise.
901 2021-04-21 Nick Clifton <nickc@redhat.com>
903 * testsuite/gas/aarch64/dwarf.d: Adjust expected output to allow
904 for named section symbols.
905 * testsuite/gas/arm/thumbver.d: Likewise.
906 * testsuite/gas/bfin/loop_temps.d: Likewise.
907 * testsuite/gas/elf/section2.e-arc: Likewise.
908 * testsuite/gas/elf/section2.e-arm: Likewise.
909 * testsuite/gas/elf/section2.e-csky: Likewise.
910 * testsuite/gas/elf/section2.e-m32r: Likewise.
911 * testsuite/gas/elf/section2.e-mips: Likewise.
912 * testsuite/gas/elf/section2.e-msp430: Likewise.
913 * testsuite/gas/elf/section2.e-riscv: Likewise.
914 * testsuite/gas/elf/section2.e-rl78: Likewise.
915 * testsuite/gas/elf/section2.e-rx: Likewise.
916 * testsuite/gas/elf/section2.e-score: Likewise.
917 * testsuite/gas/elf/section2.e-tic6x: Likewise.
918 * testsuite/gas/elf/section2.e-unused: Likewise.
919 * testsuite/gas/elf/section2.e-v850: Likewise.
920 * testsuite/gas/elf/section2.e-xtensa: Likewise.
921 * testsuite/gas/ia64/alias-ilp32.d: Likewise.
922 * testsuite/gas/ia64/alias.d: Likewise.
923 * testsuite/gas/ia64/global.d: Likewise.
924 * testsuite/gas/microblaze/relax_size.elf: Likewise.
925 * testsuite/gas/microblaze/relax_size2.elf: Likewise.
926 * testsuite/gas/mips/global-local-symtab-sort-n64t.d: Likewise.
927 * testsuite/gas/mips/global-local-symtab-sort-o32t.d: Likewise.
928 * testsuite/gas/mmix/bspec-1.d: Likewise.
929 * testsuite/gas/mmix/byte-1.d: Likewise.
930 * testsuite/gas/mmix/comment-1.d: Likewise.
931 * testsuite/gas/mmix/loc-1.d: Likewise.
932 * testsuite/gas/mmix/loc-2.d: Likewise.
933 * testsuite/gas/mmix/loc-3.d: Likewise.
934 * testsuite/gas/mmix/loc-4.d: Likewise.
935 * testsuite/gas/mmix/loc-5.d: Likewise.
936 * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
938 2021-04-20 Clément Chigot <clement.chigot@atos.net>
941 * config/tc-ppc.c (ppc_get_csect_to_adjust): New function.
942 (ppc_fix_adjustable): Manage fx_subsy part.
943 (tc_gen_reloc): Create second relocation when both
944 fx_addsy and fx_subsy are provided.
945 * config/tc-ppc.h (RELOC_EXPANSION_POSSIBLE): New define.
946 (MAX_RELOC_EXPANSION): Likewise.
947 (TC_FORCE_RELOCATION_SUB_SAME): Likewise
948 (UNDEFINED_DIFFERENCE_OK): Likewise
949 * testsuite/gas/all/gas.exp: Skip difference between two
950 undefined symbols test.
952 2021-04-19 Nick Clifton <nickc@redhat.com>
954 * testsuite/gas/all/gas.exp: Add rs6000*-*-aix* to the list of
955 targets which should skip the undefined symbols test.
957 2021-04-19 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
960 * testsuite/gas/aarch64/rme.d: Update test.
961 * testsuite/gas/aarch64/rme.s: Update test.
963 2021-04-19 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
965 * testsuite/gas/aarch64/rme.d: Update test.
966 * testsuite/gas/aarch64/rme.s: Update test.
968 2021-04-19 Jan Beulich <jbeulich@suse.com>
970 * as.h (sprint_value): Delete.
971 * messages.c (sprint_value): Likewise.
972 * config/tc-i386.c (offset_in_range): Use bfd_sprintf_vma in
973 place of sprint_value.
974 * config/tc-s390.c (s390_insert_operand): Likewise.
975 * doc/internals.texi (sprint_value): Delete section.
976 * write.c (fixup_segment): Likewise.
977 (relax_segment): Likewise.
979 2021-04-16 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
981 * testsuite/gas/aarch64/rme-invalid.d: New test.
982 * testsuite/gas/aarch64/rme-invalid.l: New test.
983 * testsuite/gas/aarch64/rme-invalid.s: New test.
984 * testsuite/gas/aarch64/rme.d: New test.
985 * testsuite/gas/aarch64/rme.s: New test.
987 2021-04-16 Nelson Chu <nelson.chu@sifive.com>
990 * config/tc-riscv.c (riscv_ip): make operand C> work the same as >.
991 * testsuite/gas/riscv/shamt-32.d: New testcase.
992 * testsuite/gas/riscv/shamt-32.l: Likewise.
993 * testsuite/gas/riscv/shamt-32.s: Likewise.
994 * testsuite/gas/riscv/shamt-64.d: Likewise.
995 * testsuite/gas/riscv/shamt-64.l: Likewise.
996 * testsuite/gas/riscv/shamt-64.s: Likewise.
998 2021-04-16 Lifang Xia <lifang_xia@c-sky.com>
1000 * testsuite/gas/riscv/c-zero-imm.d: Compress addi a4,a4,0 to
1002 * testsuite/gas/riscv/c-zero-imm.s: Likewise.
1004 2021-04-14 Alan Modra <amodra@gmail.com>
1007 * dw2gencfi.c (initial_cie_insn): New function, extracted from..
1008 (select_cie_for_fde): ..here. Simplify.
1010 2021-04-14 Alan Modra <amodra@gmail.com>
1013 * dw2gencfi.c (select_cie_for_fde): Handle DW_CFA_val_offset,
1014 DW_CFA_GNU_window_save and DW_CFA_restore_state.
1016 2021-04-13 Alan Modra <amodra@gmail.com>
1018 * testsuite/gas/m68hc11/m68hc11.exp (gas_m68hc11_message): Don't
1019 write to $srcdir. Use gas_host_run and read output file rather
1020 than gas_start/gas_finish.
1022 2021-04-12 Alan Modra <amodra@gmail.com>
1024 * config/tc-ppc.c (insn_validate): Use uint64_t for operand values.
1025 (md_assemble): Likewise. Handle bignum operands.
1026 (ppc_elf_suffix): Handle O_big. Remove unnecessary input_line_pointer
1028 * expr.c: Delete unnecessary forward declarations.
1029 (generic_bignum_to_int32): Return uint32_t.
1030 (generic_bignum_to_int64): Return uint64_t. Compile always.
1031 (operand): Twiddle X_extrabit for unary '~'. Set X_unsigned and
1032 clear X_extrabit for unary '!'.
1033 * expr.h (generic_bignum_to_int32): Declare.
1034 (generic_bignum_to_int64): Declare.
1035 * testsuite/gas/ppc/prefix-pcrel.s,
1036 * testsuite/gas/ppc/prefix-pcrel.d: Add more instructions.
1038 2021-04-12 Nelson Chu <nelson.chu@sifive.com>
1040 * testsuite/gas/riscv/march-fail-order-x-std.d: Renamed from
1041 march-fail-porder-x-std.d.
1042 * testsuite/gas/riscv/march-fail-order-z-std.d: Renamed from
1043 march-fail-porder-z-std.d.
1044 * testsuite/gas/riscv/march-fail-order-x-z.d: Renamed from
1045 march-fail-porder-x-z.d.
1046 * testsuite/gas/riscv/march-fail-order-zx-std.l: Added to replace
1047 march-fail-porder.l.
1048 * testsuite/gas/riscv/march-fail-order-x-z.l: Likewise.
1049 * testsuite/gas/riscv/march-fail-order-x.l: Updated.
1050 * testsuite/gas/riscv/march-fail-order-z.l: Likewise.
1051 * testsuite/gas/riscv/march-fail-single-prefix-h.d: Renamed from
1052 march-fail-single-char-h.d.
1053 * testsuite/gas/riscv/march-fail-single-prefix-s.d: Renamed from
1054 march-fail-single-char-s.d.
1055 * testsuite/gas/riscv/march-fail-single-prefix-x.d: Renamed from
1056 march-fail-single-char-x.d.
1057 * testsuite/gas/riscv/march-fail-single-prefix-z.d: Renamed from
1058 march-fail-single-char-z.d.
1059 * testsuite/gas/riscv/march-fail-single-prefix-zmx.d: Added.
1060 * testsuite/gas/riscv/march-fail-single-prefix.l: Added to replace
1061 march-fail-single-prefix.l.
1062 * testsuite/gas/riscv/march-fail-unknown-zxm.d: Added.
1063 * testsuite/gas/riscv/march-fail-unknown-std.l: Updated.
1064 * testsuite/gas/riscv/march-fail-unknown.l: Likewise.
1066 2021-04-09 Tejas Belagod <tejas.belagod@arm.com>
1068 * config/tc-aarch64.c (warn_unpredictable_ldst): Clean-up
1069 diagnostic messages for LD/ST Exclusive instructions.
1070 * testsuite/gas/aarch64/diagnostic.s: Add a diagnostic test for STLXP.
1071 * testsuite/gas/aarch64/diagnostic.l: Fix-up test after message
1074 2021-04-09 Alan Modra <amodra@gmail.com>
1076 * testsuite/gas/ppc/prefix-pcrel.d: Update expected output.
1077 * testsuite/gas/ppc/prefix-reloc.d: Likewise.
1078 * gas/testsuite/gas/ppc/vsx_32byte.d: Likewise.
1080 2021-04-08 Alan Modra <amodra@gmail.com>
1082 * testsuite/gas/ppc/pr27676.d,
1083 * testsuite/gas/ppc/pr27676.s: New test.
1084 * testsuite/gas/ppc/ppc.exp: Run it.
1085 * testsuite/gas/ppc/dcbt.d: Update.
1086 * testsuite/gas/ppc/power4_32.d: Update.
1088 2021-04-07 Alan Modra <amodra@gmail.com>
1091 * testsuite/gas/aarch64/pr27217.d: Correct name. Accept ilp32 relocs.
1093 2021-04-06 Nick Clifton <nickc@redhat.com>
1096 * config/tc-aarch64.c (my_get_expression): Rename to
1097 aarch64_get_expression. Add a fifth argument to enable deferring
1098 of expression resolution.
1099 (parse_typed_reg): Update calls to my_get_expression.
1100 (parse_vector_reg_list): Likewise.
1101 (parse_immediate_expression): Likewise.
1102 (parse_big_immediate): Likewise.
1103 (parse_shift): Likewise.
1104 (parse_shifter_operand_imm): Likewise.
1105 (parse_operands): Likewise.
1106 (parse_shifter_operand_reloc): Update calls to my_get_expression
1107 and call aarch64_force_reloc to determine the value of the new
1109 (parse_address_main): Likewise.
1110 (parse_half): Likewise.
1111 (parse_adrp): Likewise.
1112 (aarch64_force_reloc): New function. Contains code extracted from...
1113 (aarch64_force_relocation): ... here.
1114 * testsuite/gas/aarch64/pr27217.s: New test case.
1115 * testsuite/gas/aarch64/pr27217.d: New test driver.
1117 2021-04-06 Jan Beulich <jbeulich@suse.com>
1119 * write.c (fixup_segment): Move add_symbol_segment declaration
1122 2021-04-05 Alan Modra <amodra@gmail.com>
1124 * configure.ac: Don't check for string.h, strings.h, stdlib.h,
1125 errno.h, limits.h, locale.h or time.h. Don't check for unlink,
1126 remove, sbrk (unused) or setlocale. Adjust gas_test_headers.
1127 Don't check for errno, free, malloc, realoc, sbrk, strstr, getenv
1128 strstr, or vsnprintf declarations.
1129 (AC_ISC_POSIX, AC_FUNC_ALLOCA, AC_C_INLINE): Don't invoke.
1130 * as.h: Don't include alloca-conf.h, include config.h instead.
1131 Include string.h, stdlib.h, errno.h unconditionally. Remove
1132 various fallback declarations.
1133 * asintl.h: Don't test HAVE_LOCALE_H.
1134 * as.c: Don't test HAVE_SETLOCALE.
1135 * dwarf2dbg.c: Include limits.h unconditionally.
1138 * symbols.c: Likewise.
1139 * config/tc-cr16.c: Likewise.
1140 * config/tc-d30v.c: Likewise.
1141 * config/tc-i386.c: Likewise.
1142 * config/tc-ia64.c: Likewise.
1143 * config/tc-tic54x.c (tic54x_mlib): Call remove rather than unlink.
1144 * config.in: Regenerate.
1145 * configure: Regenerate.
1146 * Makefile.in: Regenerate.
1147 * doc/Makefile.in: Regenerate.
1149 2021-04-01 Martin Liska <mliska@suse.cz>
1151 * config/obj-coff.c (strneq): Remove strneq and use startswith.
1152 (weak_is_altname): Likewise.
1153 (obj_coff_section): Likewise.
1154 * config/tc-cr16.c (process_label_constant): Likewise.
1155 * config/tc-crx.c (strneq): Likewise.
1157 2021-04-01 Martin Liska <mliska@suse.cz>
1159 * as.c (select_emulation_mode): Use startswith.
1160 * config/m68k-parse.y: Likewise.
1161 * config/obj-aout.c (obj_aout_type): Likewise.
1162 * config/obj-elf.c (elf_common_parse): Likewise.
1163 (obj_elf_section_type): Likewise.
1164 (obj_elf_section_word): Likewise.
1165 (obj_elf_section): Likewise.
1166 (obj_elf_symver): Likewise.
1167 (adjust_stab_sections): Likewise.
1168 * config/obj-evax.c (evax_shorten_name): Likewise.
1169 * config/obj-macho.c (obj_mach_o_is_frame_section): Likewise.
1170 * config/tc-aarch64.c (parse_aarch64_imm_float): Likewise.
1171 (aarch64_parse_features): Likewise.
1172 (create_register_alias): Likewise.
1173 (aarch64_data_in_code): Likewise.
1174 (md_parse_option): Likewise.
1175 * config/tc-alpha.c (s_alpha_section_word): Likewise.
1176 (s_alpha_pdesc): Likewise.
1177 * config/tc-arc.c (tokenize_extregister): Likewise.
1178 * config/tc-arm.c (create_register_alias): Likewise.
1179 (create_neon_reg_alias): Likewise.
1180 (parse_ifimm_zero): Likewise.
1181 (parse_qfloat_immediate): Likewise.
1182 (arm_elf_section_type): Likewise.
1183 (arm_parse_extension): Likewise.
1184 (aeabi_set_public_attributes): Likewise.
1185 (s_arm_arch_extension): Likewise.
1186 (arm_data_in_code): Likewise.
1187 (start_unwind_section): Likewise.
1188 * config/tc-avr.c (avr_ldi_expression): Likewise.
1189 * config/tc-csky.c (is_freglist_legal): Likewise.
1190 (csky_s_section): Likewise.
1191 * config/tc-d30v.c (do_assemble): Likewise.
1192 * config/tc-dlx.c (parse_operand): Likewise.
1193 * config/tc-epiphany.c (md_assemble): Likewise.
1194 * config/tc-h8300.c (h8300_elf_section): Likewise.
1195 (get_operand): Likewise.
1196 * config/tc-hppa.c (pa_ip): Likewise.
1197 (pa_level): Likewise.
1198 (pa_space): Likewise.
1199 * config/tc-i386.c (i386_mach): Likewise.
1200 (md_assemble): Likewise.
1201 (check_VecOperations): Likewise.
1202 (i386_target_format): Likewise.
1203 (i386_elf_section_type): Likewise.
1204 * config/tc-ia64.c (start_unwind_section): Likewise.
1205 (md_parse_option): Likewise.
1206 (is_taken_branch): Likewise.
1207 (idesc->name,): Likewise.
1208 (note_register_values): Likewise.
1209 (do_alias): Likewise.
1210 * config/tc-m32c.c (insn_to_subtype): Likewise.
1211 * config/tc-m68hc11.c (get_operand): Likewise.
1212 (md_assemble): Likewise.
1213 * config/tc-m68k.c (m68k_ip): Likewise.
1214 (m68k_elf_suffix): Likewise.
1215 * config/tc-mcore.c (mcore_s_section): Likewise.
1216 * config/tc-metag.c (parse_get_set): Likewise.
1217 (md_parse_option): Likewise.
1218 * config/tc-microblaze.c (parse_imm): Likewise.
1219 (check_got): Likewise.
1220 (md_apply_fix): Likewise.
1221 * config/tc-mips.c (CPU_HAS_MIPS16): Likewise.
1222 (md_begin): Likewise.
1223 (s_is_linkonce): Likewise.
1224 (check_regno): Likewise.
1225 (match_float_constant): Likewise.
1226 (classify_vr4120_insn): Likewise.
1227 (match_insn): Likewise.
1228 (mips_after_parse_args): Likewise.
1229 (s_change_sec): Likewise.
1230 (s_option): Likewise.
1231 (parse_code_option): Likewise.
1232 (md_section_align): Likewise.
1233 (nopic_need_relax): Likewise.
1234 * config/tc-mmix.c (mmix_handle_mmixal): Likewise.
1235 * config/tc-mn10300.c (mn10300_fix_adjustable): Likewise.
1236 (mn10300_end_of_match): Likewise.
1237 * config/tc-msp430.c (msp430_make_init_symbols): Likewise.
1238 * config/tc-nds32.c (nds32_parse_option): Likewise.
1239 * config/tc-nds32.h (md_do_align): Likewise.
1240 * config/tc-nios2.c (strprefix): Likewise.
1241 (nios2_special_relocation_p): Likewise.
1242 (nios2_parse_base_register): Likewise.
1243 (nios2_cons): Likewise.
1244 * config/tc-ns32k.c (addr_mode): Likewise.
1245 * config/tc-pdp11.c (set_option): Likewise.
1246 (parse_reg): Likewise.
1247 (parse_ac5): Likewise.
1248 (parse_op_no_deferred): Likewise.
1249 (set_cpu_model): Likewise.
1250 (set_machine_model): Likewise.
1251 * config/tc-pj.c (md_operand): Likewise.
1252 * config/tc-ppc.c (ppc_set_cpu): Likewise.
1253 (ppc_arch): Likewise.
1254 (ppc_section_type): Likewise.
1255 * config/tc-s12z.c (tb_reg_rel): Likewise.
1256 (tb_opr_rel): Likewise.
1257 * config/tc-s390.c (s390_parse_cpu): Likewise.
1258 (md_parse_option): Likewise.
1259 * config/tc-score.c (s3_nopic_need_relax): Likewise.
1260 (s3_pic_need_relax): Likewise.
1261 * config/tc-score7.c (s7_nopic_need_relax): Likewise.
1262 (s7_pic_need_relax): Likewise.
1263 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
1264 * config/tc-sparc.c (md_parse_option): Likewise.
1265 (sparc_ip): Likewise.
1266 (s_reserve): Likewise.
1267 (s_common): Likewise.
1269 (sparc_cons): Likewise.
1270 * config/tc-tic54x.c (stag_add_field): Likewise.
1271 (tic54x_endstruct): Likewise.
1272 * config/tc-tic6x.c (tic6x_start_unwind_section): Likewise.
1273 * config/tc-v850.c (v850_comm): Likewise.
1274 (md_begin): Likewise.
1275 (md_assemble): Likewise.
1276 * config/tc-vax.c (vax_cons): Likewise.
1277 * config/tc-wasm32.c (wasm32_leb128): Likewise.
1278 * config/tc-xstormy16.c (md_operand): Likewise.
1279 * config/tc-xtensa.c (get_directive): Likewise.
1280 (xg_instruction_matches_option_term): Likewise.
1281 (is_unaligned_label): Likewise.
1282 (cache_literal_section): Likewise.
1283 * config/xtensa-relax.c (parse_precond): Likewise.
1284 (parse_option_cond): Likewise.
1285 (transition_applies): Likewise.
1286 (wide_branch_opcode): Likewise.
1287 * dw2gencfi.c: Likewise.
1288 * dwarf2dbg.c (dwarf2_directive_filename): Likewise.
1289 * ehopt.c (get_cie_info): Likewise.
1290 * input-file.c (input_file_open): Likewise.
1291 * listing.c (listing_newline): Likewise.
1292 (debugging_pseudo): Likewise.
1293 * read.c (read_a_source_file): Likewise.
1294 * write.c (adjust_reloc_syms): Likewise.
1295 (compress_debug): Likewise.
1296 (maybe_generate_build_notes): Likewise.
1298 2021-03-31 Alan Modra <amodra@gmail.com>
1300 * itbl-lex-wrapper.c: Include as.h not sysdep.h.
1301 * config/bfin-lex-wrapper.c: Likewise.
1302 * itbl-lex.l: Don't include as.h.
1303 * config/bfin-lex.l: Likewise.
1305 2021-03-31 Alan Modra <amodra@gmail.com>
1307 * as.h (POISON_BFD_BOOLEAN): Define.
1308 * as.c, * as.h, * atof-generic.c, * config/atof-ieee.c,
1309 * config/bfin-aux.h, * config/obj-coff.c, * config/obj-ecoff.c,
1310 * config/obj-elf.c, * config/obj-elf.h, * config/obj-som.c,
1311 * config/tc-aarch64.c, * config/tc-alpha.c, * config/tc-arc.c,
1312 * config/tc-arc.h, * config/tc-arm.c, * config/tc-arm.h,
1313 * config/tc-avr.c, * config/tc-avr.h, * config/tc-bfin.c,
1314 * config/tc-bfin.h, * config/tc-bpf.c, * config/tc-cris.c,
1315 * config/tc-csky.c, * config/tc-csky.h, * config/tc-d10v.c,
1316 * config/tc-d10v.h, * config/tc-d30v.c, * config/tc-d30v.h,
1317 * config/tc-dlx.c, * config/tc-dlx.h, * config/tc-epiphany.c,
1318 * config/tc-epiphany.h, * config/tc-fr30.c, * config/tc-fr30.h,
1319 * config/tc-frv.c, * config/tc-frv.h, * config/tc-ft32.c,
1320 * config/tc-ft32.h, * config/tc-h8300.c, * config/tc-hppa.c,
1321 * config/tc-i386-intel.c, * config/tc-i386.c, * config/tc-ia64.c,
1322 * config/tc-ip2k.c, * config/tc-iq2000.c, * config/tc-iq2000.h,
1323 * config/tc-lm32.c, * config/tc-lm32.h, * config/tc-m32c.c,
1324 * config/tc-m32c.h, * config/tc-m32r.c, * config/tc-m32r.h,
1325 * config/tc-m68hc11.c, * config/tc-m68k.c, * config/tc-mcore.c,
1326 * config/tc-mcore.h, * config/tc-mep.c, * config/tc-mep.h,
1327 * config/tc-metag.c, * config/tc-metag.h,
1328 * config/tc-microblaze.c, * config/tc-mips.c, * config/tc-mips.h,
1329 * config/tc-mmix.c, * config/tc-mn10200.c, * config/tc-mn10300.c,
1330 * config/tc-mn10300.h, * config/tc-moxie.c, * config/tc-msp430.c,
1331 * config/tc-msp430.h, * config/tc-mt.c, * config/tc-mt.h,
1332 * config/tc-nds32.c, * config/tc-nds32.h, * config/tc-nios2.c,
1333 * config/tc-ns32k.c, * config/tc-or1k.c, * config/tc-or1k.h,
1334 * config/tc-pdp11.c, * config/tc-ppc.c, * config/tc-pru.c,
1335 * config/tc-pru.h, * config/tc-riscv.c, * config/tc-riscv.h,
1336 * config/tc-rx.c, * config/tc-rx.h, * config/tc-s12z.c,
1337 * config/tc-s12z.h, * config/tc-s390.c, * config/tc-score.c,
1338 * config/tc-score.h, * config/tc-score7.c, * config/tc-sh.c,
1339 * config/tc-sh.h, * config/tc-spu.c, * config/tc-tic54x.c,
1340 * config/tc-tic6x.c, * config/tc-tic6x.h, * config/tc-tilegx.c,
1341 * config/tc-tilepro.c, * config/tc-v850.c, * config/tc-v850.h,
1342 * config/tc-visium.c, * config/tc-visium.h, * config/tc-wasm32.c,
1343 * config/tc-wasm32.h, * config/tc-xc16x.c, * config/tc-xgate.c,
1344 * config/tc-xstormy16.c, * config/tc-xstormy16.h,
1345 * config/tc-xtensa.c, * config/tc-xtensa.h, * config/tc-z80.c,
1346 * config/tc-z8k.c, * config/xtensa-istack.h,
1347 * config/xtensa-relax.c, * config/xtensa-relax.h, * dw2gencfi.c,
1348 * dwarf2dbg.c, * dwarf2dbg.h, * expr.c, * expr.h, * frags.c,
1349 * frags.h, * listing.c, * macro.c, * output-file.c, * read.c,
1350 * read.h, * stabs.c, * symbols.c, * write.c: Replace bfd_boolean
1351 with bool, FALSE with false, and TRUE with true.
1353 2021-03-31 Alan Modra <amodra@gmail.com>
1355 * config/tc-aarch64.c: Include stdint.h in place of bfd_stdint.h.
1356 * config/tc-crx.c: Likewise.
1357 * config/tc-nds32.h: Likewise.
1359 2021-03-30 Jan Beulich <jbeulich@suse.com>
1361 * config/tc-i386.c (build_modrm_byte): Change return type.
1362 Change type of "default_seg". Use NULL. Adjust setting of
1364 (reg_ds, reg_es, reg_ss): New.
1365 (struct _i386_insn): Change type of seg[].
1366 (md_begin): Initialize reg_ds, reg_es, and reg_ss.
1367 (swap_operands): Change type of "temp_seg".
1368 (check_string): Adjust %es check.
1369 (process_operands): Change type of "default_seg". Use NULL.
1370 Adjust segment override processing..
1371 (i386_att_operand): Adjust segment override handling.
1372 * config/tc-i386-intel.c (i386_intel_operand): Likewise.
1374 2021-03-30 Jan Beulich <jbeulich@suse.com>
1376 * config/tc-i386.c (reg_eax): New.
1377 (md_begin): Initialize reg_eax.
1378 * config/tc-i386-intel.c (i386_intel_simplify_register): Use
1380 (i386_intel_simplify): Likewise.
1382 2021-03-30 Jan Beulich <jbeulich@suse.com>
1384 * config/tc-i386.c (reg_st0): New.
1385 (md_begin): Convert to switch(). Initialize reg_st0. Don't
1387 (parse_real_register): Adjust st(N) processing.
1389 2021-03-30 Jan Beulich <jbeulich@suse.com>
1391 * config/tc-i386.c (rc_op): Delete.
1392 (struct Rounding_Operation): Move ...
1393 (struct _i386_insn): ... here. Change field "rounding".
1394 (build_evex_prefix): Adjust rounding processing.
1395 (swap_2_operands): Likewise.
1396 (check_VecOperands): Likewise.
1397 (RC_SAE_immediate): Likewise.
1398 (optimize_encoding): Adjust check for rounding.
1399 (build_modrm_byte): Likewise.
1400 (output_imm): Likewise.
1401 (md_assemble): Initialize rounding type.
1403 2021-03-30 Jan Beulich <jbeulich@suse.com>
1405 * config/tc-i386.c (broadcast_op): Delete.
1406 (struct Broadcast_Operation): Move ...
1407 (struct _i386_insn): ... here. Change field "broadcast".
1408 (match_mem_size): Adjust check for broadcast.
1409 (optimize_encoding): Likewise.
1410 (process_suffix): Likewise.
1411 (build_evex_prefix): Adjust broadcast processing.
1412 (swap_2_operands): Likewise.
1413 (check_VecOperations): Likewise.
1414 (match_template): Likewise.
1415 (check_VecOperands): Likewise.
1417 2021-03-30 Jan Beulich <jbeulich@suse.com>
1419 * config/tc-i386.c (reg_k0): New.
1421 (struct Mask_Operation): Move ...
1422 (struct _i386_insn): ... here. Change field "mask".
1423 (md_begin): Initialize reg_k0.
1424 (build_evex_prefix): Adjust mask processing.
1425 (swap_2_operands): Likewise.
1426 (check_VecOperands): Likewise.
1427 (check_VecOperations): Likewise.
1428 (optimize_encoding): Adjust checks for masking.
1429 (output_insn): Likewise.
1431 2021-03-30 Jan Beulich <jbeulich@suse.com>
1433 * config/tc-i386.c (swap_2_operands): Switch parameters to
1435 (struct RC_Operation): Switch operand field to unsigned.
1436 (struct Mask_Operation): Likewise.
1437 (struct Broadcast_Operation): Likewise.
1438 (build_evex_prefix): Drop cast.
1439 (check_VecOperands): Likewise.
1440 (build_modrm_byte): Likewise.
1441 (output_imm): Likewise.
1442 (check_VecOperations): Add casts to unsigned.
1444 2021-03-29 Jan Beulich <jbeulich@suse.com>
1446 * testsuite/gas/i386/x86-64-sse2avx.s: Add vpsadbw case.
1447 * testsuite/gas/i386/x86-64-avx-swap-2.d.
1448 testsuite/gas/i386/x86-64-sse2avx.d: Adjust expectations.
1450 2021-03-29 Jan Beulich <jbeulich@suse.com>
1452 * config/tc-i386.c (optimize_encoding): Replace VEX-encoding
1453 checks by opcodespace ones.
1454 (insert_lfence_before): Likewise.
1455 (maybe_fused_with_jcc_p): Likewise.
1456 (add_branch_padding_frag_p): Likewise.
1457 (output_disp): Likewise.
1458 (load_insn_p): Re-arrange checks to key applicable ones off of
1459 an opcodespace check.
1460 (md_assemble): Adjust opcode checks.
1461 (check_byte_reg): Likewise.
1462 (process_operands): Likewise.
1463 (i386_index_check): Likewise.
1464 (process_suffix): Likewise. New local variable is_movx. Adjust
1465 movsx/movzx and crc32 handling.
1466 (output_insn): Adjust opcode checks. Drop no longer reachable
1467 case labels. Output legacy encoding prefixes in addition to the
1468 base_opcode byte(s). Rework counting of prefixes for extended
1470 * config/tc-i386-intel.c (i386_intel_simplify_register): Adjust
1473 2021-03-29 Alan Modra <amodra@gmail.com>
1475 * atof-generic.c (FALSE, TRUE): Don't define.
1476 * config/obj-elf.h (FALSE, TRUE): Don't define.
1477 * config/obj-som.h (FALSE, TRUE): Don't define.
1478 * config/tc-hppa.h (FALSE, TRUE): Don't define.
1479 * config/tc-pdp11.c (FALSE, TRUE): Don't define.
1480 * config/tc-iq2000.h (obj_fix_adjustable): Delete.
1481 * config/tc-m32r.h (TC_FIX_ADJUSTABLE): Delete.
1482 * config/tc-mt.h (obj_fix_adjustable): Delete.
1483 * config/tc-nds32.h (TC_FIX_ADJUSTABLE): Delete.
1484 * config/tc-arc.c (parse_opcode_flags): Simplify boolean expression.
1485 (relaxable_flag, relaxable_operand, assemble_insn): Likewise.
1486 (tokenize_extregister): Likewise.
1487 * config/tc-csky.c (parse_opcode, get_operand_value): Likewise.
1488 (parse_operands_op, parse_operands, md_assemble): Likewise.
1489 * config/tc-d10v.c (build_insn): Likewise.
1490 * config/tc-score.c (s3_gen_insn_frag): Likewise.
1491 * config/tc-score7.c (s7_gen_insn_frag, s7_relax_frag): Likewise.
1492 * config/tc-tic6x.c (tic6x_update_features, md_assemble): Likewise.
1493 * config/tc-z80.c (emit_byte): Likewise.
1495 2021-03-29 Alan Modra <amodra@gmail.com>
1497 * config/tc-arm.c (struct arm_long_option_table <func>): Return
1499 * config/tc-arm.h (arm_optimize_expr, arm_data_in_code): Likewise.
1500 * config/tc-metag.c (parse_mov_port): Replace unsigned int variable
1502 (parse_mmov, parse_mov_ct, parse_alu, parse_shift, parse_bitop),
1503 (parse_cmp, parse_fmmov, parse_fmov_data, parse_fearith),
1504 (parse_dget_set, parse_dalu): Likewise, ensuring assignment from
1505 logical expressions.
1506 (struct metag_long_option <func>): Return bfd_boolean.
1507 (metag_parse_cpu, metag_parse_fpu, metag_parse_dsp): Likewise.
1508 * config/tc-msp430.c (msp430_dstoperand): Correct dummy type.
1509 * config/tc-s12z.c (parse_operand_func): Return bfd_boolean.
1510 (no_operands, lex_force_match, lex_reg_list): Likewise.
1511 (size_from_suffix): Return int.
1512 (s12z_relax_frag, md_estimate_size_before_relax): Return 0.
1513 * config/tc-s12z.h (tc_s12z_fix_adjustable): Likewise.
1515 2021-03-26 Jan Beulich <jbeulich@suse.com>
1517 * testsuite/gas/i386/x86-64-nosse2.s,
1518 testsuite/gas/i386/x86-64-nosse2.l: New.
1519 * testsuite/gas/i386/i386.exp: Run new test.
1521 2021-03-25 Abid Qadeer <abidh@codesourcery.com>
1523 * testsuite/gas/nios2/brn.d: New.
1524 * testsuite/gas/nios2/brn.d: New.
1526 2021-03-25 Jan Beulich <jbeulich@suse.com>
1528 * config/tc-i386.c (match_template): Use t instead of i.tm.
1530 2021-03-25 Jan Beulich <jbeulich@suse.com>
1532 * testsuite/gas/i386/avx512f-nondef.s: Add vgather cases.
1533 * testsuite/gas/i386/x86-64-vgather-check.s: Add cases with
1534 colliding registers in the upper half of the space.
1535 * testsuite/gas/i386/avx512f-nondef.d,
1536 testsuite/gas/i386/vgather-check.d,
1537 testsuite/gas/i386/x86-64-vgather-check.d,
1538 testsuite/gas/i386/x86-64-vgather-check-error.l,
1539 testsuite/gas/i386/x86-64-vgather-check-warn.e: Adjust
1541 * testsuite/gas/i386/vgather-check-none.d,
1542 testsuite/gas/i386/vgather-check-warn.d,
1543 testsuite/gas/i386/x86-64-vgather-check-none.d,
1544 testsuite/gas/i386/x86-64-vgather-check-warn.d: Refer to "base"
1545 tests for expected dump output.
1547 2021-03-25 Jan Beulich <jbeulich@suse.com>
1549 * testsuite/gas/i386/avx512f-nondef.s: Add case for EVEX.z
1550 without mask register.
1551 * testsuite/gas/i386/avx512f-nondef.d: Adjust expectations.
1553 2021-03-25 Jan Beulich <jbeulich@suse.com>
1555 * config/tc-i386.c (md_assemble): Widen set of insns to avoid
1556 swapping operands for.
1557 * testsuite/gas/i386/invlpgb.s: Fix, re-arrange, and add Intel
1559 * testsuite/gas/i386/snp.s: Re-arrange and add multi-operand as
1560 well as Intel syntax tests.
1561 * testsuite/gas/i386/invlpgb.d, testsuite/gas/i386/snp.d: Adjust
1563 * testsuite/gas/i386/invlpgb64.d, testsuite/gas/i386/snp64.d:
1564 Likewise. Drop passing --def-sym to as.
1566 2021-03-25 Jan Beulich <jbeulich@suse.com>
1569 * config/tc-i386.c (process_suffix): Restrict (%rip) -> (%eip)
1570 conversion to x32 mode.
1571 * testsuite/gas/i386/ilp32/enqcmd.s,
1572 testsuite/gas/i386/ilp32/enqcmd.d,
1573 testsuite/gas/i386/ilp32/movdir.s,
1574 testsuite/gas/i386/ilp32/movdir.d: New.
1575 * testsuite/gas/i386/x86-64-enqcmd.s,
1576 testsuite/gas/i386/x86-64-movdir.s: Drop mismatched operand
1578 * testsuite/gas/i386/x86-64-enqcmd-inval.s: Add (%rip) and
1580 * testsuite/gas/i386/x86-64-movdir64b-reg.s Add (%eip) case.
1581 * testsuite/gas/i386/x86-64-enqcmd.d,
1582 testsuite/gas/i386/x86-64-enqcmd-intel.d,
1583 testsuite/gas/i386/x86-64-enqcmd-inval.l,
1584 testsuite/gas/i386/x86-64-movdir.d,
1585 testsuite/gas/i386/x86-64-movdir-intel.d,
1586 testsuite/gas/i386/x86-64-movdir64b-reg.l: Adjust expectations.
1588 2021-03-25 Alan Modra <amodra@gmail.com>
1591 * testsuite/gas/ppc/a2.d: Update expected output.
1592 * testsuite/gas/ppc/power8.d: Likewise.
1594 2021-03-24 Jan Beulich <jbeulich@suse.com>
1596 * config/tc-i386.c (struct _i386_insn): New field
1598 (md_begin): Drop assertion.
1599 (install_template): New.
1600 (build_vex_prefix): Call install_template.
1601 (match_template): Likewise.
1602 (process_operands): Use new opcode_length field.
1603 (output_jump): Likewise.
1604 (output_insn): Likewise. Adjust psedo prefix check.
1606 2021-03-24 Jan Beulich <jbeulich@suse.com>
1608 * config/tc-i386.c (md_begin): Add assertion.
1609 (build_vex_prefix): Drop implied prefix calculation.
1610 (build_evex_prefix): Likewise.
1611 (optimize_encoding): Adjust opcode checks.
1612 (load_insn_p): Also check opcodeprefix.
1613 (match_template): Also check opcodespace.
1614 (process_suffix): Likewise.
1615 (process_operands): Likewise.
1616 (output_insn): Likewise. Also check isprefix when discaring
1618 * config/tc-i386-intel.c (i386_intel_operand): Also check
1621 2021-03-24 Jan Beulich <jbeulich@suse.com>
1623 * config/tc-i386.c (parse_insn): Recognize pseudo prefixes by
1624 base_opcode and extension_opcode.
1626 2021-03-23 Jan Beulich <jbeulich@suse.com>
1628 * config/tc-i386.c (pte): Re-order opc_pfx[] entries.
1630 2021-03-23 Jan Beulich <jbeulich@suse.com>
1632 * config/tc-i386.c (output_i386_opcode): Invoke
1633 process_i386_cpu_flag() slightly later.
1634 (process_i386_opcodes): Likewise.
1636 2021-03-23 Jan Beulich <jbeulich@suse.com>
1638 * config/tc-i386.c (pte): Print prefix and encoding space.
1639 (build_vex_prefix): Check opcodespace instead of opcodeprefix.
1640 (build_evex_prefix): Likewise.
1641 (load_insn_p): Likewise.
1643 2021-03-23 Jan Beulich <jbeulich@suse.com>
1645 * config/tc-i386.c (load_insn_p): Use PREFIX_NONE. Fold two
1647 (match_template, output_insn): Use PREFIX_NONE.
1649 2021-03-23 Jan Beulich <jbeulich@suse.com>
1651 * config/tc-i386.c (i386_index_check): New local variable t.
1652 Correct MPX insn check.
1653 * config/tc-i386-intel.c (i386_intel_simplify_register): Correct
1655 * testsuite/gas/i386/x86-64-mpx.s: Add RIP-relative cases. Test
1656 index scaling by other than 1.
1657 * testsuite/gas/i386/x86-64-mpx.d: Adjust expectations.
1659 2021-03-22 Martin Liska <mliska@suse.cz>
1661 * config/tc-i386.c (md_parse_option): Replace usage of CONST_STRNEQ with startswith.
1662 (x86_64_section_word): Likewise.
1663 * config/tc-sparc.c (md_parse_option): Likewise.
1665 2021-03-19 Alan Modra <amodra@gmail.com>
1667 * app.c (do_scrub_chars): Don't lose spaces before a slash.
1669 2021-03-18 Christian Groessler <chris@groessler.org>
1671 * config/tc-z8k.c (apply_fix): Handle 7-bit relocations correctly.
1672 Problem found by Tadashi G. Takaoka <tadashi.g.takaoka@gmail.com>.
1674 2021-03-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1676 * config/tc-riscv.c (ext_version_table): Add b, zba, zbb and zbc.
1677 (riscv_multi_subset_supports): Add INSN_CLASS_ZB*.
1678 * testsuite/gas/riscv/b-ext-64.s: Bitmanip test case.
1679 * testsuite/gas/riscv/b-ext-64.d: Likewise.
1680 * testsuite/gas/riscv/b-ext.s: Likewise.
1681 * testsuite/gas/riscv/b-ext.d: Likewise.
1683 2021-03-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1685 * testsuite/gas/aarch64/illegal-sysreg-7.d: New test.
1686 * testsuite/gas/aarch64/illegal-sysreg-7.l: New test.
1687 * testsuite/gas/aarch64/illegal-sysreg-7.s: New test.
1688 * testsuite/gas/aarch64/sysreg-7.d: New test.
1689 * testsuite/gas/aarch64/sysreg-7.s: New test.
1691 2021-03-12 Clément Chigot <clement.chigot@atos.net>
1693 * config/tc-ppc.c (ppc_xcoff_text_section, ppc_xcoff_data_section,
1694 (ppc_xcoff_bss_section, ppc_xcoff_tdata_section,
1695 (ppc_xcoff_tbss_section): New variables.
1696 (ppc_text_subsegment, ppc_text_csects, ppc_data_subgments,
1697 (ppc_data_csects): Removed.
1698 (ppc_xcoff_section_is_initialized, ppc_init_xcoff_section,
1699 ppc_xcoff_parse_cons): New functions.
1700 (md_being): Initialize XCOFF sections.
1701 (ppc_xcoff_suffix): Add support for TLS relocations
1702 (fixup_size, md_apply_fix): Add support for new BFD_RELOC.
1703 (ppc_change_csect): Handle XMC_TL, XMC_UL. Correctly, add XMC_BS
1704 to .bss section. Handle new XCOFF section variables.
1705 (ppc_comm): Likewise.
1706 (ppc_toc): Likewise.
1707 (ppc_symbol_new_hook): Likewise.
1708 (ppc_frob_symbol): Likewise.
1709 (ppc_fix_adjustable): Add tbss support.
1710 * config/tc-ppc.h (TC_PARSE_CONS_EXPRESSION): New define.
1711 (ppc_xcoff_parse_cons): Add prototype.
1712 (struct ppc_xcoff_section): New structure.
1714 2021-03-12 Clément Chigot <clement.chigot@atos.net>
1716 * config/tc-ppc.c (ppc_xcoff_suffix): New function.
1717 (MAP, MAP32, MAP64): New macros for XCOFF.
1718 (ppc_xcoff_fixup_addis): New function.
1719 (ppc_is_toc_sym): Handle XMC_TE.
1720 (fixup_size): Add cases for BFD_RELOC_PPC_TOC16_HI and
1721 BFD_RELOC_PPC_TOC16_LO.
1722 (md_assemble): Call ppc_xcoff_fixup_addis for XCOFF.
1723 (ppc_change_csect): Handle XMC_TE.
1724 (ppc_tc): Enable .tc symbols to have only a XMC_TC or XMC_TE
1726 (ppc_symbol_new_hook): Handle XMC_TE.
1727 (ppc_frob_symbol): Likewise.
1728 (ppc_fix_adjustable): Likewise.
1729 (md_apply_fix): Handle BFD_RELOC_PPC_TOC16_HI and
1730 BFD_RELOC_PPC_TOC16_LO.
1732 2021-03-10 Jan Beulich <jbeulich@suse.com>
1734 * testsuite/gas/i386/avx512f-intel.d,
1735 testsuite/gas/i386/avx512f_vl-intel.d,
1736 testsuite/gas/i386/avx512pf-intel.d,
1737 testsuite/gas/i386/x86-64-avx512f-intel.d,
1738 testsuite/gas/i386/x86-64-avx512f_vl-intel.d,
1739 testsuite/gas/i386/x86-64-avx512pf-intel.d: Adjust expectations.
1741 2021-03-10 Jan Beulich <jbeulich@suse.com>
1743 * testsuite/gas/i386/prefetch.d,
1744 testsuite/gas/i386/prefetch-intel.d,
1745 testsuite/gas/i386/x86-64-prefetch.d,
1746 testsuite/gas/i386/x86-64-prefetch-intel.d: Adjust expectations.
1747 * testsuite/gas/i386/nops-8.s, testsuite/gas/i386/nops-8.d: New.
1748 * testsuite/gas/i386/i386.exp: Run new test.
1750 2021-03-09 Jan Beulich <jbeulich@suse.com>
1752 * config/tc-i386.c (check_hle): Replace HLEPrefix* by Prefix*.
1753 (md_assemble): Replace use of repprefixok, islockable, and
1755 (i386_index_check): Replace use of repprefixok.
1757 2021-03-09 Jan Beulich <jbeulich@suse.com>
1759 * testsuite/gas/i386/noreg64.s: Add sysexit.
1760 * testsuite/gas/i386/x86-64-sysenter-amd.s: Split sysexit into
1761 sysexitl and sysexitq.
1762 * testsuite/gas/i386/noreg-intel64.l,
1763 testsuite/gas/i386/noreg64-data16.d,
1764 testsuite/gas/i386/noreg64-data16.e,
1765 testsuite/gas/i386/noreg64-rex64.d,
1766 testsuite/gas/i386/noreg64.d,
1767 testsuite/gas/i386/noreg64.l,
1768 testsuite/gas/i386/x86-64-sysenter-amd.d,
1769 testsuite/gas/i386/x86-64-sysenter-amd.l,
1770 testsuite/gas/i386/x86-64-sysenter-intel.d: Adjust expectations.
1772 2021-02-26 Nick Clifton <nickc@redhat.com>
1775 * config/tc-arm.c (do_t_add_sub): Correct error message.
1776 * testsuite/gas/arm/pr27411.s: New test.
1777 * testsuite/gas/arm/pr27411.d: New test driver.
1778 * testsuite/gas/arm/pr27411.l: Expected error output for new test.
1780 2021-02-24 Alan Modra <amodra@gmail.com>
1783 * Makefile.am (TARGET_CPU_CFILES): Split off config/xtensa-relax.c..
1784 (TARGET_CPU_HFILES): ..and config/xtensa-relax.h..
1785 (TARGET_EXTRA_FILES): ..to here. Add config/bfin-lex-wrapper.c,
1786 and use alongside TARGET_CPU_CFILES.
1787 (EXTRA_DIST): Update location of generated .c files.
1788 (config/m68k-parse.c): New rule replacing m68k-parse.c rule.
1789 (config/bfin-parse.c, config/rl78-parse.cm config/rx-parse.c),
1790 (config/bfin-lex.c, config/bfin-lex-wrapper.@OBJEXT@): Similarly.
1791 (itbl-lex-wrapper.@OBJEXT@): Simplify to just the needed
1793 (itbl-parse.@OBJEXT@): Delete rule using NO_WERROR.
1794 (itbl-parse.c, itbl-parse.h): Tidy.
1795 * config/bfin-lex-wrapper.c: Include config/bfin-lex.c.
1796 * config/bfin-lex.l: Include config/bfin-parse.h.
1797 * configure.ac (extra_objects): Move object files corresponding
1798 to .y and .l files now in config/ to config/.
1799 * Makefile.in: Regenerate.
1800 * configure: Regenerate.
1801 * po/POTFILES.in: Regenerate.
1803 2021-02-19 Nick Clifton <nickc@redhat.com>
1805 * config/tc-riscv.c (riscv_ip): Fix compile time warnings about
1806 misleading indentation.
1808 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
1811 * config/tc-riscv.c (riscv_ip): Updated encoding macros.
1812 (md_apply_fix): Likewise.
1813 (md_convert_frag_branch): Likewise.
1814 (validate_riscv_insn): Likewise. Also arranged operands, including
1815 added C5 and C6 operands, and removed unused Ci and C< operands.
1816 * doc/c-riscv.texi: Updated and added CSS/CL/CS types.
1817 * testsuite/gas/riscv/insn.d: Added CSS/CL/CS instructions.
1818 * testsuite/gas/riscv/insn.s: Likewise.
1820 2021-02-18 Nelson Chu <nelson.chu@sifive.com>
1822 * config/tc-riscv.c: Included cpu-riscv.h.
1823 (enum riscv_csr_clas): Moved from include/opcode/riscv.h.
1824 (struct riscv_csr_extra): Likewise.
1825 (struct riscv_ext_version): Likewise.
1826 (ext_version_table): Moved from opcodes/riscv-opc.c.
1827 (default_isa_spec): Updated type to riscv_spec_class.
1828 (default_priv_spec): Likewise.
1829 (riscv_set_default_isa_spec): Updated.
1830 (init_ext_version_hash): Likewise.
1831 (riscv_init_csr_hash): Likewise, also fixed indent.
1833 2021-02-17 Alan Modra <amodra@gmail.com>
1835 * testsuite/gas/elf/section28.d: xfail h8300.
1837 2021-02-16 H.J. Lu <hongjiu.lu@intel.com>
1840 * config/obj-elf.c (obj_elf_change_section): Strip SHF_GNU_RETAIN
1841 when checking incorrect section attributes.
1842 * testsuite/gas/elf/elf.exp: Run section28 and section29.
1843 * testsuite/gas/elf/section28.d: New file.
1844 * testsuite/gas/elf/section28.s: Likewise.
1845 * testsuite/gas/elf/section29.d: Likewise.
1846 * testsuite/gas/elf/section29.s: Likewise.
1848 2021-02-16 Jan Beulich <jbeulich@suse.com>
1850 * testsuite/gas/i386/sse-check.s,
1851 testsuite/gas/i386/sse2avx.s,
1852 testsuite/gas/i386/x86-64-sse2avx.s: Add CVTPI2PD cases.
1853 * testsuite/gas/i386/sse-check-error.l,
1854 testsuite/gas/i386/sse-check-warn.e,
1855 testsuite/gas/i386/sse-check.d,
1856 testsuite/gas/i386/sse2avx.d,
1857 testsuite/gas/i386/x86-64-sse-check-error.l,
1858 testsuite/gas/i386/x86-64-sse2avx.d: Adjust expecations.
1859 * testsuite/gas/i386/property-cvtpi2pd.s,
1860 testsuite/gas/i386/property-cvtpi2pd.d,
1861 testsuite/gas/i386/property-cvtpi2ps.s,
1862 testsuite/gas/i386/property-cvtpi2ps.d: New.
1863 * testsuite/gas/i386/i386.exp: Run new tests.
1865 2021-02-16 Jan Beulich <jbeulich@suse.com>
1867 * config/tc-i386.c (md_assemble): Use template rather than
1868 actuals when updating i.xstate.
1869 * testsuite/gas/i386/property-4.d,
1870 testsuite/gas/i386/property-5.d,
1871 testsuite/gas/i386/property-12.d: Adjust expectations.
1873 2021-02-16 Jan Beulich <jbeulich@suse.com>
1875 * config/tc-i386.c (output_insn): Handle ldmxcsr, stmxcsr,
1876 vldmxcsr, vstmxcsr, vzeroall, and vzeroupper.
1877 * testsuite/gas/i386/property-ldmxcsr.s,
1878 testsuite/gas/i386/property-ldmxcsr.d,
1879 testsuite/gas/i386/property-vldmxcsr.s,
1880 testsuite/gas/i386/property-vldmxcsr.d,
1881 testsuite/gas/i386/property-vzeroall.s,
1882 testsuite/gas/i386/property-vzeroall.d: New.
1883 * testsuite/gas/i386/i386.exp: Run new tests.
1885 2021-02-16 Jan Beulich <jbeulich@suse.com>
1887 * testsuite/gas/i386/i386.exp: Move bitness-independent property
1888 tests to bitness independent section.
1889 * testsuite/gas/i386/x86-64-property-2.d,
1890 testsuite/gas/i386/x86-64-property-3.d,
1891 testsuite/gas/i386/x86-64-property-4.d,
1892 testsuite/gas/i386/x86-64-property-5.d,
1893 testsuite/gas/i386/x86-64-property-6.d,
1894 testsuite/gas/i386/x86-64-property-10.d,
1895 testsuite/gas/i386/x86-64-property-11.d,
1896 testsuite/gas/i386/x86-64-property-12.d,
1897 testsuite/gas/i386/x86-64-property-13.d: Delete.
1899 2021-02-16 Jan Beulich <jbeulich@suse.com>
1901 * testsuite/gas/i386/enqcmd-16bit.s: Include enqcmd.s, not
1903 * testsuite/gas/i386/enqcmd-16bit.d: Adjust expectations.
1905 2021-02-16 Alan Modra <amodra@gmail.com>
1908 * dwarf2dbg.c (allocate_filename_to_slot): Allocate the dirs array
1911 2021-02-16 Alan Modra <amodra@gmail.com>
1913 * read.c (demand_copy_C_string): Really check for embedded zeros.
1915 2021-02-15 Andreas Krebbel <krebbel@linux.ibm.com>
1917 * config/tc-s390.c (s390_parse_cpu): New entry for arch14.
1918 * doc/c-s390.texi: Document arch14 march option.
1919 * testsuite/gas/s390/s390.exp: Run the arch14 related tests.
1920 * testsuite/gas/s390/zarch-arch14.d: New test.
1921 * testsuite/gas/s390/zarch-arch14.s: New test.
1923 2021-02-12 Nick Clifton <nickc@redhat.com>
1925 * testsuite/gas/mach-o/sections-1.d: Stop automatic debug link
1927 * testsuite/gas/xgate/insns-dwarf2.d: Likewise.
1929 2021-02-12 Alan Modra <amodra@gmail.com>
1931 * testsuite/gas/all/pr27381.err: Don't match source file name.
1932 * testsuite/gas/all/pr27381.s: Don't start directive in first column.
1933 * testsuite/gas/all/pr27384.err: Don't match source file name.
1935 * testsuite/gas/all/pr27384.s: Add ".text" directive.
1936 * testsuite/gas/elf/pr27355.err: Don't match source file name.
1938 2021-02-11 Alan Modra <amodra@gmail.com>
1940 * NEWS: Mention arm-symbianelf removal.
1942 2021-02-10 Nick Clifton <nickc@redhat.com>
1944 * listing.c (buffer_line): Remove debugging code accidentally
1945 included with the fix for PR 27384.
1947 2021-02-09 Nick Clifton <nickc@redhat.com>
1950 * read.c (s_incbin): Check that the file to be included is a
1951 regular, non-directory file.
1952 * testsuite/gas/all/pr27381.s: New test source file.
1953 * testsuite/gas/all/pr27381.d: New test control file.
1954 * testsuite/gas/all/pr27381.err: Expected error output for the new test.
1955 * testsuite/gas/all/gas.exp: Run the new test.
1957 2021-02-09 Alan Modra <amodra@gmail.com>
1959 * Makefile.am (TARG_ENV_HFILES): Remove config/te-symbian.h.
1960 * config/tc-arm.c (elf32_arm_target_format): Remove TE_SYMBIAN
1962 * config/te-symbian.h: Delete.
1963 * configure.tgt: Remove arm-*-symbianelf*.
1964 * testsuite/gas/arm/arch4t-eabi.d: Don't mention symbianelf in
1966 * testsuite/gas/arm/arch4t.d: Likewise.
1967 * testsuite/gas/arm/got_prel.d: Likewise.
1968 * testsuite/gas/arm/mapdir.d: Likewise.
1969 * testsuite/gas/arm/mapmisc.d: Likewise.
1970 * testsuite/gas/arm/mapsecs.d: Likewise.
1971 * testsuite/gas/arm/mapshort-eabi.d: Likewise.
1972 * testsuite/gas/arm/thumb-eabi.d: Likewise.
1973 * testsuite/gas/arm/thumb.d: Likewise.
1974 * testsuite/gas/arm/thumbrel.d: Likewise.
1975 * Makefile.in: Regenerate.
1976 * po/POTFILES.in: Regenerate.
1978 2021-02-09 Nick Clifton <nickc@redhat.com>
1981 * listing.c (listing_psize): Check the result of the width
1982 expression before assigning it to paper_width.
1983 * testsuite/gas/all/pr27384.s: New test source file.
1984 * testsuite/gas/all/pr27384.d: New test control file.
1985 * testsuite/gas/all/pr27384.err: Expected errors from new test.
1986 * testsuite/gas/all/gas.exp: Run the new test.
1988 2021-02-09 Nick Clifton <nickc@redhat.com>
1991 * testsuite/gas/elf/pr27355.s: New test source file.
1992 * testsuite/gas/elf/pr27355.d: New test control file.
1993 * testsuite/gas/elf/pr27355.err: Expected errors from new test.
1994 * testsuite/gas/elf/elf.exp: Run the new test.
1996 2021-02-08 Mike Frysinger <vapier@gentoo.org>
1998 * config/tc-tic54x (tic54x_mmregs): Rename to ...
1999 (tic54x_register_mmregs): ... this. Change mmregs to tic54x_mmregs.
2000 (md_pseudo_table): Change tic54x_mmregs to tic54x_register_mmregs.
2001 (md_begin): Add tic54x_ prefix to regs, mmregs, condition_codes,
2002 cc2_codes, cc3_codes, status_bits, and misc_symbols.
2004 2021-02-08 Nick Clifton <nickc@redhat.com>
2007 * dwarf2dbg.c (allocate_filename_to_slot): Allocate the dirs array
2008 if it has not already been created.
2010 2021-02-04 Nelson Chu <nelson.chu@sifive.com>
2012 * config/tc-riscv.c (riscv_multi_subset_supports): Removed
2014 * testsuite/gas/riscv/bitmanip-insns-32.d: Removed.
2015 * testsuite/gas/riscv/bitmanip-insns-64.d: Removed.
2016 * testsuite/gas/riscv/bitmanip-insns.s: Removed.
2018 2021-02-03 Andreas Krebbel <krebbel@linux.ibm.com>
2020 * doc/c-s390.texi: Document vector instruction formats.
2022 2021-02-01 Emery Hemingway <ehmry@posteo.net>
2024 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
2026 2021-02-01 Alan Modra <amodra@gmail.com>
2029 * config/tc-alpha.c (insert_operand): Delete dead code.
2031 2021-01-26 H.J. Lu <hongjiu.lu@intel.com>
2034 * config/tc-nios2.c (md_begin): Don't disable relaxation with
2036 * testsuite/gas/nios2/relax.d: New file.
2037 * testsuite/gas/nios2/relax.s: Likewise.
2039 2021-01-26 Alan Modra <amodra@gmail.com>
2041 * testsuite/gas/all/local-label-overflow.d: Use xfail rather than
2042 notarget all except hppa. Comment.
2043 * testsuite/gas/all/sleb128-2.d: Use xfail rather than notarget.
2044 * testsuite/gas/all/sleb128-4.d: Likewise. Don't skip msp430.
2045 * testsuite/gas/all/sleb128-5.d: Use xfail rather than notarget.
2046 * testsuite/gas/all/sleb128-7.d: Likewise.
2047 * testsuite/gas/all/sleb128-9.d: Likewise.
2048 * testsuite/gas/elf/bignums.d: Likewise.
2049 * testsuite/gas/elf/group0c.d: Likewise.
2050 * testsuite/gas/elf/group1a.d: Likewise.
2051 * testsuite/gas/elf/section-symbol-redef.d: Likewise.
2052 * testsuite/gas/elf/section15.d: Likewise.
2053 * testsuite/gas/elf/section4.d: Likewise.
2054 * testsuite/gas/elf/section7.d: Likewise.
2055 * testsuite/gas/macros/irp.d: Likewise.
2056 * testsuite/gas/macros/repeat.d: Likewise.
2057 * testsuite/gas/macros/rept.d: Likewise.
2058 * testsuite/gas/macros/test2.d: Likewise.
2059 * testsuite/gas/macros/vararg.d: Likewise.
2060 * testsuite/gas/all/string.d: Use xfail rather than skip.
2061 * testsuite/gas/elf/missing-build-notes.d: Likewise.
2062 * testsuite/gas/elf/section0.d: Likewise.
2063 * testsuite/gas/elf/section1.d: Likewise.
2064 * testsuite/gas/elf/section10.d: Likewise.
2065 * testsuite/gas/elf/section11.d: Likewise.
2066 * testsuite/gas/elf/section6.d: Likewise.
2067 * testsuite/gas/elf/symtab.d: Use xfail rather than skip, adjust hppa.
2068 * testsuite/gas/elf/symtab.s: Don't start directives in first column.
2069 * testsuite/gas/macros/test3.d: Don't notarget nds32.
2071 2021-01-26 Alan Modra <amodra@gmail.com>
2073 * testsuite/gas/all/byte.d,
2074 * testsuite/gas/all/byte.l,
2075 * testsuite/gas/all/byte.s: Delete.
2076 * testsuite/gas/all/gas.exp: Don't run byte test.
2078 2021-01-26 Alan Modra <amodra@gmail.com>
2081 * testsuite/gas/all/none.d: Replace skip with xfail, don't xfail ft32.
2082 * testsuite/gas/elf/pr27228.d: xfail hppa and allow OBJECT match.
2084 2021-01-24 H.J. Lu <hongjiu.lu@intel.com>
2087 * testsuite/gas/elf/elf.exp: Run pr27228.
2088 * testsuite/gas/elf/pr27228.d: New file.
2089 * testsuite/gas/elf/pr27228.s: Likewise.
2091 2021-01-24 Alan Modra <amodra@gmail.com>
2094 * write.c (resolve_reloc_expr_symbols): Don't assume local symbol
2097 2021-01-21 Alan Modra <amodra@gmail.com>
2100 * dwarf2dbg.c (dwarf2_gen_line_info_1): Don't warn about ignored
2101 line number info when gas is generating it.
2102 * testsuite/gas/elf/dwarf2-20.d: Adjust to not expect warnings.
2103 * testsuite/gas/m68hc11/indexed12.d: Likewise.
2104 * testsuite/gas/elf/elf.exp: Don't run warn-2.
2105 * gas/testsuite/gas/elf/warn-2.s: Delete.
2107 2021-01-21 Alan Modra <amodra@gmail.com>
2110 * dwarf2dbg.c (dwarf2_gen_line_info): Correct setting of dwarf_level.
2111 (dwarf2_directive_filename, dwarf2_directive_loc): Likewise, and
2112 error for negative file numbers.
2114 2021-01-20 Alan Modra <amodra@gmail.com>
2116 * testsuite/gas/ppc/power4.d: Adjust for removal of section sym.
2117 * testsuite/gas/ppc/test1elf32.d: Likewise.
2118 * testsuite/gas/ppc/test1elf64.d: Likewise.
2120 2021-01-18 H.J. Lu <hongjiu.lu@intel.com>
2123 * dwarf2dbg.c (dwarf2_gen_line_info): Set dwarf_level to 5 if
2125 (dwarf2_directive_filename): Likewise.
2126 (dwarf2_directive_loc): Likewise.
2127 * testsuite/gas/elf/dwarf-5-file0.d: Pass --gdwarf-3.
2128 * testsuite/gas/lns/lns-diag-1.l: Remove the
2129 "Error: file number less than one" errors.
2131 2021-01-18 Alan Modra <amodra@gmail.com>
2134 * config/tc-i386.c (need_plt32_p): Return FALSE for NULL symbol.
2135 * testsuite/gas/i386/pr27198.d,
2136 * gas/testsuite/gas/i386/pr27198.err,
2137 * gas/testsuite/gas/i386/pr27198.s: New test.
2138 * gas/testsuite/gas/i386/i386.exp: Run it.
2140 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
2142 * config/tc-riscv.c: Indent and GNU coding standards tidy,
2143 also aligned the code.
2144 * config/tc-riscv.h: Likewise.
2146 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
2148 * config/tc-riscv.c: Error and warning messages tidy.
2149 * testsuite/gas/riscv/priv-reg-fail-fext.l: Updated.
2150 * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
2151 * testsuite/gas/riscv/priv-reg-fail-read-only-02.l: Likewise.
2152 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
2153 * testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
2154 * testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
2155 * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
2157 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
2159 * config/tc-riscv.c: Comments tidy and improvement. Also update
2160 comment "fallthru" to "Fall through" that end with a period and
2163 2021-01-14 Mike Frysinger <vapier@gentoo.org>
2165 * doc/as.texi: Delete @ifset ELF wrapping around [248]byte entries.
2166 Delete warning that these are only available with ELF targets.
2167 * obj-elf.c (elf_pseudo_table): Move 2byte/4byte/8byte entries ...
2168 * read.c (potable): ... here.
2170 2021-01-14 Mike Frysinger <vapier@gentoo.org>
2172 * Makefile.am (bfin-lex-wrapper.@OBJEXT@): Delete $(NO_WERROR).
2173 * Makefile.in: Regenerated.
2175 2021-01-14 Mike Frysinger <vapier@gentoo.org>
2177 * bfin-lex.l (YY_NO_INPUT, YY_NO_UNPUT): Define.
2178 (parse_int): Mark char_bag const.
2180 2021-01-13 H.J. Lu <hongjiu.lu@intel.com>
2183 * config/tc-i386.c (lex_got::gotrel): Add need_GOT_symbol.
2184 Don't generate GOT_symbol for PLT relocations.
2185 * testsuite/gas/i386/i386.exp: Run PR gas/27178 tests.
2186 * testsuite/gas/i386/no-got.d: New file.
2187 * testsuite/gas/i386/no-got.s: Likewise.
2188 * testsuite/gas/i386/x86-64-no-got.d: Likewise.
2189 * testsuite/gas/i386/x86-64-no-got.s: Likewise.
2191 2021-01-13 Alan Modra <amodra@gmail.com>
2193 * Makefile.in: Regenerate.
2194 * Makefile.in: Regenerate.
2196 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
2199 * configure.ac: Use GNU_MAKE_JOBSERVER.
2200 * aclocal.m4: Regenerated.
2201 * configure: Likewise.
2203 2021-01-12 Nick Clifton <nickc@redhat.com>
2205 * po/fr.po: Updated French translation.
2207 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
2210 * configure: Regenerated.
2212 2021-10-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2214 * NEWS: Remove CSRE.
2215 * config/tc-aarch64.c (parse_csr_operand): Delete.
2216 (parse_operands): Delete handling of
2217 AARCH64_OPND_CSRE_CSR.
2218 (aarch64_features): Remove csre.
2219 * doc/c-aarch64.texi: Remove CSRE.
2220 * testsuite/gas/aarch64/csre.d: Delete.
2221 * testsuite/gas/aarch64/csre-invalid.s: Likewise.
2222 * testsuite/gas/aarch64/csre-invalid.d: Likewise.
2223 * testsuite/gas/aarch64/csre_csr.s: Likewise.
2224 * testsuite/gas/aarch64/csre_csr.d: Likewise.
2225 * testsuite/gas/aarch64/csre_csr-invalid.s: Likewise.
2226 * testsuite/gas/aarch64/csre_csr-invalid.l: Likewise.
2227 * testsuite/gas/aarch64/csre_csr-invalid.d: Likewise.
2229 2021-01-11 Nick Clifton <nickc@redhat.com>
2231 * po/uk.po: Updated Ukranian translation.
2233 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
2235 * configure: Regenerated.
2237 2021-01-09 Nick Clifton <nickc@redhat.com>
2239 * configure: Regenerate.
2240 * po/gas.pot: Regenerate.
2242 2021-01-09 Nick Clifton <nickc@redhat.com>
2244 * 2.36 release branch crated.
2246 2021-01-08 Peter Bergner <bergner@linux.ibm.com>
2248 * testsuite/gas/ppc/rop-checks.d,
2249 * testsuite/gas/ppc/rop-checks.l,
2250 * testsuite/gas/ppc/rop-checks.s,
2251 * testsuite/gas/ppc/rop.d,
2252 * testsuite/gas/ppc/rop.s: New tests.
2253 * testsuite/gas/ppc/ppc.exp: Run them.
2255 2021-01-09 Alan Modra <amodra@gmail.com>
2257 * configure: Regenerate.
2259 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
2261 * configure: Regenerate.
2263 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
2266 * read.c (s_reloc): Call symbol_mark_used_in_reloc on the
2268 * subsegs.c (subseg_set_rest): Set BSF_SECTION_SYM_USED if needed.
2269 * write.c (adjust_reloc_syms): Call symbol_mark_used_in_reloc
2270 on the section symbol.
2271 (set_symtab): Don't generate unused section symbols.
2272 (maybe_generate_build_notes): Call symbol_mark_used_in_reloc
2273 on the section symbol.
2274 * config/obj-elf.c (elf_adjust_symtab): Call
2275 symbol_mark_used_in_reloc on the group signature symbol.
2276 * testsuite/gas/cfi/cfi-label.d: Remove unused section symbols
2277 from expected output.
2278 * testsuite/gas/elf/elf.exp (run_elf_list_test): Check
2279 is_elf_unused_section_symbols.
2280 * testsuite/gas/elf/section2.e: Updated.
2281 * testsuite/gas/elf/section2.e-unused: New file.
2282 * testsuite/gas/elf/symver.d: Remove unused section symbols.
2283 * testsuite/gas/i386/ilp32/elf/symver.d: Likewise.
2284 * testsuite/gas/i386/ilp32/x86-64-size-1.d: Likewise.
2285 * testsuite/gas/i386/ilp32/x86-64-size-3.d: Likewise.
2286 * testsuite/gas/i386/ilp32/x86-64-size-5.d: Likewise.
2287 * testsuite/gas/i386/ilp32/x86-64-unwind.d: Likewise.
2288 * testsuite/gas/i386/size-1.d: Likewise.
2289 * testsuite/gas/i386/size-3.d: Likewise.
2290 * testsuite/gas/i386/svr4.d: Likewise.
2291 * testsuite/gas/i386/x86-64-size-1.d: Likewise.
2292 * testsuite/gas/i386/x86-64-size-3.d: Likewise.
2293 * testsuite/gas/i386/x86-64-size-5.d: Likewise.
2294 * testsuite/gas/i386/x86-64-unwind.d: Likewise.
2296 2021-01-07 Philipp Tomsich <prt@gnu.org>
2298 * config/tc-riscv.c (riscv_multi_subset_supports): Added
2299 INSN_CLASS_ZIHINTPAUSE.
2300 * testsuite/gas/riscv/pause.d: New testcase. Adding coverage for
2301 the pause hint instruction.
2302 * testsuite/gas/riscv/pause.s: Likewise.
2304 2021-01-07 Claire Xenia Wolf <claire@symbioticeda.com>
2305 Jim Wilson <jimw@sifive.com>
2306 Andrew Waterman <andrew@sifive.com>
2307 Maxim Blinov <maxim.blinov@embecosm.com>
2308 Kito Cheng <kito.cheng@sifive.com>
2309 Nelson Chu <nelson.chu@sifive.com>
2311 * config/tc-riscv.c (riscv_multi_subset_supports): Handle INSN_CLASS_ZB*.
2312 (riscv_get_default_ext_version): Do not check the default_isa_spec when
2313 the version defined in the riscv_opcodes table is ISA_SPEC_CLASS_DRAFT.
2314 * testsuite/gas/riscv/bitmanip-insns-32.d: New testcase.
2315 * testsuite/gas/riscv/bitmanip-insns-64.d: Likewise.
2316 * testsuite/gas/riscv/bitmanip-insns.s: Likewise.
2318 2021-01-06 Alan Modra <amodra@gmail.com>
2320 * testsuite/gas/sparc/sparc.exp: Move 64-bit tests inside gas_64_check.
2322 2021-01-06 Alan Modra <amodra@gmail.com>
2324 * testsuite/gas/macros/app1.d: xfail tic30.
2325 * testsuite/gas/macros/app2.d: Likewise.
2326 * testsuite/gas/macros/app3.d: Likewise.
2327 * testsuite/gas/macros/app4.d: Likewise.
2329 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
2331 * doc/as.texi: Add -mlittle-endian and -mbig-endian to docs.
2332 * doc/c-riscv.texi: Likewise.
2334 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
2336 * testsuite/gas/riscv/li32.d: Accept bigriscv in addition
2338 * testsuite/gas/riscv/li64.d: Likewise.
2339 * testsuite/gas/riscv/lla32.d: Likewise.
2340 * testsuite/gas/riscv/lla64.d: Likewise.
2341 * testsuite/gas/riscv/march-ok-g2.d: Likewise.
2342 * testsuite/gas/riscv/march-ok-g2_p1.d: Likewise.
2343 * testsuite/gas/riscv/march-ok-g2p0.d: Likewise.
2344 * testsuite/gas/riscv/march-ok-i2p0.d: Likewise.
2345 * testsuite/gas/riscv/march-ok-i2p0m2_a2f2.d: Likewise.
2346 * testsuite/gas/riscv/march-ok-nse-with-version.d: Likewise.
2347 * testsuite/gas/riscv/march-ok-two-nse.d: Likewise.
2349 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
2351 * config/tc-riscv.c (riscv_target_format): Add elf64-bigriscv and
2353 (install_insn): Always write instructions as little endian.
2354 (riscv_make_nops): Likewise.
2355 (md_convert_frag_branch): Likewise.
2356 (md_number_to_chars): Write data in target endianness.
2357 (options, md_longopts): Add -mbig-endian and -mlittle-endian options.
2358 (md_parse_option): Handle the endian options.
2359 * config/tc-riscv.h: Only define TARGET_BYTES_BIG_ENDIAN if not
2361 * configure.tgt: Added riscv64be*, riscv32be*, riscvbe*.
2363 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
2366 * config/obj-elf.c (obj_elf_change_section): Also filter out
2369 2021-01-04 Alan Modra <amodra@gmail.com>
2372 * symbols.c (S_SET_EXTERNAL): Revise section symbol warning
2373 message and register symbol error message.
2375 2021-01-04 Alan Modra <amodra@gmail.com>
2378 * read.c (s_align): Use a large enough type for "align" to hold
2379 the result of get_absolute_expression.
2381 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
2383 * config/tc-i386.c: Correct comment spelling.
2384 * config/tc-riscv.c: Likewise.
2385 * config/tc-s390.c: Correct comment grammar.
2386 * doc/c-i386.texi: Correct spelling.
2387 * doc/c-s390.texi: Correct grammar.
2389 2021-01-01 Alan Modra <amodra@gmail.com>
2391 Update year range in copyright notice of all files.
2393 2021-01-01 Hans-Peter Nilsson <hp@bitrange.com>
2395 * config/tc-mmix.h (md_single_noop_insn): Change to "swym 0".
2397 For older changes see ChangeLog-2020
2399 Copyright (C) 2021 Free Software Foundation, Inc.
2401 Copying and distribution of this file, with or without modification,
2402 are permitted in any medium without royalty provided the copyright
2403 notice and this notice are preserved.
2409 version-control: never