1 2020-08-20 Martin Liska <mliska@suse.cz>
3 * NEWS: Mention --reduce-memory-overheads and --hash-size arguments
5 * as.c: Remove the options from help.
6 * doc/as.texi: Remove options.
7 * doc/internals.texi: Remove hash from documentation.
8 * hash.c (struct hash_entry): Remove.
9 (struct hash_control): Likewise.
10 (set_gas_hash_table_size): Likewise.
11 (hash_new_sized): Likewise.
14 (hash_lookup): Likewise.
15 (hash_insert): Likewise.
17 (hash_replace): Likewise.
18 (hash_find): Likewise.
19 (hash_find_n): Likewise.
20 (hash_delete): Likewise.
21 (hash_traverse): Likewise.
22 (hash_print_statistics): Likewise.
24 (STATBUFSIZE): Likewise.
28 (applicatee): Likewise.
29 (whattable): Likewise.
30 * hash.h (struct hash_control): Likewise.
31 (set_gas_hash_table_size): Likewise.
33 (hash_new_sized): Likewise.
35 (hash_insert): Likewise.
37 (hash_replace): Likewise.
38 (hash_find): Likewise.
39 (hash_find_n): Likewise.
40 (hash_delete): Likewise.
41 (hash_traverse): Likewise.
42 (hash_print_statistics): Likewise.
44 2020-08-20 Martin Liska <mliska@suse.cz>
46 * config/obj-coff-seh.c (seh_hash_insert): Port to use new
48 (seh_hash_find): Likewise.
49 (seh_hash_find_or_make): Likewise.
50 * config/obj-coff.c (tag_init): Likewise.
51 (tag_insert): Likewise.
53 * config/obj-elf.c (struct group_list): Likewise.
54 (build_additional_section_info): Likewise.
55 (free_section_idx): Likewise.
56 (elf_adjust_symtab): Likewise.
57 (elf_frob_file_after_relocs): Likewise.
58 * config/tc-aarch64.c (INSN_SIZE): Likewise.
59 (parse_reg): Likewise.
60 (insert_reg_alias): Likewise.
61 (create_register_alias): Likewise.
63 (parse_shift): Likewise.
64 (parse_pldop): Likewise.
65 (parse_barrier): Likewise.
66 (parse_barrier_psb): Likewise.
67 (parse_bti_operand): Likewise.
68 (parse_sys_reg): Likewise.
69 (parse_sys_ins_reg): Likewise.
70 (lookup_mnemonic): Likewise.
71 (opcode_lookup): Likewise.
72 (parse_operands): Likewise.
73 (checked_hash_insert): Likewise.
74 (sysreg_hash_insert): Likewise.
75 (fill_instruction_hash_table): Likewise.
77 * config/tc-alpha.c (struct alpha_reloc_tag): Likewise.
78 (get_alpha_reloc_tag): Likewise.
79 (assemble_tokens_to_insn): Likewise.
80 (assemble_tokens): Likewise.
82 * config/tc-arc.c (arc_find_opcode): Likewise.
83 (arc_insert_opcode): Likewise.
84 (find_opcode_match): Likewise.
85 (declare_register): Likewise.
86 (declare_addrtype): Likewise.
88 (arc_parse_name): Likewise.
89 (tc_arc_regname_to_dw2regnum): Likewise.
90 (arc_extcorereg): Likewise.
91 * config/tc-arm.c (MVE_BAD_QREG): Likewise.
92 (arm_reg_parse_multi): Likewise.
93 (parse_reloc): Likewise.
94 (insert_reg_alias): Likewise.
95 (create_register_alias): Likewise.
97 (parse_shift): Likewise.
98 (parse_psr): Likewise.
99 (parse_cond): Likewise.
100 (parse_barrier): Likewise.
101 (do_vfp_nsyn_opcode): Likewise.
102 (opcode_lookup): Likewise.
103 (arm_tc_equal_in_insn): Likewise.
104 (md_begin): Likewise.
105 * config/tc-avr.c (md_begin): Likewise.
106 (avr_ldi_expression): Likewise.
107 (md_assemble): Likewise.
108 (avr_update_gccisr): Likewise.
109 (avr_emit_insn): Likewise.
110 * config/tc-cr16.c (get_register): Likewise.
111 (get_register_pair): Likewise.
112 (get_index_register): Likewise.
113 (get_index_register_pair): Likewise.
114 (get_pregister): Likewise.
115 (get_pregisterp): Likewise.
116 (initialise_reg_hash_table): Likewise.
117 (md_begin): Likewise.
118 (cr16_assemble): Likewise.
119 (md_assemble): Likewise.
120 * config/tc-cris.c (cris_insn_first_word_frag): Likewise.
121 (md_begin): Likewise.
122 (cris_process_instruction): Likewise.
123 * config/tc-crx.c (get_register): Likewise.
124 (get_copregister): Likewise.
125 (md_begin): Likewise.
126 (md_assemble): Likewise.
127 * config/tc-csky.c (md_begin): Likewise.
128 (parse_opcode): Likewise.
129 (get_operand_value): Likewise.
130 (v1_work_jbsr): Likewise.
131 (v2_work_rotlc): Likewise.
132 (v2_work_bgeni): Likewise.
133 (v2_work_not): Likewise.
134 * config/tc-d10v.c (sizeof): Likewise.
135 (md_begin): Likewise.
136 (do_assemble): Likewise.
137 (md_apply_fix): Likewise.
138 * config/tc-d30v.c (sizeof): Likewise.
139 (md_begin): Likewise.
140 (do_assemble): Likewise.
141 * config/tc-dlx.c (RELOC_DLX_VTENTRY): Likewise.
142 (md_begin): Likewise.
143 (machine_ip): Likewise.
144 * config/tc-ft32.c (md_begin): Likewise.
145 (md_assemble): Likewise.
146 * config/tc-h8300.c (md_begin): Likewise.
147 (md_assemble): Likewise.
148 * config/tc-hppa.c (pa_ip): Likewise.
149 (md_begin): Likewise.
150 * config/tc-i386.c (md_begin): Likewise.
151 (i386_print_statistics): Likewise.
152 (parse_insn): Likewise.
153 (process_operands): Likewise.
154 (i386_index_check): Likewise.
155 (parse_real_register): Likewise.
156 * config/tc-ia64.c (dot_rot): Likewise.
157 (dot_entry): Likewise.
158 (declare_register): Likewise.
159 (md_begin): Likewise.
160 (ia64_parse_name): Likewise.
161 (md_assemble): Likewise.
162 (dot_alias): Likewise.
163 (do_alias): Likewise.
164 (ia64_adjust_symtab): Likewise.
165 (do_secalias): Likewise.
166 (ia64_frob_file): Likewise.
167 * config/tc-m68hc11.c (m68hc11_print_statistics): Likewise.
168 (md_begin): Likewise.
169 (print_insn_format): Likewise.
170 (md_assemble): Likewise.
171 * config/tc-m68k.c (tc_gen_reloc): Likewise.
173 (md_begin): Likewise.
174 * config/tc-mcore.c (md_begin): Likewise.
175 (md_assemble): Likewise.
176 * config/tc-microblaze.c (md_begin): Likewise.
177 (md_assemble): Likewise.
178 (md_apply_fix): Likewise.
179 * config/tc-mips.c (nopic_need_relax): Likewise.
180 (md_begin): Likewise.
181 (macro_build): Likewise.
182 (mips16_macro_build): Likewise.
183 (mips_lookup_insn): Likewise.
185 (mips16_ip): Likewise.
186 * config/tc-mmix.c (sizeof): Likewise.
187 (mmix_md_begin): Likewise.
188 (md_assemble): Likewise.
189 * config/tc-mn10200.c (md_begin): Likewise.
190 (md_assemble): Likewise.
191 * config/tc-mn10300.c (HAVE_AM30): Likewise.
192 (md_begin): Likewise.
193 (md_assemble): Likewise.
194 * config/tc-moxie.c (md_begin): Likewise.
195 (md_assemble): Likewise.
196 * config/tc-msp430.c (md_begin): Likewise.
197 (msp430_operands): Likewise.
198 (md_assemble): Likewise.
199 * config/tc-nds32.c (PV_DONT_CARE): Likewise.
200 (builtin_isreg): Likewise.
201 (builtin_regnum): Likewise.
202 (nds32_init_nds32_pseudo_opcodes): Likewise.
203 (nds32_lookup_pseudo_opcode): Likewise.
204 (nds32_relax_hint): Likewise.
205 (md_begin): Likewise.
206 (nds32_find_reloc_table): Likewise.
207 (nds32_elf_append_relax_relocs_traverse): Likewise.
208 (nds32_relax_branch_instructions): Likewise.
209 (md_convert_frag): Likewise.
210 (nds32_elf_analysis_relax_hint): Likewise.
211 (tc_nds32_regname_to_dw2regnum): Likewise.
212 * config/tc-nios2.c (nios2_opcode_lookup): Likewise.
213 (nios2_reg_lookup): Likewise.
214 (nios2_ps_lookup): Likewise.
215 (md_begin): Likewise.
216 * config/tc-ns32k.c (struct hash_control): Likewise.
218 (md_begin): Likewise.
219 * config/tc-pdp11.c (md_begin): Likewise.
220 (md_assemble): Likewise.
221 * config/tc-pj.c (fake_opcode): Likewise.
223 (md_begin): Likewise.
224 (md_assemble): Likewise.
225 * config/tc-ppc.c (ppc_setup_opcodes): Likewise.
226 (md_assemble): Likewise.
227 * config/tc-pru.c (pru_opcode_lookup): Likewise.
228 (pru_reg_lookup): Likewise.
229 (md_begin): Likewise.
231 * config/tc-riscv.c (init_ext_version_hash): Likewise.
232 (riscv_get_default_ext_version): Likewise.
233 (riscv_set_arch): Likewise.
234 (init_opcode_names_hash): Likewise.
235 (opcode_name_lookup): Likewise.
236 (enum reg_class): Likewise.
237 (hash_reg_name): Likewise.
238 (riscv_init_csr_hash): Likewise.
239 (reg_csr_lookup_internal): Likewise.
240 (reg_lookup_internal): Likewise.
241 (init_opcode_hash): Likewise.
242 (md_begin): Likewise.
243 (DECLARE_CSR): Likewise.
244 (macro_build): Likewise.
245 (riscv_ip): Likewise.
246 * config/tc-s390.c (register_name): Likewise.
247 (s390_setup_opcodes): Likewise.
248 (md_begin): Likewise.
249 (md_assemble): Likewise.
250 (s390_insn): Likewise.
251 * config/tc-score.c (struct s3_reg_map): Likewise.
252 (s3_score_reg_parse): Likewise.
253 (s3_dependency_type_from_insn): Likewise.
254 (s3_parse_16_32_inst): Likewise.
255 (s3_parse_48_inst): Likewise.
256 (s3_insert_reg): Likewise.
257 (s3_build_reg_hsh): Likewise.
258 (s3_build_score_ops_hsh): Likewise.
259 (s3_build_dependency_insn_hsh): Likewise.
260 (s3_begin): Likewise.
261 * config/tc-score7.c (struct s7_reg_map): Likewise.
262 (s7_score_reg_parse): Likewise.
263 (s7_dependency_type_from_insn): Likewise.
264 (s7_parse_16_32_inst): Likewise.
265 (s7_build_score_ops_hsh): Likewise.
266 (s7_build_dependency_insn_hsh): Likewise.
267 (s7_insert_reg): Likewise.
268 (s7_build_reg_hsh): Likewise.
269 (s7_begin): Likewise.
270 * config/tc-sh.c (EMPTY): Likewise.
271 (md_begin): Likewise.
272 (find_cooked_opcode): Likewise.
273 * config/tc-sparc.c (md_begin): Likewise.
274 (sparc_ip): Likewise.
275 * config/tc-spu.c (md_begin): Likewise.
276 (md_assemble): Likewise.
277 * config/tc-tic30.c (md_begin): Likewise.
278 (tic30_operand): Likewise.
279 (tic30_parallel_insn): Likewise.
280 (md_assemble): Likewise.
281 * config/tc-tic4x.c (TIC4X_ALT_SYNTAX): Likewise.
282 (tic4x_asg): Likewise.
283 (tic4x_inst_insert): Likewise.
284 (tic4x_inst_add): Likewise.
285 (md_begin): Likewise.
286 (tic4x_operand_parse): Likewise.
287 (md_assemble): Likewise.
288 * config/tc-tic54x.c (MAX_SUBSYM_HASH): Likewise.
289 (stag_add_field_symbols): Likewise.
290 (tic54x_endstruct): Likewise.
291 (tic54x_tag): Likewise.
292 (tic54x_remove_local_label): Likewise.
293 (tic54x_clear_local_labels): Likewise.
294 (tic54x_var): Likewise.
295 (tic54x_macro_start): Likewise.
296 (tic54x_macro_info): Likewise.
297 (tic54x_macro_end): Likewise.
298 (subsym_isreg): Likewise.
299 (subsym_structsz): Likewise.
300 (md_begin): Likewise.
301 (is_mmreg): Likewise.
303 (encode_condition): Likewise.
304 (encode_cc3): Likewise.
305 (encode_cc2): Likewise.
306 (encode_operand): Likewise.
307 (tic54x_parse_insn): Likewise.
308 (tic54x_parse_parallel_insn_firstline): Likewise.
309 (subsym_create_or_replace): Likewise.
310 (subsym_lookup): Likewise.
311 (subsym_substitute): Likewise.
312 (tic54x_undefined_symbol): Likewise.
313 * config/tc-tic6x.c (md_begin): Likewise.
314 (md_assemble): Likewise.
315 * config/tc-tilegx.c (O_hw2_last_plt): Likewise.
316 (INSERT_SPECIAL_OP): Likewise.
317 (md_begin): Likewise.
318 (tilegx_parse_name): Likewise.
319 (parse_reg_expression): Likewise.
320 (md_assemble): Likewise.
321 * config/tc-tilepro.c (O_tls_ie_load): Likewise.
322 (INSERT_SPECIAL_OP): Likewise.
323 (tilepro_parse_name): Likewise.
324 (parse_reg_expression): Likewise.
325 (md_assemble): Likewise.
326 * config/tc-v850.c (md_begin): Likewise.
327 (md_assemble): Likewise.
328 * config/tc-vax.c (md_ri_to_chars): Likewise.
329 (vip_begin): Likewise.
332 (md_begin): Likewise.
333 * config/tc-wasm32.c (md_begin): Likewise.
334 (md_assemble): Likewise.
335 * config/tc-xgate.c (xgate_parse_operand): Likewise.
336 (md_begin): Likewise.
337 (md_assemble): Likewise.
338 * config/tc-z8k.c (md_begin): Likewise.
339 (md_assemble): Likewise.
341 2020-08-20 Martin Liska <mliska@suse.cz>
343 * dw2gencfi.c (dwcfi_hash_insert): Use htab_t and str_hash_*
345 (dwcfi_hash_find): Likewise.
346 (dwcfi_hash_find_or_make): Likewise.
348 2020-08-20 Martin Liska <mliska@suse.cz>
350 * ecoff.c (INIT_VARRAY): Use htab_t.
351 (add_string): Likewise.
352 (ecoff_read_begin_hook): Use new str_htab_create.
353 (get_tag): Use htab_t.
354 (add_file): Likewise.
356 2020-08-20 Martin Liska <mliska@suse.cz>
358 * hash.h (struct string_tuple): New.
359 (hash_string_tuple): Likewise.
360 (eq_string_tuple): Likewise.
361 (string_tuple_alloc): Likewise.
362 (str_hash_find): Likewise.
363 (str_hash_find_n): Likewise.
364 (str_hash_delete): Likewise.
365 (str_hash_insert): Likewise.
366 (str_htab_create): Likewise.
368 2020-08-20 Martin Liska <mliska@suse.cz>
370 * symbols.c (struct symbol_entry): New.
371 (hash_symbol_entry): Likewise.
372 (eq_symbol_entry): Likewise.
373 (symbol_entry_alloc): Likewise.
374 (symbol_entry_find): Likewise.
375 (local_symbol_make): Use htab hash table.
376 (local_symbol_convert): Likewise.
377 (symbol_table_insert): Likewise.
378 (symbol_find_exact_noref): Likewise.
379 (resolve_local_symbol): Likewise.
380 (resolve_local_symbol_values): Likewise.
381 (symbol_begin): Likewise.
382 (symbol_print_statistics): Likewise.
384 2020-08-20 Martin Liska <mliska@suse.cz>
386 * read.c (struct po_entry): New.
387 (hash_po_entry): Likewise.
388 (eq_po_entry): Likewise.
389 (po_entry_alloc): Likewise.
390 (po_entry_find): Likewise.
391 (pop_insert): Likewise.
392 (pobegin): Use htab hash table.
393 (read_a_source_file): Likewise.
395 (read_print_statistics): Likewise.
396 * config/tc-m68k.c (m68k_conditional_pseudoop): Add const qualifier.
397 * config/tc-m68k.h (m68k_conditional_pseudoop): Likewise.
399 2020-08-20 Martin Liska <mliska@suse.cz>
401 * config/tc-iq2000.c (iq2000_add_macro): Use htab hash table.
402 * macro.c (struct hash_control): Use htab.
403 (macro_init): Likewise.
404 (do_formals): Likewise.
405 (free_macro): Likewise.
406 (define_macro): Likewise.
407 (sub_actual): Likewise.
408 (macro_expand_body): Likewise.
409 (macro_expand): Likewise.
410 (check_macro): Likewise.
411 (delete_macro): Likewise.
412 (expand_irp): Likewise.
413 * macro.h (struct macro_hash_entry): New struct.
414 (hash_macro_entry): New.
415 (eq_macro_entry): Likewise.
416 (macro_entry_alloc): Likewise.
417 (macro_entry_find): Likewise.
418 (struct formal_hash_entry): Likewise.
419 (hash_formal_entry): Likewise.
420 (eq_formal_entry): Likewise.
421 (formal_entry_alloc): Likewise.
422 (formal_entry_find): Likewise.
424 2020-08-20 Martin Liska <mliska@suse.cz>
426 * as.h: Include hashtab.h.
427 * hash.c (htab_insert): New.
428 (htab_print_statistics): Likewise.
429 * hash.h (htab_insert): Likewise.
430 (htab_print_statistics): Likewise.
432 2020-08-19 Alan Modra <amodra@gmail.com>
434 * testsuite/gas/ppc/int128.s: Correct vcmpuq.
435 * testsuite/gas/ppc/int128.d: Update.
436 * testsuite/gas/ppc/xvtlsbb.d: Update.
438 2020-08-18 Peter Bergner <bergner@linux.ibm.com>
440 * testsuite/gas/ppc/vsx4.s: Update test to use new mnemonic.
441 * testsuite/gas/ppc/vsx4.d: Likewise.
443 2020-08-17 Alex Coplan <alex.coplan@arm.com>
445 * config/obj-elf.c (obj_elf_change_section): When repurposing an
446 existing symbol, ensure that we set sy_value as per other (fresh)
448 * testsuite/gas/elf/elf.exp: Add new test.
449 * testsuite/gas/elf/section-symbol-redef.d: New test.
450 * testsuite/gas/elf/section-symbol-redef.s: Input for test.
452 2020-08-13 Nick Clifton <nickc@redhat.com>
455 * config/obj-som.c (obj_som_init_stab_section): Do nothing if the
456 $GDB_DEBUG$ section has already been created.
458 2020-08-12 Joe Ramsay <joe.ramsay@.arm.com>
460 * config/tc-arm.c (do_neon_cvt_1): Parse vcvtne as vcvt-ne for
461 NS_FD shape when MVE is present
462 * testsuite/gas/arm/mve-vcvtne-it-bad.d: New test.
463 * testsuite/gas/arm/mve-vcvtne-it-bad.l: New test.
464 * testsuite/gas/arm/mve-vcvtne-it-bad.s: New test.
465 * testsuite/gas/arm/mve-vcvtne-it.d: New test.
466 * testsuite/gas/arm/mve-vcvtne-it.s: New test.
468 2020-08-12 Alex Coplan <alex.coplan@arm.com>
470 * testsuite/gas/aarch64/mpam-bad.d: New test.
471 * testsuite/gas/aarch64/mpam-bad.l: Error output.
472 * testsuite/gas/aarch64/mpam-bad.s: Input.
473 * testsuite/gas/aarch64/mpam.d: New test.
474 * testsuite/gas/aarch64/mpam.s: Input.
476 2020-08-12 Nick Clifton <nickc@redhat.com>
479 * doc/c-riscv.texi (RISC-V-Options): Fix typo in the description
480 of the -mno-csr-check option.
482 2020-08-12 Nick Clifton <nickc@redhat.com>
484 * po/ru.po: Updated Russian translation.
486 2020-08-10 Alex Coplan <alex.coplan@arm.com>
488 * config/tc-aarch64.c (parse_sys_reg): Don't assert when parsing
489 a long system register.
490 (parse_sys_ins_reg): Likewise.
491 (sysreg_hash_insert): New.
492 (md_begin): Use sysreg_hash_insert() to ensure all system
493 registers are no longer than the maximum length at startup.
494 * testsuite/gas/aarch64/invalid-sysreg-assert.d: New test.
495 * testsuite/gas/aarch64/invalid-sysreg-assert.l: Error output.
496 * testsuite/gas/aarch64/invalid-sysreg-assert.s: Input.
498 2020-08-10 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
500 * config/tc-aarch64.c (parse_sys_reg): Call to
501 aarch64_sys_ins_reg_supported_p instead of
502 aarch64_sys_reg_supported_p.
503 (parse_sys_ins_reg): Add aarch64_sys_reg_deprecated_p check.
504 * testsuite/gas/aarch64/illegal-sysreg-5.d: New test.
505 * testsuite/gas/aarch64/illegal-sysreg-5.l: New test.
506 * testsuite/gas/aarch64/sysreg-5.s: New test.
508 2020-08-10 Alan Modra <amodra@gmail.com>
510 * testsuite/gas/ppc/power8.d,
511 * testsuite/gas/ppc/power8.s: Add miso.
512 * testsuite/gas/ppc/power9.d,
513 * testsuite/gas/ppc/power8.s: Add exser, msgsndu, msgclru.
515 2020-08-10 Alan Modra <amodra@gmail.com>
517 * testsuite/gas/ppc/power8.d: Update.
518 * testsuite/gas/ppc/vsx2.d: Update.
520 2020-08-10 Alan Modra <amodra@gmail.com>
522 * config/tc-ppc.c (md_assemble): Error for lmw, stmw, lswi, lswx,
523 stswi, or stswx in little-endian mode.
524 * testsuite/gas/ppc/476.d,
525 * testsuite/gas/ppc/476.s: Delete lmw, stmw, lswi, lswx, stswi, stswx.
526 * testsuite/gas/ppc/a2.d,
527 * testsuite/gas/ppc/a2.s: Move lmw, stmw, lswi, lswx, stswi, stswx..
528 * testsuite/gas/ppc/be.d,
529 * testsuite/gas/ppc/be.s: ..to here, new big-endian only test.
530 * testsuite/gas/ppc/le_error.d,
531 * testsuite/gas/ppc/le_error.l: New little-endian test.
532 * testsuite/gas/ppc/ppc.exp: Run new tests.
534 2020-08-07 H.J. Lu <hongjiu.lu@intel.com>
536 * read.c (read_a_source_file): Ignore rest of line on overflow
539 2020-08-06 Alex Coplan <alex.coplan@arm.com>
541 * read.c (read_a_source_file): Use long for local labels, detect
542 overflow and raise an error for overly-long labels.
543 * testsuite/gas/all/gas.exp: Add local-label-overflow test.
544 * testsuite/gas/all/local-label-overflow.d: New test.
545 * testsuite/gas/all/local-label-overflow.l: Error output.
546 * testsuite/gas/all/local-label-overflow.s: Input.
548 2020-08-04 Christian Groessler <chris@groessler.org>
550 * gas/testsuite/gas/z8k/inout.d: Adapt to correct encoding of
551 "sout/soutb #imm,reg"
553 2020-08-04 H.J. Lu <hongjiu.lu@intel.com>
555 * NEWS: Mention {disp16} pseudo prefix.
557 2020-08-04 H.J. Lu <hongjiu.lu@intel.com>
559 * testsuite/gas/i386/x86-64-pseudos.d: Revert an accidental
562 2020-08-04 Mark Wielaard <mark@klomp.org>
564 * dwarf2dbg.c (out_debug_abbrev): When DWARF2_VERSION >= 4, use
565 DW_FORM_udata for DW_AT_high_pc.
566 (out_debug_info): Use emit_leb128_expr for DW_AT_high_pc, when
568 * read.c (emit_leb128_exp): No longer static.
569 * read.h (emit_leb128_exp): Define.
571 2020-08-02 Mark Wielaard <mark@klomp.org>
573 * gas/dwarf2dbg.c (out_dir_and_file_list): For DWARF5 emit at
574 least one directory if there is at least one file. Use dirs[1]
575 if dirs[0] is not set, or if there is no dirs[1] the current
576 working directory. Use files[1] filename, when files[0] filename
579 2020-08-02 Mark Wielaard <mark@klomp.org>
581 * dwarf2dbg.c (out_debug_info): Emit unit type and abbrev offset
583 * gas/testsuite/gas/elf/dwarf-4-cu.d: New file.
584 * gas/testsuite/gas/elf/dwarf-4-cu.s: Likewise.
585 * gas/testsuite/gas/elf/dwarf-5-cu.d: Likewise.
586 * gas/testsuite/gas/elf/dwarf-5-cu.s: Likewise.
587 * testsuite/gas/elf/elf.exp: Run dwarf-4-cu and dwarf-5-cu.
589 2020-08-02 Mark Wielaard <mark@klomp.org>
591 * doc/as.texi (--gdwarf-[345]): Fix typo.
593 2020-08-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
595 * config/tc-msp430.c (OPTION_MOVE_DATA): Remove.
596 (md_parse_option): Remove case for OPTION_MOVE_DATA.
597 (md_longopts): Remove "md" entry.
598 (md_show_usage): Likewise.
600 2020-07-30 H.J. Lu <hongjiu.lu@intel.com>
603 * config/tc-i386.c (_i386_insn::disp_encoding): Add
605 (parse_insn): Check Prefix_XXX for pseudo prefixes. Handle
607 (build_modrm_byte): Handle {disp16}.
608 (i386_index_check): Check invalid {disp16} and {disp32} pseudo
610 * doc/c-i386.texi: Update {disp32} documentation and document
612 * testsuite/gas/i386/i386.exp: Run x86-64-inval-pseudo.
613 * testsuite/gas/i386/inval-pseudo.s: Add {disp32}/{disp16}
615 * testsuite/gas/i386/pseudos.s: Add {disp8}/{disp32} vmovaps
616 tests with 128-byte displacement. Add {disp16} tests.
617 * testsuite/gas/i386/x86-64-pseudos.s: Add {disp8}/{disp32}
618 vmovaps test. Add (%r13)/(%r13d) tests.
619 * testsuite/gas/i386/x86-64-inval-pseudo.l: New file.
620 * testsuite/gas/i386/x86-64-inval-pseudo.s: Likewise.
621 * testsuite/gas/i386/inval-pseudo.l: Updated.
622 * testsuite/gas/i386/pseudos.d: Likewise.
623 * testsuite/gas/i386/x86-64-pseudos.d: Likewise.
625 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
627 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
628 * Makefile.in, doc/Makefile.in: Regenerate.
629 * configure: Regenerate.
631 2020-07-30 H.J. Lu <hongjiu.lu@intel.com>
633 * testsuite/gas/elf/dwarf2-3.d:Pass --gdwarf-3 to assembler.
634 * testsuite/gas/elf/dwarf2-5.d: Likewise.
635 * testsuite/gas/i386/dw2-compress-3a.d: Likewise.
636 * testsuite/gas/i386/dw2-compress-3b.d: Likewise.
637 * testsuite/gas/i386/dw2-compressed-3a.d: Likewise.
638 * testsuite/gas/i386/dw2-compressed-3b.d: Likewise.
640 2020-07-30 Nick Clifton <nickc@redhat.com>
642 * as.c (dwarf_level): Initialise to 3 in case this is not set on
645 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
647 * testsuite/gas/mips/global-local-symtab-sort-o32.d: New test.
648 * testsuite/gas/mips/global-local-symtab-sort-o32t.d: New test.
649 * testsuite/gas/mips/global-local-symtab-sort-n32.d: New test.
650 * testsuite/gas/mips/global-local-symtab-sort-n32t.d: New test.
651 * testsuite/gas/mips/global-local-symtab-sort-n64.d: New test.
652 * testsuite/gas/mips/global-local-symtab-sort-n64t.d: New test.
653 * testsuite/gas/mips/mips.exp: Run the new tests.
655 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
657 * testsuite/gas/mips/global-local-symtab-o32.d: New test.
658 * testsuite/gas/mips/global-local-symtab-o32t.d: New test.
659 * testsuite/gas/mips/global-local-symtab-n32.d: New test.
660 * testsuite/gas/mips/global-local-symtab-n32t.d: New test.
661 * testsuite/gas/mips/global-local-symtab-n64.d: New test.
662 * testsuite/gas/mips/global-local-symtab.s: New test source.
663 * testsuite/gas/mips/mips.exp: Run the new tests.
665 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
668 * config/tc-i386.c (build_modrm_byte): Use disp32/disp16 on
669 (%bp)/(%ebp)/(%rbp) for {disp32}.
670 * doc/c-i386.texi: Update {disp32} documentation.
671 * testsuite/gas/i386/pseudos.s: Add (%bp)/(%ebp) tests.
672 * testsuite/gas/i386/x86-64-pseudos.s: Add (%ebp)/(%rbp) tests.
673 * testsuite/gas/i386/pseudos.d: Updated.
674 * testsuite/gas/i386/x86-64-pseudos.d: Likewise.
676 2020-07-27 H.J. Lu <hongjiu.lu@intel.com>
678 * doc/as.texi: Replace preceeded with preceded.
680 2020-07-22 Maciej W. Rozycki <macro@linux-mips.org>
682 * testsuite/gas/mips/jal-svr4pic-irix.d: New file.
683 * testsuite/gas/mips/mips1@jal-svr4pic-irix.d: New file.
684 * testsuite/gas/mips/mipsr6@jal-svr4pic-irix.d: New file.
685 * testsuite/gas/mips/micromips@jal-svr4pic-irix.d: New file.
686 * testsuite/gas/mips/r3000@jal-svr4pic-irix.d: New file.
687 * testsuite/gas/mips/jal-svr4pic-local-irix.d: New file.
688 * testsuite/gas/mips/mips1@jal-svr4pic-local-irix.d: New file.
689 * testsuite/gas/mips/micromips@jal-svr4pic-local-irix.d: New
691 * testsuite/gas/mips/r3000@jal-svr4pic-local-irix.d: New file.
692 * testsuite/gas/mips/jal-svr4pic-noreorder-irix.d: New file.
693 * testsuite/gas/mips/mips1@jal-svr4pic-noreorder-irix.d: New
695 * testsuite/gas/mips/mipsr6@jal-svr4pic-noreorder-irix.d: New
697 * testsuite/gas/mips/micromips@jal-svr4pic-noreorder-irix.d: New
699 * testsuite/gas/mips/r3000@jal-svr4pic-noreorder-irix.d: New
701 * testsuite/gas/mips/jal-xgot-irix.d: New file.
702 * testsuite/gas/mips/jalr2-irix.d: New file.
703 * testsuite/gas/mips/micromips-branch-relax-insn32-pic-irix.d:
705 * testsuite/gas/mips/micromips-branch-relax-pic-irix.d: New
707 * testsuite/gas/mips/mips-abi32-pic2-irix.d: New file.
708 * testsuite/gas/mips/jal-svr4pic-local.d: Don't exclude
709 `*-*-irix*' targets. Add source file designator.
710 * testsuite/gas/mips/mips1@jal-svr4pic-local.d: Don't exclude
712 * testsuite/gas/mips/r3000@jal-svr4pic-local.d: Likewise.
713 * testsuite/gas/mips/micromips@jal-svr4pic-local.d: Likewise.
714 * testsuite/gas/mips/jalr2.d: Add name designator.
715 * testsuite/gas/mips/mips.exp: Use respective IRIX variants for
716 tests involving the JALR relocation throughout.
718 2020-07-22 Maciej W. Rozycki <macro@linux-mips.org>
720 * testsuite/gas/mips/mips.exp: Use a helper variable for
721 IRIX/non-IRIX test selection.
723 2020-07-21 Jan Beulich <jbeulich@suse.com>
725 * testsuite/gas/i386/evex-no-scale-64.d,
726 testsuite/gas/i386/addr32.d,
727 testsuite/gas/i386/x86-64-addr32-intel.d,
728 testsuite/gas/i386/x86-64-addr32.d: Adjust expectations.
730 2020-07-21 Cooper Qu <cooper.qu@linux.alibaba.com>
732 * config/tc-csky.c (md_begin): Fix tests of arch and mach flags.
734 2020-07-21 Jan Beulich <jbeulich@suse.com>
736 * testsuite/gas/i386/evex-no-scale-32.d,
737 testsuite/gas/i386/evex-no-scale-64.d: Add #source and #pass.
738 * testsuite/gas/i386/evex-no-scale-32.s,
739 testsuite/gas/i386/evex-no-scale-64.s: Rename / fold into ...
740 * testsuite/gas/i386/evex-no-scale.s: ... this. Use .struct
742 * testsuite/gas/i386/i386.exp: Move above tests out of ELF-
745 2020-07-21 Maciej W. Rozycki <macro@linux-mips.org>
747 * config/tc-mips.c (prev_reloc_op_frag): Remove variable.
748 (my_getSmallExpression): Adjust accordingly.
750 2020-07-20 Jan Beulich <jbeulich@suse.com>
753 * config/tc-i386.c (i386_comment_chars): Drop TE_I386AIX from
754 conditional around it.
755 (md_begin): Insert backslash into operand_chars[] when slash is
757 * config/tc-i386-intel.c (i386_operator): Recognize \/, \%, and
758 \* as operators when / may be a comment character.
759 * testsuite/gas/i386/svr4.s, testsuite/gas/i386/svr4.d: New.
760 * testsuite/gas/i386/i386.exp: Run new test.
762 2020-07-20 Jan Beulich <jbeulich@suse.com>
765 * app.c (last_char): Drop TC_ARM conditional around it.
766 (struct app_save): Drop TC_ARM conditional around last_char.
767 (app_push, app_pop): Drop TC_ARM conditional from last_char
769 (do_scrub_chars): Likewise. Drop TC_ARM conditional from
770 backslash-precedes-comment-character check.
772 2020-07-20 Jan Beulich <jbeulich@suse.com>
774 * config/tc-i386.c (frag_opcode_byte): New.
775 (output_branch): Emit error when in absolute section.
776 (output_jump, output_insn): Use frag_opcode_byte. Handle being
778 (output_interseg_jump, output_disp, output_imm): Handle being in
780 * testsuite/gas/i386/sizing.s,
781 testsuite/gas/i386/sizing32.d,
782 testsuite/gas/i386/sizing64.d: New.
783 * testsuite/gas/i386/i386.exp: Run new tests.
785 2020-07-20 Jan Beulich <jbeulich@suse.com>
787 * testsuite/gas/i386/i386.exp: Include *-*-vxworks alongside
788 is_elf_format as applicable; merely exclude iamcu tests.
790 2020-07-19 H.J. Lu <hongjiu.lu@intel.com>
793 * config/tc-i386.c (i386_validate_fix): Change PLT32 reloc
794 against section to PC32 reloc.
795 * testsuite/gas/i386/relax-5.d: Updated.
796 * testsuite/gas/i386/x86-64-relax-4.d: Likewise.
798 2020-07-15 H.J. Lu <hongjiu.lu@intel.com>
801 * testsuite/gas/i386/evex-no-scale-64.d: Updated.
802 * testsuite/gas/i386/addr32.d: Likewise.
803 * testsuite/gas/i386/x86-64-addr32-intel.d: Likewise.
804 * testsuite/gas/i386/x86-64-addr32.d: Likewise.
806 2020-07-15 Nick Clifton <nickc@redhat.com>
808 * write.c (create_note_reloc): Add desc2_size parameter. Zero out
809 the addend field of REL relocations. Store the full addend into
810 the note for REL relocations.
812 2020-07-15 Jan Beulich <jbeulich@suse.com>
814 * testsuite/gas/i386/x86-64-stack.s: Adjust 32-bit push
816 * testsuite/gas/i386/x86-64-stack-intel.d,
817 testsuite/gas/i386/x86-64-stack-suffix.d,
818 testsuite/gas/i386/x86-64-stack.d: Adjust expectations.
820 2020-07-15 Jan Beulich <jbeulich@suse.com>
822 * testsuite/gas/i386/disassem.d,
823 testsuite/gas/i386/ilp32/x86-64-branch.d,
824 testsuite/gas/i386/intel.d, testsuite/gas/i386/jump16.d,
825 testsuite/gas/i386/lfence-load.d, testsuite/gas/i386/noreg16.d,
826 testsuite/gas/i386/noreg32.d,
827 testsuite/gas/i386/noreg64-rex64.d,
828 testsuite/gas/i386/noreg64.d, testsuite/gas/i386/notrack.d,
829 testsuite/gas/i386/opcode.d,
830 testsuite/gas/i386/solaris/x86-64-branch-2.d,
831 testsuite/gas/i386/solaris/x86-64-jump.d,
832 testsuite/gas/i386/solaris/x86-64-mpx-branch-1.d,
833 testsuite/gas/i386/solaris/x86-64-nop-3.d,
834 testsuite/gas/i386/solaris/x86-64-nop-4.d,
835 testsuite/gas/i386/solaris/x86-64-nop-5.d,
836 testsuite/gas/i386/solaris/x86-64-relax-2.d,
837 testsuite/gas/i386/solaris/x86-64-relax-3.d,
838 testsuite/gas/i386/x86-64-align-branch-1a.d,
839 testsuite/gas/i386/x86-64-align-branch-1b.d,
840 testsuite/gas/i386/x86-64-align-branch-1c.d,
841 testsuite/gas/i386/x86-64-align-branch-1d.d,
842 testsuite/gas/i386/x86-64-align-branch-1e.d,
843 testsuite/gas/i386/x86-64-align-branch-1f.d,
844 testsuite/gas/i386/x86-64-align-branch-1g.d,
845 testsuite/gas/i386/x86-64-align-branch-1h.d,
846 testsuite/gas/i386/x86-64-align-branch-1i.d,
847 testsuite/gas/i386/x86-64-align-branch-2a.d,
848 testsuite/gas/i386/x86-64-align-branch-2b.d,
849 testsuite/gas/i386/x86-64-align-branch-2c.d,
850 testsuite/gas/i386/x86-64-align-branch-3.d,
851 testsuite/gas/i386/x86-64-align-branch-4a.d,
852 testsuite/gas/i386/x86-64-align-branch-4b.d,
853 testsuite/gas/i386/x86-64-align-branch-5.d,
854 testsuite/gas/i386/x86-64-align-branch-6.d,
855 testsuite/gas/i386/x86-64-branch-2.d,
856 testsuite/gas/i386/x86-64-branch-3.d,
857 testsuite/gas/i386/x86-64-branch.d,
858 testsuite/gas/i386/x86-64-disassem.d,
859 testsuite/gas/i386/x86-64-disp32.d,
860 testsuite/gas/i386/x86-64-gotpcrel-no-relax.d,
861 testsuite/gas/i386/x86-64-gotpcrel.d,
862 testsuite/gas/i386/x86-64-ifunc.d,
863 testsuite/gas/i386/x86-64-jump.d,
864 testsuite/gas/i386/x86-64-lfence-byte.d,
865 testsuite/gas/i386/x86-64-lfence-indbr-a.d,
866 testsuite/gas/i386/x86-64-lfence-indbr-b.d,
867 testsuite/gas/i386/x86-64-lfence-indbr-c.d,
868 testsuite/gas/i386/x86-64-lfence-load.d,
869 testsuite/gas/i386/x86-64-lfence-ret-a.d,
870 testsuite/gas/i386/x86-64-lfence-ret-b.d,
871 testsuite/gas/i386/x86-64-lfence-ret-c.d,
872 testsuite/gas/i386/x86-64-lfence-ret-d.d,
873 testsuite/gas/i386/x86-64-lfence-ret-e.d,
874 testsuite/gas/i386/x86-64-mpx-add-bnd-prefix.d,
875 testsuite/gas/i386/x86-64-mpx-branch-1.d,
876 testsuite/gas/i386/x86-64-mpx.d,
877 testsuite/gas/i386/x86-64-nop-3.d,
878 testsuite/gas/i386/x86-64-nop-4.d,
879 testsuite/gas/i386/x86-64-nop-5.d,
880 testsuite/gas/i386/x86-64-nops-7.d,
881 testsuite/gas/i386/x86-64-notrack.d,
882 testsuite/gas/i386/x86-64-opcode.d,
883 testsuite/gas/i386/x86-64-relax-2.d,
884 testsuite/gas/i386/x86-64-relax-3.d,
885 testsuite/gas/i386/x86-64-relax-4.d,
886 testsuite/gas/i386/x86-64-rtm.d,
887 testsuite/gas/i386/x86-64-stack.d,
888 testsuite/gas/i386/x86-64-unique.d,
889 testsuite/gas/i386/x86_64-intel.d: Adjust expectations.
891 2020-07-14 H.J. Lu <hongjiu.lu@intel.com>
894 * testsuite/gas/i386/addr32.s: Add tests for 32-bit wrapped around
896 * testsuite/gas/i386/x86-64-addr32.s: Likewise.
897 * testsuite/gas/i386/addr32.d: Updated.
898 * testsuite/gas/i386/x86-64-addr32-intel.d: Likewise.
899 * testsuite/gas/i386/x86-64-addr32.d: Likewise.
900 * testsuite/gas/i386/ilp32/x86-64-addr32-intel.d: Likewise.
901 * testsuite/gas/i386/ilp32/x86-64-addr32.d: Likewise.
903 2020-07-14 Jan Beulich <jbeulich@suse.com>
905 * testsuite/gas/i386/intel.s: Use dr<N> instead of db<N>.
906 * testsuite/gas/i386/intel-intel.d: Disambiguate name.
907 * testsuite/gas/i386/intel.d,
908 testsuite/gas/i386/opcode-intel.d: Adjust expectations.
910 2020-07-14 Jan Beulich <jbeulich@suse.com>
912 * testsuite/gas/i386/prefix.d: Adjust expectations.
914 2020-07-14 Jan Beulich <jbeulich@suse.com>
916 * testsuite/gas/i386/x86-64-avx-intel.d,
917 testsuite/gas/i386/x86-64-sse4_2-intel.d: Adjust expectations.
919 2020-07-14 Jan Beulich <jbeulich@suse.com>
921 * testsuite/gas/i386/movbe-suffix.d,
922 testsuite/gas/i386/x86-64-movbe-suffix.d: New.
923 * testsuite/gas/i386/i386.exp: Run new tests.
925 2020-07-14 Jan Beulich <jbeulich@suse.com>
927 * testsuite/gas/i386/crc32-suffix.d,
928 testsuite/gas/i386/x86-64-crc32-suffix.d: New.
929 * testsuite/gas/i386/i386.exp: Run new tests.
930 * testsuite/gas/i386/arch-10-bdver1.d,
931 testsuite/gas/i386/arch-10-bdver2.d,
932 testsuite/gas/i386/arch-10-bdver3.d,
933 testsuite/gas/i386/arch-10-bdver4.d,
934 testsuite/gas/i386/arch-10-btver1.d,
935 testsuite/gas/i386/arch-10-btver2.d,
936 testsuite/gas/i386/arch-10-lzcnt.d,
937 testsuite/gas/i386/arch-10-prefetchw.d,
938 testsuite/gas/i386/arch-10.d, testsuite/gas/i386/arch-2.d,
939 testsuite/gas/i386/arch-3.d, testsuite/gas/i386/arch-5.d,
940 testsuite/gas/i386/arch-6.d, testsuite/gas/i386/crc32.d,
941 testsuite/gas/i386/sse-noavx.d, testsuite/gas/i386/sse4_2.d,
942 testsuite/gas/i386/x86-64-arch-2-bdver1.d,
943 testsuite/gas/i386/x86-64-arch-2-bdver2.d,
944 testsuite/gas/i386/x86-64-arch-2-bdver3.d,
945 testsuite/gas/i386/x86-64-arch-2-bdver4.d,
946 testsuite/gas/i386/x86-64-arch-2-btver1.d,
947 testsuite/gas/i386/x86-64-arch-2-btver2.d,
948 testsuite/gas/i386/x86-64-arch-2-lzcnt.d,
949 testsuite/gas/i386/x86-64-arch-2-prefetchw.d,
950 testsuite/gas/i386/x86-64-arch-2.d,
951 testsuite/gas/i386/x86-64-crc32.d,
952 testsuite/gas/i386/x86-64-pseudos.d,
953 testsuite/gas/i386/x86-64-sse-noavx.d,
954 testsuite/gas/i386/x86-64-sse4_2.d: Adjust expectations.
956 2020-07-14 Jan Beulich <jbeulich@suse.com>
958 * testsuite/gas/i386/x86-64-pseudos.s: Add empty-REX tests for
959 ModR/M-encoded byte register cases.
960 * testsuite/gas/i386/x86-64-pseudos.d,
961 testsuite/gas/i386/x86-64-reg-intel.d,
962 testsuite/gas/i386/x86-64-reg.d: Adjust expectations.
964 2020-07-14 Jan Beulich <jbeulich@suse.com>
966 * testsuite/gas/i386/x86-64-pseudos.s: Add empty-REX tests for
967 not-ModR/M-encoded byte register cases.
968 * testsuite/gas/i386/x86-64-pseudos.d: Adjust expectations.
970 2020-07-14 Jan Beulich <jbeulich@suse.com>
972 * testsuite/gas/i386/ilp32/x86-64-arch-1.d,
973 testsuite/gas/i386/ilp32/x86-64-arch-2.d,
974 testsuite/gas/i386/ilp32/x86-64-avx-intel.d,
975 testsuite/gas/i386/ilp32/x86-64-avx.d,
976 testsuite/gas/i386/ilp32/x86-64-crc32-intel.d,
977 testsuite/gas/i386/ilp32/x86-64-crc32.d,
978 testsuite/gas/i386/ilp32/x86-64-gotpcrel.d,
979 testsuite/gas/i386/ilp32/x86-64-ifunc.d,
980 testsuite/gas/i386/ilp32/x86-64-reg-intel.d,
981 testsuite/gas/i386/ilp32/x86-64-reg.d,
982 testsuite/gas/i386/ilp32/x86-64-rep-suffix.d,
983 testsuite/gas/i386/ilp32/x86-64-sse4_2-intel.d,
984 testsuite/gas/i386/ilp32/x86-64-sse4_2.d,
985 testsuite/gas/i386/ilp32/x86-64-stack-intel.d,
986 testsuite/gas/i386/ilp32/x86-64-stack-suffix.d,
987 testsuite/gas/i386/ilp32/x86-64-stack.d: Reference parent dir
990 2020-07-13 H.J. Lu <hongjiu.lu@intel.com>
992 * config/tc-i386.c (offset_in_range): Remove 32-bit sign
995 2020-07-13 Nick Clifton <nickc@redhat.com>
997 * po/fr.po: Updated French translation.
999 2020-07-13 Alan Modra <amodra@gmail.com>
1001 * testsuite/gas/elf/dwarf2-7.d: Remove most xfails.
1002 * testsuite/gas/elf/dwarf2-12.d: Likewise.
1003 * testsuite/gas/elf/dwarf2-13.d: Likewise.
1004 * testsuite/gas/elf/dwarf2-14.d: Likewise.
1006 2020-07-11 H.J. Lu <hongjiu.lu@intel.com>
1008 * config/tc-i386.c (output_insn): Check i.xstate to set
1009 GNU_PROPERTY_X86_FEATURE_2_TMM.
1010 * testsuite/gas/i386/i386.exp: Run x86-64-property-7,
1011 x86-64-property-8 and x86-64-property-9.
1012 * testsuite/gas/i386/x86-64-property-7.d: New file.
1013 * testsuite/gas/i386/x86-64-property-7.s: Likewise.
1014 * testsuite/gas/i386/x86-64-property-8.d: Likewise.
1015 * testsuite/gas/i386/x86-64-property-8.s: Likewise.
1016 * testsuite/gas/i386/x86-64-property-9.d: Likewise.
1017 * testsuite/gas/i386/x86-64-property-9.s: Likewise.
1019 2020-07-10 H.J. Lu <hongjiu.lu@intel.com>
1021 * config/tc-i386.c (_i386_insn): Remove has_regmmx, has_regxmm,
1022 has_regymm, has_regzmm and has_regtmm. Add xstate.
1023 (md_assemble): Set i.xstate from operand types in instruction
1025 (build_modrm_byte): Updated.
1026 (output_insn): Check i.xstate.
1027 * testsuite/gas/i386/i386.exp: Run property-6 and
1029 * testsuite/gas/i386/property-6.d: New file.
1030 * testsuite/gas/i386/property-6.s: Updated.
1031 * testsuite/gas/i386/x86-64-property-6.d: Likewise.
1033 2020-07-10 H.J. Lu <hongjiu.lu@intel.com>
1035 * testsuite/gas/i386/property-5.d: Correct test name.
1037 2020-07-10 Lili Cui <lili.cui@intel.com>
1039 * NEWS: Mention support for Intel AMX instructions.
1040 * config/tc-i386.c (i386_error): Add invalid_sib_address.
1041 (cpu_arch): Add .amx_int8, .amx_bf16 and .amx_tile.
1042 (cpu_noarch): Add noamx_int8, noamx_bf16 and noamx_tile.
1043 (match_simd_size): Add tmmword check.
1044 (operand_type_match): Add tmmword.
1045 (type_names): Add rTMM.
1046 (i386_error): Add invalid_tmm_register_set.
1047 (check_VecOperands): Handle invalid_sib_address and
1048 invalid_tmm_register_set.
1049 (match_template): Handle invalid_sib_address.
1050 (build_modrm_byte): Handle non-vector SIB and zmmword.
1051 (i386_index_check): Disallow RegIP for non-vector SIB.
1052 (check_register): Handle zmmword.
1053 * doc/c-i386.texi: Document amx_int8, amx_bf16 and amx_tile.
1054 * testsuite/gas/i386/i386.exp: Add AMX new tests.
1055 * testsuite/gas/i386/intel-regs.d: Add tmm.
1056 * testsuite/gas/i386/intel-regs.s: Add tmm.
1057 * testsuite/gas/i386/x86-64-amx-intel.d: New.
1058 * testsuite/gas/i386/x86-64-amx-inval.l: New.
1059 * testsuite/gas/i386/x86-64-amx-inval.s: New.
1060 * testsuite/gas/i386/x86-64-amx.d: New.
1061 * testsuite/gas/i386/x86-64-amx.s: New.
1062 * testsuite/gas/i386/x86-64-amx-bad.d: New.
1063 * testsuite/gas/i386/x86-64-amx-bad.s: New.
1065 2020-07-10 Tom de Vries <tdevries@suse.de>
1067 * testsuite/gas/elf/dwarf2-11.d: Update expected output from
1068 readelf's line table decoding.
1069 * testsuite/gas/elf/dwarf2-12.d: Likewise.
1070 * testsuite/gas/elf/dwarf2-13.d: Likewise.
1071 * testsuite/gas/elf/dwarf2-14.d: Likewise.
1072 * testsuite/gas/elf/dwarf2-15.d: Likewise.
1073 * testsuite/gas/elf/dwarf2-16.d: Likewise.
1074 * testsuite/gas/elf/dwarf2-17.d: Likewise.
1075 * testsuite/gas/elf/dwarf2-18.d: Likewise.
1076 * testsuite/gas/elf/dwarf2-19.d: Likewise.
1077 * testsuite/gas/elf/dwarf2-5.d: Likewise.
1078 * testsuite/gas/elf/dwarf2-6.d: Likewise.
1079 * testsuite/gas/elf/dwarf2-7.d: Likewise.
1081 2020-07-09 H.J. Lu <hongjiu.lu@intel.com>
1083 * config/tc-i386.c (output_insn): Set YMM/ZMM features for
1084 VEX/EVEX vector instructions.
1085 * testsuite/gas/i386/property-4.d: New file.
1086 * testsuite/gas/i386/property-4.s: Likewise.
1087 * testsuite/gas/i386/property-5.d: Likewise.
1088 * testsuite/gas/i386/property-5.s: Likewise.
1089 * testsuite/gas/i386/x86-64-property-4.d: Likewise.
1090 * testsuite/gas/i386/x86-64-property-5.d: Likewise.
1092 2020-07-09 H.J. Lu <hongjiu.lu@intel.com>
1094 * NEWS: Mention --enable-x86-used-note.
1095 * configure.ac: Configure with --enable-x86-used-note by default
1097 * configure: Regenerated.
1099 2020-07-09 Alan Modra <amodra@gmail.com>
1101 * config/obj-coff.h: Remove TE_PE support.
1102 * config/tc-ppc.c: Likewise.
1103 * config/tc-ppc.h: Likewise.
1104 * configure.tgt: Remove powerpc PE and powerpc lynxos.
1105 * testsuite/gas/cfi/cfi.exp (cfi-common-6): Remove powerpc PE
1107 * testsuite/gas/macros/macros.exp: Don't xfail powerpc PE.
1109 2020-07-08 Jan Beulich <jbeulich@suse.com>
1111 * testsuite/gas/i386/fma4-lig.d, testsuite/gas/i386/xop-lig.d:
1113 * testsuite/gas/i386/i386.exp: Run new tests.
1115 2020-07-07 Claudiu Zissulescu <claziss@synopsys.com>
1117 * config/tc-arc.c (find_opcode_match): Add error messages.
1118 * testsuite/gas/arc/add_s-err.s: Update test.
1119 * testsuite/gas/arc/asm-errors.err: Likewise.
1120 * testsuite/gas/arc/cpu-em-err.s: Likewise.
1121 * testsuite/gas/arc/hregs-err.s: Likewise.
1122 * testsuite/gas/arc/warn.s: Likewise.
1124 2020-07-07 H.J. Lu <hongjiu.lu@intel.com>
1127 * doc/c-i386.texi: Remove an incorrect AVX2 entry.
1129 2020-07-07 Alan Modra <amodra@gmail.com>
1131 * testsuite/gas/all/gas.exp: Use is_xcoff_format.
1132 * testsuite/gas/ppc/ppc.exp: Likewise.
1133 * testsuite/gas/all/weakref1l.d: Likewise.
1135 2020-07-07 Nick Clifton <nickc@redhat.com>
1137 * testsuite/gas/arm/cde-missing-fp.l: Fix spelling mistake in
1140 2020-07-06 Jan Beulich <jbeulich@suse.com>
1142 * testsuite/gas/i386/x86-64-avx512bw-wig1.d,
1143 testsuite/gas/i386/x86-64-avx512bw-wig1-intel.d,
1144 testsuite/gas/i386/x86-64-evex-wig1.d,
1145 testsuite/gas/i386/x86-64-evex-wig1-intel.d: Adjust
1148 2020-07-06 Jan Beulich <jbeulich@suse.com>
1150 * testsuite/gas/i386/avx512f-opts.s: Add EVEX movq tests.
1151 * testsuite/gas/i386/x86-64-avx512f-opts.s: Add blank line.
1152 * testsuite/gas/i386/avx512f-opts-intel.d,
1153 testsuite/gas/i386/avx512f-opts.d
1154 testsuite/gas/i386/x86-64-avx512f-opts-intel.d
1155 testsuite/gas/i386/x86-64-avx512f-opts.d: Adjust expectations.
1157 2020-07-06 Yuri Chornoivan <yurchor@ukr.net>
1160 * config/tc-arm.c: Fix spelling mistake.
1161 * config/tc-riscv.c: Likewise.
1162 * config/tc-z80.c: Likewise.
1163 * po/gas.pot: Regenerate.
1165 2020-07-06 Nick Clifton <nickc@redhat.com>
1167 * po/uk.po: Updated Ukranian translation.
1169 2020-07-04 Nick Clifton <nickc@redhat.com>
1171 * configure: Regenerate.
1172 * po/gas.pot: Regenerate.
1174 2020-07-04 Nick Clifton <nickc@redhat.com>
1176 * version.m4: Change version number to 2.35.50.
1177 * configure: Regenerate.
1178 * po/bfd.pot: Regenerate.
1180 2020-07-04 Nick Clifton <nickc@redhat.com>
1182 Binutils 2.35 branch created.
1184 2020-07-03 Alan Modra <amodra@gmail.com>
1187 * testsuite/gas/ia64/unwind-ilp32.d: Add -T to readelf options.
1189 2020-07-02 H.J. Lu <hongjiu.lu@intel.com>
1191 * config/tc-i386.c (build_modrm_byte): Check vexswapsources to
1192 swap two source operands.
1194 2020-07-02 Nick Clifton <nickc@redhat.com>
1196 * testsuite/gas/all/fill-1.d: Skip for MeP targets.
1198 2020-07-02 Alex Coplan <alex.coplan@arm.com>
1200 * config/tc-aarch64.c (reg_name_p): Fix cast so that we don't
1201 segfault on negative chars.
1202 * testsuite/gas/aarch64/reglike-label-unicode-segv.d: New test.
1203 * testsuite/gas/aarch64/reglike-label-unicode-segv.s: Input.
1205 2020-07-02 Nick Clifton <nickc@redhat.com>
1208 * testsuite/gas/ia64/group-2.d: Add -T option to readelf
1210 * testsuite/gas/ia64/unwind.d: Likewise.
1211 * testsuite/gas/mmix/bspec-1.d: Likewise.
1212 * testsuite/gas/mmix/bspec-2.d: Likewise.
1213 * testsuite/gas/mmix/comment-1.d: Likewise.
1214 * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
1216 2020-07-01 Alan Modra <amodra@gmail.com>
1218 * config/tc-xc16x.c (md_apply_fix): Add FIXME.
1220 2020-07-01 Alan Modra <amodra@gmail.com>
1222 * testsuite/gas/all/eqv-dot.d: xfail targets that set linkrelax
1223 in data sections, and mep.
1225 2020-06-30 H.J. Lu <hongjiu.lu@intel.com>
1227 * NEWS: Mention x86 NaCl target support removal.
1228 * config/tc-i386.c: Remove x86 NaCl target support.
1229 * config/tc-i386.h: Likewise.
1230 * configure.tgt: Likewise.
1231 * testsuite/gas/i386/i386.exp: Likewise.
1232 * testsuite/gas/i386/iamcu-1.d: Likewise.
1233 * testsuite/gas/i386/iamcu-2.d: Likewise.
1234 * testsuite/gas/i386/iamcu-3.d: Likewise.
1235 * testsuite/gas/i386/iamcu-4.d: Likewise.
1236 * testsuite/gas/i386/iamcu-5.d: Likewise.
1237 * testsuite/gas/i386/k1om.d: Likewise.
1238 * testsuite/gas/i386/l1om.d: Likewise.
1240 2020-06-30 Nelson Chu <nelson.chu@sifive.com>
1242 * config/tc-riscv.c (riscv_csr_class_check): Removed. Move the
1243 checking into riscv_csr_address.
1244 (riscv_csr_version_check): Likewise.
1245 (riscv_csr_address): New function. Return the suitable CSR address
1246 after checking the ISA dependency and versions. Issue warnings if
1247 we find any conflict and -mcsr-check is set. CSR_CLASS_F and
1248 CSR_CLASS_DEBUG are unprivileged CSR for now, so don't check the
1249 priv spec versions for them.
1250 (reg_csr_lookup_internal): Call riscv_csr_address to find the
1251 suitable CSR address.
1252 * testsuite/gas/riscv/priv-reg-fail-fext.d: Remove -mpriv-spec=1.11.
1253 * testsuite/gas/riscv/priv-reg-fail-read-only-01.d: Likewise.
1254 * testsuite/gas/riscv/priv-reg-fail-rv32-only.d: Likewise.
1255 * testsuite/gas/riscv/priv-reg-fail-fext.l: We don't care the
1256 priv spec warnings here. These warnings are added by accident.
1257 Remove them and only focus on the ISA dependency warnings.
1258 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
1259 * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
1260 * testsuite/gas/riscv/priv-reg-fail-version-1p9.l: Updated since
1261 dscratch0 and dscratch1 are regarded as the unprivileged CSR rather
1262 than the privileged ones.
1263 * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
1264 * testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
1265 * testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
1266 * testsuite/gas/riscv/priv-reg.s: Likewise. Add missing debug CSR.
1267 * testsuite/gas/riscv/priv-reg-version-1p9.d: Likewise.
1268 * testsuite/gas/riscv/priv-reg-version-1p9p1.d: Likewise.
1269 * testsuite/gas/riscv/priv-reg-version-1p10.d: Likewise.
1270 * testsuite/gas/riscv/priv-reg-version-1p11.d: Likewise.
1271 * testsuite/gas/riscv/csr-dw-regnums.d: Likewise.
1272 * testsuite/gas/riscv/csr-dw-regnums.s: Likewise.
1274 2020-06-29 H.J. Lu <hongjiu.lu@intel.com>
1276 * tc-i386.c (build_vex_prefix): Support VEX base opcode length > 1.
1277 (md_assemble): Don't process ImmExt without operands.
1279 2020-06-29 Hans-Peter Nilsson <hp@bitrange.com>
1282 * config/tc-mmix.c (md_assemble) <fixup for
1283 BFD_RELOC_MMIX_BASE_PLUS_OFFSET>: This fixup affects 1 byte, not 8.
1284 Also, set its fx_no_overflow.
1285 (md_convert_frag) <case ENCODE_RELAX (STATE_PUSHJSTUB, STATE_ZERO)>:
1286 Similarly this fixup affects 4 bytes, not 8 and needs its
1288 * config/tc-mmix.h (TC_FX_SIZE_SLACK): Don't define.
1289 * testsuite/gas/mmix/pr25331.d, testsuite/gas/mmix/pr25331.s: New test.
1291 2020-06-29 Alan Modra <amodra@gmail.com>
1293 * config/tc-s12z.c: Use C style comments.
1294 * config/tc-z80.c: Likewise.
1295 * config/tc-xtensa.c (emit_ld_r_n): Remove commented out code.
1297 2020-06-26 H.J. Lu <hongjiu.lu@intel.com>
1299 * config/tc-i386.c (md_assemble): Process ImmExt without
1302 2020-06-26 H.J. Lu <hongjiu.lu@intel.com>
1304 * config/tc-i386.c (check_VecOperands): Replace vecsib with sib.
1305 Replace VecSIB128, VecSIB256 and VecSIB512 with VECSIB128,
1306 VECSIB256 and VECSIB512, respectively.
1307 (build_modrm_byte): Replace vecsib with sib.
1309 2020-06-26 Jan Beulich <jbeulich@suse.com>
1311 * testsuite/gas/i386/nop-1-suffix.d: New.
1312 * testsuite/gas/i386/i386.exp: Run new test.
1314 2020-06-26 Pat Bernardi <bernardi@adacore.com>
1316 * config/tc-m68k.c (m68k_elf_gnu_attribute): New function.
1317 (md_pseudo_table): Handle "gnu_attribute".
1318 * doc/as.texi: Document GNU attribute for M68K.
1320 2020-06-25 Nick Clifton <nickc@redhat.com>
1323 * config/tc-arm.c (arm_force_relocation): Force resolution of
1324 BFD_RELOC_THUMB_PCREL_BRANCH12 relocations.
1325 * testsuite/gas/arm/plt-1.d: Adjust expected disassembly.
1327 2020-06-25 Jan Beulich <jbeulich@suse.com>
1329 * config/tc-i386.c (md_assemble): Move call to process_immext()
1331 (process_operands): ... here.
1333 2020-06-25 Jan Beulich <jbeulich@suse.com>
1335 * config/tc-i386.c (process_suffix): Skip ambiguous operand size
1336 diagnostic when there is a sizing prefix. Switch to word/dword/
1337 qword encoding when there is a sizing prefix and no (explicit or
1339 (update_imm): Handle presence of a sizing prefix.
1340 * testsuite/gas/i386/noreg16-data32.d,
1341 testsuite/gas/i386/noreg32-data16.d,
1342 testsuite/gas/i386/noreg32-data16.e,
1343 testsuite/gas/i386/noreg64-data16.d,
1344 testsuite/gas/i386/noreg64-data16.e,
1345 testsuite/gas/i386/noreg64-rex64.d: New.
1346 * testsuite/gas/i386/i386.exp: Run new tests.
1347 * testsuite/gas/i386/noreg32.s, testsuite/gas/i386/noreg64.s:
1348 Introduce and use pfx* macros.
1349 * testsuite/gas/i386/noreg16.s: Likewise. Replace 32-bit
1351 * testsuite/gas/i386/noreg16.d: Adjust expectations.
1353 2020-06-25 Jan Beulich <jbeulich@suse.com>
1355 * testsuite/gas/i386/avx-16bit.d,
1356 testsuite/gas/i386/avx-scalar.d, testsuite/gas/i386/avx.d,
1357 testsuite/gas/i386/avx512f-16bit.d,
1358 testsuite/gas/i386/avx512f.d,
1359 testsuite/gas/i386/evex-lig256.d,
1360 testsuite/gas/i386/evex-lig512.d
1361 testsuite/gas/i386/evex-wig1.d, testsuite/gas/i386/katmai.d,
1362 testsuite/gas/i386/noreg16.d, testsuite/gas/i386/noreg32.d,
1363 testsuite/gas/i386/ptwrite.d, testsuite/gas/i386/simd.d,
1364 testsuite/gas/i386/sse2-16bit.d,
1365 testsuite/gas/i386/sse2.d, testsuite/gas/i386/sse2avx.d: Adjust
1368 2020-06-25 Jan Beulich <jbeulich@suse.com>
1370 * config/tc-i386.c (md_assemble): Also reject explicit REX
1371 prefixes with VEX and alike encoded insns. Zap consumed bits
1373 (output_insn): Don't ignore REX prefix for VEX and alike
1374 encodings; abort() instead if encountered.
1375 * testsuite/gas/i386/x86-64-pseudos.s: Move REX-with-VEX cases
1377 * testsuite/gas/i386/x86-64-pseudos-bad.s: ... here.
1378 * testsuite/gas/i386/x86-64-pseudos.d,
1379 testsuite/gas/i386/x86-64-pseudos-bad.l: Adjust expectations.
1381 2020-06-25 Jan Beulich <jbeulich@suse.com>
1383 * config/tc-i386.c (process_operands): Translate explicit REX
1384 prefix into i.rex for SSE2AVX templates.
1385 (set_rex_vrex): New helper.
1386 (build_modrm_byte): Use it.
1387 * testsuite/gas/i386/x86-64-sse2avx.s: Add cases with explict
1389 * testsuite/gas/i386/x86-64-sse2avx.d: Adjust expectations.
1391 2020-06-25 Jan Beulich <jbeulich@suse.com>
1393 * config/tc-i386.c (cpu_flags_match): Only match SSE2AVX
1394 templates when there's no data size prefix.
1395 (md_assemble): Reject data size prefix also for legacy encoded
1397 * testsuite/gas/i386/prefix32.s, testsuite/gas/i386/prefix64.s:
1398 Uncomment previously not working line.
1399 * testsuite/gas/i386/sse2avx.s: Add ldmxcsr/stmxcsr cases with
1401 * testsuite/gas/i386/prefix32.l, testsuite/gas/i386/prefix64.l,
1402 testsuite/gas/i386/sse2avx.d: Adjust expectations.
1404 2020-06-25 Jan Beulich <jbeulich@suse.com>
1406 * config/tc-i386.c (build_evex_prefix): Drop early setting of
1409 2020-06-23 Nelson Chu <nelson.chu@sifive.com>
1411 * config/tc-riscv.c (explicit_priv_attr): Rename explicit_csr to
1412 explicit_priv_attr. It used to indicate CSR or priv instructions are
1414 (riscv_is_priv_insn): Return True if it is a privileged instruction.
1415 (riscv_ip): Call riscv_is_priv_insn to check whether the instruction
1416 is privileged or not. If it is, then set explicit_priv_attr to TRUE.
1417 (riscv_write_out_attrs): Clarification of when to generate the elf
1418 priv spec attributes.
1419 * testsuite/gas/riscv/attribute-11.s: Add comments.
1420 * testsuite/gas/riscv/attribute-14.s: New testcase. Use symbol
1421 `priv_insn_<n>` to decide which priv instruction is expected to used.
1423 * testsuite/gas/riscv/attribute-14a.d: Likewise.
1424 * testsuite/gas/riscv/attribute-14b.d: Likewise.
1425 * testsuite/gas/riscv/attribute-14c.d: Likewise.
1426 * testsuite/gas/riscv/attribute-14d.d: Likewise.
1427 * testsuite/gas/riscv/attribute-14e.d: Likewise.
1429 2020-06-22 Nelson Chu <nelson.chu@sifive.com>
1431 * config/tc-riscv.c (buf_size, buf): Remove the unused variables.
1432 (riscv_set_default_priv_spec): Get the priv spec version from the
1433 priv spec attributes by riscv_get_priv_spec_class_from_numbers.
1435 2020-06-20 Alan Modra <amodra@gmail.com>
1437 * configure.tgt: Set bfd_gas for all SH targets.
1439 2020-06-18 Jan Beulich <jbeulich@suse.com>
1441 * testsuite/gas/i386/arch-13.s: Add alternative VMGEXIT case.
1442 * testsuite/gas/i386/arch-13.d: Extend -march=. Adjust
1445 2020-06-16 Lili Cui <lili.cui@intel.com>
1447 * config/tc-i386.c (cpu_arch): Correct noavx512_vp2intersect
1448 cpu_arch to CPU_ANY_VP2INTERSECT_FLAGS.
1449 * doc/c-i386.texi: Add avx512_vp2intersect.
1451 2020-06-16 Jan Beulich <jbeulich@suse.com>
1453 * config/tc-i386.c (md_assemble): Drop SSE4a from SSE check
1455 * testsuite/gas/i386/sse-check.s: Adjust comment.
1456 * testsuite/gas/i386/sse-check-error.l,
1457 testsuite/gas/i386/sse-check-warn.e,
1458 testsuite/gas/i386/x86-64-sse-check-error.l: Adjust
1461 2020-06-16 Alan Modra <amodra@gmail.com>
1463 * config/tc-tic30.h: Remove OBJ_AOUT support.
1464 * configure.tgt: Delete tic30-*-*aout* entry.
1466 2020-06-15 Max Filippov <jcmvbkbc@gmail.com>
1468 * config/tc-xtensa.c (XTHAL_ABI_WINDOWED, XTHAL_ABI_CALL0): New
1470 (elf32xtensa_abi): New declaration.
1471 (option_abi_windowed, option_abi_call0): New enum constants.
1472 (md_longopts): Add entries for --abi-windowed and --abi-call0.
1473 (md_parse_option): Add handlers for --abi-windowed and
1475 (xtensa_add_config_info): Use xtensa_abi_choice instead of
1476 XSHAL_ABI to format ABI tag.
1477 * doc/as.texi (Target Xtensa options): Add --abi-windowed and
1478 --abi-call0 to the list of options.
1479 * doc/c-xtensa.texi: Add description for options --abi-windowed
1481 * testsuite/gas/xtensa/abi-call0.d: New test definition.
1482 * testsuite/gas/xtensa/abi-windowed.d: New test definition.
1483 * testsuite/gas/xtensa/abi.s: New test source.
1485 2020-06-14 H.J. Lu <hongjiu.lu@intel.com>
1488 * testsuite/gas/i386/tsxldtrk.d: Replace xsuspldtrk with
1490 * testsuite/gas/i386/tsxldtrk.s: Likewise.
1491 * testsuite/gas/i386/x86-64-tsxldtrk.d: Likewise.
1492 * testsuite/gas/i386/x86-64-tsxldtrk.s: Likewise.
1494 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
1496 * testsuite/gas/riscv/priv-reg-fail-version-1p9.d: Removed.
1497 * testsuite/gas/riscv/priv-reg-fail-version-1p9.l: Likewise.
1498 * testsuite/gas/riscv/priv-reg-version-1p9.d: Likewise.
1500 2020-06-09 Seth Girvan <snth@snthhacks.com>
1502 * doc/c-avr.texi: Improve wording.
1504 2020-06-09 Jan Beulich <jbeulich@suse.com>
1506 * testsuite/gas/i386/x86-64-pseudos-bad.s,
1507 testsuite/gas/i386/x86-64-pseudos-bad.l: New.
1509 2020-06-09 Jan Beulich <jbeulich@suse.com>
1511 * testsuite/gas/i386/prefix.s: Add bogus prefix-with-VEX/EVEX
1513 * testsuite/gas/i386/prefix.d: Adjust expectations.
1515 2020-06-09 Jan Beulich <jbeulich@suse.com>
1517 * testsuite/gas/i386/prefix.s: Add bogus REP / EVEX.W prefix
1518 with VEX/EVEX encoding tests.
1519 * testsuite/gas/i386/prefix.d: Adjust expectations.
1521 2020-06-09 Jan Beulich <jbeulich@suse.com>
1523 * config/tc-i386.c (process_suffix): Restrict defaulting to 'q'
1525 * testsuite/gas/i386/noreg64.s: Add lcall/ljmp cases.
1526 * testsuite/gas/i386/noreg64.d: Adjust expectations.
1527 * testsuite/gas/i386/noreg-intel64.d,
1528 testsuite/gas/i386/noreg-intel64.l,
1529 testsuite/gas/i386/noreg-intel64.s: New.
1530 * testsuite/gas/i386/i386.exp: Run new tests.
1532 2020-06-09 Jan Beulich <jbeulich@suse.com>
1534 * config/tc-i386.c (vex_encoding_error): New enumerator.
1535 (VEX_check_operands): Rename to VEX_check_encoding. Check
1536 for vex_encoding_error. Move Imm4 handling ...
1537 (check_VecOperands): ... here.
1538 (match_template): Call VEX_check_encoding when there are no
1539 operands. Split construct calling check_VecOperands and
1540 VEX_check_encoding (when there are operands).
1541 (check_register): Don't blindly set vex_encoding_evex.
1542 * testsuite/gas/i386/pseudos-bad.s,
1543 testsuite/gas/i386/pseudos-bad.l: New.
1544 * testsuite/gas/i386/i386.exp: Run new test.
1545 * testsuite/gas/i386/xmmhi64.s: Drop {vex2}.
1547 2020-06-08 Alex Coplan <alex.coplan@arm.com>
1549 * config/tc-arm.c (insns): Add dfb.
1550 * testsuite/gas/arm/dfb.d: New test.
1551 * testsuite/gas/arm/dfb.s: Input for test.
1553 2020-06-08 Nick Clifton <nickc@redhat.com>
1555 * testsuite/gas/cfi/cfi-i386-2.d: Skip for PE based targets.
1557 2020-06-08 Jan Beulich <jbeulich@suse.com>
1559 * config/tc-i386.c (pi): Add checks for RegMask and RegBND.
1561 2020-06-08 Jan Beulich <jbeulich@suse.com>
1563 * config/tc-i386.c (check_byte_reg): Drop dead conditional
1566 2020-06-08 Jan Beulich <jbeulich@suse.com>
1568 * config/tc-i386.c (check_register): Split RegTR handling, to
1569 fail recognition also in 64-bit mode as well as with i586 or
1570 i686 explicitly enabled.
1571 * testsuite/gas/i386/x86_64.s: Add insns referencing tr<N>.
1572 * testsuite/gas/i386/x86_64-intel.d,
1573 testsuite/gas/i386/x86_64.d: Adjust expectations.
1575 2020-06-08 Jan Beulich <jbeulich@suse.com>
1577 * testsuite/gas/cfi/cfi-i386-2.d: Adjust expectations.
1578 * testsuite/gas/cfi/cfi.exp: Run this test.
1580 2020-06-08 Jan Beulich <jbeulich@suse.com>
1582 * config/tc-i386.c (parse_real_register): Add allow_pseudo_reg
1583 check to %st(N) parsing logic.
1584 * testsuite/gas/cfi/cfi-i386.s: Set "generic32" arch.
1586 2020-06-08 Jan Beulich <jbeulich@suse.com>
1588 * config/tc-i386.c (bad_reg): New.
1589 (check_VecOperations, i386_att_operand, i386_parse_name): Check
1591 (check_register): New, broken out from ...
1592 (parse_real_register): ... here. Call it.
1593 (parse_register): Call it, and error upon failure.
1594 * testsuite/gas/i386/equ-bad.s, testsuite/gas/i386/equ-bad.l,
1595 testsuite/gas/i386/x86-64-equ-bad.s,
1596 testsuite/gas/i386/x86-64-equ-bad.l: New.
1597 * testsuite/gas/i386/i386.exp: Run new tests.
1599 2020-06-06 Alan Modra <amodra@gmail.com>
1601 * config/tc-ppc.c (md_show_usage): Mention -mpower10 and -mpwr10.
1602 * doc/c-ppc.texi: Likewise.
1604 2020-06-06 Alan Modra <amodra@gmail.com>
1606 * config/tc-ppc.c: Update throughout for reloc renaming.
1608 2020-06-05 Jose E. Marchesi <jose.marchesi@oracle.com>
1610 * config/tc-bpf.c (md_apply_fix): Avoid GCC 10 warning
1613 2020-06-05 Nelson Chu <nelson.chu@sifive.com>
1615 * config/tc-riscv.c (explicit_csr): New static boolean.
1616 Used to indicate CSR are explictly used.
1617 (riscv_ip): Set explicit_csr to TRUE if any CSR is used.
1618 (riscv_write_out_attrs): If we already have set elf priv
1619 attributes, then generate them. Otherwise, don't generate
1620 them when no CSR are used.
1621 * testsuite/gas/riscv/attribute-01.d: Remove the priv attributes.
1622 * testsuite/gas/riscv/attribute-02.d: Likewise.
1623 * testsuite/gas/riscv/attribute-03.d: Likewise.
1624 * testsuite/gas/riscv/attribute-04.d: Likewise.
1625 * testsuite/gas/riscv/attribute-05.d: Likewise.
1626 * testsuite/gas/riscv/attribute-06.d: Likewise.
1627 * testsuite/gas/riscv/attribute-07.d: Likewise.
1628 * testsuite/gas/riscv/attribute-08.d: Likewise.
1629 * testsuite/gas/riscv/attribute-09.d: Likewise.
1630 * testsuite/gas/riscv/attribute-10.d: Likewise.
1631 * testsuite/gas/riscv/attribute-unknown.d: Likewise.
1632 * testsuite/gas/riscv/attribute-11.s: New testcase.
1633 * testsuite/gas/riscv/attribute-11.d: New testcase. The CSR is
1634 used, so we should output the ELF priv attributes.
1635 * testsuite/gas/riscv/attribute-12.d: New testcase. The CSR is
1636 used, so output the priv attributes according to the -mpriv-spec.
1637 * testsuite/gas/riscv/attribute-13.d: New testcase. The CSR isn't
1638 used, so ignore the -mpriv-spec setting.
1640 2020-06-04 H.J. Lu <hongjiu.lu@intel.com>
1642 * config/tc-ip2k. (ip2k_apply_fix): Pass endianness to
1643 cgen_get_insn_value.
1644 * config/tc-xstormy16.c (xstormy16_md_apply_fix): Pass
1645 endianness to cgen_get_insn_value and cgen_put_insn_value.
1647 2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1649 * config/tc-bpf.c (md_apply_fix): Simplify and avoid using
1650 cgen_put_insn_value.
1652 2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1654 * config/tc-bpf.c (md_begin): Pass CGEN_CPU_OPEN_INSN_ENDIAN to
1656 (md_assemble): Remove no longer needed hack.
1658 2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1660 * cgen.c (gas_cgen_finish_insn): Pass the endianness to
1661 cgen_put_insn_value.
1662 (gas_cgen_md_apply_fix): Likewise.
1663 (gas_cgen_md_apply_fix): Likewise.
1664 * config/tc-bpf.c (md_apply_fix): Pass data endianness to
1665 cgen_put_insn_value.
1666 * config/tc-mep.c (mep_check_ivc2_scheduling): Pass endianness to
1667 cgen_put_insn_value.
1669 2020-06-04 Alan Modra <amodra@gmail.com>
1671 * testsuite/config/default.exp: Remove global directive outside
1673 * testsuite/gas/mep/complex-relocs.exp: Likewise.
1674 * testsuite/gas/microblaze/relax_size.exp: Likewise.
1675 * testsuite/gas/microblaze/reloc_sym.exp: Likewise.
1676 * testsuite/gas/mt/relocs.exp: Likewise.
1677 * testsuite/gas/rx/rx.exp: Likewise.
1679 2020-06-03 Stephen Casner <casner@acm.org>
1681 * doc/c-riscv.texi (RISC-V-Options): Fix non-ASCII apostrophe.
1683 2020-06-02 Frédéric Pétrot <frederic.petrot@univ-grenoble-alpes.fr>
1684 Jim Wilson <jimw@sifive.com>
1687 * doc/c-riscv.texi (RISC-V-Formats): Add missing I format using
1688 simm12(rs1). Correct S format to use simm12(rs1). Drop SB and B
1689 formats using simm12(rs1). Correct SB and B to use rs1 and rs2.
1690 Move B before SB. Move J before UJ.
1692 2020-06-01 Alex Coplan <alex.coplan@arm.com>
1694 * write.c (relax_segment): Fix handling of negative offset when
1695 relaxing an rs_org frag.
1696 * testsuite/gas/aarch64/org-neg.d: New test.
1697 * testsuite/gas/aarch64/org-neg.l: Error output for test.
1698 * testsuite/gas/aarch64/org-neg.s: Input for test.
1699 * testsuite/gas/arm/org-neg.d: New test.
1700 * testsuite/gas/arm/org-neg.l: Error output for test.
1701 * testsuite/gas/arm/org-neg.s: Input for test.
1703 2020-05-28 Stephen Casner <casner@acm.org>
1705 Fix unexpected failures in gas testsuite for pdp11-aout target.
1706 These are caused by the PDP11's mix of little-endian octets in
1707 shorts but shorts in big endian order for long or quad.
1709 * config/tc-pdp11.c (md_number_to_chars): Implement .quad
1710 * testsuite/gas/all/gas.exp: Select alternate test scripts for
1711 pdp11, skip octa test completely.
1712 * testsuite/gas/all/eqv-dot-pdp11.s: Identical to eqv-dot.s
1713 * testsuite/gas/all/eqv-dot-pdp11.d: Match different octet order.
1714 * testsuite/gas/all/cond-pdp11.l: Match different octet order.
1716 2020-05-28 Alex Coplan <alex.coplan@arm.com>
1718 * frags.c (frag_grow): Fix comment.
1720 2020-05-27 Stephen Casner <casner@acm.org>
1723 * config/tc-pdp11.c (parse_reg): Distinguish register names from
1724 symbols that begin with a register name.
1725 * testsuite/gas/pdp11/pdp11.exp: Add test of such symbols.
1726 * testsuite/gas/pdp11/pr26001.s: Likewise.
1727 * testsuite/gas/pdp11/pr26001.d: Likewise.
1729 2020-05-27 Simon Cook <simon.cook@embecosm.com>
1731 * config/tc-riscv.c (riscv_init_csr_hash): NULL initilize next
1732 pointer when creating struct riscv_csr_extra.
1734 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
1736 * testsuite/gas/i386/align-branch-9.d: Updated for PECOFF.
1737 * testsuite/gas/i386/inval-avx512f.s: Add .p2align for PECOFF.
1738 * testsuite/gas/i386/inval-avx512f.l: Updated.
1740 2020-05-26 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
1742 * testsuite/gas/s390/zarch-z13.d: Add regexp checks for vector
1743 load/store instruction variants with alignment hints.
1744 * testsuite/gas/s390/zarch-z13.s: Emit new vector load/store
1745 instruction variants with alignment hints.
1747 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
1750 * config/tc-xgate.c (md_apply_fix): Check BFD_RELOC_XGATE_PCREL_X
1751 instead of R_XGATE_PCREL_X.
1752 (xgate_parse_operand): Replace R_XGATE_PCREL_X with
1753 BFD_RELOC_XGATE_PCREL_X.
1755 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
1758 * config/tc-visium.c (md_convert_frag): Replace fragP->fr_literal
1759 with &fragP->fr_literal[0].
1761 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
1764 * config/tc-vax.c (md_estimate_size_before_relax): Replace
1765 fragP->fr_literal with &fragP->fr_literal[0].
1766 (md_convert_frag): Likewise.
1768 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
1771 * config/tc-v850.c (md_convert_frag): Replace fragP->fr_literal
1772 with &fragP->fr_literal[0].
1774 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
1777 * config/tc-crx.c (getreg_image): Change argument type to int.
1778 (md_convert_frag): Replace fragP->fr_literal with
1779 &fragP->fr_literal[0].
1781 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
1784 * onfig/tc-score.c (s3_do_macro_bcmp): Replace overlapping
1785 sprintf with memmove.
1787 2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
1789 * config/tc-mcore.c (md_convert_frag): Replace fragP->fr_literal
1790 with &fragP->fr_literal[0].
1792 2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
1795 * config/tc-cr16.c (md_assemble): Use memmove to concatenate
1796 2 overlapping strings.
1798 2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
1800 * config/tc-cr16.c (md_convert_frag): Replace fragP->fr_literal
1801 with &fragP->fr_literal[0].
1803 2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
1805 * config/tc-csky.c (md_convert_frag): Replace fragp->fr_literal
1806 with &fragp->fr_literal[0].
1807 * config/tc-microblaze.c (md_apply_fix): Likewise.
1808 * config/tc-sh.c (md_convert_frag): Likewise.
1810 2020-05-24 Jim Wilson <jimw@sifive.com>
1813 * config/tc-riscv.c (riscv_pre_output_hook): Change s type from const
1814 asection to segT. New locals seg and subseg. Call subseg_set before
1815 fix_new_exp. Call subseg_set after loop to restore original values.
1817 2020-05-21 Alan Modra <amodra@gmail.com>
1819 * atof-generic.c: Replace "if (x) free (x)" with "free (x)"
1821 * config/obj-elf.c: Likewise.
1822 * config/tc-aarch64.c: Likewise.
1823 * config/tc-arm.c: Likewise.
1824 * config/tc-m68k.c: Likewise.
1825 * config/tc-nios2.c: Likewise.
1826 * config/tc-tic30.c: Likewise.
1827 * ecoff.c: Likewise.
1829 * stabs.c: Likewise.
1830 * symbols.c: Likewise.
1831 * testsuite/gas/all/test-gen.c: Likewise.
1833 2020-05-20 Nelson Chu <nelson.chu@sifive.com>
1835 * testsuite/gas/riscv/priv-reg-fail-read-only-01.s: Updated.
1836 * config/tc-riscv.c (default_arch_with_ext, default_isa_spec):
1837 Static variables which are used to set the ISA extensions. You can
1838 use -march (or ELF build attributes) and -misa-spec to set them,
1840 (ext_version_hash): The hash table used to handle the extensions
1842 (init_ext_version_hash): Initialize the ext_version_hash according
1843 to riscv_ext_version_table.
1844 (riscv_get_default_ext_version): The callback function of
1845 riscv_parse_subset_t. According to the choosed ISA spec,
1846 get the default version for the specific extension.
1847 (riscv_set_arch): Set the callback function.
1848 (enum options, struct option md_longopts): Add new option -misa-spec.
1849 (md_parse_option): Do not call riscv_set_arch for -march. We will
1850 call it later in riscv_after_parse_args. Call riscv_get_isa_spec_class
1851 to set default_isa_spec class.
1852 (riscv_after_parse_args): Call init_ext_version_hash to initialize the
1853 ext_version_hash, and then call riscv_set_arch to set the architecture
1854 with versions according to default_arch_with_ext.
1855 * testsuite/gas/riscv/attribute-02.d: Set 0p0 as default version for
1857 * testsuite/gas/riscv/attribute-03.d: Likewise.
1858 * testsuite/gas/riscv/attribute-09.d: New testcase. For i-ext, we
1859 already set it's version to 2p1 by march, so no need to use the default
1860 2p2 version. For m-ext, we do not set the version by -march and ELF arch
1861 attribute, so set the default 2p0 to it. For zicsr, it is not defined in
1862 ISA spec 2p2, so set 0p0 to it.
1863 * testsuite/gas/riscv/attribute-10.d: New testcase. The version of
1864 zicsr is 2p0 according to ISA spec 20191213.
1865 * config/tc-riscv.c (DEFAULT_RISCV_ARCH_WITH_EXT)
1866 (DEFAULT_RISCV_ISA_SPEC): Default configure option settings.
1867 You can set them by configure options --with-arch and
1868 --with-isa-spec, respectively.
1869 (riscv_set_default_isa_spec): New function used to set the
1871 (md_parse_option): Call riscv_set_default_isa_spec rather than
1872 call riscv_get_isa_spec_class directly.
1873 (riscv_after_parse_args): If the -isa-spec is not set, then we
1874 set the default ISA spec according to DEFAULT_RISCV_ISA_SPEC by
1875 calling riscv_set_default_isa_spec.
1876 * testsuite/gas/riscv/attribute-01.d: Add -misa-spec=2.2, since
1877 the --with-isa-spec may be set to different ISA spec.
1878 * testsuite/gas/riscv/attribute-02.d: Likewise.
1879 * testsuite/gas/riscv/attribute-03.d: Likewise.
1880 * testsuite/gas/riscv/attribute-04.d: Likewise.
1881 * testsuite/gas/riscv/attribute-05.d: Likewise.
1882 * testsuite/gas/riscv/attribute-06.d: Likewise.
1883 * testsuite/gas/riscv/attribute-07.d: Likewise.
1884 * configure.ac: Add configure options, --with-arch and
1886 * configure: Regenerated.
1887 * config.in: Regenerated.
1888 * config/tc-riscv.c (default_priv_spec): Static variable which is
1889 used to check if the CSR is valid for the chosen privilege spec. You
1890 can use -mpriv-spec to set it.
1891 (enum reg_class): We now get the CSR address from csr_extra_hash rather
1892 than reg_names_hash. Therefore, move RCLASS_CSR behind RCLASS_MAX.
1893 (riscv_init_csr_hashes): Only need to initialize one hash table
1895 (riscv_csr_class_check): Change the return type to void. Don't check
1896 the ISA dependency if -mcsr-check isn't set.
1897 (riscv_csr_version_check): New function. Check and find the CSR address
1898 from csr_extra_hash, according to default_priv_spec. Report warning
1899 for the invalid CSR if -mcsr-check is set.
1900 (reg_csr_lookup_internal): Updated.
1901 (reg_lookup_internal): Likewise.
1902 (md_begin): Updated since DECLARE_CSR and DECLARE_CSR_ALIAS are changed.
1903 (enum options, struct option md_longopts): Add new GAS option -mpriv-spec.
1904 (md_parse_option): Call riscv_set_default_priv_version to set
1906 (riscv_after_parse_args): If -mpriv-spec isn't set, then set the default
1907 privilege spec to the newest one.
1908 (enum riscv_csr_class, struct riscv_csr_extra): Move them to
1909 include/opcode/riscv.h.
1910 * testsuite/gas/riscv/priv-reg-fail-fext.d: This test case just want
1911 to check the ISA dependency for CSR, so fix the spec version by adding
1913 * testsuite/gas/riscv/priv-reg-fail-fext.l: Likewise. There are some
1914 version warnings for the test case.
1915 * gas/testsuite/gas/riscv/priv-reg-fail-read-only-01.d: Likewise.
1916 * gas/testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
1917 * gas/testsuite/gas/riscv/priv-reg-fail-read-only-02.d: Likewise.
1918 * gas/testsuite/gas/riscv/priv-reg-fail-rv32-only.d: Likewise.
1919 * gas/testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
1920 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9.d: New test case.
1921 Check whether the CSR is valid when privilege version 1.9 is choosed.
1922 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9.l: Likewise.
1923 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9p1.d: New test case.
1924 Check whether the CSR is valid when privilege version 1.9.1 is choosed.
1925 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
1926 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p10.d: New test case.
1927 Check whether the CSR is valid when privilege version 1.10 is choosed.
1928 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
1929 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p11.d: New test case.
1930 Check whether the CSR is valid when privilege version 1.11 is choosed.
1931 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
1932 * config/tc-riscv.c (DEFAULT_RISCV_ISA_SPEC): Default configure option
1933 setting. You can set it by configure option --with-priv-spec.
1934 (riscv_set_default_priv_spec): New function used to set the default
1936 (md_parse_option): Call riscv_set_default_priv_spec rather than
1937 call riscv_get_priv_spec_class directly.
1938 (riscv_after_parse_args): If -mpriv-spec isn't set, then we set the
1939 default privilege spec according to DEFAULT_RISCV_PRIV_SPEC by
1940 calling riscv_set_default_priv_spec.
1941 * testsuite/gas/riscv/csr-dw-regnums.d: Add -mpriv-spec=1.11, since
1942 the --with-priv-spec may be set to different privilege spec.
1943 * testsuite/gas/riscv/priv-reg.d: Likewise.
1944 * configure.ac: Add configure option --with-priv-spec.
1945 * configure: Regenerated.
1946 * config.in: Regenerated.
1947 * config/tc-riscv.c (explicit_attr): Rename explicit_arch_attr to
1948 explicit_attr. Set it to TRUE if any ELF attribute is found.
1949 (riscv_set_default_priv_spec): Try to set the default_priv_spec if
1950 the priv attributes are set.
1951 (md_assemble): Set the default_priv_spec according to the priv
1952 attributes when we start to assemble instruction.
1953 (riscv_write_out_attrs): Rename riscv_write_out_arch_attr to
1954 riscv_write_out_attrs. Update the arch and priv attributes. If we
1955 don't set the corresponding ELF attributes, then try to output the
1957 (riscv_set_public_attributes): If any ELF attribute or -march-attr
1958 options is set (explicit_attr is TRUE), then call riscv_write_out_attrs
1959 to update the arch and priv attributes.
1960 (s_riscv_attribute): Make sure all arch and priv attributes are set
1961 before any instruction.
1962 * testsuite/gas/riscv/attribute-01.d: Update the priv attributes if any
1963 ELF attribute or -march-attr is set. If the priv attributes are not
1964 set, then try to update them by the default setting (-mpriv-spec or
1966 * testsuite/gas/riscv/attribute-02.d: Likewise.
1967 * testsuite/gas/riscv/attribute-03.d: Likewise.
1968 * testsuite/gas/riscv/attribute-04.d: Likewise.
1969 * testsuite/gas/riscv/attribute-06.d: Likewise.
1970 * testsuite/gas/riscv/attribute-07.d: Likewise.
1971 * testsuite/gas/riscv/attribute-08.d: Likewise.
1972 * testsuite/gas/riscv/attribute-09.d: Likewise.
1973 * testsuite/gas/riscv/attribute-10.d: Likewise.
1974 * testsuite/gas/riscv/attribute-unknown.d: Likewise.
1975 * testsuite/gas/riscv/attribute-05.d: Likewise. Also, the priv spec
1976 set by priv attributes must be supported.
1977 * testsuite/gas/riscv/attribute-05.s: Likewise.
1978 * testsuite/gas/riscv/priv-reg-fail-version-1p9.d: Likewise. Updated
1979 priv attributes according to the -mpriv-spec option.
1980 * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.d: Likewise.
1981 * testsuite/gas/riscv/priv-reg-fail-version-1p10.d: Likewise.
1982 * testsuite/gas/riscv/priv-reg-fail-version-1p11.d: Likewise.
1983 * testsuite/gas/riscv/priv-reg.d: Removed.
1984 * testsuite/gas/riscv/priv-reg-version-1p9.d: New test case. Dump the
1985 CSR according to the priv spec 1.9.
1986 * testsuite/gas/riscv/priv-reg-version-1p9p1.d: New test case. Dump the
1987 CSR according to the priv spec 1.9.1.
1988 * testsuite/gas/riscv/priv-reg-version-1p10.d: New test case. Dump the
1989 CSR according to the priv spec 1.10.
1990 * testsuite/gas/riscv/priv-reg-version-1p11.d: New test case. Dump the
1991 CSR according to the priv spec 1.11.
1992 * config/tc-riscv.c (md_show_usage): Add descriptions about
1993 the new GAS options.
1994 * doc/c-riscv.texi: Likewise.
1996 2020-05-19 Peter Bergner <bergner@linux.ibm.com>
1998 * testsuite/gas/ppc/power9.s <dcbf, dcbfl, dcbflp>: Add tests.
1999 * testsuite/gas/ppc/power9.d: Likewise.
2000 * testsuite/gas/ppc/power10.s <dcbf, dcbfps, dcbstps, hwsync, lwsync,
2001 pause_short, phwsync, plwsync, ptesync, stcisync, stncisync, stsync,
2002 sync, wait, waitrsv>: Add tests.
2003 * testsuite/gas/ppc/power10.d: Likewise.
2005 2020-05-19 Alexander Fedotov <alfedotov@gmail.com>
2008 * config/tc-arm.c : Add arm_ext_v8r feature.
2009 (it_fsm_post_encode): Check arm_ext_v8r feature.
2010 (get_aeabi_cpu_arch_from_fset): Check arm_ext_v8r feature.
2012 2020-05-19 Alan Modra <amodra@gmail.com>
2014 * write.c (write_contents): Use bfd_get_filename rather than
2015 accessing bfd->filename directly. Use bfd_section_name rather
2016 than accessing section->name directly.
2018 2020-05-19 Alan Modra <amodra@gmail.com>
2020 * symbols.c (local_symbol_make): Init all of lsy_flags.
2022 2020-05-18 Alan Modra <amodra@gmail.com>
2024 * symbols.c (resolve_symbol_value): Invoke LOCAL_SYMBOL_CHECK
2025 before looking at add_symbol->sy_flags.
2027 2020-05-18 Hongtao Liu <hongtao.liu@intel.com>
2029 * config/tc-i386.c: Not handle lret/iret.
2030 * testsuite/gas/i386/lfence-ret-a.d: Adjust testcase.
2031 * testsuite/gas/i386/lfence-ret-b.d: Ditto.
2032 * testsuite/gas/i386/lfence-ret-c.d: Ditto.
2033 * testsuite/gas/i386/lfence-ret-d.d: Ditto.
2034 * testsuite/gas/i386/lfence-ret.s: Ditto.
2035 * testsuite/gas/i386/x86-64-lfence-ret-a.d: Ditto.
2036 * testsuite/gas/i386/x86-64-lfence-ret-b.d: Ditto.
2037 * testsuite/gas/i386/x86-64-lfence-ret-c.d: Ditto.
2038 * testsuite/gas/i386/x86-64-lfence-ret-d.d: Ditto.
2039 * testsuite/gas/i386/x86-64-lfence-ret-e.d: Ditto.
2040 * testsuite/gas/i386/x86-64-lfence-ret.s: Ditto.
2041 * testsuite/gas/i386/x86-64-lfence-ret.e: Deleted.
2043 2020-05-15 Alan Modra <amodra@gmail.com>
2044 Alex Coplan <alex.coplan@arm.com>
2046 * symbols.c (struct local_symbol): Update comment.
2047 (resolve_symbol_value): For resolved symbols equated to other
2048 symbols, verify that the referenced symbol is not a local_symbol
2049 before accessing sy_value. Don't leave symbol loops during
2050 finalize_syms resolution.
2051 * testsuite/gas/all/assign-bad-recursive.d: New test.
2052 * testsuite/gas/all/assign-bad-recursive.l: Error output for test.
2053 * testsuite/gas/all/assign-bad-recursive.s: Assembly for test.
2054 * testsuite/gas/all/gas.exp: Run it.
2056 2020-05-14 Nick Clifton <nickc@redhat.com>
2058 * po/sv.po: Updated Swedish translation.
2060 2020-05-11 Alan Modra <amodra@gmail.com>
2062 * testsuite/gas/ppc/scalarquad.d,
2063 * testsuite/gas/ppc/scalarquad.s: New test.
2064 * testsuite/gas/ppc/ppc.exp: Run it.
2066 2020-05-11 Alan Modra <amodra@gmail.com>
2068 * testsuite/gas/ppc/rightmost.d,
2069 * testsuite/gas/ppc/rightmost.s: New test.
2070 * testsuite/gas/ppc/ppc.exp: Run it.
2072 2020-05-11 Alan Modra <amodra@gmail.com>
2074 * testsuite/gas/ppc/xvtlsbb.d,
2075 * testsuite/gas/ppc/xvtlsbb.s: New test.
2076 * testsuite/gas/ppc/ppc.exp: Run it.
2078 2020-05-11 Alan Modra <amodra@gmail.com>
2080 * testsuite/gas/ppc/stringop.d,
2081 * testsuite/gas/ppc/stringop.s: New test.
2082 * testsuite/gas/ppc/ppc.exp: Run it.
2084 2020-05-11 Peter Bergner <bergner@linux.ibm.com>
2086 * testsuite/gas/ppc/set_bool.d,
2087 * testsuite/gas/ppc/set_bool.s: New test.
2088 * testsuite/gas/ppc/ppc.exp: Run it.
2090 2020-05-11 Alan Modra <amodra@gmail.com>
2092 * testsuite/gas/ppc/bitmanip.d,
2093 * testsuite/gas/ppc/bitmanip.s: New test.
2094 * testsuite/gas/ppc/ppc.exp: Run it.
2096 2020-05-11 Alan Modra <amodra@gmail.com>
2098 * testsuite/gas/ppc/genpcv.d,
2099 * testsuite/gas/ppc/genpcv.s: New test.
2100 * testsuite/gas/ppc/ppc.exp: Run it.
2102 2020-05-11 Alan Modra <amodra@gmail.com>
2104 * testsuite/gas/ppc/maskmanip.d,
2105 * testsuite/gas/ppc/maskmanip.s: New test.
2106 * testsuite/gas/ppc/ppc.exp: Run it.
2108 2020-05-11 Alan Modra <amodra@gmail.com>
2109 Peter Bergner <bergner@linux.ibm.com>
2111 * config/tc-ppc.c (pre_defined_registers): Add accumulators.
2112 (md_assemble): Check acc specified in correct operand.
2113 * testsuite/gas/ppc/outerprod.d,
2114 * testsuite/gas/ppc/outerprod.s,
2115 * testsuite/gas/ppc/vsx4.d,
2116 * testsuite/gas/ppc/vsx4.s: New tests.
2117 * testsuite/gas/ppc/ppc.exp: Run them.
2119 2020-05-11 Alan Modra <amodra@gmail.com>
2121 * testsuite/gas/ppc/simd_perm.d,
2122 * testsuite/gas/ppc/simd_perm.s: New test.
2123 * testsuite/gas/ppc/ppc.exp: Run it.
2125 2020-05-11 Alan Modra <amodra@gmail.com>
2127 * testsuite/gas/ppc/int128.d,
2128 * testsuite/gas/ppc/int128.s: New test.
2129 * testsuite/gas/ppc/ppc.exp: Run it.
2131 2020-05-11 Alan Modra <amodra@gmail.com>
2133 * testsuite/gas/ppc/vsx_32byte.d,
2134 * testsuite/gas/ppc/vsx_32byte.s: New test.
2135 * testsuite/gas/ppc/ppc.exp: Run it.
2137 2020-05-11 Alan Modra <amodra@gmail.com>
2139 * testsuite/gas/ppc/vec_mul.s,
2140 * testsuite/gas/ppc/vec_mul.d: New test.
2141 * testsuite/gas/ppc/ppc.exp: Run it.
2143 2020-05-11 Peter Bergner <bergner@linux.ibm.com>
2145 * testsuite/gas/ppc/byte_rev.d,
2146 * testsuite/gas/ppc/byte_rev.s: New test.
2147 * testsuite/gas/ppc/ppc.exp: Run it.
2149 2020-05-11 Peter Bergner <bergner@linux.ibm.com>
2151 * testsuite/gas/ppc/power10.d: Add paste. tests.
2152 * testsuite/gas/ppc/power10.s: Likewise.
2154 2020-05-11 Peter Bergner <bergner@linux.ibm.com>
2156 * testsuite/gas/ppc/power10.s: New test.
2157 * testsuite/gas/ppc/power10.d: Likewise.
2158 * testsuite/gas/ppc/ppc.exp: Run it.
2160 2020-05-11 Alan Modra <amodra@gmail.com>
2162 * config/tc-ppc.c (md_assemble): Update for PPC_OPCODE_POWER10
2164 * testsuite/gas/ppc/prefix-align.d: Use -mpower10/-Mpower10 in
2165 place of -mfuture/-Mfuture.
2166 * testsuite/gas/ppc/prefix-pcrel.d: Likewise.
2167 * testsuite/gas/ppc/prefix-reloc.d: Likewise.
2169 2020-05-06 Nick Clifton <nickc@redhat.com>
2171 * po/sv.po: Updated Swedish translation.
2173 2020-05-06 Nick Clifton <nickc@redhat.com>
2176 * doc/as.texi (Preprocessing): Replace cross reference to not
2177 existant document with a URL to the equivalent page in the GCC
2180 2020-05-05 Nick Clifton <nickc@redhat.com>
2182 * dwarf2dbg.c (out_dir_and_file_list): Add comments describing the
2183 construction of a DWARF-5 directory name table.
2184 * testsuite/gas/elf/pr25917.d: Update expected output.
2186 2020-05-05 Gunther Nikl <gnikl@justmail.de>
2188 * config/tc-rx.c (elf_flags): Initialize for non-linux targets.
2189 (md_parse_option): Remove initialization of elf_flags.
2191 2020-05-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
2194 * config/tc-arm.c (do_mve_vmull): Fix scalar and NEON parsing of vmul.
2195 * testsuite/gas/arm/mve-scalar-vmult-it.d: New test.
2196 * testsuite/gas/arm/mve-scalar-vmult-it.s: New test.
2198 2020-05-04 Nick Clifton <nickc@redhat.com>
2201 * dwarf2dbg.c (out_dir_and_file_list): Check for the directory
2202 table's existence before looking at its entries.
2203 Also do not emit a default directory entry if there are no
2206 * testsuite/gas/elf/pr25917.s: New test source file.
2207 * testsuite/gas/elf/pr25917.d: New test driver.
2208 * testsuite/gas/elf/elf.exp (run_elf_list_test): Run the new test.
2210 2020-04-30 Alex Coplan <alex.coplan@arm.com>
2212 * config/tc-aarch64.c (fix_insn): Implement for
2213 AARCH64_OPND_UNDEFINED.
2214 (parse_operands): Implement for AARCH64_OPND_UNDEFINED.
2215 * testsuite/gas/aarch64/udf.s: New.
2216 * testsuite/gas/aarch64/udf.d: New.
2217 * testsuite/gas/aarch64/udf-invalid.s: New.
2218 * testsuite/gas/aarch64/udf-invalid.l: New.
2219 * testsuite/gas/aarch64/udf-invalid.d: New.
2221 2020-04-30 Yoshinori Sato <ysato@users.sourceforge.jp>
2223 * config/tc-rx.c (elf_flags): Reset default value.
2224 (md_parse_option): For rx-elf Initialize elf_flags with RX_ABI.
2226 2020-04-29 Max Filippov <jcmvbkbc@gmail.com>
2228 * config/tc-xtensa.c (XTENSA_MARCH_EARLIEST): Define macro as 0
2229 if it's not defined.
2230 (microarch_earliest): New static variable.
2231 (xg_translate_idioms): Translate "simcall" to "simcall 0" when
2232 simcall opcode has mandatory parameter.
2233 (xg_init_global_config): Initialize microarch_earliest.
2235 2020-04-29 Nick Clifton <nickc@redhat.com>
2238 * config/tc-sh.c (build_Mytes): Change operand type IMM0_8 to
2239 IMM0_8S and add support for IMM0_8U.
2240 * testsuite/gas/sh/sh4a.s: Add test of a logical insn using an
2241 unsigned 8-bit immediate.
2242 * testsuite/gas/sh/sh4a.d: Extended expected disassembly.
2243 * testsuite/gas/sh/sh4al-dsp.d: Update expected disassembly.
2245 2020-04-27 Tamar Christina <tamar.christina@arm.com>
2247 * NEWS: Add news entry for big-obj.
2248 * config/tc-i386.c (i386_target_format): Support new format.
2249 * doc/c-i386.texi: Add i386 support.
2250 * testsuite/gas/pe/big-obj.d: Rename test to not be x64 specific.
2251 * testsuite/gas/pe/pe.exp (big-obj): Make test run on i386 as well.
2253 2020-04-27 Nick Clifton <nickc@redhat.com>
2256 * dwarf2dbg.c (struct file_entry): Add auto_assigned field.
2257 (assign_file_to_slot): New function. Fills in an entry in the
2259 (allocate_filenum): Use new function.
2260 (allocate_filename_to_slot): Use new function. If the specified
2261 slot entry is already in use, but was chosen automatically then
2262 reassign the automatic entry.
2264 2020-04-26 Hongtao Liu <hongtao.liu@intel.com
2266 * config/tc-i386.c (lfence_before_ret_shl): New member.
2267 (load_insn_p): implict load for POP/POPA/POPF/XLATB, no load
2269 (insert_after_load): Issue warning for REP CMPS/SCAS.
2270 (insert_before_before): Handle iret, Handle
2271 -mlfence-before-ret=shl, Adjust operand size of or/not/shl to ret's,
2272 (md_parse_option): Change -mlfence-before-ret=[none|not|or] to
2273 -mlfence-before-ret=[none/not/or/shl/yes].
2274 Enable -mlfence-before-ret=shl when
2275 -mlfence-beofre-indirect-branch=all and no explict -mlfence-before-ret option.
2276 (md_show_usage): Ditto.
2277 * doc/c-i386.texi: Ditto.
2278 * testsuite/gas/i386/i386.exp: Add new testcases.
2279 * testsuite/gas/i386/lfence-load-b.d: New.
2280 * testsuite/gas/i386/lfence-load-b.e: New.
2281 * testsuite/gas/i386/lfence-load.d: Modified.
2282 * testsuite/gas/i386/lfence-load.e: New.
2283 * testsuite/gas/i386/lfence-load.s: Modified.
2284 * testsuite/gas/i386/lfence-ret-a.d: Modified.
2285 * testsuite/gas/i386/lfence-ret-b.d: Modified.
2286 * testsuite/gas/i386/lfence-ret-c.d: New.
2287 * testsuite/gas/i386/lfence-ret-d.d: New.
2288 * testsuite/gas/i386/lfence-ret.s: Modified.
2289 * testsuite/gas/i386/x86-64-lfence-load-b.d: New.
2290 * testsuite/gas/i386/x86-64-lfence-load.d: Modified.
2291 * testsuite/gas/i386/x86-64-lfence-load.s: Modified.
2292 * testsuite/gas/i386/x86-64-lfence-ret-a.d: Modified.
2293 * testsuite/gas/i386/x86-64-lfence-ret-b.d: Modified.
2294 * testsuite/gas/i386/x86-64-lfence-ret-c.d: New.
2295 * testsuite/gas/i386/x86-64-lfence-ret-d.d: New
2296 * testsuite/gas/i386/x86-64-lfence-ret-e.d: New.
2297 * testsuite/gas/i386/x86-64-lfence-ret.e: New.
2298 * testsuite/gas/i386/x86-64-lfence-ret.s: New.
2300 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
2303 * config/tc-xtensa.c (md_apply_fix): Replace
2304 BFD_RELOC_XTENSA_DIFF{8,16,32} generation with
2305 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
2306 BFD_RELOC_XTENSA_NDIFF{8,16,32} generation.
2307 * testsuite/gas/xtensa/loc.d: Replace BFD_RELOC_XTENSA_DIFF16
2308 with BFD_RELOC_XTENSA_PDIFF16 in the expected output.
2310 2020-04-22 Alan Modra <amodra@gmail.com>
2312 * config/obj-elf.c (elf_frob_symbol): Unconditionally remove
2313 symbol for ".symver .. remove".
2314 * doc/as.texi (.symver): Update.
2315 * testsuite/gas/symver/symver11.s: Make foo weak.
2316 * testsuite/gas/symver/symver11.d: Expect an error.
2317 * testsuite/gas/symver/symver7.d: Allow other random symbols.
2319 2020-04-21 H.J. Lu <hongjiu.lu@intel.com>
2321 * testsuite/gas/symver/symver11.s: Add ".balign 8".
2323 2020-04-21 Andreas Schwab <schwab@linux-m68k.org>
2326 * testsuite/gas/m68k/operands.s: Add tests for cmpi.
2327 * testsuite/gas/m68k/operands.d: Update.
2328 * testsuite/gas/m68k/op68000.d: Update for new error messages.
2330 2020-04-21 Tamar Christina <tamar.christina@arm.com>
2333 * testsuite/gas/arm/pr24753.d: New test.
2334 * testsuite/gas/arm/pr24753.s: New test.
2336 2020-04-21 H.J. Lu <hongjiu.lu@intel.com>
2340 * NEWS: Mention .symver extension.
2341 * config/obj-elf.c (obj_elf_find_and_add_versioned_name): New
2343 (obj_elf_symver): Call obj_elf_find_and_add_versioned_name to
2344 add a version name. Add local, hidden and remove visibility
2346 (elf_frob_symbol): Handle the list of version names. Update the
2347 original symbol to local, hidden or remove it from the symbol
2349 (elf_frob_file_before_adjust): Handle the list of version names.
2350 * config/obj-elf.h (elf_visibility): New.
2351 (elf_versioned_name_list): Likewise.
2352 (elf_obj_sy): Change local to bitfield. Add rename, bad_version
2353 and visibility. Change versioned_name pointer to struct
2354 elf_versioned_name_list.
2355 * doc/as.texi: Update .symver directive.
2356 * testsuite/gas/symver/symver.exp: Run all *.d tests. Add more
2357 error checking tests.
2358 * testsuite/gas/symver/symver6.d: New file.
2359 * testsuite/gas/symver/symver7.d: Likewise.
2360 * testsuite/gas/symver/symver7.s: Likewise.
2361 * testsuite/gas/symver/symver8.d: Likewise.
2362 * testsuite/gas/symver/symver8.s: Likewise.
2363 * testsuite/gas/symver/symver9.s: Likewise.
2364 * testsuite/gas/symver/symver9a.d: Likewise.
2365 * testsuite/gas/symver/symver9b.d: Likewise.
2366 * testsuite/gas/symver/symver10.s: Likewise.
2367 * testsuite/gas/symver/symver10a.d: Likewise.
2368 * testsuite/gas/symver/symver10b.d: Likewise.
2369 * testsuite/gas/symver/symver11.d: Likewise.
2370 * testsuite/gas/symver/symver11.s: Likewise.
2371 * testsuite/gas/symver/symver12.d: Likewise.
2372 * testsuite/gas/symver/symver12.s: Likewise.
2373 * testsuite/gas/symver/symver13.d: Likewise.
2374 * testsuite/gas/symver/symver13.s: Likewise.
2375 * testsuite/gas/symver/symver14.d: Likewise.
2376 * testsuite/gas/symver/symver14.l: Likewise.
2377 * testsuite/gas/symver/symver15.d: Likewise.
2378 * testsuite/gas/symver/symver15.l: Likewise.
2379 * testsuite/gas/symver/symver6.l: Removed.
2380 * testsuite/gas/symver/symver6.s: Updated.
2382 2020-04-20 Sudakshina Das <sudi.das@arm.com>
2384 * config/tc-aarch64.c (parse_barrier_psb): Update error messages
2386 * testsuite/gas/aarch64/system-2.d: Update -march and new tsb tests.
2387 * testsuite/gas/aarch64/system-2.s: Add new tsb tests.
2388 * testsuite/gas/aarch64/system.d: Update.
2390 2020-04-20 Sudakshina Das <sudi.das@arm.com>
2392 * testsuite/gas/aarch64/bti.d: Update -march option.
2393 * testsuite/gas/aarch64/illegal-bti.d: Remove.
2394 * testsuite/gas/aarch64/illegal-bti.l: Remove.
2395 * testsuite/gas/aarch64/illegal-ras-1.l: Remove esb.
2396 * testsuite/gas/aarch64/illegal-ras-1.s: Remove esb.
2398 2020-04-17 Alan Modra <amodra@gmail.com>
2400 * config/tc-bfin.h (TC_EQUAL_IN_INSN): Allow assignment to dot.
2402 2020-04-16 Gagan Singh Sidhu <broly@mac.com>
2403 Nick Clifton <nickc@redhat.com>
2406 * config/obj-elf.c (obj_elf_type): Reject ifunc symbols on MIPS
2408 * testsuite/gas/elf/elf.exp: Add MIPS targets to the list to skip
2409 for the type-2 test.
2410 * testsuite/gas/elf/type-noifunc.e: Update to allow for MIPS
2411 targets running this test.
2413 2020-02-16 David Faust <david.faust@oracle.com>
2415 * testsuite/gas/bpf/bpf.exp: Run jump32 tests.
2416 * testsuite/gas/bpf/jump32.s: New file.
2417 * testsuite/gas/bpf/jump32.d: Likewise.
2419 2020-04-08 H.J. Lu <hongjiu.lu@intel.com>
2421 * doc/c-i386.texi: Correct -mlfence-before-indirect-branch=
2424 2020-04-08 Gunther Nikl <gnikl@justmail.de>
2426 * config/tc-moxie.h (MD_PCREL_FROM_SECTION): Delete define.
2427 (md_pcrel_from): Remove prototytpe.
2428 * config/tc-m32c.h (MD_PCREL_FROM_SECTION): Delete duplicate
2430 (md_pcrel_from_section): Remove duplicate prototype.
2431 * tc.h (md_pcrel_from_section): Add prototype.
2432 * config/tc-aarch64.h (md_pcrel_from_section): Remove prototype.
2433 * config/tc-arc.h (md_pcrel_from_section): Likewise.
2434 * config/tc-arm.h (md_pcrel_from_section): Likewise.
2435 * config/tc-avr.h (md_pcrel_from_section): Likewise.
2436 * config/tc-bfin.h (md_pcrel_from_section): Likewise.
2437 * config/tc-bpf.h (md_pcrel_from_section): Likewise.
2438 * config/tc-csky.h (md_pcrel_from_section): Likewise.
2439 * config/tc-d10v.h (md_pcrel_from_section): Likewise.
2440 * config/tc-d30v.h (md_pcrel_from_section): Likewise.
2441 * config/tc-epiphany.h (md_pcrel_from_section): Likewise.
2442 * config/tc-fr30.h (md_pcrel_from_section): Likewise.
2443 * config/tc-frv.h (md_pcrel_from_section): Likewise.
2444 * config/tc-iq2000.h (md_pcrel_from_section): Likewise.
2445 * config/tc-lm32.h (md_pcrel_from_section): Likewise.
2446 * config/tc-m32c.h (md_pcrel_from_section): Likewise.
2447 * config/tc-m32r.h (md_pcrel_from_section): Likewise.
2448 * config/tc-mcore.h (md_pcrel_from_section): Likewise.
2449 * config/tc-mep.h (md_pcrel_from_section): Likewise.
2450 * config/tc-metag.h (md_pcrel_from_section): Likewise.
2451 * config/tc-microblaze.h (md_pcrel_from_section): Likewise.
2452 * config/tc-mmix.h (md_pcrel_from_section): Likewise.
2453 * config/tc-moxie.h (md_pcrel_from_section): Likewise.
2454 * config/tc-msp430.h (md_pcrel_from_section): Likewise.
2455 * config/tc-mt.h (md_pcrel_from_section): Likewise.
2456 * config/tc-or1k.h (md_pcrel_from_section): Likewise.
2457 * config/tc-ppc.h (md_pcrel_from_section): Likewise.
2458 * config/tc-rl78.h (md_pcrel_from_section): Likewise.
2459 * config/tc-rx.h (md_pcrel_from_section): Likewise.
2460 * config/tc-s390.h (md_pcrel_from_section): Likewise.
2461 * config/tc-sh.h (md_pcrel_from_section): Likewise.
2462 * config/tc-xc16x.h (md_pcrel_from_section): Likewise.
2463 * config/tc-xstormy16.h (md_pcrel_from_section): Likewise.
2464 * config/tc-microblaze.h (md_begin, md_assemble, md_undefined_symbol,
2465 md_show_usage, md_convert_frag, md_operand, md_number_to_chars,
2466 md_estimate_size_before_relax, md_section_align, tc_gen_reloc,
2467 md_apply_fix3): Delete prototypes.
2469 2020-04-07 H.J. Lu <hongjiu.lu@intel.com>
2471 * NEWS: Mention support for Intel SERIALIZE and TSXLDTRK
2474 2020-04-07 H.J. Lu <hongjiu.lu@intel.com>
2476 * doc/c-z80.texi: Fix @xref warnings.
2478 2020-04-07 Lili Cui <lili.cui@intel.com>
2480 * config/tc-i386.c (cpu_arch): Add .TSXLDTRK.
2481 (cpu_noarch): Likewise.
2482 * doc/c-i386.texi: Document TSXLDTRK.
2483 * testsuite/gas/i386/i386.exp: Run TSXLDTRK tests.
2484 * testsuite/gas/i386/tsxldtrk.d: Likewise.
2485 * testsuite/gas/i386/tsxldtrk.s: Likewise.
2486 * testsuite/gas/i386/x86-64-tsxldtrk.d: Likewise.
2488 2020-04-02 Lili Cui <lili.cui@intel.com>
2490 * config/tc-i386.c (cpu_arch): Add .serialize.
2491 (cpu_noarch): Likewise.
2492 * doc/c-i386.texi: Document serialize.
2493 * testsuite/gas/i386/i386.exp: Run serialize tests
2494 * testsuite/gas/i386/serialize.d: Likewise.
2495 * testsuite/gas/i386/x86-64-serialize.d: Likewise.
2496 * testsuite/gas/i386/serialize.s: Likewise.
2498 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2500 * testsuite/gas/elf/section12a.d: Use notarget instead of xfail.
2501 * testsuite/gas/elf/section12b.d: Likewise.
2502 * testsuite/gas/elf/section16a.d: Likewise.
2503 * testsuite/gas/elf/section16b.d: Likewise.
2505 2020-04-02 Gunther Nikl <gnikl@justmail.de>
2507 * config/tc-m68k.c (m68k_ip): Fix range check for index register
2508 with a suppressed address register.
2510 2020-04-01 H.J. Lu <hongjiu.lu@intel.com>
2513 * config/tc-i386.h (TC_FORCE_RELOCATION_ABS): New.
2514 * testsuite/gas/i386/localpic.s: Add a test for relocation
2515 against local absolute symbol.
2516 * testsuite/gas/i386/x86-64-localpic.s: Likewise.
2517 * testsuite/gas/i386/localpic.d: Updated.
2518 * testsuite/gas/i386/x86-64-localpic.d: Likewise.
2519 * testsuite/gas/i386/ilp32/x86-64-localpic.d: Likewise.
2521 2020-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2524 * testsuite/gas/i386/solaris/x86-64-branch-2.d: New file.
2525 * testsuite/gas/i386/solaris/x86-64-branch-3.d: New file.
2526 * testsuite/gas/i386/solaris/x86-64-jump.d: Incorporate changes to
2527 testsuite/gas/i386/x86-64-jump.d.
2528 * gas/testsuite/gas/i386/solaris/x86-64-mpx-branch-1.d:
2529 Incorporate changes to
2530 gas/testsuite/gas/i386/x86-64-mpx-branch-1.d.
2531 * testsuite/gas/i386/solaris/x86-64-mpx-branch-2.d : Incorporate
2532 changes to testsuite/gas/i386/x86-64-mpx-branch-2.d.
2533 * testsuite/gas/i386/x86-64-branch-2.d: Skip on *-*-solaris*.
2534 * testsuite/gas/i386/x86-64-branch-3.d: Likewise.
2536 2020-03-31 Maciej W. Rozycki <macro@linux-mips.org>
2540 * dwarf2dbg.c: Do not include "bignum.h".
2542 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
2544 * testsuite/gas/riscv/alias-csr.d: Move this to priv-reg-pseudo.
2545 * testsuite/gas/riscv/alias-csr.s: Likewise.
2546 * testsuite/gas/riscv/no-aliases-csr.d: Move this
2547 to priv-reg-pseudo-noalias.
2548 * testsuite/gas/riscv/bad-csr.d: Rename to priv-reg-fail-nonexistent.
2549 * testsuite/gas/riscv/bad-csr.l: Likewise.
2550 * testsuite/gas/riscv/bad-csr.s: Likewise.
2551 * testsuite/gas/riscv/satp.d: Removed. Already included in priv-reg.
2552 * testsuite/gas/riscv/satp.s: Likewise.
2553 * testsuite/gas/riscv/priv-reg-pseudo.d: New testcase for all pseudo
2554 csr instruction, including alias-csr testcase.
2555 * testsuite/gas/riscv/priv-reg-pseudo.s: Likewise.
2556 * testsuite/gas/riscv/priv-reg-pseudo-noalias.d: New testcase for all
2557 pseudo instruction with objdump -Mno-aliases.
2558 * testsuite/gas/riscv/priv-reg-fail-nonexistent.d: New testcase.
2559 * testsuite/gas/riscv/priv-reg-fail-nonexistent.l: Likewise.
2560 * testsuite/gas/riscv/priv-reg-fail-nonexistent.s: Likewise.
2561 * testsuite/gas/riscv/priv-reg.d: Update CSR to 1.11.
2562 * testsuite/gas/riscv/priv-reg.s: Likewise.
2563 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
2564 * testsuite/gas/riscv/csr-dw-regnums.d: Likewise.
2565 * testsuite/gas/riscv/csr-dw-regnums.s: Likewise.
2567 2020-03-25 J.W. Jagersma <jwjagersma@gmail.com>
2569 * config/obj-coff.c (obj_coff_section): Set the bss flag on
2570 sections with the "b" attribute.
2572 2020-03-22 Alan Modra <amodra@gmail.com>
2574 * testsuite/gas/s12z/truncated.d: Update expected output.
2576 2020-03-17 Sergey Belyashov <sergey.belyashov@gmail.com>
2579 * config/tc-z80.c (md_pseudo_table): Add xdef anf xref pseudo ops.
2580 * doc/c-z80.texi: Update documentation.
2582 2020-03-17 Sergey Belyashov <sergey.belyashov@gmail.com>
2587 Fix disassembling ED+A4/AC/B4/BC opcodes.
2588 Fix assembling lines containing colonless label and instruction
2589 with first operand inside parentheses.
2590 Fix registration of unsupported by target CPU registers.
2591 * config/tc-z80.c: See above.
2592 * config/tc-z80.h: See above.
2593 * testsuite/gas/z80/colonless.d: Update test.
2594 * testsuite/gas/z80/colonless.s: Likewise.
2595 * testsuite/gas/z80/ez80_adl_all.d: Likewise.
2596 * testsuite/gas/z80/ez80_unsup_regs.d: Likewise.
2597 * testsuite/gas/z80/ez80_z80_all.d: Likewise.
2598 * testsuite/gas/z80/gbz80_unsup_regs.d: Likewise.
2599 * testsuite/gas/z80/r800_unsup_regs.d: Likewise.
2600 * testsuite/gas/z80/unsup_regs.s: Likewise.
2601 * testsuite/gas/z80/z180_unsup_regs.d: Likewise.
2602 * testsuite/gas/z80/z80.exp: Likewise.
2603 * testsuite/gas/z80/z80_strict_unsup_regs.d: Likewise.
2604 * testsuite/gas/z80/z80_unsup_regs.d: Likewise.
2605 * testsuite/gas/z80/z80n_unsup_regs.d: Likewise.
2607 2020-03-13 Andre Vieira <andre.simoesdiasvieira@arm.com>
2610 * config/tc-arm.c (operand_parse_code): Add OP_RNSDMQR and OP_oRNSDMQ.
2611 (parse_operands): Handle new operand codes.
2612 (do_neon_dyadic_long): Make shape check accept the scalar variants.
2613 (asm_opcode_insns): Fix operand codes for vaddl and vsubl.
2614 * testsuite/gas/arm/mve-vaddsub-it.s: New test.
2615 * testsuite/gas/arm/mve-vaddsub-it.d: New test.
2616 * testsuite/gas/arm/mve-vaddsub-it-bad.s: New test.
2617 * testsuite/gas/arm/mve-vaddsub-it-bad.l: New test.
2618 * testsuite/gas/arm/mve-vaddsub-it-bad.d: New test.
2619 * testsuite/gas/arm/nomve-vaddsub-it.d: New test.
2621 2020-03-11 H.J. Lu <hongjiu.lu@intel.com>
2623 * NEWS: Mention x86 assembler options for CVE-2020-0551.
2625 2020-03-11 H.J. Lu <hongjiu.lu@intel.com>
2627 * testsuite/gas/i386/i386.exp: Run new tests.
2628 * testsuite/gas/i386/lfence-byte.d: New file.
2629 * testsuite/gas/i386/lfence-byte.e: Likewise.
2630 * testsuite/gas/i386/lfence-byte.s: Likewise.
2631 * testsuite/gas/i386/lfence-indbr-a.d: Likewise.
2632 * testsuite/gas/i386/lfence-indbr-b.d: Likewise.
2633 * testsuite/gas/i386/lfence-indbr-c.d: Likewise.
2634 * testsuite/gas/i386/lfence-indbr.e: Likewise.
2635 * testsuite/gas/i386/lfence-indbr.s: Likewise.
2636 * testsuite/gas/i386/lfence-load.d: Likewise.
2637 * testsuite/gas/i386/lfence-load.s: Likewise.
2638 * testsuite/gas/i386/lfence-ret-a.d: Likewise.
2639 * testsuite/gas/i386/lfence-ret-b.d: Likewise.
2640 * testsuite/gas/i386/lfence-ret.s: Likewise.
2641 * testsuite/gas/i386/x86-64-lfence-byte.d: Likewise.
2642 * testsuite/gas/i386/x86-64-lfence-byte.e: Likewise.
2643 * testsuite/gas/i386/x86-64-lfence-byte.s: Likewise.
2644 * testsuite/gas/i386/x86-64-lfence-indbr-a.d: Likewise.
2645 * testsuite/gas/i386/x86-64-lfence-indbr-b.d: Likewise.
2646 * testsuite/gas/i386/x86-64-lfence-indbr-c.d: Likewise.
2647 * testsuite/gas/i386/x86-64-lfence-indbr.e: Likewise.
2648 * testsuite/gas/i386/x86-64-lfence-indbr.s: Likewise.
2649 * testsuite/gas/i386/x86-64-lfence-load.d: Likewise.
2650 * testsuite/gas/i386/x86-64-lfence-load.s: Likewise.
2651 * testsuite/gas/i386/x86-64-lfence-ret-a.d: Likewise.
2652 * testsuite/gas/i386/x86-64-lfence-ret-b.d: Likewise.
2654 2020-03-11 H.J. Lu <hongjiu.lu@intel.com>
2656 * config/tc-i386.c (lfence_after_load): New.
2657 (lfence_before_indirect_branch_kind): New.
2658 (lfence_before_indirect_branch): New.
2659 (lfence_before_ret_kind): New.
2660 (lfence_before_ret): New.
2663 (insert_lfence_after): New.
2664 (insert_lfence_before): New.
2665 (md_assemble): Call insert_lfence_before and insert_lfence_after.
2667 (OPTION_MLFENCE_AFTER_LOAD): New.
2668 (OPTION_MLFENCE_BEFORE_INDIRECT_BRANCH): New.
2669 (OPTION_MLFENCE_BEFORE_RET): New.
2670 (md_longopts): Add -mlfence-after-load=,
2671 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
2672 (md_parse_option): Handle -mlfence-after-load=,
2673 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
2674 (md_show_usage): Display -mlfence-after-load=,
2675 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
2676 (i386_cons_align): New.
2677 * config/tc-i386.h (i386_cons_align): New.
2678 (md_cons_align): New.
2679 * doc/c-i386.texi: Document -mlfence-after-load=,
2680 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
2682 2020-03-11 Nick Clifton <nickc@redhat.com>
2686 * dwarf2dbg.c (DWARF2_FILE_TIME_NAME): Default to -1.
2687 (DWARF2_FILE_SIZE_NAME): Default to -1.
2688 (DWARF2_LINE_VERSION): Default to the current dwarf level or 3,
2689 whichever is higher.
2690 (DWARF2_LINE_MAX_OPS_PER_INSN): Provide a default value of 1.
2691 (NUM_MD5_BYTES): Define.
2692 (struct file entry): Add md5 field.
2693 (get_filenum): Delete and replace with...
2694 (get_basename): New function.
2695 (get_directory_table_entry): New function.
2696 (allocate_filenum): New function.
2697 (allocate_filename_to_slot): New function.
2698 (dwarf2_where): Use new functions.
2699 (dwarf2_directive_filename): Add support for extended .file
2701 (dwarf2_directive_loc): Allow the use of file number zero with
2703 (out_file_list): Rename to...
2704 (out_dir_and_file_list): Add DWARF 5 support.
2705 (out_debug_line): Emit extra values into the section header for
2707 (out_debug_str): Allow for file 0 to be used with DWARF 5.
2708 * doc/as.texi (.file): Update the description of this pseudo-op.
2709 * testsuite/gas/elf-dwarf-5-file0.s: Add more lines.
2710 * testsuite/gas/elf-dwarf-5-file0.d: Update expected dump output.
2711 * testsuite/gas/lns/lns-diag-1.l: Update expected error message.
2712 * NEWS: Mention the new feature.
2714 2020-03-10 Alan Modra <amodra@gmail.com>
2716 * config/tc-csky.c (get_operand_value): Rewrite 1 << 31 expressions
2717 to avoid signed overflow.
2718 * config/tc-mcore.c (md_assemble): Likewise.
2719 * config/tc-mips.c (gpr_read_mask, gpr_write_mask): Likewise.
2720 * config/tc-nds32.c (SET_ADDEND): Likewise.
2721 * config/tc-nios2.c (nios2_assemble_arg_R): Likewise.
2723 2020-03-09 Jan Beulich <jbeulich@suse.com>
2725 * testsuite/gas/i386/avx.s: Add long-form VCMP[PS][SD] pseudos.
2726 * testsuite/gas/i386/avx.d, testsuite/gas/i386/avx-16bit.d,
2727 testsuite/gas/i386/avx-intel.d: Adjust expectations.
2729 2020-03-07 Alan Modra <amodra@gmail.com>
2731 * testsuite/gas/elf/dwarf-5-file0.s: Don't start directives in
2734 2020-03-06 Nick Clifton <nickc@redhat.com>
2737 * dwarf2dbg.c (dwarf2_directive_filename): Allow a file number of
2738 0 if the dwarf_level is 5 or more. Complain if a filename follows
2740 * testsuite/gas/elf/dwarf-5-file0.s: New test.
2741 * testsuite/gas/elf/dwarf-5-file0.d: New test driver.
2742 * testsuite/gas/elf/elf.exp: Run the new test.
2745 * config/tc-ia64.h (DWARF2_VERISION): Fix typo.
2746 * doc/as.texi: Fix another typo.
2748 2020-03-06 Nick Clifton <nickc@redhat.com>
2751 * as.c (dwarf_level): Define.
2752 (show_usage): Add --gdwarf-3, --gdwarf-4 and --gdwarf-5.
2753 (parse_args): Add support for the new options.
2754 as.h (dwarf_level): Prototype.
2755 * dwarf2dbg.c (DWARF2_VERSION): Use dwarf_level as default version
2757 * config/tc-ia64.h (DWARF2_VERISION): Update definition.
2758 (DWARF2_LINE_VERSION): Remove definition.
2759 * doc/as.texi: Document the new options.
2761 2020-03-06 Nick Clifton <nickc@redhat.com>
2764 * as.c (main): Allow matching input and outputs when they are
2767 2020-03-06 Jan Beulich <jbeulich@suse.com>
2769 * config/tc-i386.c (match_mem_size): Generalize broadcast special
2771 (check_VecOperands): Zap xmmword/ymmword/zmmword when more than
2772 one of byte/word/dword/qword is set alongside a SIMD register in
2773 a template's operand.
2775 2020-03-06 Jan Beulich <jbeulich@suse.com>
2777 * config/tc-i386.c (match_template): Extend code in logic
2778 rejecting certain suffixes in certain modes to also cover mask
2779 register use and VecSIB. Drop special casing of broadcast. Skip
2780 immediates in the check.
2782 2020-03-06 Jan Beulich <jbeulich@suse.com>
2784 * config/tc-i386.c (match_template): Fold duplicate code in
2785 logic rejecting certain suffixes in certain modes. Drop
2788 2020-03-06 Jan Beulich <jbeulich@suse.com>
2790 * config/tc-i386.c (process_suffix): Exlucde !vexw insns
2791 alongside !norex64 ones.
2792 * testsuite/gas/i386/x86-64-avx512bw.s: Test VPEXTR* and VPINSR*
2793 with both 32- and 64-bit GPR operands.
2794 * testsuite/gas/i386/x86-64-avx512f.s: Test VEXTRACTPS with both
2795 32- and 64-bit GPR operands.
2796 * testsuite/gas/i386/x86-64-avx512bw-intel.d,
2797 testsuite/gas/i386/x86-64-avx512bw.d,
2798 testsuite/gas/i386/x86-64-avx512f-intel.d,
2799 testsuite/gas/i386/x86-64-avx512f.d: Adjust expectations.
2801 2020-03-06 Jan Beulich <jbeulich@suse.com>
2803 * config/tc-i386.c (md_assemble): Drop use of rex64.
2804 (process_suffix): For REX.W for 64-bit CRC32.
2806 2020-03-06 Jan Beulich <jbeulich@suse.com>
2808 * config/tc-i386.c (i386_addressing_mode): For 32-bit
2809 addressing for MPX insns without base/index.
2810 * testsuite/gas/i386/mpx-16bit.s,
2811 * testsuite/gas/i386/mpx-16bit.d: New.
2812 * testsuite/gas/i386/i386.exp: Run new test.
2814 2020-03-06 Jan Beulich <jbeulich@suse.com>
2816 * testsuite/gas/i386/adx.s, testsuite/gas/i386/cet.s,
2817 testsuite/gas/i386/ept.s, testsuite/gas/i386/fsgs.s,
2818 testsuite/gas/i386/invpcid.s, testsuite/gas/i386/movdir.s,
2819 testsuite/gas/i386/ptwrite.s, testsuite/gas/i386/vmx.s,
2820 * testsuite/gas/i386/code16.s: Add CR, DR, and TR access cases
2821 as well as a BSWAP one.
2822 * testsuite/gas/i386/rdpid.s: Add 16-bit case.
2823 * testsuite/gas/i386/sse2-16bit.s: Cover more insns.
2824 * testsuite/gas/i386/adx-intel.d, testsuite/gas/i386/adx.d,
2825 testsuite/gas/i386/cet-intel.d, testsuite/gas/i386/cet.d,
2826 testsuite/gas/i386/code16.d, testsuite/gas/i386/ept-intel.d,
2827 testsuite/gas/i386/ept.d, testsuite/gas/i386/fsgs-intel.d,
2828 testsuite/gas/i386/fsgs.d, testsuite/gas/i386/invpcid-intel.d,
2829 testsuite/gas/i386/invpcid.d, testsuite/gas/i386/movdir-intel.d,
2830 testsuite/gas/i386/movdir.d, testsuite/gas/i386/ptwrite-intel.d,
2831 testsuite/gas/i386/ptwrite.d, testsuite/gas/i386/rdpid-intel.d,
2832 testsuite/gas/i386/rdpid.d, testsuite/gas/i386/sse2-16bit.d,
2833 testsuite/gas/i386/vmx.d: Adjust expectations.
2835 2020-03-06 Jan Beulich <jbeulich@suse.com>
2837 * config/tc-i386.c (md_assemble): Also exclude tpause and umwait
2838 from having their operands swapped.
2839 * testsuite/gas/i386/waitpkg.s,
2840 testsuite/gas/i386/x86-64-waitpkg.s: Add tpause and umwait
2841 3-operand cases as well as testing of 16-bit code generation.
2842 * testsuite/gas/i386/waitpkg.d,
2843 testsuite/gas/i386/waitpkg-intel.d,
2844 testsuite/gas/i386/x86-64-waitpkg.d,
2845 testsuite/gas/i386/x86-64-waitpkg-intel.d: Adjust expectations.
2847 2020-03-04 Nelson Chu <nelson.chu@sifive.com>
2849 * config/tc-riscv.c (percent_op_utype): Support the modifier
2851 * doc/c-riscv.texi: Add documentation.
2852 * testsuite/gas/riscv/no-relax-reloc.d: Add test case for the new
2853 modifier %got_pcrel_hi.
2854 * testsuite/gas/riscv/no-relax-reloc.s: Likewise.
2855 * testsuite/gas/riscv/relax-reloc.d: Likewise.
2856 * testsuite/gas/riscv/relax-reloc.s: Likewise.
2858 * doc/c-riscv.texi (relocation modifiers): Add documentation.
2859 (RISC-V-Formats): Update the section name from "Instruction Formats"
2860 to "RISC-V Instruction Formats".
2862 2020-03-04 Alexandre Oliva <oliva@adacore.com>
2864 * config/tc-arm.c (md_apply_fix): Warn if a PC-relative load is
2865 detected in a section which does not have at least 4 byte
2867 * testsuite/gas/arm/armv8-ar-it-bad.s: Add alignment directive.
2868 * testsuite/gas/arm/ldr-t.s: Likewise.
2869 * testsuite/gas/arm/sp-pc-usage-t.s: Likewise.
2870 * testsuite/gas/arm/sp-pc-usage-t.d: Finish test at end of
2871 disassembly, ignoring any NOPs that may have been inserted because
2872 of section alignment.
2873 * testsuite/gas/arm/ldr-t.d: Likewise.
2875 2020-03-04 Jan Beulich <jbeulich@suse.com>
2877 * config/tc-i386.c (cpu_arch): Add .sev_es entry.
2878 * doc/c-i386.texi: Mention sev_es.
2879 * testsuite/gas/i386/arch-13.s: Add SEV-ES case.
2880 * testsuite/gas/i386/arch-13.d: Extend -march=. Adjust
2882 * testsuite/gas/i386/arch-13-znver1.d,
2883 testsuite/gas/i386/arch-13-znver2.d: Extend -march=.
2885 2020-03-03 H.J. Lu <hongjiu.lu@intel.com>
2887 * config/tc-i386.c (match_template): Replace ignoresize and
2888 defaultsize with mnemonicsize.
2889 (process_suffix): Likewise.
2891 2020-03-03 Sergey Belyashov <sergey.belyashov@gmail.com>
2894 * config/tc-z80.c (emit_ld_rr_m): Fix invalid compilation of
2895 instruction LD IY,(HL).
2896 * testsuite/gas/z80/ez80_adl_all.d: Update expected disassembly.
2897 * testsuite/gas/z80/ez80_adl_all.s: Add tests of the instruction.
2898 * testsuite/gas/z80/ez80_z80_all.d: Update expected disassembly.
2899 * testsuite/gas/z80/ez80_z80_all.s: Add tests of the instruction.
2901 2020-03-03 H.J. Lu <hongjiu.lu@intel.com>
2904 * testsuite/gas/i386/i386.exp: Run x86-64-default-suffix and
2905 x86-64-default-suffix-avx.
2906 * testsuite/gas/i386/noreg64.s: Remove cvtsi2sd, cvtsi2ss,
2907 vcvtsi2sd, vcvtsi2ss, vcvtusi2sd and vcvtusi2ss entries.
2908 * testsuite/gas/i386/noreg64.d: Updated.
2909 * testsuite/gas/i386/noreg64.l: Likewise.
2910 * testsuite/gas/i386/x86-64-default-suffix-avx.d: New file.
2911 * testsuite/gas/i386/x86-64-default-suffix.d: Likewise.
2912 * testsuite/gas/i386/x86-64-default-suffix.s: Likewise.
2914 2020-03-03 Sergey Belyashov <sergey.belyashov@gmail.com>
2917 * config/tc-z80.c (contains_register): Prevent an illegal memory
2918 access when checking an expression for a register name.
2920 2020-03-03 Alan Modra <amodra@gmail.com>
2922 * config/obj-coff.h: Remove vestiges of coff-m68k and pe-mips
2925 2020-03-02 Alan Modra <amodra@gmail.com>
2927 * config/tc-m32r.c (md_begin): Set SEC_SMALL_DATA on .scommon section.
2928 * config/tc-mips.c (s_change_sec): Set SEC_SMALL_DATA for .sdata
2930 * config/tc-score.c: Delete !BFD_ASSEMBLER code throughout.
2931 (s3_s_change_sec): Set SEC_SMALL_DATA for .sbss section.
2932 (s3_s_score_lcomm): Likewise.
2933 * config/tc-score7.c: Similarly.
2934 * read.c (bss_alloc): Set SEC_SMALL_DATA for .sbss section.
2936 2020-02-28 YunQiang Su <syq@debian.org>
2939 * config/tc-mips.c (fix_loongson3_llsc): Compare label value
2940 to handle multi-labels.
2941 (has_label_name): New.
2943 2020-02-26 Matthew Malcomson <matthew.malcomson@arm.com>
2945 * config/tc-arm.c (enum pred_instruction_type): Remove
2946 NEUTRAL_IT_NO_VPT_INSN predication type.
2947 (cxn_handle_predication): Modify to require condition suffixes.
2948 (handle_pred_state): Remove NEUTRAL_IT_NO_VPT_INSN cases.
2949 * testsuite/gas/arm/cde-scalar.s: Update test.
2950 * testsuite/gas/arm/cde-warnings.l: Update test.
2951 * testsuite/gas/arm/cde-warnings.s: Update test.
2953 2020-02-26 Alan Modra <amodra@gmail.com>
2955 * config/tc-arm.c (reg_expected_msgs[REG_TYPE_RNB]): Don't use
2956 N_() on empty string.
2958 2020-02-26 Alan Modra <amodra@gmail.com>
2960 * read.c (read_a_source_file): Call strncpy with length one
2961 less than size of original_case_string.
2963 2020-02-26 Alan Modra <amodra@gmail.com>
2965 * config/obj-elf.c: Indent labels correctly.
2966 * config/obj-macho.c: Likewise.
2967 * config/tc-aarch64.c: Likewise.
2968 * config/tc-alpha.c: Likewise.
2969 * config/tc-arm.c: Likewise.
2970 * config/tc-cr16.c: Likewise.
2971 * config/tc-crx.c: Likewise.
2972 * config/tc-frv.c: Likewise.
2973 * config/tc-i386-intel.c: Likewise.
2974 * config/tc-i386.c: Likewise.
2975 * config/tc-ia64.c: Likewise.
2976 * config/tc-mn10200.c: Likewise.
2977 * config/tc-mn10300.c: Likewise.
2978 * config/tc-nds32.c: Likewise.
2979 * config/tc-riscv.c: Likewise.
2980 * config/tc-s12z.c: Likewise.
2981 * config/tc-xtensa.c: Likewise.
2982 * config/tc-z80.c: Likewise.
2984 * symbols.c: Likewise.
2985 * write.c: Likewise.
2987 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
2989 * config/tc-riscv.c (riscv_ip): New boolean insn_with_csr to indicate
2990 we are assembling instruction with CSR. Call riscv_csr_read_only_check
2991 after parsing all arguments.
2992 (enum csr_insn_type): New enum is used to classify the CSR instruction.
2993 (riscv_csr_insn_type, riscv_csr_read_only_check): New functions. These
2994 are used to check if we write a read-only CSR by the CSR instruction.
2995 * testsuite/gas/riscv/priv-reg-fail-read-only-01.s: New testcase. Test
2996 all CSR for the read-only CSR checking.
2997 * testsuite/gas/riscv/priv-reg-fail-read-only-01.d: Likewise.
2998 * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
2999 * testsuite/gas/riscv/priv-reg-fail-read-only-02.s: New testcase. Test
3000 all CSR instructions for the read-only CSR checking.
3001 * testsuite/gas/riscv/priv-reg-fail-read-only-02.d: Likewise.
3002 * testsuite/gas/riscv/priv-reg-fail-read-only-02.l: Likewise.
3004 * config/tc-riscv.c (struct riscv_set_options): New field csr_check.
3005 (riscv_opts): Initialize it.
3006 (reg_lookup_internal): Check the `riscv_opts.csr_check`
3007 before doing the CSR checking.
3008 (enum options): Add OPTION_CSR_CHECK and OPTION_NO_CSR_CHECK.
3009 (md_longopts): Add mcsr-check and mno-csr-check.
3010 (md_parse_option): Handle new enum option values.
3011 (s_riscv_option): Handle new long options.
3012 * doc/c-riscv.texi: Add description for the new .option and assembler
3014 * testsuite/gas/riscv/priv-reg-fail-fext.d: Add `-mcsr-check` to enable
3016 * testsuite/gas/riscv/priv-reg-fail-rv32-only.d: Likewise.
3018 * config/tc-riscv.c (csr_extra_hash): New.
3019 (enum riscv_csr_class): New enum. Used to decide
3020 whether or not this CSR is legal in the current ISA string.
3021 (struct riscv_csr_extra): New structure to hold all extra information
3023 (riscv_init_csr_hashes): New. According to the DECLARE_CSR and
3024 DECLARE_CSR_ALIAS, insert CSR extra information into csr_extra_hash.
3025 Call hash_reg_name to insert CSR address into reg_names_hash.
3026 (reg_csr_lookup_internal, riscv_csr_class_check): New functions.
3027 Decide whether the CSR is valid according to the csr_extra_hash.
3028 (reg_lookup_internal): Call reg_csr_lookup_internal for CSRs.
3029 (init_opcode_hash): Update 'if (hash_error != NULL)' as hash_error is
3030 not a boolean. This is same as riscv_init_csr_hash, so keep the
3032 (md_begin): Call riscv_init_csr_hashes for each DECLARE_CSR.
3033 * testsuite/gas/riscv/csr-dw-regnums.d: Add -march=rv32if option.
3034 * testsuite/gas/riscv/priv-reg.d: Add f-ext by -march option.
3035 * testsuite/gas/riscv/priv-reg-fail-fext.d: New testcase. The source
3036 file is `priv-reg.s`, and the ISA is rv32i without f-ext, so the
3037 f-ext CSR are not allowed.
3038 * testsuite/gas/riscv/priv-reg-fail-fext.l: Likewise.
3039 * testsuite/gas/riscv/priv-reg-fail-rv32-only.d: New testcase. The
3040 source file is `priv-reg.s`, and the ISA is rv64if, so the
3041 rv32-only CSR are not allowed.
3042 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
3044 2020-02-21 Alan Modra <amodra@gmail.com>
3046 * config/tc-pdp11.c (md_apply_fix): Handle BFD_RELOC_32.
3047 (tc_gen_reloc): Only give a BAD_CASE assertion on pcrel relocs.
3049 2020-02-21 Alan Modra <amodra@gmail.com>
3052 * config/obj-aout.c (obj_aout_frob_file_before_fix): Don't loop
3053 on section size adjustment, instead perform another write if
3054 exec header size is larger than section size.
3056 2020-02-19 Nelson Chu <nelson.chu@sifive.com>
3058 * doc/c-riscv.texi: Add the doc entries for -march-attr/
3059 -mno-arch-attr command line options.
3061 2020-02-19 Nelson Chu <nelson.chu@sifive.com>
3063 * testsuite/gas/riscv/c-add-addi.d: New testcase.
3064 * testsuite/gas/riscv/c-add-addi.s: Likewise.
3066 2020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
3069 * config/tc-z80.c (md_parse_option): Do not use an underscore
3070 prefix for local labels in SDCC compatability mode.
3071 (z80_start_line_hook): Remove SDCC dollar label support.
3072 * testsuite/gas/z80/sdcc.d: Update expected disassembly.
3073 * testsuite/gas/z80/sdcc.s: Likewise.
3075 2020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
3078 * config/tc-z80.c: Add -march option.
3079 * doc/as.texi: Update Z80 documentation.
3080 * doc/c-z80.texi: Likewise.
3081 * testsuite/gas/z80/ez80_adl_all.d: Update command line.
3082 * testsuite/gas/z80/ez80_adl_suf.d: Likewise.
3083 * testsuite/gas/z80/ez80_pref_dis.d: Likewise.
3084 * testsuite/gas/z80/ez80_z80_all.d: Likewise.
3085 * testsuite/gas/z80/ez80_z80_suf.d: Likewise.
3086 * testsuite/gas/z80/gbz80_all.d: Likewise.
3087 * testsuite/gas/z80/r800_extra.d: Likewise.
3088 * testsuite/gas/z80/r800_ii8.d: Likewise.
3089 * testsuite/gas/z80/r800_z80_doc.d: Likewise.
3090 * testsuite/gas/z80/sdcc.d: Likewise.
3091 * testsuite/gas/z80/z180.d: Likewise.
3092 * testsuite/gas/z80/z180_z80_doc.d: Likewise.
3093 * testsuite/gas/z80/z80_doc.d: Likewise.
3094 * testsuite/gas/z80/z80_ii8.d: Likewise.
3095 * testsuite/gas/z80/z80_in_f_c.d: Likewise.
3096 * testsuite/gas/z80/z80_op_ii_ld.d: Likewise.
3097 * testsuite/gas/z80/z80_out_c_0.d: Likewise.
3098 * testsuite/gas/z80/z80_sli.d: Likewise.
3099 * testsuite/gas/z80/z80n_all.d: Likewise.
3100 * testsuite/gas/z80/z80n_reloc.d: Likewise.
3102 2020-02-19 H.J. Lu <hongjiu.lu@intel.com>
3104 * config/tc-i386.c (output_insn): Mark cvtpi2ps and cvtpi2pd
3105 with GNU_PROPERTY_X86_FEATURE_2_MMX.
3106 * testsuite/gas/i386/i386.exp: Run property-3 and
3108 * testsuite/gas/i386/property-3.d: New file.
3109 * testsuite/gas/i386/property-3.s: Likewise.
3110 * testsuite/gas/i386/x86-64-property-3.d: Likewise.
3112 2020-02-17 H.J. Lu <hongjiu.lu@intel.com>
3114 * config/tc-i386.c (cpu_arch): Add .popcnt.
3115 * doc/c-i386.texi: Remove abm and .abm. Add popcnt and .popcnt.
3116 Add a tab before @samp{.sse4a}.
3118 2020-02-17 Jan Beulich <jbeulich@suse.com>
3120 * config/tc-i386.c (process_suffix): Don't try to guess a suffix
3121 for AddrPrefixOpReg templates. Combine the two pieces of
3122 addrprefixopreg handling. Reject 16-bit address reg in 64-bit
3125 2020-02-17 Jan Beulich <jbeulich@suse.com>
3128 * config/tc-i386.c (md_assemble): Also suppress operand
3129 swapping for MONITOR{,X} and MWAIT{,X}.
3130 * testsuite/gas/i386/sse3.s, testsuite/gas/i386/x86-64-sse3.s:
3131 Add Intel syntax monitor/mwait tests.
3132 * testsuite/gas/i386/sse3.d, testsuite/gas/i386/x86-64-sse3.d:
3133 Adjust expectations.
3134 *testsuite/gas/i386/sse3-intel.d,
3135 testsuite/gas/i386/x86-64-sse3-intel.d: New.
3136 * testsuite/gas/i386/i386.exp: Run new tests.
3138 2020-02-17 Jan Beulich <jbeulich@suse.com>
3141 * config/tc-i386.c (process_suffix): Re-work Intel-syntax
3142 [XYZ]MMWord memory operand ambiguity recognition logic (largely
3144 * testsuite/gas/i386/avx512dq-inval.s: Add vcvtqq2ps/vcvtuqq2ps
3146 * testsuite/gas/i386/inval-avx512f.s: Also test vcvtneps2bf16.
3147 * testsuite/gas/i386/avx512dq-inval.l,
3148 testsuite/gas/i386/inval-avx.l,
3149 testsuite/gas/i386/inval-avx512f.l: Adjust expectations.
3150 * testsuite/gas/i386/avx512vl-ambig.s,
3151 testsuite/gas/i386/avx512vl-ambig.l: New.
3152 * testsuite/gas/i386/i386.exp: Run new test.
3154 2020-02-16 H.J. Lu <hongjiu.lu@intel.com>
3156 * config/tc-i386.c (cpu_arch): Add .sse4a and nosse4a. Restore
3158 * doc/c-i386.texi: Document sse4a and nosse4a.
3160 2020-02-14 H.J. Lu <hongjiu.lu@intel.com>
3162 * doc/c-i386.texi: Remove the old movsx and movzx documentation
3165 2020-02-14 Jan Beulich <jbeulich@suse.com>
3168 * config/tc-i386.c (md_assemble): Move movsx/movzx special
3170 (process_suffix): ... here. Consider just the first operand
3172 (check_long_reg): Drop opcode 0x63 special case again.
3173 * testsuite/gas/i386/i386.s, testsuite/gas/i386/iamcu-1.s,
3174 testsuite/gas/i386/ilp32/x86-64.s, testsuite/gas/i386/x86_64.s:
3175 Move ambiguous operand size tests ...
3176 * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
3177 testsuite/gas/i386/noreg64.s: ... here.
3178 * testsuite/gas/i386/i386.d, testsuite/gas/i386/i386-intel.d
3179 testsuite/gas/i386/iamcu-1.d, testsuite/gas/i386/ilp32/x86-64.d,
3180 testsuite/gas/i386/k1om.d, testsuite/gas/i386/l1om.d,
3181 testsuite/gas/i386/movx16.l, testsuite/gas/i386/movx32.l,
3182 testsuite/gas/i386/movx64.l, testsuite/gas/i386/noreg16.d,
3183 testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg64.d,
3184 testsuite/gas/i386/x86-64-movsxd.d,
3185 testsuite/gas/i386/x86-64-movsxd-intel.d,
3186 testsuite/gas/i386/x86_64.d, testsuite/gas/i386/x86_64-intel.d:
3187 Adjust expectations.
3188 * testsuite/gas/i386/movx16.s, testsuite/gas/i386/movx16.l,
3189 testsuite/gas/i386/movx32.s, testsuite/gas/i386/movx32.l,
3190 testsuite/gas/i386/movx64.s, testsuite/gas/i386/movx64.l: New.
3191 * testsuite/gas/i386/i386.exp: Run new tests.
3193 2020-02-14 Jan Beulich <jbeulich@suse.com>
3195 * config/tc-i386.c (process_operands): Also skip segment
3196 override prefix emission if it matches an already present one.
3197 * testsuite/gas/i386/prefix32.s: Add double segment override
3199 * testsuite/gas/i386/prefix32.l: Adjust expectations.
3201 2020-02-14 Jan Beulich <jbeulich@suse.com>
3203 * config/tc-i386.c (process_operands): Drop ineffectual segment
3204 overrides when optimizing.
3205 * testsuite/gas/i386/lea-optimize.d: New.
3206 * testsuite/gas/i386/i386.exp: Run new test.
3208 2020-02-14 Jan Beulich <jbeulich@suse.com>
3210 * config/tc-i386.c (process_operands): Also check insn prefix
3211 for ineffectual segment override warning. Don't cover possible
3212 VEX/EVEX encoded insns there.
3213 * testsuite/gas/i386/lea.s, testsuite/gas/i386/lea.d,
3214 testsuite/gas/i386/lea.e: New.
3215 * testsuite/gas/i386/i386.exp: Run new test.
3217 2020-02-14 H.J. Lu <hongjiu.lu@intel.com>
3220 * doc/c-i386.texi: Document movsx, movsxd and movzx for AT&T
3223 2020-02-13 Fangrui Song <maskray@google.com>
3224 H.J. Lu <hongjiu.lu@intel.com>
3227 * config/tc-i386.c (tc_i386_fix_adjustable): Don't check
3228 BFD_RELOC_386_PLT32 nor BFD_RELOC_X86_64_PLT32.
3229 * testsuite/gas/i386/i386.exp: Run relax-5 and x86-64-relax-4.
3230 * testsuite/gas/i386/relax-5.d: New file.
3231 * testsuite/gas/i386/relax-5.s: Likewise.
3232 * testsuite/gas/i386/x86-64-relax-4.d: Likewise.
3233 * testsuite/gas/i386/x86-64-relax-4.s: Likewise.
3235 2020-02-13 Jan Beulich <jbeulich@suse.com>
3237 * config/tc-i386.c (cpu_noarch): Use CPU_ANY_SSE4_FLAGS in
3240 2020-02-12 Jan Beulich <jbeulich@suse.com>
3242 * config/tc-i386.c (avx512): New (at file scope), moved from
3243 (check_VecOperands): ... here.
3244 (process_suffix): Add [XYZ]MMword operand size handling.
3245 * testsuite/gas/i386/avx512dq-inval.s: Add VFPCLASS tests.
3246 * testsuite/gas/i386/noavx512-2.s: Add Intel syntax VFPCLASS
3248 * testsuite/gas/i386/avx512dq-inval.l,
3249 testsuite/gas/i386/noavx512-2.l: Adjust expectations.
3251 2020-02-12 Jan Beulich <jbeulich@suse.com>
3254 * config/tc-i386.c (match_template): Apply AMD64 check to 64-bit
3256 * config/tc-i386-intel.c (i386_intel_operand): Also handle
3257 CALL/JMP in O_tbyte_ptr case.
3258 * doc/c-i386.texi: Mention far call and full pointer load ISA
3260 * testsuite/gas/i386/x86-64-branch-3.s,
3261 testsuite/gas/i386/x86-64-intel64.s: Add 64-bit far call cases.
3262 * testsuite/gas/i386/x86-64-branch-3.d,
3263 testsuite/gas/i386/x86-64-intel64.d: Adjust expectations.
3264 * testsuite/gas/i386/x86-64-branch-5.l,
3265 testsuite/gas/i386/x86-64-branch-5.s: New.
3266 * testsuite/gas/i386/i386.exp: Run new test.
3268 2020-02-12 Jan Beulich <jbeulich@suse.com>
3271 * config/tc-i386.c (REGISTER_WARNINGS): Delete.
3272 (check_byte_reg): Skip only source operand of CRC32. Drop Non-
3273 64-bit-only warning.
3274 (check_word_reg): Consistently error on mismatching register
3276 * testsuite/gas/i386/general.s: Replace dword GPR with word one
3277 for movw. Replace suffix / GPR for orb.
3278 * testsuite/gas/i386/inval.s: Add tests for movw with dword and
3279 byte GPRs as well as ones for inb/outb with a word accumulator.
3280 * testsuite/gas/i386/general.l, testsuite/gas/i386/intelbad.l,
3281 testsuite/gas/i386/inval.l: Adjust expectations.
3283 2020-02-12 Jan Beulich <jbeulich@suse.com>
3285 * config/tc-i386.c (operand_type_register_match): Also fall
3286 through initial two if()-s when the template allows for a GPR
3287 operand. Adjust comment.
3289 2020-02-11 Jan Beulich <jbeulich@suse.com>
3291 (struct _i386_insn): New field "short_form".
3292 (optimize_encoding): Drop setting of shortform field.
3293 (process_suffix): Set i.short_form. Replace shortform use.
3294 (process_operands): Replace shortform use.
3296 2020-02-11 Matthew Malcomson <matthew.malcomson@arm.com>
3298 * config/tc-arm.c (vcx_handle_register_arguments): Remove `for`
3299 loop initial declaration.
3301 2020-02-10 Matthew Malcomson <matthew.malcomson@arm.com>
3303 * config/tc-arm.c (NEON_MAX_TYPE_ELS): Increment to account for
3304 instructions that can have 5 arguments.
3305 (enum operand_parse_code): Add new operands.
3306 (parse_operands): Account for new operands.
3308 (enum neon_shape_el): Introduce P suffixes for coprocessor.
3309 (neon_select_shape): Account for P suffix.
3310 (LOW1): Move macro to global position.
3311 (HI4): Move macro to global position.
3312 (vcx_assign_vec_d): New.
3313 (vcx_assign_vec_m): New.
3314 (vcx_assign_vec_n): New.
3315 (enum vcx_reg_type): New.
3316 (vcx_get_reg_type): New.
3317 (vcx_size_pos): New.
3319 (vcx_handle_shape): New.
3320 (vcx_ensure_register_in_range): New.
3321 (vcx_handle_register_arguments): New.
3322 (vcx_handle_insn_block): New.
3323 (vcx_handle_common_checks): New.
3327 * testsuite/gas/arm/cde-missing-fp.d: New test.
3328 * testsuite/gas/arm/cde-missing-fp.l: New test.
3329 * testsuite/gas/arm/cde-missing-mve.d: New test.
3330 * testsuite/gas/arm/cde-missing-mve.l: New test.
3331 * testsuite/gas/arm/cde-mve-or-neon.d: New test.
3332 * testsuite/gas/arm/cde-mve-or-neon.s: New test.
3333 * testsuite/gas/arm/cde-mve.s: New test.
3334 * testsuite/gas/arm/cde-warnings.l:
3335 * testsuite/gas/arm/cde-warnings.s:
3336 * testsuite/gas/arm/cde.d:
3337 * testsuite/gas/arm/cde.s:
3339 2020-02-10 Stam Markianos-Wright <stam.markianos-wright@arm.com>
3340 Matthew Malcomson <matthew.malcomson@arm.com>
3342 * config/tc-arm.c (arm_ext_cde*): New feature sets for each
3343 CDE coprocessor that can be enabled.
3344 (enum pred_instruction_type): New pred type.
3345 (BAD_NO_VPT): New error message.
3346 (BAD_CDE): New error message.
3347 (BAD_CDE_COPROC): New error message.
3348 (enum operand_parse_code): Add new immediate operands.
3349 (parse_operands): Account for new immediate operands.
3350 (check_cde_operand): New.
3351 (cde_coproc_enabled): New.
3352 (cde_coproc_pos): New.
3353 (cde_handle_coproc): New.
3354 (cxn_handle_predication): New.
3355 (do_custom_instruction_1): New.
3356 (do_custom_instruction_2): New.
3357 (do_custom_instruction_3): New.
3370 (handle_pred_state): Define new IT block behaviour.
3371 (insns): Add newn CX*{,d}{,a} instructions.
3372 (CDE_EXTENSIONS,armv8m_main_ext_table,armv8_1m_main_ext_table):
3373 Define new cdecp extension strings.
3374 * doc/c-arm.texi: Document new cdecp extension arguments.
3375 * testsuite/gas/arm/cde-scalar.d: New test.
3376 * testsuite/gas/arm/cde-scalar.s: New test.
3377 * testsuite/gas/arm/cde-warnings.d: New test.
3378 * testsuite/gas/arm/cde-warnings.l: New test.
3379 * testsuite/gas/arm/cde-warnings.s: New test.
3380 * testsuite/gas/arm/cde.d: New test.
3381 * testsuite/gas/arm/cde.s: New test.
3383 2020-02-10 H.J. Lu <hongjiu.lu@intel.com>
3386 * config/tc-i386.c (intel64): Renamed to ...
3388 (match_template): Accept Intel64 only instruction by default.
3389 (i386_displacement): Updated.
3390 (md_parse_option): Updated.
3391 * c-i386.texi: Update -mamd64/-mintel64 documentation.
3392 * testsuite/gas/i386/i386.exp: Run x86-64-sysenter. Pass
3393 -mamd64 to x86-64-sysenter-amd.
3394 * testsuite/gas/i386/x86-64-sysenter.d: New file.
3396 2020-02-10 Alan Modra <amodra@gmail.com>
3398 * config/obj-elf.c (obj_elf_change_section): Error for section
3399 type, attr or entsize changes in assembly.
3400 * testsuite/gas/elf/elf.exp: Pass -Z to gas for section5 test.
3401 * testsuite/gas/elf/section5.l: Update.
3403 2020-02-10 Alan Modra <amodra@gmail.com>
3405 * output-file.c (output_file_close): Do a normal close when
3406 flag_always_generate_output.
3407 * write.c (write_object_file): Don't stop output when
3408 flag_always_generate_output.
3410 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
3413 * config/tc-z80.c: Add -gbz80 command line option to generate code
3414 for the GameBoy Z80. Add support for generating DWARF.
3415 * config/tc-z80.h: Add support for DWARF debug information
3417 * doc/c-z80.texi: Document new command line option.
3418 * testsuite/gas/z80/gbz80_all.d: New file.
3419 * testsuite/gas/z80/gbz80_all.s: New file.
3420 * testsuite/gas/z80/z80.exp: Run the new tests.
3421 * testsuite/gas/z80/z80n_all.d: New file.
3422 * testsuite/gas/z80/z80n_all.s: New file.
3423 * testsuite/gas/z80/z80n_reloc.d: New file.
3425 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
3428 * config/obj-elf.c (get_section): Also check
3429 linked_to_symbol_name.
3430 (obj_elf_change_section): Also set map_head.linked_to_symbol_name.
3431 (obj_elf_parse_section_letters): Handle the 'o' flag.
3432 (build_group_lists): Renamed to ...
3433 (build_additional_section_info): This. Set elf_linked_to_section
3434 from map_head.linked_to_symbol_name.
3435 (elf_adjust_symtab): Updated.
3436 * config/obj-elf.h (elf_section_match): Add linked_to_symbol_name.
3437 * doc/as.texi: Document the 'o' flag.
3438 * testsuite/gas/elf/elf.exp: Run PR gas/25381 tests.
3439 * testsuite/gas/elf/section18.d: New file.
3440 * testsuite/gas/elf/section18.s: Likewise.
3441 * testsuite/gas/elf/section19.d: Likewise.
3442 * testsuite/gas/elf/section19.s: Likewise.
3443 * testsuite/gas/elf/section20.d: Likewise.
3444 * testsuite/gas/elf/section20.s: Likewise.
3445 * testsuite/gas/elf/section21.d: Likewise.
3446 * testsuite/gas/elf/section21.l: Likewise.
3447 * testsuite/gas/elf/section21.s: Likewise.
3449 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
3451 * NEWS: Mention x86 assembler options to align branches for
3454 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
3456 * testsuite/gas/i386/i386.exp: Run unique and x86-64-unique
3457 only for ELF targets.
3458 * testsuite/gas/i386/unique.d: Don't xfail.
3459 * testsuite/gas/i386/x86-64-unique.d: Likewise.
3461 2020-02-06 Alan Modra <amodra@gmail.com>
3463 * testsuite/gas/i386/unique.d: xfail for non-elf targets.
3464 * testsuite/gas/i386/x86-64-unique.d: Likewise.
3466 2020-02-06 Alan Modra <amodra@gmail.com>
3468 * testsuite/gas/elf/section12a.d: Use supports_gnu_osabi in
3469 xfail, and rename test.
3470 * testsuite/gas/elf/section12b.d: Likewise.
3471 * testsuite/gas/elf/section16a.d: Likewise.
3472 * testsuite/gas/elf/section16b.d: Likewise.
3474 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
3477 * config/obj-elf.c (section_match): Removed.
3478 (get_section): Also match SEC_ASSEMBLER_SECTION_ID and
3480 (obj_elf_change_section): Replace info and group_name arguments
3481 with match_p. Also update the section ID and flags from match_p.
3482 (obj_elf_section): Handle "unique,N". Update call to
3483 obj_elf_change_section.
3484 * config/obj-elf.h (elf_section_match): New.
3485 (obj_elf_change_section): Updated.
3486 * config/tc-arm.c (start_unwind_section): Update call to
3487 obj_elf_change_section.
3488 * config/tc-ia64.c (obj_elf_vms_common): Likewise.
3489 * config/tc-microblaze.c (microblaze_s_data): Likewise.
3490 (microblaze_s_sdata): Likewise.
3491 (microblaze_s_rdata): Likewise.
3492 (microblaze_s_bss): Likewise.
3493 * config/tc-mips.c (s_change_section): Likewise.
3494 * config/tc-msp430.c (msp430_profiler): Likewise.
3495 * config/tc-rx.c (parse_rx_section): Likewise.
3496 * config/tc-tic6x.c (tic6x_start_unwind_section): Likewise.
3497 * doc/as.texi: Document "unique,N" in .section directive.
3498 * testsuite/gas/elf/elf.exp: Run "unique,N" tests.
3499 * testsuite/gas/elf/section15.d: New file.
3500 * testsuite/gas/elf/section15.s: Likewise.
3501 * testsuite/gas/elf/section16.s: Likewise.
3502 * testsuite/gas/elf/section16a.d: Likewise.
3503 * testsuite/gas/elf/section16b.d: Likewise.
3504 * testsuite/gas/elf/section17.d: Likewise.
3505 * testsuite/gas/elf/section17.l: Likewise.
3506 * testsuite/gas/elf/section17.s: Likewise.
3507 * testsuite/gas/i386/unique.d: Likewise.
3508 * testsuite/gas/i386/unique.s: Likewise.
3509 * testsuite/gas/i386/x86-64-unique.d: Likewise.
3510 * testsuite/gas/i386/i386.exp: Run unique and x86-64-unique.
3512 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
3514 * testsuite/gas/elf/section13.s: Replace @nobits with %nobits.
3516 2020-02-01 Anthony Green <green@moxielogic.com>
3518 * config/tc-moxie.c (md_begin): Don't force big-endian mode.
3520 2020-01-31 Sandra Loosemore <sandra@codesourcery.com>
3522 * config/tc-nios2.c (nios2_cons): Handle %gotoff as well as
3525 2020-01-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
3528 * config/tc-arm.c (armv8m_main_ext_table): Refactored +dsp adding.
3529 (armv8_1m_main_ext_table): Refactored +dsp adding and enabled dsp for
3531 * testsuite/gas/arm/mve_dsp.d: New test.
3533 2020-01-31 Nick Clifton <nickc@redhat.com>
3535 * config/tc-s390.c (s390_elf_suffix): Return ELF_SUFFIX_NONE
3536 rather than BFD_RELOC_NONE.
3538 2020-01-31 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3540 * config/tc-arm.c (fldmias): Moved inside "THUMB_VARIANT & arm_ext_v6t2"
3541 to support VLDMIA instruction for MVE.
3542 (fldmdbs): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VLDMDB
3543 instruction for MVE.
3544 (fstmias): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VSTMIA
3545 instruction for MVE.
3546 (fstmdbs): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VSTMDB
3547 instruction for MVE.
3548 * testsuite/gas/arm/mve-ldst.d: New test.
3549 * testsuite/gas/arm/mve-ldst.s: Likewise.
3551 2020-01-31 Nick Clifton <nickc@redhat.com>
3553 * po/fr.po: Updated French translation.
3554 * po/ru.po: Updated Russian translation.
3556 2020-01-31 Richard Sandiford <richard.sandiford@arm.com>
3558 * testsuite/gas/aarch64/sve-bfloat-movprfx.s: Use .h rather than
3560 * testsuite/gas/aarch64/sve-bfloat-movprfx.d: Update accordingly.
3561 * testsuite/gas/aarch64/sve-movprfx_28.d,
3562 * testsuite/gas/aarch64/sve-movprfx_28.l,
3563 * testsuite/gas/aarch64/sve-movprfx_28.s: New test.
3565 2020-01-30 Jan Beulich <jbeulich@suse.com>
3567 * config/tc-i386.c (output_disp): Tighten base_opcode check.
3568 * testsuite/gas/i386/got.s: Add LSL, MOVLPS, and BNDCN cases.
3569 * testsuite/gas/i386/got-no-relax.d, testsuite/gas/i386/got.d:
3570 Adjust expectations.
3572 2020-01-30 Jose E. Marchesi <jose.marchesi@oracle.com>
3574 * testsuite/gas/bpf/alu.d: Update expected opcode for `neg'.
3575 * testsuite/gas/bpf/alu-be.d: Likewise.
3576 * testsuite/gas/bpf/alu32.d: Likewise for `neg32'.
3577 * testsuite/gas/bpf/alu32-be.d: Likewise.
3579 2020-01-30 Jan Beulich <jbeulich@suse.com>
3581 * testsuite/gas/i386/x86-64-branch-2.s,
3582 testsuite/gas/i386/x86-64-branch-4.s,
3583 testsuite/gas/i386/x86-64-branch.s: Add RETW cases.
3584 * testsuite/gas/i386/ilp32/x86-64-branch.d,
3585 testsuite/gas/i386/x86-64-branch-2.d,
3586 testsuite/gas/i386/x86-64-branch-4.l,
3587 testsuite/gas/i386/x86-64-branch.d: Adjust expectations.
3589 2020-01-30 Jan Beulich <jbeulich@suse.com>
3591 * config/tc-i386.c (process_suffix): .
3592 testsuite/gas/i386/noreg64.s: Add IRET and LRET cases.
3593 testsuite/gas/i386/x86-64-opcode.s: Add suffix to IRET and LRET.
3595 testsuite/gas/i386/x86-64-suffix.s: Drop IRET case without
3597 testsuite/gas/i386/x86_64.s: Add RETF cases.
3598 * testsuite/gas/i386/k1om.d, testsuite/gas/i386/l1om.d,
3599 testsuite/gas/i386/noreg64.d, testsuite/gas/i386/noreg64.l,
3600 testsuite/gas/i386/x86-64-opcode.d,
3601 testsuite/gas/i386/x86-64-suffix-intel.d,
3602 testsuite/gas/i386/x86-64-suffix.d,
3603 testsuite/gas/i386/x86_64-intel.d
3604 testsuite/gas/i386/x86_64.d: Adjust expectations.
3605 * testsuite/gas/i386/x86-64-suffix.e,
3606 testsuite/gas/i386/x86_64.e: New.
3608 2020-01-30 Jan Beulich <jbeulich@suse.com>
3610 * config/tc-i386.c (process_suffix): Redo and move FLDENV et al
3613 2020-01-27 H.J. Lu <hongjiu.lu@intel.com>
3616 * config/tc-i386.c (check_long_reg): Also convert to QWORD for
3618 * doc/c-i386.texi: Add a node for AMD64 vs. Intel64 ISA
3619 differences. Document movslq and movsxd.
3620 * testsuite/gas/i386/i386.exp: Run PR binutils/25445 tests.
3621 * testsuite/gas/i386/x86-64-movsxd-intel.d: New file.
3622 * testsuite/gas/i386/x86-64-movsxd-intel64-intel.d: Likewise.
3623 * testsuite/gas/i386/x86-64-movsxd-intel64-inval.l: Likewise.
3624 * testsuite/gas/i386/x86-64-movsxd-intel64-inval.s: Likewise.
3625 * testsuite/gas/i386/x86-64-movsxd-intel64.d: Likewise.
3626 * testsuite/gas/i386/x86-64-movsxd-intel64.s: Likewise.
3627 * testsuite/gas/i386/x86-64-movsxd-inval.l: Likewise.
3628 * testsuite/gas/i386/x86-64-movsxd-inval.s: Likewise.
3629 * testsuite/gas/i386/x86-64-movsxd.d: Likewise.
3630 * testsuite/gas/i386/x86-64-movsxd.s: Likewise.
3632 2020-01-27 Alan Modra <amodra@gmail.com>
3634 * testsuite/gas/all/gas.exp: Replace case statements with switch
3636 * testsuite/gas/elf/elf.exp: Likewise.
3637 * testsuite/gas/macros/macros.exp: Likewise.
3638 * testsuite/lib/gas-defs.exp: Likewise.
3640 2020-01-27 Tamar Christina <tamar.christina@arm.com>
3643 * testsuite/gas/aarch64/armv8_4-a.d: Add cfinv.
3644 * testsuite/gas/aarch64/armv8_4-a.s: Likewise.
3646 2020-01-22 Maxim Blinov <maxim.blinov@embecosm.com>
3648 * testsuite/gas/riscv/march-ok-s.d: sx is no longer valid and
3649 s exts must be known, so rename *ok* to *fail*.
3650 * testsuite/gas/riscv/march-ok-sx.d: Likewise.
3651 * testsuite/gas/riscv/march-ok-s-with-version: Likewise.
3652 * testsuite/gas/riscv/march-fail-s.l: Expected error messages for
3654 * testsuite/gas/riscv/march-fail-sx.l: Likewise.
3655 * testsuite/gas/riscv/march-fail-sx-with-version.l: Likewise.
3657 2020-01-22 H.J. Lu <hongjiu.lu@intel.com>
3660 * config/tc-i386.c (check_long_reg): Always disallow double word
3661 suffix in mnemonic with word general register.
3662 * testsuite/gas/i386/general.s: Replace word general register
3663 with double word general register for movl.
3664 * testsuite/gas/i386/inval.s: Add tests for movl with word general
3666 * testsuite/gas/i386/general.l: Updated.
3667 * testsuite/gas/i386/inval.l: Likewise.
3669 2020-01-22 Alan Modra <amodra@gmail.com>
3671 * config/tc-ppc.c (parse_tls_arg): Handle tls arg for
3672 __tls_get_addr_desc and __tls_get_addr_opt.
3674 2020-01-21 Jan Beulich <jbeulich@suse.com>
3676 * testsuite/gas/i386/inval-crc32.s,
3677 testsuite/gas/i386/x86-64-inval-crc32.s: Add alignment directive.
3678 * testsuite/gas/i386/inval-crc32.l,
3679 testsuite/gas/i386/x86-64-inval-crc32.l: Adjust expectations.
3681 2020-01-21 Jan Beulich <jbeulich@suse.com>
3683 * config/tc-i386.c (process_suffix): Merge CRC32 handling into
3684 generic code path. Deal with No_lSuf being set in a template.
3685 * testsuite/gas/i386/inval-crc32.l,
3686 testsuite/gas/i386/x86-64-inval-crc32.l: Expect warning(s)
3687 instead of error(s) when operand size is ambiguous.
3688 * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
3689 testsuite/gas/i386/noreg64.s: Add CRC32 tests.
3690 * testsuite/gas/i386/noreg16.d, testsuite/gas/i386/noreg16.l,
3691 testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg32.l,
3692 testsuite/gas/i386/noreg64.d, testsuite/gas/i386/noreg64.l:
3693 Adjust expectations.
3695 2020-01-21 Jan Beulich <jbeulich@suse.com>
3697 * config/tc-i386.c (process_suffix): Drop SYSRET special case
3698 and an intel_syntax check. Re-write lack-of-suffix processing
3700 * doc/c-i386.texi: Document operand size defaults for suffix-
3701 less AT&T syntax insns.
3702 * testsuite/gas/i386/bundle.s, testsuite/gas/i386/lock-1.s,
3703 testsuite/gas/i386/opcode.s, testsuite/gas/i386/sse3.s,
3704 testsuite/gas/i386/x86-64-avx-scalar.s,
3705 testsuite/gas/i386/x86-64-avx.s,
3706 testsuite/gas/i386/x86-64-bundle.s,
3707 testsuite/gas/i386/x86-64-intel64.s,
3708 testsuite/gas/i386/x86-64-lock-1.s,
3709 testsuite/gas/i386/x86-64-opcode.s,
3710 testsuite/gas/i386/x86-64-sse2avx.s,
3711 testsuite/gas/i386/x86-64-sse3.s: Add missing suffixes.
3712 * testsuite/gas/i386/nops.s, testsuite/gas/i386/sse-noavx.s,
3713 testsuite/gas/i386/x86-64-nops.s,
3714 testsuite/gas/i386/x86-64-ptwrite.s,
3715 testsuite/gas/i386/x86-64-simd.s,
3716 testsuite/gas/i386/x86-64-sse-noavx.s,
3717 testsuite/gas/i386/x86-64-suffix.s: Drop bogus suffix-less
3719 * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
3720 testsuite/gas/i386/noreg64.s: Add further tests.
3721 * testsuite/gas/i386/ilp32/x86-64-nops.d,
3722 testsuite/gas/i386/nops.d, testsuite/gas/i386/noreg16.d,
3723 testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg64.d,
3724 testsuite/gas/i386/sse-noavx.d,
3725 testsuite/gas/i386/x86-64-intel64.d,
3726 testsuite/gas/i386/x86-64-nops.d,
3727 testsuite/gas/i386/x86-64-opcode.d,
3728 testsuite/gas/i386/x86-64-ptwrite-intel.d,
3729 testsuite/gas/i386/x86-64-ptwrite.d,
3730 testsuite/gas/i386/x86-64-simd-intel.d,
3731 testsuite/gas/i386/x86-64-simd-suffix.d,
3732 testsuite/gas/i386/x86-64-simd.d,
3733 testsuite/gas/i386/x86-64-sse-noavx.d
3734 testsuite/gas/i386/x86-64-suffix.d,
3735 testsuite/gas/i386/x86-64-suffix-intel.d: Adjust expectations.
3736 * testsuite/gas/i386/noreg16.l, testsuite/gas/i386/noreg32.l,
3737 testsuite/gas/i386/noreg64.l: New.
3738 * testsuite/gas/i386/i386.exp: Run new tests.
3740 2020-01-21 Jan Beulich <jbeulich@suse.com>
3742 * testsuite/gas/i386/avx512_bf16_vl.s,
3743 testsuite/gas/i386/x86-64-avx512_bf16_vl.s: Add broadcast forms
3744 of VCVTNEPS2BF16{X,Y}. Add operand-size less Intel syntax
3745 broadcast forms of VCVTNEPS2BF16.
3746 * testsuite/gas/i386/avx512_bf16_vl.d,
3747 testsuite/gas/i386/x86-64-avx512_bf16_vl.d: Adjust expectations.
3749 2020-01-20 Nick Clifton <nickc@redhat.com>
3751 * po/uk.po: Updated Ukranian translation.
3753 2020-01-20 H.J. Lu <hongjiu.lu@intel.com>
3756 * config/tc-i386.c (output_insn): Add a dummy REX_OPCODE prefix
3757 for lea with R_X86_64_GOTPC32_TLSDESC relocation when generating
3759 * testsuite/gas/i386/ilp32/x32-tls.d: Updated.
3760 * testsuite/gas/i386/ilp32/x32-tls.s: Add tests for lea with
3761 R_X86_64_GOTPC32_TLSDESC relocation.
3763 2020-01-18 Nick Clifton <nickc@redhat.com>
3765 * configure: Regenerate.
3766 * po/gas.pot: Regenerate.
3768 2020-01-18 Nick Clifton <nickc@redhat.com>
3770 Binutils 2.34 branch created.
3772 2020-01-17 H.J. Lu <hongjiu.lu@intel.com>
3774 * config/tc-i386.c (_i386_insn): Replace vex_encoding_vex2
3775 with vex_encoding_vex.
3776 (parse_insn): Likewise.
3777 * doc/c-i386.texi: Replace {vex2} with {vex}. Update {vex}
3778 and {vex3} documentation.
3779 * testsuite/gas/i386/pseudos.s: Replace 3 {vex2} tests with
3781 * testsuite/gas/i386/x86-64-pseudos.s: Likewise.
3783 2020-01-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
3786 * config/tc-arm.c (mve_ext, mve_fp_ext): Use CORE_HIGH.
3787 (armv8_1m_main_ext_table): Use CORE_HIGH for mve.
3788 * testsuite/arm/armv8_1-m-fpu-mve-1.s: New.
3789 * testsuite/arm/armv8_1-m-fpu-mve-1.d: New.
3790 * testsuite/arm/armv8_1-m-fpu-mve-2.s: New.
3791 * testsuite/arm/armv8_1-m-fpu-mve-2.d: New.
3793 2020-01-16 Jan Beulich <jbeulich@suse.com>
3795 * config/tc-i386.c (match_template): Drop found_cpu_match local
3798 2020-01-16 Jan Beulich <jbeulich@suse.com>
3800 * testsuite/gas/i386/avx512dq-inval.l,
3801 testsuite/gas/i386/avx512dq-inval.s: New.
3802 * testsuite/gas/i386/i386.exp: Run new test.
3804 2020-01-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3806 * config/tc-msp430.c (CHECK_RELOC_MSP430): Always generate 430X
3807 relocations when the target is 430X, except when extracting part of an
3809 (msp430_srcoperand): Adjust comment.
3810 Initialize the expp member of the msp430_operand_s struct as
3812 (msp430_dstoperand): Likewise.
3813 * testsuite/gas/msp430/msp430.exp: Run new test.
3814 * testsuite/gas/msp430/reloc-lo-430x.d: New test.
3815 * testsuite/gas/msp430/reloc-lo-430x.s: New test.
3817 2020-01-15 Alan Modra <amodra@gmail.com>
3819 * configure.tgt: Add sparc-*-freebsd case.
3821 2020-01-14 Lili Cui <lili.cui@intel.com>
3823 * testsuite/gas/i386/align-branch-1a.d: Updated for Darwin.
3824 * testsuite/gas/i386/align-branch-1b.d: Likewise.
3825 * testsuite/gas/i386/align-branch-1c.d: Likewise.
3826 * testsuite/gas/i386/align-branch-1d.d: Likewise.
3827 * testsuite/gas/i386/align-branch-1e.d: Likewise.
3828 * testsuite/gas/i386/align-branch-1f.d: Likewise.
3829 * testsuite/gas/i386/align-branch-1g.d: Likewise.
3830 * testsuite/gas/i386/align-branch-1h.d: Likewise.
3831 * testsuite/gas/i386/align-branch-1i.d: Likewise.
3832 * testsuite/gas/i386/align-branch-5.d: Likewise.
3833 * testsuite/gas/i386/x86-64-align-branch-1a.d: Likewise.
3834 * testsuite/gas/i386/x86-64-align-branch-1b.d: Likewise.
3835 * testsuite/gas/i386/x86-64-align-branch-1c.d: Likewise.
3836 * testsuite/gas/i386/x86-64-align-branch-1d.d: Likewise.
3837 * testsuite/gas/i386/x86-64-align-branch-1e.d: Likewise.
3838 * testsuite/gas/i386/x86-64-align-branch-1f.d: Likewise.
3839 * testsuite/gas/i386/x86-64-align-branch-1g.d: Likewise.
3840 * testsuite/gas/i386/x86-64-align-branch-1h.d: Likewise.
3841 * testsuite/gas/i386/x86-64-align-branch-1i.d: Likewise.
3842 * testsuite/gas/i386/x86-64-align-branch-5.d: Likewise.
3843 * testsuite/gas/i386/i386.exp: Skip x86-64-align-branch-2a,
3844 x86-64-align-branch-2b and x86-64-align-branch-2c on Darwin.
3846 2020-01-14 Sergey Belyashov <sergey.belyashov@gmail.com>
3849 * config/tc-z80.c: Add support for half precision, single
3850 precision and double precision floating point values.
3851 * config/tc-z80.h b/gas/config/tc-z80.h: Disable string escapes.
3852 * doc/as.texi: Add new z80 command line options.
3853 * doc/c-z80.texi: Document new z80 command line options.
3854 * testsuite/gas/z80/ez80_pref_dis.s: New test.
3855 * testsuite/gas/z80/ez80_pref_dis.d: New test driver.
3856 * testsuite/gas/z80/z80.exp: Run the new test.
3857 * testsuite/gas/z80/fp_math48.d: Use correct command line option.
3858 * testsuite/gas/z80/fp_zeda32.d: Likewise.
3859 * testsuite/gas/z80/strings.d: Update expected output.
3861 2020-01-13 Matthew Malcomson <matthew.malcomson@arm.com>
3863 * config/tc-aarch64.c (f64mm, f32mm): Add sve as a feature
3866 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
3868 * config/tc-arc.c (arc_select_cpu): Re-init the bfd if we change
3870 * config/tc-arc.h: Add header if/defs.
3871 * testsuite/gas/arc/pseudos.d: Improve matching pattern.
3873 2020-01-13 Alan Modra <amodra@gmail.com>
3875 * testsuite/gas/wasm32/allinsn.d: Update expected output.
3877 2020-01-13 Alan Modra <amodra@gmail.com>
3879 * config/tc-tic4x.c (tic4x_operands_match): Correct tic3x trap
3882 2020-01-10 Alan Modra <amodra@gmail.com>
3884 * testsuite/gas/elf/pr14891.s: Don't start directives in first column.
3885 * testsuite/gas/elf/pr21661.d: Don't run on hpux.
3887 2020-01-03 Sergey Belyashov <sergey.belyashov@gmail.com>
3890 * config/tc-z80.c (emit_ld_m_rr): Use integer types when checking
3892 (emit_ld_r_r): Likewise.
3893 (emit_ld_rr_m): Likewise.
3894 (emit_ld_rr_nn): Likewise.
3896 2020-01-09 Jan Beulich <jbeulich@suse.com>
3898 * config/tc-i386.c (optimize_encoding): Add
3899 is_any_vex_encoding() invocations. Drop respective
3900 i.tm.extension_opcode == None checks.
3902 2020-01-09 Jan Beulich <jbeulich@suse.com>
3904 * config/tc-i386.c (md_assemble): Check RegRex is clear during
3905 REX transformations. Correct comment indentation.
3907 2020-01-09 Jan Beulich <jbeulich@suse.com>
3909 * config/tc-i386.c (optimize_encoding): Generalize register
3910 transformation for TEST optimization.
3912 2020-01-09 Jan Beulich <jbeulich@suse.com>
3914 * testsuite/gas/i386/x86-64-sysenter-amd.s,
3915 testsuite/gas/i386/x86-64-sysenter-amd.d,
3916 testsuite/gas/i386/x86-64-sysenter-amd.l,
3917 testsuite/gas/i386/x86-64-sysenter-intel.d,
3918 testsuite/gas/i386/x86-64-sysenter-mixed.d: New.
3919 * testsuite/gas/i386/i386.exp: Run new tests.
3921 2020-01-08 Nick Clifton <nickc@redhat.com>
3924 * doc/as.texi (Align): Document the fact that all arguments can be
3927 (P2align): Likewise.
3929 2020-01-08 Nick Clifton <nickc@redhat.com>
3932 * config/obj-elf.c (obj_elf_section): Fail if the section name is
3933 already defined as a different symbol type.
3934 * testsuite/gas/elf/pr14891.s: New test source file.
3935 * testsuite/gas/elf/pr14891.d: New test driver.
3936 * testsuite/gas/elf/pr14891.s: New test expected error output.
3937 * testsuite/gas/elf/elf.exp: Run the new test.
3939 2020-01-08 Alan Modra <amodra@gmail.com>
3941 * config/tc-z8k.c (md_begin): Make idx unsigned.
3942 (get_specific): Likewise for this_index.
3944 2020-01-07 Claudiu Zissulescu <claziss@synopsys.com>
3946 * onfig/tc-arc.c (parse_reloc_symbol): New function.
3947 (tokenize_arguments): Clean up, use parse_reloc_symbol function.
3948 (md_operand): Set X_md to absent.
3949 (arc_parse_name): Check for X_md.
3951 2020-01-03 Sergey Belyashov <sergey.belyashov@gmail.com>
3954 * as.h (TC_STRING_ESCAPES): Provide a default definition.
3955 * app.c (do_scrub_chars): Use TC_STRING_ESCAPES instead of
3957 * read.c (next_char_of_string): Likewise.
3958 * config/tc-ppc.h (TC_STRING_ESCAPES): Define.
3959 * config/tc-z80.h (TC_STRING_ESCAPES): Define.
3961 2020-01-03 Nick Clifton <nickc@redhat.com>
3963 * po/sv.po: Updated Swedish translation.
3965 2020-01-03 Jan Beulich <jbeulich@suse.com>
3967 * testsuite/gas/aarch64/f64mm.s: Scale index of LD1RO{H,W,D}.
3968 * testsuite/gas/aarch64/f64mm.d: Adjust expectations.
3970 2020-01-03 Jan Beulich <jbeulich@suse.com>
3972 * testsuite/gas/aarch64/i8mm.s: Add 128-bit form tests for
3973 by-element usdot. Add 64-bit form tests for by-element sudot.
3974 * testsuite/gas/aarch64/i8mm.d: Adjust expectations.
3976 2020-01-03 Jan Beulich <jbeulich@suse.com>
3978 * testsuite/gas/aarch64/f64mm.s: Drop 'i' from uzip<n>.
3979 * testsuite/gas/aarch64/f64mm.d: Adjust expectations.
3981 2020-01-03 Jan Beulich <jbeulich@suse.com>
3983 * testsuite/gas/aarch64/f64mm.d,
3984 testsuite/gas/aarch64/sve-movprfx-mm.d: Adjust expectations.
3986 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
3988 * config/tc-z80.c: Add new architectures: Z180 and eZ80. Add
3989 support for assembler code generated by SDCC. Add new relocation
3990 types. Add z80-elf target support.
3991 * config/tc-z80.h: Add z80-elf target support. Enable dollar local
3992 labels. Local labels starts from ".L".
3993 * NEWS: Mention the new support.
3994 * testsuite/gas/all/fwdexp.d: Fix failure due to symbol conflict.
3995 * testsuite/gas/all/fwdexp.s: Likewise.
3996 * testsuite/gas/all/cond.l: Likewise.
3997 * testsuite/gas/all/cond.s: Likewise.
3998 * testsuite/gas/all/fwdexp.d: Likewise.
3999 * testsuite/gas/all/fwdexp.s: Likewise.
4000 * testsuite/gas/elf/section2.e-mips: Likewise.
4001 * testsuite/gas/elf/section2.l: Likewise.
4002 * testsuite/gas/elf/section2.s: Likewise.
4003 * testsuite/gas/macros/app1.d: Likewise.
4004 * testsuite/gas/macros/app1.s: Likewise.
4005 * testsuite/gas/macros/app2.d: Likewise.
4006 * testsuite/gas/macros/app2.s: Likewise.
4007 * testsuite/gas/macros/app3.d: Likewise.
4008 * testsuite/gas/macros/app3.s: Likewise.
4009 * testsuite/gas/macros/app4.d: Likewise.
4010 * testsuite/gas/macros/app4.s: Likewise.
4011 * testsuite/gas/macros/app4b.s: Likewise.
4012 * testsuite/gas/z80/suffix.d: Fix failure on ELF target.
4013 * testsuite/gas/z80/z80.exp: Add new tests
4014 * testsuite/gas/z80/dollar.d: New file.
4015 * testsuite/gas/z80/dollar.s: New file.
4016 * testsuite/gas/z80/ez80_adl_all.d: New file.
4017 * testsuite/gas/z80/ez80_adl_all.s: New file.
4018 * testsuite/gas/z80/ez80_adl_suf.d: New file.
4019 * testsuite/gas/z80/ez80_isuf.s: New file.
4020 * testsuite/gas/z80/ez80_z80_all.d: New file.
4021 * testsuite/gas/z80/ez80_z80_all.s: New file.
4022 * testsuite/gas/z80/ez80_z80_suf.d: New file.
4023 * testsuite/gas/z80/r800_extra.d: New file.
4024 * testsuite/gas/z80/r800_extra.s: New file.
4025 * testsuite/gas/z80/r800_ii8.d: New file.
4026 * testsuite/gas/z80/r800_z80_doc.d: New file.
4027 * testsuite/gas/z80/z180.d: New file.
4028 * testsuite/gas/z80/z180.s: New file.
4029 * testsuite/gas/z80/z180_z80_doc.d: New file.
4030 * testsuite/gas/z80/z80_doc.d: New file.
4031 * testsuite/gas/z80/z80_doc.s: New file.
4032 * testsuite/gas/z80/z80_ii8.d: New file.
4033 * testsuite/gas/z80/z80_ii8.s: New file.
4034 * testsuite/gas/z80/z80_in_f_c.d: New file.
4035 * testsuite/gas/z80/z80_in_f_c.s: New file.
4036 * testsuite/gas/z80/z80_op_ii_ld.d: New file.
4037 * testsuite/gas/z80/z80_op_ii_ld.s: New file.
4038 * testsuite/gas/z80/z80_out_c_0.d: New file.
4039 * testsuite/gas/z80/z80_out_c_0.s: New file.
4040 * testsuite/gas/z80/z80_reloc.d: New file.
4041 * testsuite/gas/z80/z80_reloc.s: New file.
4042 * testsuite/gas/z80/z80_sli.d: New file.
4043 * testsuite/gas/z80/z80_sli.s: New file.
4045 2020-01-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
4047 * config/tc-arm.c (parse_reg_list): Use REG_TYPE_RN instead of
4050 2020-01-01 Alan Modra <amodra@gmail.com>
4052 Update year range in copyright notice of all files.
4054 For older changes see ChangeLog-2019
4056 Copyright (C) 2020 Free Software Foundation, Inc.
4058 Copying and distribution of this file, with or without modification,
4059 are permitted in any medium without royalty provided the copyright
4060 notice and this notice are preserved.
4066 version-control: never