4 * symbols.c (local_symbol_convert): Clear out xtra.
8 * config/tc-csky.c (CSKY_ISA_803R2): New.
9 (csky_archs): Add ck803r2 series.
10 (md_begin): Fix warning about -medsp.
11 (csky_get_freg_val): Support lowercase of fpu register name.
12 * testsuite/gas/csky/cskyv2_ck803r2.s: New file.
13 * testsuite/gas/csky/cskyv2_ck803r2.d: New file.
18 * hash.h (htab_insert): Update prototype and comment.
19 (struct string_tuple): Make "value" a const void*.
20 (string_tuple_alloc): Likewise.
21 (str_hash_find, str_hash_find_n): Cast returned value.
22 (str_hash_insert): Add "replace" parameter, and return slot pointer.
23 Free alloc'd element when not inserted.
24 * hash.c (htab_insert): Likewise. Return slot when element exists,
25 otherwise return NULL.
26 * read.c (pop_insert): Insert into hash table without first searching.
27 * config/tc-avr.c (md_begin): Likewise.
28 * config/tc-msp430.c (md_begin): Likewise.
29 * config/tc-nds32.c (nds32_init_nds32_pseudo_opcodes): Likewise.
30 * config/tc-v850.c (md_begin): Likewise.
31 * macro.c (do_formals, define_macro, macro_expand_body): Likewise.
32 (delete_macro): Delete from hash table.
33 * config/tc-tic54x.c (subsym_create_or_replace): Correct logic.
35 * symbols.c (local_symbol_make, symbol_table_insert): Allow
36 replacement of hash table entries.
37 * config/obj-coff-seh.c (seh_hash_insert): Likewise.
38 * config/obj-coff.c (tag_insert): Likewise.
39 * config/tc-iq2000.c (iq2000_add_macro): Likewise.
40 * config/tc-m68k.c (md_begin): Likewise for aliases.
41 * config/tc-tic4x.c (tic4x_asg): Likewise.
42 * config/tc-tic6x.c (md_begin): Likewise.
44 * dw2gencfi.c (dwcfi_hash_find_or_make): Disallow replacement of
46 * ecoff.c (add_string, get_tag): Likewise.
47 * macro.c (expand_irp): Likewise.
48 * config/obj-elf.c (build_additional_section_info): Likewise.
49 * config/tc-aarch64.c (insert_reg_alias): Likewise.
50 (checked_hash_insert): Likewise.
51 * config/tc-alpha.c (get_alpha_reloc_tag, md_begin): Likewise.
52 * config/tc-arc.c (arc_insert_opcode, declare_register): Likewise.
53 (declare_addrtype, md_begin, arc_extcorereg): Likewise.
54 * config/tc-arm.c (insert_reg_alias): Likewise.
55 (arm_tc_equal_in_insn, md_begin): Likewise.
56 * config/tc-cr16.c (initialise_reg_hash_table, md_begin): Likewise.
57 * config/tc-cris.c (md_begin): Likewise.
58 * config/tc-crx.c (md_begin): Likewise.
59 * config/tc-csky.c (md_begin): Likewise.
60 * config/tc-d10v.c (md_begin): Likewise.
61 * config/tc-dlx.c (md_begin): Likewise.
62 * config/tc-ft32.c (md_begin): Likewise.
63 * config/tc-h8300.c (md_begin): Likewise.
64 * config/tc-hppa.c (md_begin): Likewise.
65 * config/tc-i386.c (md_begin): Likewise.
66 * config/tc-ia64.c (dot_rot, dot_entry, declare_register): Likewise.
67 (md_begin, dot_alias): Likewise.
68 * config/tc-m68hc11.c (md_begin): Likewise.
69 * config/tc-m68k.c (md_begin): Likewise.
70 * config/tc-mcore.c (md_begin): Likewise.
71 * config/tc-microblaze.c (md_begin): Likewise.
72 * config/tc-mips.c (md_begin): Likewise.
73 * config/tc-mmix.c (md_begin): Likewise.
74 * config/tc-mn10200.c (md_begin): Likewise.
75 * config/tc-mn10300.c (md_begin): Likewise.
76 * config/tc-moxie.c (md_begin): Likewise.
77 * config/tc-nds32.c (nds32_relax_hint, md_begin): Likewise.
78 * config/tc-nios2.c (md_begin): Likewise.
79 * config/tc-ns32k.c (md_begin): Likewise.
80 * config/tc-pdp11.c (md_begin): Likewise.
81 * config/tc-pj.c (fake_opcode, md_begin): Likewise.
82 * config/tc-ppc.c (ppc_setup_opcodes): Likewise.
83 * config/tc-pru.c (md_begin): Likewise.
84 * config/tc-riscv.c (init_ext_version_hash): Likewise.
85 (init_opcode_names_hash, hash_reg_name, init_opcode_hash): Likewise.
86 (riscv_init_csr_hash): Likewise.
87 * config/tc-s390.c (s390_setup_opcodes, md_begin): Likewise.
88 * config/tc-score.c (s3_insert_reg): Likewise.
89 (s3_build_score_ops_hsh, s3_build_dependency_insn_hsh): Likewise.
90 * config/tc-score7.c (s7_build_score_ops_hsh): Likewise.
91 (s7_build_dependency_insn_hsh, s7_insert_reg): Likewise.
92 * config/tc-sh.c (md_begin): Likewise.
93 * config/tc-sparc.c (md_begin): Likewise.
94 * config/tc-spu.c (md_begin): Likewise.
95 * config/tc-tic30.c (md_begin): Likewise.
96 * config/tc-tic4x.c (tic4x_inst_insert): Likewise.
97 * config/tc-tic54x.c (stag_add_field_symbols, md_begin): Likewise.
98 (tic54x_endstruct, tic54x_var, tic54x_macro_info): Likewise.
99 (subsym_substitute): Likewise.
100 * config/tc-tilegx.c (md_begin): Likewise.
101 * config/tc-tilepro.c (md_begin): Likewise.
102 * config/tc-vax.c (vip_begin): Likewise.
103 * config/tc-wasm32.c (md_begin): Likewise.
104 * config/tc-xgate.c (md_begin): Likewise.
105 * config/tc-z8k.c (md_begin): Likewise.
106 * testsuite/gas/ppc/dcbt.d,
107 * testsuite/gas/ppc/dcbt.s: New test.
108 * testsuite/gas/ppc/ppc.exp: Run it.
110 * ecoff.c (add_string): Report fatal error on duplicates.
111 * config/tc-alpha.c (md_begin): Likewise.
112 * config/tc-arc.c (arc_insert_opcode, declare_register): Likewise.
113 (declare_addrtype, md_begin, arc_extcorereg): Likewise.
114 * config/tc-cr16.c (initialise_reg_hash_table, md_begin): Likewise.
115 * config/tc-cris.c (md_begin): Likewise.
116 * config/tc-crx.c (md_begin): Likewise.
117 * config/tc-dlx.c (md_begin): Likewise.
118 * config/tc-hppa.c (md_begin): Likewise.
119 * config/tc-i386.c (md_begin): Likewise.
120 * config/tc-ia64.c (dot_rot, dot_entry, declare_register): Likewise.
121 (md_begin): Likewise.
122 * config/tc-m68k.c (md_begin): Likewise.
123 * config/tc-mips.c (md_begin): Likewise.
124 * config/tc-nios2.c (md_begin): Likewise.
125 * config/tc-ns32k.c (md_begin): Likewise.
126 * config/tc-ppc.c (ppc_setup_opcodes): Likewise.
127 * config/tc-pru.c (md_begin): Likewise.
128 * config/tc-riscv.c (init_ext_version_hash): Likewise.
129 (init_opcode_names_hash, hash_reg_name, init_opcode_hash): Likewise.
130 * config/tc-s390.c (s390_setup_opcodes, md_begin): Likewise.
131 * config/tc-sparc.c (md_begin): Likewise.
132 * config/tc-tic30.c (md_begin): Likewise.
133 * config/tc-tic4x.c (tic4x_inst_insert): Likewise.
134 * config/tc-tilegx.c (md_begin): Likewise.
135 * config/tc-tilepro.c (md_begin): Likewise.
136 * config/tc-vax.c (vip_begin): Likewise.
144 * config/tc-m68hc11.c,
146 * config/tc-microblaze.c,
151 * config/tc-score7.c,
153 * config/tc-tic54x.c,
154 * config/tc-tilegx.c,
155 * config/tc-tilepro.c,
156 * config/tc-xgate.c: Formatting.
160 * symbols.c (struct local_symbol): Add "hash" entry. Reorder fields.
161 Delete union. Adjust code throughout file.
162 (struct symbol): Add "hash", "name" and "x" entries. Reorder fields.
164 (struct xsymbol): ..this. New struct. Adjust code throughout file
165 accessing these fields.
166 (struct symbol_entry): Delete.
167 (union symbol_entry): New.
168 (hash_symbol_entry): Adjust for symbol_entry_t change.
169 (symbol_entry_find): Likewise.
170 (eq_symbol_entry): Compare hash values too.
171 (symbol_entry_alloc): Delete.
172 (local_symbol_converted_p, local_symbol_mark_converted): Delete.
173 (local_symbol_get_real_symbol, local_symbol_set_real_symbol): Delete.
174 (local_hash): Delete.
175 (abs_symbol_x, dot_symbol_x): New static var.
176 (symbol_init): New function.
177 (symbol_create): Rewrite.
178 (LOCAL_SYMBOL_CHECK): Delete. Replace uses throughout with simple
179 test of flags.local_symbol.
180 (local_symbol_make): Adjust for struct local_symbol changes.
181 (local_symbol_convert): Rewrite. Adjust all callers.
182 (symbol_table_insert): Simplify.
183 (symbol_clone): Comment on local sym cloning. Handle split symbol
185 (get_real_sym): Delete. Remove all uses.
186 (symbol_find_exact_noref): Simplify.
187 (resolve_local_symbol): Don't resolve non-locals.
188 (S_SET_SEGMENT): Don't special case reg_section.
189 (S_SET_NAME): Set both name and bsym->name.
190 (symbol_mark_resolved, symbol_resolved_p): Simplify.
191 (symbol_symbolS): Update comment.
192 (symbol_begin): Don't create local_hash. Adjust abs_symbol setup.
193 (dot_symbol_init): Adjust dot_symbol setup.
194 (symbol_print_statistics): Delete local_hash stats.
198 * symbols.c (struct symbol_flags): Rename sy_volatile to volatil,
199 and remove sy_ from other field names. Update throughout.
200 (struct symbol): Remove sy_ from field names. Delete unused
201 TARGET_SYMBOL_FIELDS. Update throughout file. Move after..
202 (struct local_symbol): ..here. Remove lsy_ from field names.
203 Delete unused TC_LOCAL_SYMFIELD_TYPE. Update throughout file.
204 (local_symbol_resolved_p, local_symbol_mark_resolved): Delete.
205 Expand uses throughout file.
206 (local_symbol_get_frag, local_symbol_set_frag): Likewise.
207 (symbol_new): Move symbol_table_frozen test to..
208 (symbol_append): ..here, and..
209 (symbol_insert): ..here.
210 (resolve_symbol_value, symbol_relc_make_expr): White space fixes.
211 (HANDLE_XADD_OPT1, HANDLE_XADD_OPT2): Likewise.
212 * config/obj-coff.h (RESOLVE_SYMBOL_REDEFINITION): Update.
216 * symbols.h (symbol_new, symbol_create, local_symbol_make),
217 (symbol_temp_new): Arrange params as section, frag, offset.
218 * symbols.c: Adjust to suit.
221 * dwarf2dbg.c: Likewise.
224 * itbl-ops.c: Likewise.
227 * subsegs.c: Likewise.
228 * config/obj-coff.c: Likewise.
229 * config/obj-elf.c: Likewise.
230 * config/obj-macho.c: Likewise.
231 * config/tc-aarch64.c: Likewise.
232 * config/tc-alpha.c: Likewise.
233 * config/tc-arc.c: Likewise.
234 * config/tc-arm.c: Likewise.
235 * config/tc-avr.c: Likewise.
236 * config/tc-cr16.c: Likewise.
237 * config/tc-cris.c: Likewise.
238 * config/tc-csky.c: Likewise.
239 * config/tc-dlx.c: Likewise.
240 * config/tc-hppa.c: Likewise.
241 * config/tc-i386.c: Likewise.
242 * config/tc-ia64.c: Likewise.
243 * config/tc-m32r.c: Likewise.
244 * config/tc-m68k.c: Likewise.
245 * config/tc-mips.c: Likewise.
246 * config/tc-mmix.c: Likewise.
247 * config/tc-mn10200.c: Likewise.
248 * config/tc-mn10300.c: Likewise.
249 * config/tc-nds32.c: Likewise.
250 * config/tc-nios2.c: Likewise.
251 * config/tc-ppc.c: Likewise.
252 * config/tc-riscv.c: Likewise.
253 * config/tc-s390.c: Likewise.
254 * config/tc-sh.c: Likewise.
255 * config/tc-tic4x.c: Likewise.
256 * config/tc-tic54x.c: Likewise.
257 * config/tc-xtensa.c: Likewise.
261 * config/tc-csky.c (csky_insn_info): Add member last_isize.
262 (md_assemble): Assign value to csky_insn.last_isize.
263 * testsuite/gas/csky/enhance_dsp.d: Test bloop's two operands form.
264 * testsuite/gas/csky/enhance_dsp.s: Likewise.
268 * NEWS: Mention --reduce-memory-overheads and --hash-size arguments
270 * as.c: Remove the options from help.
271 * doc/as.texi: Remove options.
272 * doc/internals.texi: Remove hash from documentation.
273 * hash.c (struct hash_entry): Remove.
274 (struct hash_control): Likewise.
275 (set_gas_hash_table_size): Likewise.
276 (hash_new_sized): Likewise.
277 (hash_new): Likewise.
278 (hash_die): Likewise.
279 (hash_lookup): Likewise.
280 (hash_insert): Likewise.
281 (hash_jam): Likewise.
282 (hash_replace): Likewise.
283 (hash_find): Likewise.
284 (hash_find_n): Likewise.
285 (hash_delete): Likewise.
286 (hash_traverse): Likewise.
287 (hash_print_statistics): Likewise.
289 (STATBUFSIZE): Likewise.
293 (applicatee): Likewise.
294 (whattable): Likewise.
295 * hash.h (struct hash_control): Likewise.
296 (set_gas_hash_table_size): Likewise.
297 (hash_new): Likewise.
298 (hash_new_sized): Likewise.
299 (hash_die): Likewise.
300 (hash_insert): Likewise.
301 (hash_jam): Likewise.
302 (hash_replace): Likewise.
303 (hash_find): Likewise.
304 (hash_find_n): Likewise.
305 (hash_delete): Likewise.
306 (hash_traverse): Likewise.
307 (hash_print_statistics): Likewise.
311 * config/obj-coff-seh.c (seh_hash_insert): Port to use new
313 (seh_hash_find): Likewise.
314 (seh_hash_find_or_make): Likewise.
315 * config/obj-coff.c (tag_init): Likewise.
316 (tag_insert): Likewise.
317 (tag_find): Likewise.
318 * config/obj-elf.c (struct group_list): Likewise.
319 (build_additional_section_info): Likewise.
320 (free_section_idx): Likewise.
321 (elf_adjust_symtab): Likewise.
322 (elf_frob_file_after_relocs): Likewise.
323 * config/tc-aarch64.c (INSN_SIZE): Likewise.
324 (parse_reg): Likewise.
325 (insert_reg_alias): Likewise.
326 (create_register_alias): Likewise.
328 (parse_shift): Likewise.
329 (parse_pldop): Likewise.
330 (parse_barrier): Likewise.
331 (parse_barrier_psb): Likewise.
332 (parse_bti_operand): Likewise.
333 (parse_sys_reg): Likewise.
334 (parse_sys_ins_reg): Likewise.
335 (lookup_mnemonic): Likewise.
336 (opcode_lookup): Likewise.
337 (parse_operands): Likewise.
338 (checked_hash_insert): Likewise.
339 (sysreg_hash_insert): Likewise.
340 (fill_instruction_hash_table): Likewise.
341 (md_begin): Likewise.
342 * config/tc-alpha.c (struct alpha_reloc_tag): Likewise.
343 (get_alpha_reloc_tag): Likewise.
344 (assemble_tokens_to_insn): Likewise.
345 (assemble_tokens): Likewise.
346 (md_begin): Likewise.
347 * config/tc-arc.c (arc_find_opcode): Likewise.
348 (arc_insert_opcode): Likewise.
349 (find_opcode_match): Likewise.
350 (declare_register): Likewise.
351 (declare_addrtype): Likewise.
352 (md_begin): Likewise.
353 (arc_parse_name): Likewise.
354 (tc_arc_regname_to_dw2regnum): Likewise.
355 (arc_extcorereg): Likewise.
356 * config/tc-arm.c (MVE_BAD_QREG): Likewise.
357 (arm_reg_parse_multi): Likewise.
358 (parse_reloc): Likewise.
359 (insert_reg_alias): Likewise.
360 (create_register_alias): Likewise.
362 (parse_shift): Likewise.
363 (parse_psr): Likewise.
364 (parse_cond): Likewise.
365 (parse_barrier): Likewise.
366 (do_vfp_nsyn_opcode): Likewise.
367 (opcode_lookup): Likewise.
368 (arm_tc_equal_in_insn): Likewise.
369 (md_begin): Likewise.
370 * config/tc-avr.c (md_begin): Likewise.
371 (avr_ldi_expression): Likewise.
372 (md_assemble): Likewise.
373 (avr_update_gccisr): Likewise.
374 (avr_emit_insn): Likewise.
375 * config/tc-cr16.c (get_register): Likewise.
376 (get_register_pair): Likewise.
377 (get_index_register): Likewise.
378 (get_index_register_pair): Likewise.
379 (get_pregister): Likewise.
380 (get_pregisterp): Likewise.
381 (initialise_reg_hash_table): Likewise.
382 (md_begin): Likewise.
383 (cr16_assemble): Likewise.
384 (md_assemble): Likewise.
385 * config/tc-cris.c (cris_insn_first_word_frag): Likewise.
386 (md_begin): Likewise.
387 (cris_process_instruction): Likewise.
388 * config/tc-crx.c (get_register): Likewise.
389 (get_copregister): Likewise.
390 (md_begin): Likewise.
391 (md_assemble): Likewise.
392 * config/tc-csky.c (md_begin): Likewise.
393 (parse_opcode): Likewise.
394 (get_operand_value): Likewise.
395 (v1_work_jbsr): Likewise.
396 (v2_work_rotlc): Likewise.
397 (v2_work_bgeni): Likewise.
398 (v2_work_not): Likewise.
399 * config/tc-d10v.c (sizeof): Likewise.
400 (md_begin): Likewise.
401 (do_assemble): Likewise.
402 (md_apply_fix): Likewise.
403 * config/tc-d30v.c (sizeof): Likewise.
404 (md_begin): Likewise.
405 (do_assemble): Likewise.
406 * config/tc-dlx.c (RELOC_DLX_VTENTRY): Likewise.
407 (md_begin): Likewise.
408 (machine_ip): Likewise.
409 * config/tc-ft32.c (md_begin): Likewise.
410 (md_assemble): Likewise.
411 * config/tc-h8300.c (md_begin): Likewise.
412 (md_assemble): Likewise.
413 * config/tc-hppa.c (pa_ip): Likewise.
414 (md_begin): Likewise.
415 * config/tc-i386.c (md_begin): Likewise.
416 (i386_print_statistics): Likewise.
417 (parse_insn): Likewise.
418 (process_operands): Likewise.
419 (i386_index_check): Likewise.
420 (parse_real_register): Likewise.
421 * config/tc-ia64.c (dot_rot): Likewise.
422 (dot_entry): Likewise.
423 (declare_register): Likewise.
424 (md_begin): Likewise.
425 (ia64_parse_name): Likewise.
426 (md_assemble): Likewise.
427 (dot_alias): Likewise.
428 (do_alias): Likewise.
429 (ia64_adjust_symtab): Likewise.
430 (do_secalias): Likewise.
431 (ia64_frob_file): Likewise.
432 * config/tc-m68hc11.c (m68hc11_print_statistics): Likewise.
433 (md_begin): Likewise.
434 (print_insn_format): Likewise.
435 (md_assemble): Likewise.
436 * config/tc-m68k.c (tc_gen_reloc): Likewise.
438 (md_begin): Likewise.
439 * config/tc-mcore.c (md_begin): Likewise.
440 (md_assemble): Likewise.
441 * config/tc-microblaze.c (md_begin): Likewise.
442 (md_assemble): Likewise.
443 (md_apply_fix): Likewise.
444 * config/tc-mips.c (nopic_need_relax): Likewise.
445 (md_begin): Likewise.
446 (macro_build): Likewise.
447 (mips16_macro_build): Likewise.
448 (mips_lookup_insn): Likewise.
450 (mips16_ip): Likewise.
451 * config/tc-mmix.c (sizeof): Likewise.
452 (mmix_md_begin): Likewise.
453 (md_assemble): Likewise.
454 * config/tc-mn10200.c (md_begin): Likewise.
455 (md_assemble): Likewise.
456 * config/tc-mn10300.c (HAVE_AM30): Likewise.
457 (md_begin): Likewise.
458 (md_assemble): Likewise.
459 * config/tc-moxie.c (md_begin): Likewise.
460 (md_assemble): Likewise.
461 * config/tc-msp430.c (md_begin): Likewise.
462 (msp430_operands): Likewise.
463 (md_assemble): Likewise.
464 * config/tc-nds32.c (PV_DONT_CARE): Likewise.
465 (builtin_isreg): Likewise.
466 (builtin_regnum): Likewise.
467 (nds32_init_nds32_pseudo_opcodes): Likewise.
468 (nds32_lookup_pseudo_opcode): Likewise.
469 (nds32_relax_hint): Likewise.
470 (md_begin): Likewise.
471 (nds32_find_reloc_table): Likewise.
472 (nds32_elf_append_relax_relocs_traverse): Likewise.
473 (nds32_relax_branch_instructions): Likewise.
474 (md_convert_frag): Likewise.
475 (nds32_elf_analysis_relax_hint): Likewise.
476 (tc_nds32_regname_to_dw2regnum): Likewise.
477 * config/tc-nios2.c (nios2_opcode_lookup): Likewise.
478 (nios2_reg_lookup): Likewise.
479 (nios2_ps_lookup): Likewise.
480 (md_begin): Likewise.
481 * config/tc-ns32k.c (struct hash_control): Likewise.
483 (md_begin): Likewise.
484 * config/tc-pdp11.c (md_begin): Likewise.
485 (md_assemble): Likewise.
486 * config/tc-pj.c (fake_opcode): Likewise.
488 (md_begin): Likewise.
489 (md_assemble): Likewise.
490 * config/tc-ppc.c (ppc_setup_opcodes): Likewise.
491 (md_assemble): Likewise.
492 * config/tc-pru.c (pru_opcode_lookup): Likewise.
493 (pru_reg_lookup): Likewise.
494 (md_begin): Likewise.
496 * config/tc-riscv.c (init_ext_version_hash): Likewise.
497 (riscv_get_default_ext_version): Likewise.
498 (riscv_set_arch): Likewise.
499 (init_opcode_names_hash): Likewise.
500 (opcode_name_lookup): Likewise.
501 (enum reg_class): Likewise.
502 (hash_reg_name): Likewise.
503 (riscv_init_csr_hash): Likewise.
504 (reg_csr_lookup_internal): Likewise.
505 (reg_lookup_internal): Likewise.
506 (init_opcode_hash): Likewise.
507 (md_begin): Likewise.
508 (DECLARE_CSR): Likewise.
509 (macro_build): Likewise.
510 (riscv_ip): Likewise.
511 * config/tc-s390.c (register_name): Likewise.
512 (s390_setup_opcodes): Likewise.
513 (md_begin): Likewise.
514 (md_assemble): Likewise.
515 (s390_insn): Likewise.
516 * config/tc-score.c (struct s3_reg_map): Likewise.
517 (s3_score_reg_parse): Likewise.
518 (s3_dependency_type_from_insn): Likewise.
519 (s3_parse_16_32_inst): Likewise.
520 (s3_parse_48_inst): Likewise.
521 (s3_insert_reg): Likewise.
522 (s3_build_reg_hsh): Likewise.
523 (s3_build_score_ops_hsh): Likewise.
524 (s3_build_dependency_insn_hsh): Likewise.
525 (s3_begin): Likewise.
526 * config/tc-score7.c (struct s7_reg_map): Likewise.
527 (s7_score_reg_parse): Likewise.
528 (s7_dependency_type_from_insn): Likewise.
529 (s7_parse_16_32_inst): Likewise.
530 (s7_build_score_ops_hsh): Likewise.
531 (s7_build_dependency_insn_hsh): Likewise.
532 (s7_insert_reg): Likewise.
533 (s7_build_reg_hsh): Likewise.
534 (s7_begin): Likewise.
535 * config/tc-sh.c (EMPTY): Likewise.
536 (md_begin): Likewise.
537 (find_cooked_opcode): Likewise.
538 * config/tc-sparc.c (md_begin): Likewise.
539 (sparc_ip): Likewise.
540 * config/tc-spu.c (md_begin): Likewise.
541 (md_assemble): Likewise.
542 * config/tc-tic30.c (md_begin): Likewise.
543 (tic30_operand): Likewise.
544 (tic30_parallel_insn): Likewise.
545 (md_assemble): Likewise.
546 * config/tc-tic4x.c (TIC4X_ALT_SYNTAX): Likewise.
547 (tic4x_asg): Likewise.
548 (tic4x_inst_insert): Likewise.
549 (tic4x_inst_add): Likewise.
550 (md_begin): Likewise.
551 (tic4x_operand_parse): Likewise.
552 (md_assemble): Likewise.
553 * config/tc-tic54x.c (MAX_SUBSYM_HASH): Likewise.
554 (stag_add_field_symbols): Likewise.
555 (tic54x_endstruct): Likewise.
556 (tic54x_tag): Likewise.
557 (tic54x_remove_local_label): Likewise.
558 (tic54x_clear_local_labels): Likewise.
559 (tic54x_var): Likewise.
560 (tic54x_macro_start): Likewise.
561 (tic54x_macro_info): Likewise.
562 (tic54x_macro_end): Likewise.
563 (subsym_isreg): Likewise.
564 (subsym_structsz): Likewise.
565 (md_begin): Likewise.
566 (is_mmreg): Likewise.
568 (encode_condition): Likewise.
569 (encode_cc3): Likewise.
570 (encode_cc2): Likewise.
571 (encode_operand): Likewise.
572 (tic54x_parse_insn): Likewise.
573 (tic54x_parse_parallel_insn_firstline): Likewise.
574 (subsym_create_or_replace): Likewise.
575 (subsym_lookup): Likewise.
576 (subsym_substitute): Likewise.
577 (tic54x_undefined_symbol): Likewise.
578 * config/tc-tic6x.c (md_begin): Likewise.
579 (md_assemble): Likewise.
580 * config/tc-tilegx.c (O_hw2_last_plt): Likewise.
581 (INSERT_SPECIAL_OP): Likewise.
582 (md_begin): Likewise.
583 (tilegx_parse_name): Likewise.
584 (parse_reg_expression): Likewise.
585 (md_assemble): Likewise.
586 * config/tc-tilepro.c (O_tls_ie_load): Likewise.
587 (INSERT_SPECIAL_OP): Likewise.
588 (tilepro_parse_name): Likewise.
589 (parse_reg_expression): Likewise.
590 (md_assemble): Likewise.
591 * config/tc-v850.c (md_begin): Likewise.
592 (md_assemble): Likewise.
593 * config/tc-vax.c (md_ri_to_chars): Likewise.
594 (vip_begin): Likewise.
597 (md_begin): Likewise.
598 * config/tc-wasm32.c (md_begin): Likewise.
599 (md_assemble): Likewise.
600 * config/tc-xgate.c (xgate_parse_operand): Likewise.
601 (md_begin): Likewise.
602 (md_assemble): Likewise.
603 * config/tc-z8k.c (md_begin): Likewise.
604 (md_assemble): Likewise.
608 * dw2gencfi.c (dwcfi_hash_insert): Use htab_t and str_hash_*
610 (dwcfi_hash_find): Likewise.
611 (dwcfi_hash_find_or_make): Likewise.
615 * ecoff.c (INIT_VARRAY): Use htab_t.
616 (add_string): Likewise.
617 (ecoff_read_begin_hook): Use new str_htab_create.
618 (get_tag): Use htab_t.
619 (add_file): Likewise.
623 * hash.h (struct string_tuple): New.
624 (hash_string_tuple): Likewise.
625 (eq_string_tuple): Likewise.
626 (string_tuple_alloc): Likewise.
627 (str_hash_find): Likewise.
628 (str_hash_find_n): Likewise.
629 (str_hash_delete): Likewise.
630 (str_hash_insert): Likewise.
631 (str_htab_create): Likewise.
635 * symbols.c (struct symbol_entry): New.
636 (hash_symbol_entry): Likewise.
637 (eq_symbol_entry): Likewise.
638 (symbol_entry_alloc): Likewise.
639 (symbol_entry_find): Likewise.
640 (local_symbol_make): Use htab hash table.
641 (local_symbol_convert): Likewise.
642 (symbol_table_insert): Likewise.
643 (symbol_find_exact_noref): Likewise.
644 (resolve_local_symbol): Likewise.
645 (resolve_local_symbol_values): Likewise.
646 (symbol_begin): Likewise.
647 (symbol_print_statistics): Likewise.
651 * read.c (struct po_entry): New.
652 (hash_po_entry): Likewise.
653 (eq_po_entry): Likewise.
654 (po_entry_alloc): Likewise.
655 (po_entry_find): Likewise.
656 (pop_insert): Likewise.
657 (pobegin): Use htab hash table.
658 (read_a_source_file): Likewise.
660 (read_print_statistics): Likewise.
661 * config/tc-m68k.c (m68k_conditional_pseudoop): Add const qualifier.
662 * config/tc-m68k.h (m68k_conditional_pseudoop): Likewise.
666 * config/tc-iq2000.c (iq2000_add_macro): Use htab hash table.
667 * macro.c (struct hash_control): Use htab.
668 (macro_init): Likewise.
669 (do_formals): Likewise.
670 (free_macro): Likewise.
671 (define_macro): Likewise.
672 (sub_actual): Likewise.
673 (macro_expand_body): Likewise.
674 (macro_expand): Likewise.
675 (check_macro): Likewise.
676 (delete_macro): Likewise.
677 (expand_irp): Likewise.
678 * macro.h (struct macro_hash_entry): New struct.
679 (hash_macro_entry): New.
680 (eq_macro_entry): Likewise.
681 (macro_entry_alloc): Likewise.
682 (macro_entry_find): Likewise.
683 (struct formal_hash_entry): Likewise.
684 (hash_formal_entry): Likewise.
685 (eq_formal_entry): Likewise.
686 (formal_entry_alloc): Likewise.
687 (formal_entry_find): Likewise.
691 * as.h: Include hashtab.h.
692 * hash.c (htab_insert): New.
693 (htab_print_statistics): Likewise.
694 * hash.h (htab_insert): Likewise.
695 (htab_print_statistics): Likewise.
699 * testsuite/gas/ppc/int128.s: Correct vcmpuq.
700 * testsuite/gas/ppc/int128.d: Update.
701 * testsuite/gas/ppc/xvtlsbb.d: Update.
705 * testsuite/gas/ppc/vsx4.s: Update test to use new mnemonic.
706 * testsuite/gas/ppc/vsx4.d: Likewise.
710 * config/obj-elf.c (obj_elf_change_section): When repurposing an
711 existing symbol, ensure that we set sy_value as per other (fresh)
713 * testsuite/gas/elf/elf.exp: Add new test.
714 * testsuite/gas/elf/section-symbol-redef.d: New test.
715 * testsuite/gas/elf/section-symbol-redef.s: Input for test.
720 * config/obj-som.c (obj_som_init_stab_section): Do nothing if the
721 $GDB_DEBUG$ section has already been created.
725 * config/tc-arm.c (do_neon_cvt_1): Parse vcvtne as vcvt-ne for
726 NS_FD shape when MVE is present
727 * testsuite/gas/arm/mve-vcvtne-it-bad.d: New test.
728 * testsuite/gas/arm/mve-vcvtne-it-bad.l: New test.
729 * testsuite/gas/arm/mve-vcvtne-it-bad.s: New test.
730 * testsuite/gas/arm/mve-vcvtne-it.d: New test.
731 * testsuite/gas/arm/mve-vcvtne-it.s: New test.
735 * testsuite/gas/aarch64/mpam-bad.d: New test.
736 * testsuite/gas/aarch64/mpam-bad.l: Error output.
737 * testsuite/gas/aarch64/mpam-bad.s: Input.
738 * testsuite/gas/aarch64/mpam.d: New test.
739 * testsuite/gas/aarch64/mpam.s: Input.
744 * doc/c-riscv.texi (RISC-V-Options): Fix typo in the description
745 of the -mno-csr-check option.
749 * po/ru.po: Updated Russian translation.
753 * config/tc-aarch64.c (parse_sys_reg): Don't assert when parsing
754 a long system register.
755 (parse_sys_ins_reg): Likewise.
756 (sysreg_hash_insert): New.
757 (md_begin): Use sysreg_hash_insert() to ensure all system
758 registers are no longer than the maximum length at startup.
759 * testsuite/gas/aarch64/invalid-sysreg-assert.d: New test.
760 * testsuite/gas/aarch64/invalid-sysreg-assert.l: Error output.
761 * testsuite/gas/aarch64/invalid-sysreg-assert.s: Input.
765 * config/tc-aarch64.c (parse_sys_reg): Call to
766 aarch64_sys_ins_reg_supported_p instead of
767 aarch64_sys_reg_supported_p.
768 (parse_sys_ins_reg): Add aarch64_sys_reg_deprecated_p check.
769 * testsuite/gas/aarch64/illegal-sysreg-5.d: New test.
770 * testsuite/gas/aarch64/illegal-sysreg-5.l: New test.
771 * testsuite/gas/aarch64/sysreg-5.s: New test.
775 * testsuite/gas/ppc/power8.d,
776 * testsuite/gas/ppc/power8.s: Add miso.
777 * testsuite/gas/ppc/power9.d,
778 * testsuite/gas/ppc/power8.s: Add exser, msgsndu, msgclru.
782 * testsuite/gas/ppc/power8.d: Update.
783 * testsuite/gas/ppc/vsx2.d: Update.
787 * config/tc-ppc.c (md_assemble): Error for lmw, stmw, lswi, lswx,
788 stswi, or stswx in little-endian mode.
789 * testsuite/gas/ppc/476.d,
790 * testsuite/gas/ppc/476.s: Delete lmw, stmw, lswi, lswx, stswi, stswx.
791 * testsuite/gas/ppc/a2.d,
792 * testsuite/gas/ppc/a2.s: Move lmw, stmw, lswi, lswx, stswi, stswx..
793 * testsuite/gas/ppc/be.d,
794 * testsuite/gas/ppc/be.s: ..to here, new big-endian only test.
795 * testsuite/gas/ppc/le_error.d,
796 * testsuite/gas/ppc/le_error.l: New little-endian test.
797 * testsuite/gas/ppc/ppc.exp: Run new tests.
801 * read.c (read_a_source_file): Ignore rest of line on overflow
806 * read.c (read_a_source_file): Use long for local labels, detect
807 overflow and raise an error for overly-long labels.
808 * testsuite/gas/all/gas.exp: Add local-label-overflow test.
809 * testsuite/gas/all/local-label-overflow.d: New test.
810 * testsuite/gas/all/local-label-overflow.l: Error output.
811 * testsuite/gas/all/local-label-overflow.s: Input.
815 * gas/testsuite/gas/z8k/inout.d: Adapt to correct encoding of
816 "sout/soutb #imm,reg"
820 * NEWS: Mention {disp16} pseudo prefix.
824 * testsuite/gas/i386/x86-64-pseudos.d: Revert an accidental
829 * dwarf2dbg.c (out_debug_abbrev): When DWARF2_VERSION >= 4, use
830 DW_FORM_udata for DW_AT_high_pc.
831 (out_debug_info): Use emit_leb128_expr for DW_AT_high_pc, when
833 * read.c (emit_leb128_exp): No longer static.
834 * read.h (emit_leb128_exp): Define.
838 * gas/dwarf2dbg.c (out_dir_and_file_list): For DWARF5 emit at
839 least one directory if there is at least one file. Use dirs[1]
840 if dirs[0] is not set, or if there is no dirs[1] the current
841 working directory. Use files[1] filename, when files[0] filename
846 * dwarf2dbg.c (out_debug_info): Emit unit type and abbrev offset
848 * gas/testsuite/gas/elf/dwarf-4-cu.d: New file.
849 * gas/testsuite/gas/elf/dwarf-4-cu.s: Likewise.
850 * gas/testsuite/gas/elf/dwarf-5-cu.d: Likewise.
851 * gas/testsuite/gas/elf/dwarf-5-cu.s: Likewise.
852 * testsuite/gas/elf/elf.exp: Run dwarf-4-cu and dwarf-5-cu.
856 * doc/as.texi (--gdwarf-[345]): Fix typo.
860 * config/tc-msp430.c (OPTION_MOVE_DATA): Remove.
861 (md_parse_option): Remove case for OPTION_MOVE_DATA.
862 (md_longopts): Remove "md" entry.
863 (md_show_usage): Likewise.
868 * config/tc-i386.c (_i386_insn::disp_encoding): Add
870 (parse_insn): Check Prefix_XXX for pseudo prefixes. Handle
872 (build_modrm_byte): Handle {disp16}.
873 (i386_index_check): Check invalid {disp16} and {disp32} pseudo
875 * doc/c-i386.texi: Update {disp32} documentation and document
877 * testsuite/gas/i386/i386.exp: Run x86-64-inval-pseudo.
878 * testsuite/gas/i386/inval-pseudo.s: Add {disp32}/{disp16}
880 * testsuite/gas/i386/pseudos.s: Add {disp8}/{disp32} vmovaps
881 tests with 128-byte displacement. Add {disp16} tests.
882 * testsuite/gas/i386/x86-64-pseudos.s: Add {disp8}/{disp32}
883 vmovaps test. Add (%r13)/(%r13d) tests.
884 * testsuite/gas/i386/x86-64-inval-pseudo.l: New file.
885 * testsuite/gas/i386/x86-64-inval-pseudo.s: Likewise.
886 * testsuite/gas/i386/inval-pseudo.l: Updated.
887 * testsuite/gas/i386/pseudos.d: Likewise.
888 * testsuite/gas/i386/x86-64-pseudos.d: Likewise.
892 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
893 * Makefile.in, doc/Makefile.in: Regenerate.
894 * configure: Regenerate.
898 * testsuite/gas/elf/dwarf2-3.d:Pass --gdwarf-3 to assembler.
899 * testsuite/gas/elf/dwarf2-5.d: Likewise.
900 * testsuite/gas/i386/dw2-compress-3a.d: Likewise.
901 * testsuite/gas/i386/dw2-compress-3b.d: Likewise.
902 * testsuite/gas/i386/dw2-compressed-3a.d: Likewise.
903 * testsuite/gas/i386/dw2-compressed-3b.d: Likewise.
907 * as.c (dwarf_level): Initialise to 3 in case this is not set on
912 * testsuite/gas/mips/global-local-symtab-sort-o32.d: New test.
913 * testsuite/gas/mips/global-local-symtab-sort-o32t.d: New test.
914 * testsuite/gas/mips/global-local-symtab-sort-n32.d: New test.
915 * testsuite/gas/mips/global-local-symtab-sort-n32t.d: New test.
916 * testsuite/gas/mips/global-local-symtab-sort-n64.d: New test.
917 * testsuite/gas/mips/global-local-symtab-sort-n64t.d: New test.
918 * testsuite/gas/mips/mips.exp: Run the new tests.
922 * testsuite/gas/mips/global-local-symtab-o32.d: New test.
923 * testsuite/gas/mips/global-local-symtab-o32t.d: New test.
924 * testsuite/gas/mips/global-local-symtab-n32.d: New test.
925 * testsuite/gas/mips/global-local-symtab-n32t.d: New test.
926 * testsuite/gas/mips/global-local-symtab-n64.d: New test.
927 * testsuite/gas/mips/global-local-symtab.s: New test source.
928 * testsuite/gas/mips/mips.exp: Run the new tests.
933 * config/tc-i386.c (build_modrm_byte): Use disp32/disp16 on
934 (%bp)/(%ebp)/(%rbp) for {disp32}.
935 * doc/c-i386.texi: Update {disp32} documentation.
936 * testsuite/gas/i386/pseudos.s: Add (%bp)/(%ebp) tests.
937 * testsuite/gas/i386/x86-64-pseudos.s: Add (%ebp)/(%rbp) tests.
938 * testsuite/gas/i386/pseudos.d: Updated.
939 * testsuite/gas/i386/x86-64-pseudos.d: Likewise.
943 * doc/as.texi: Replace preceeded with preceded.
947 * testsuite/gas/mips/jal-svr4pic-irix.d: New file.
952 * testsuite/gas/mips/jal-svr4pic-local-irix.d: New file.
957 * testsuite/gas/mips/jal-svr4pic-noreorder-irix.d: New file.
966 * testsuite/gas/mips/jal-xgot-irix.d: New file.
967 * testsuite/gas/mips/jalr2-irix.d: New file.
968 * testsuite/gas/mips/micromips-branch-relax-insn32-pic-irix.d:
970 * testsuite/gas/mips/micromips-branch-relax-pic-irix.d: New
972 * testsuite/gas/mips/mips-abi32-pic2-irix.d: New file.
973 * testsuite/gas/mips/jal-svr4pic-local.d: Don't exclude
974 `*-*-irix*' targets. Add source file designator.
979 * testsuite/gas/mips/jalr2.d: Add name designator.
980 * testsuite/gas/mips/mips.exp: Use respective IRIX variants for
981 tests involving the JALR relocation throughout.
985 * testsuite/gas/mips/mips.exp: Use a helper variable for
986 IRIX/non-IRIX test selection.
990 * testsuite/gas/i386/evex-no-scale-64.d,
991 testsuite/gas/i386/addr32.d,
992 testsuite/gas/i386/x86-64-addr32-intel.d,
993 testsuite/gas/i386/x86-64-addr32.d: Adjust expectations.
997 * config/tc-csky.c (md_begin): Fix tests of arch and mach flags.
1001 * testsuite/gas/i386/evex-no-scale-32.d,
1002 testsuite/gas/i386/evex-no-scale-64.d: Add #source and #pass.
1003 * testsuite/gas/i386/evex-no-scale-32.s,
1004 testsuite/gas/i386/evex-no-scale-64.s: Rename / fold into ...
1005 * testsuite/gas/i386/evex-no-scale.s: ... this. Use .struct
1006 instead of .section.
1007 * testsuite/gas/i386/i386.exp: Move above tests out of ELF-
1012 * config/tc-mips.c (prev_reloc_op_frag): Remove variable.
1013 (my_getSmallExpression): Adjust accordingly.
1018 * config/tc-i386.c (i386_comment_chars): Drop TE_I386AIX from
1019 conditional around it.
1020 (md_begin): Insert backslash into operand_chars[] when slash is
1021 a comment character.
1022 * config/tc-i386-intel.c (i386_operator): Recognize \/, \%, and
1023 \* as operators when / may be a comment character.
1024 * testsuite/gas/i386/svr4.s, testsuite/gas/i386/svr4.d: New.
1025 * testsuite/gas/i386/i386.exp: Run new test.
1030 * app.c (last_char): Drop TC_ARM conditional around it.
1031 (struct app_save): Drop TC_ARM conditional around last_char.
1032 (app_push, app_pop): Drop TC_ARM conditional from last_char
1034 (do_scrub_chars): Likewise. Drop TC_ARM conditional from
1035 backslash-precedes-comment-character check.
1039 * config/tc-i386.c (frag_opcode_byte): New.
1040 (output_branch): Emit error when in absolute section.
1041 (output_jump, output_insn): Use frag_opcode_byte. Handle being
1042 in absolute section.
1043 (output_interseg_jump, output_disp, output_imm): Handle being in
1045 * testsuite/gas/i386/sizing.s,
1046 testsuite/gas/i386/sizing32.d,
1047 testsuite/gas/i386/sizing64.d: New.
1048 * testsuite/gas/i386/i386.exp: Run new tests.
1052 * testsuite/gas/i386/i386.exp: Include *-*-vxworks alongside
1053 is_elf_format as applicable; merely exclude iamcu tests.
1058 * config/tc-i386.c (i386_validate_fix): Change PLT32 reloc
1059 against section to PC32 reloc.
1060 * testsuite/gas/i386/relax-5.d: Updated.
1061 * testsuite/gas/i386/x86-64-relax-4.d: Likewise.
1066 * testsuite/gas/i386/evex-no-scale-64.d: Updated.
1067 * testsuite/gas/i386/addr32.d: Likewise.
1068 * testsuite/gas/i386/x86-64-addr32-intel.d: Likewise.
1069 * testsuite/gas/i386/x86-64-addr32.d: Likewise.
1073 * write.c (create_note_reloc): Add desc2_size parameter. Zero out
1074 the addend field of REL relocations. Store the full addend into
1075 the note for REL relocations.
1079 * testsuite/gas/i386/x86-64-stack.s: Adjust 32-bit push
1081 * testsuite/gas/i386/x86-64-stack-intel.d,
1082 testsuite/gas/i386/x86-64-stack-suffix.d,
1083 testsuite/gas/i386/x86-64-stack.d: Adjust expectations.
1087 * testsuite/gas/i386/disassem.d,
1088 testsuite/gas/i386/ilp32/x86-64-branch.d,
1089 testsuite/gas/i386/intel.d, testsuite/gas/i386/jump16.d,
1090 testsuite/gas/i386/lfence-load.d, testsuite/gas/i386/noreg16.d,
1091 testsuite/gas/i386/noreg32.d,
1092 testsuite/gas/i386/noreg64-rex64.d,
1093 testsuite/gas/i386/noreg64.d, testsuite/gas/i386/notrack.d,
1094 testsuite/gas/i386/opcode.d,
1095 testsuite/gas/i386/solaris/x86-64-branch-2.d,
1096 testsuite/gas/i386/solaris/x86-64-jump.d,
1097 testsuite/gas/i386/solaris/x86-64-mpx-branch-1.d,
1098 testsuite/gas/i386/solaris/x86-64-nop-3.d,
1099 testsuite/gas/i386/solaris/x86-64-nop-4.d,
1100 testsuite/gas/i386/solaris/x86-64-nop-5.d,
1101 testsuite/gas/i386/solaris/x86-64-relax-2.d,
1102 testsuite/gas/i386/solaris/x86-64-relax-3.d,
1103 testsuite/gas/i386/x86-64-align-branch-1a.d,
1104 testsuite/gas/i386/x86-64-align-branch-1b.d,
1105 testsuite/gas/i386/x86-64-align-branch-1c.d,
1106 testsuite/gas/i386/x86-64-align-branch-1d.d,
1107 testsuite/gas/i386/x86-64-align-branch-1e.d,
1108 testsuite/gas/i386/x86-64-align-branch-1f.d,
1109 testsuite/gas/i386/x86-64-align-branch-1g.d,
1110 testsuite/gas/i386/x86-64-align-branch-1h.d,
1111 testsuite/gas/i386/x86-64-align-branch-1i.d,
1112 testsuite/gas/i386/x86-64-align-branch-2a.d,
1113 testsuite/gas/i386/x86-64-align-branch-2b.d,
1114 testsuite/gas/i386/x86-64-align-branch-2c.d,
1115 testsuite/gas/i386/x86-64-align-branch-3.d,
1116 testsuite/gas/i386/x86-64-align-branch-4a.d,
1117 testsuite/gas/i386/x86-64-align-branch-4b.d,
1118 testsuite/gas/i386/x86-64-align-branch-5.d,
1119 testsuite/gas/i386/x86-64-align-branch-6.d,
1120 testsuite/gas/i386/x86-64-branch-2.d,
1121 testsuite/gas/i386/x86-64-branch-3.d,
1122 testsuite/gas/i386/x86-64-branch.d,
1123 testsuite/gas/i386/x86-64-disassem.d,
1124 testsuite/gas/i386/x86-64-disp32.d,
1125 testsuite/gas/i386/x86-64-gotpcrel-no-relax.d,
1126 testsuite/gas/i386/x86-64-gotpcrel.d,
1127 testsuite/gas/i386/x86-64-ifunc.d,
1128 testsuite/gas/i386/x86-64-jump.d,
1129 testsuite/gas/i386/x86-64-lfence-byte.d,
1130 testsuite/gas/i386/x86-64-lfence-indbr-a.d,
1131 testsuite/gas/i386/x86-64-lfence-indbr-b.d,
1132 testsuite/gas/i386/x86-64-lfence-indbr-c.d,
1133 testsuite/gas/i386/x86-64-lfence-load.d,
1134 testsuite/gas/i386/x86-64-lfence-ret-a.d,
1135 testsuite/gas/i386/x86-64-lfence-ret-b.d,
1136 testsuite/gas/i386/x86-64-lfence-ret-c.d,
1137 testsuite/gas/i386/x86-64-lfence-ret-d.d,
1138 testsuite/gas/i386/x86-64-lfence-ret-e.d,
1139 testsuite/gas/i386/x86-64-mpx-add-bnd-prefix.d,
1140 testsuite/gas/i386/x86-64-mpx-branch-1.d,
1141 testsuite/gas/i386/x86-64-mpx.d,
1142 testsuite/gas/i386/x86-64-nop-3.d,
1143 testsuite/gas/i386/x86-64-nop-4.d,
1144 testsuite/gas/i386/x86-64-nop-5.d,
1145 testsuite/gas/i386/x86-64-nops-7.d,
1146 testsuite/gas/i386/x86-64-notrack.d,
1147 testsuite/gas/i386/x86-64-opcode.d,
1148 testsuite/gas/i386/x86-64-relax-2.d,
1149 testsuite/gas/i386/x86-64-relax-3.d,
1150 testsuite/gas/i386/x86-64-relax-4.d,
1151 testsuite/gas/i386/x86-64-rtm.d,
1152 testsuite/gas/i386/x86-64-stack.d,
1153 testsuite/gas/i386/x86-64-unique.d,
1154 testsuite/gas/i386/x86_64-intel.d: Adjust expectations.
1159 * testsuite/gas/i386/addr32.s: Add tests for 32-bit wrapped around
1161 * testsuite/gas/i386/x86-64-addr32.s: Likewise.
1162 * testsuite/gas/i386/addr32.d: Updated.
1163 * testsuite/gas/i386/x86-64-addr32-intel.d: Likewise.
1164 * testsuite/gas/i386/x86-64-addr32.d: Likewise.
1165 * testsuite/gas/i386/ilp32/x86-64-addr32-intel.d: Likewise.
1166 * testsuite/gas/i386/ilp32/x86-64-addr32.d: Likewise.
1170 * testsuite/gas/i386/intel.s: Use dr<N> instead of db<N>.
1171 * testsuite/gas/i386/intel-intel.d: Disambiguate name.
1172 * testsuite/gas/i386/intel.d,
1173 testsuite/gas/i386/opcode-intel.d: Adjust expectations.
1177 * testsuite/gas/i386/prefix.d: Adjust expectations.
1181 * testsuite/gas/i386/x86-64-avx-intel.d,
1182 testsuite/gas/i386/x86-64-sse4_2-intel.d: Adjust expectations.
1186 * testsuite/gas/i386/movbe-suffix.d,
1187 testsuite/gas/i386/x86-64-movbe-suffix.d: New.
1188 * testsuite/gas/i386/i386.exp: Run new tests.
1192 * testsuite/gas/i386/crc32-suffix.d,
1193 testsuite/gas/i386/x86-64-crc32-suffix.d: New.
1194 * testsuite/gas/i386/i386.exp: Run new tests.
1195 * testsuite/gas/i386/arch-10-bdver1.d,
1196 testsuite/gas/i386/arch-10-bdver2.d,
1197 testsuite/gas/i386/arch-10-bdver3.d,
1198 testsuite/gas/i386/arch-10-bdver4.d,
1199 testsuite/gas/i386/arch-10-btver1.d,
1200 testsuite/gas/i386/arch-10-btver2.d,
1201 testsuite/gas/i386/arch-10-lzcnt.d,
1202 testsuite/gas/i386/arch-10-prefetchw.d,
1203 testsuite/gas/i386/arch-10.d, testsuite/gas/i386/arch-2.d,
1204 testsuite/gas/i386/arch-3.d, testsuite/gas/i386/arch-5.d,
1205 testsuite/gas/i386/arch-6.d, testsuite/gas/i386/crc32.d,
1206 testsuite/gas/i386/sse-noavx.d, testsuite/gas/i386/sse4_2.d,
1207 testsuite/gas/i386/x86-64-arch-2-bdver1.d,
1208 testsuite/gas/i386/x86-64-arch-2-bdver2.d,
1209 testsuite/gas/i386/x86-64-arch-2-bdver3.d,
1210 testsuite/gas/i386/x86-64-arch-2-bdver4.d,
1211 testsuite/gas/i386/x86-64-arch-2-btver1.d,
1212 testsuite/gas/i386/x86-64-arch-2-btver2.d,
1213 testsuite/gas/i386/x86-64-arch-2-lzcnt.d,
1214 testsuite/gas/i386/x86-64-arch-2-prefetchw.d,
1215 testsuite/gas/i386/x86-64-arch-2.d,
1216 testsuite/gas/i386/x86-64-crc32.d,
1217 testsuite/gas/i386/x86-64-pseudos.d,
1218 testsuite/gas/i386/x86-64-sse-noavx.d,
1219 testsuite/gas/i386/x86-64-sse4_2.d: Adjust expectations.
1223 * testsuite/gas/i386/x86-64-pseudos.s: Add empty-REX tests for
1224 ModR/M-encoded byte register cases.
1225 * testsuite/gas/i386/x86-64-pseudos.d,
1226 testsuite/gas/i386/x86-64-reg-intel.d,
1227 testsuite/gas/i386/x86-64-reg.d: Adjust expectations.
1231 * testsuite/gas/i386/x86-64-pseudos.s: Add empty-REX tests for
1232 not-ModR/M-encoded byte register cases.
1233 * testsuite/gas/i386/x86-64-pseudos.d: Adjust expectations.
1237 * testsuite/gas/i386/ilp32/x86-64-arch-1.d,
1238 testsuite/gas/i386/ilp32/x86-64-arch-2.d,
1239 testsuite/gas/i386/ilp32/x86-64-avx-intel.d,
1240 testsuite/gas/i386/ilp32/x86-64-avx.d,
1241 testsuite/gas/i386/ilp32/x86-64-crc32-intel.d,
1242 testsuite/gas/i386/ilp32/x86-64-crc32.d,
1243 testsuite/gas/i386/ilp32/x86-64-gotpcrel.d,
1244 testsuite/gas/i386/ilp32/x86-64-ifunc.d,
1245 testsuite/gas/i386/ilp32/x86-64-reg-intel.d,
1246 testsuite/gas/i386/ilp32/x86-64-reg.d,
1247 testsuite/gas/i386/ilp32/x86-64-rep-suffix.d,
1248 testsuite/gas/i386/ilp32/x86-64-sse4_2-intel.d,
1249 testsuite/gas/i386/ilp32/x86-64-sse4_2.d,
1250 testsuite/gas/i386/ilp32/x86-64-stack-intel.d,
1251 testsuite/gas/i386/ilp32/x86-64-stack-suffix.d,
1252 testsuite/gas/i386/ilp32/x86-64-stack.d: Reference parent dir
1257 * config/tc-i386.c (offset_in_range): Remove 32-bit sign
1262 * po/fr.po: Updated French translation.
1266 * testsuite/gas/elf/dwarf2-7.d: Remove most xfails.
1267 * testsuite/gas/elf/dwarf2-12.d: Likewise.
1268 * testsuite/gas/elf/dwarf2-13.d: Likewise.
1269 * testsuite/gas/elf/dwarf2-14.d: Likewise.
1273 * config/tc-i386.c (output_insn): Check i.xstate to set
1274 GNU_PROPERTY_X86_FEATURE_2_TMM.
1275 * testsuite/gas/i386/i386.exp: Run x86-64-property-7,
1276 x86-64-property-8 and x86-64-property-9.
1277 * testsuite/gas/i386/x86-64-property-7.d: New file.
1278 * testsuite/gas/i386/x86-64-property-7.s: Likewise.
1279 * testsuite/gas/i386/x86-64-property-8.d: Likewise.
1280 * testsuite/gas/i386/x86-64-property-8.s: Likewise.
1281 * testsuite/gas/i386/x86-64-property-9.d: Likewise.
1282 * testsuite/gas/i386/x86-64-property-9.s: Likewise.
1286 * config/tc-i386.c (_i386_insn): Remove has_regmmx, has_regxmm,
1287 has_regymm, has_regzmm and has_regtmm. Add xstate.
1288 (md_assemble): Set i.xstate from operand types in instruction
1290 (build_modrm_byte): Updated.
1291 (output_insn): Check i.xstate.
1292 * testsuite/gas/i386/i386.exp: Run property-6 and
1294 * testsuite/gas/i386/property-6.d: New file.
1295 * testsuite/gas/i386/property-6.s: Updated.
1296 * testsuite/gas/i386/x86-64-property-6.d: Likewise.
1300 * testsuite/gas/i386/property-5.d: Correct test name.
1304 * NEWS: Mention support for Intel AMX instructions.
1305 * config/tc-i386.c (i386_error): Add invalid_sib_address.
1306 (cpu_arch): Add .amx_int8, .amx_bf16 and .amx_tile.
1307 (cpu_noarch): Add noamx_int8, noamx_bf16 and noamx_tile.
1308 (match_simd_size): Add tmmword check.
1309 (operand_type_match): Add tmmword.
1310 (type_names): Add rTMM.
1311 (i386_error): Add invalid_tmm_register_set.
1312 (check_VecOperands): Handle invalid_sib_address and
1313 invalid_tmm_register_set.
1314 (match_template): Handle invalid_sib_address.
1315 (build_modrm_byte): Handle non-vector SIB and zmmword.
1316 (i386_index_check): Disallow RegIP for non-vector SIB.
1317 (check_register): Handle zmmword.
1318 * doc/c-i386.texi: Document amx_int8, amx_bf16 and amx_tile.
1319 * testsuite/gas/i386/i386.exp: Add AMX new tests.
1320 * testsuite/gas/i386/intel-regs.d: Add tmm.
1321 * testsuite/gas/i386/intel-regs.s: Add tmm.
1322 * testsuite/gas/i386/x86-64-amx-intel.d: New.
1323 * testsuite/gas/i386/x86-64-amx-inval.l: New.
1324 * testsuite/gas/i386/x86-64-amx-inval.s: New.
1325 * testsuite/gas/i386/x86-64-amx.d: New.
1326 * testsuite/gas/i386/x86-64-amx.s: New.
1327 * testsuite/gas/i386/x86-64-amx-bad.d: New.
1328 * testsuite/gas/i386/x86-64-amx-bad.s: New.
1332 * testsuite/gas/elf/dwarf2-11.d: Update expected output from
1333 readelf's line table decoding.
1334 * testsuite/gas/elf/dwarf2-12.d: Likewise.
1335 * testsuite/gas/elf/dwarf2-13.d: Likewise.
1336 * testsuite/gas/elf/dwarf2-14.d: Likewise.
1337 * testsuite/gas/elf/dwarf2-15.d: Likewise.
1338 * testsuite/gas/elf/dwarf2-16.d: Likewise.
1339 * testsuite/gas/elf/dwarf2-17.d: Likewise.
1340 * testsuite/gas/elf/dwarf2-18.d: Likewise.
1341 * testsuite/gas/elf/dwarf2-19.d: Likewise.
1342 * testsuite/gas/elf/dwarf2-5.d: Likewise.
1343 * testsuite/gas/elf/dwarf2-6.d: Likewise.
1344 * testsuite/gas/elf/dwarf2-7.d: Likewise.
1348 * config/tc-i386.c (output_insn): Set YMM/ZMM features for
1349 VEX/EVEX vector instructions.
1350 * testsuite/gas/i386/property-4.d: New file.
1351 * testsuite/gas/i386/property-4.s: Likewise.
1352 * testsuite/gas/i386/property-5.d: Likewise.
1353 * testsuite/gas/i386/property-5.s: Likewise.
1354 * testsuite/gas/i386/x86-64-property-4.d: Likewise.
1355 * testsuite/gas/i386/x86-64-property-5.d: Likewise.
1359 * NEWS: Mention --enable-x86-used-note.
1360 * configure.ac: Configure with --enable-x86-used-note by default
1362 * configure: Regenerated.
1366 * config/obj-coff.h: Remove TE_PE support.
1367 * config/tc-ppc.c: Likewise.
1368 * config/tc-ppc.h: Likewise.
1369 * configure.tgt: Remove powerpc PE and powerpc lynxos.
1370 * testsuite/gas/cfi/cfi.exp (cfi-common-6): Remove powerpc PE
1372 * testsuite/gas/macros/macros.exp: Don't xfail powerpc PE.
1376 * testsuite/gas/i386/fma4-lig.d, testsuite/gas/i386/xop-lig.d:
1378 * testsuite/gas/i386/i386.exp: Run new tests.
1382 * config/tc-arc.c (find_opcode_match): Add error messages.
1383 * testsuite/gas/arc/add_s-err.s: Update test.
1384 * testsuite/gas/arc/asm-errors.err: Likewise.
1385 * testsuite/gas/arc/cpu-em-err.s: Likewise.
1386 * testsuite/gas/arc/hregs-err.s: Likewise.
1387 * testsuite/gas/arc/warn.s: Likewise.
1392 * doc/c-i386.texi: Remove an incorrect AVX2 entry.
1396 * testsuite/gas/all/gas.exp: Use is_xcoff_format.
1397 * testsuite/gas/ppc/ppc.exp: Likewise.
1398 * testsuite/gas/all/weakref1l.d: Likewise.
1402 * testsuite/gas/arm/cde-missing-fp.l: Fix spelling mistake in
1407 * testsuite/gas/i386/x86-64-avx512bw-wig1.d,
1408 testsuite/gas/i386/x86-64-avx512bw-wig1-intel.d,
1409 testsuite/gas/i386/x86-64-evex-wig1.d,
1410 testsuite/gas/i386/x86-64-evex-wig1-intel.d: Adjust
1415 * testsuite/gas/i386/avx512f-opts.s: Add EVEX movq tests.
1416 * testsuite/gas/i386/x86-64-avx512f-opts.s: Add blank line.
1417 * testsuite/gas/i386/avx512f-opts-intel.d,
1418 testsuite/gas/i386/avx512f-opts.d
1419 testsuite/gas/i386/x86-64-avx512f-opts-intel.d
1420 testsuite/gas/i386/x86-64-avx512f-opts.d: Adjust expectations.
1425 * config/tc-arm.c: Fix spelling mistake.
1426 * config/tc-riscv.c: Likewise.
1427 * config/tc-z80.c: Likewise.
1428 * po/gas.pot: Regenerate.
1432 * po/uk.po: Updated Ukranian translation.
1436 * configure: Regenerate.
1437 * po/gas.pot: Regenerate.
1441 * version.m4: Change version number to 2.35.50.
1442 * configure: Regenerate.
1443 * po/bfd.pot: Regenerate.
1447 Binutils 2.35 branch created.
1452 * testsuite/gas/ia64/unwind-ilp32.d: Add -T to readelf options.
1456 * config/tc-i386.c (build_modrm_byte): Check vexswapsources to
1457 swap two source operands.
1461 * testsuite/gas/all/fill-1.d: Skip for MeP targets.
1465 * config/tc-aarch64.c (reg_name_p): Fix cast so that we don't
1466 segfault on negative chars.
1467 * testsuite/gas/aarch64/reglike-label-unicode-segv.d: New test.
1468 * testsuite/gas/aarch64/reglike-label-unicode-segv.s: Input.
1473 * testsuite/gas/ia64/group-2.d: Add -T option to readelf
1475 * testsuite/gas/ia64/unwind.d: Likewise.
1476 * testsuite/gas/mmix/bspec-1.d: Likewise.
1477 * testsuite/gas/mmix/bspec-2.d: Likewise.
1478 * testsuite/gas/mmix/comment-1.d: Likewise.
1479 * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
1483 * config/tc-xc16x.c (md_apply_fix): Add FIXME.
1487 * testsuite/gas/all/eqv-dot.d: xfail targets that set linkrelax
1488 in data sections, and mep.
1492 * NEWS: Mention x86 NaCl target support removal.
1493 * config/tc-i386.c: Remove x86 NaCl target support.
1494 * config/tc-i386.h: Likewise.
1495 * configure.tgt: Likewise.
1496 * testsuite/gas/i386/i386.exp: Likewise.
1497 * testsuite/gas/i386/iamcu-1.d: Likewise.
1498 * testsuite/gas/i386/iamcu-2.d: Likewise.
1499 * testsuite/gas/i386/iamcu-3.d: Likewise.
1500 * testsuite/gas/i386/iamcu-4.d: Likewise.
1501 * testsuite/gas/i386/iamcu-5.d: Likewise.
1502 * testsuite/gas/i386/k1om.d: Likewise.
1503 * testsuite/gas/i386/l1om.d: Likewise.
1507 * config/tc-riscv.c (riscv_csr_class_check): Removed. Move the
1508 checking into riscv_csr_address.
1509 (riscv_csr_version_check): Likewise.
1510 (riscv_csr_address): New function. Return the suitable CSR address
1511 after checking the ISA dependency and versions. Issue warnings if
1512 we find any conflict and -mcsr-check is set. CSR_CLASS_F and
1513 CSR_CLASS_DEBUG are unprivileged CSR for now, so don't check the
1514 priv spec versions for them.
1515 (reg_csr_lookup_internal): Call riscv_csr_address to find the
1516 suitable CSR address.
1517 * testsuite/gas/riscv/priv-reg-fail-fext.d: Remove -mpriv-spec=1.11.
1518 * testsuite/gas/riscv/priv-reg-fail-read-only-01.d: Likewise.
1519 * testsuite/gas/riscv/priv-reg-fail-rv32-only.d: Likewise.
1520 * testsuite/gas/riscv/priv-reg-fail-fext.l: We don't care the
1521 priv spec warnings here. These warnings are added by accident.
1522 Remove them and only focus on the ISA dependency warnings.
1523 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
1524 * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
1525 * testsuite/gas/riscv/priv-reg-fail-version-1p9.l: Updated since
1526 dscratch0 and dscratch1 are regarded as the unprivileged CSR rather
1527 than the privileged ones.
1528 * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
1529 * testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
1530 * testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
1531 * testsuite/gas/riscv/priv-reg.s: Likewise. Add missing debug CSR.
1532 * testsuite/gas/riscv/priv-reg-version-1p9.d: Likewise.
1533 * testsuite/gas/riscv/priv-reg-version-1p9p1.d: Likewise.
1534 * testsuite/gas/riscv/priv-reg-version-1p10.d: Likewise.
1535 * testsuite/gas/riscv/priv-reg-version-1p11.d: Likewise.
1536 * testsuite/gas/riscv/csr-dw-regnums.d: Likewise.
1537 * testsuite/gas/riscv/csr-dw-regnums.s: Likewise.
1541 * tc-i386.c (build_vex_prefix): Support VEX base opcode length > 1.
1542 (md_assemble): Don't process ImmExt without operands.
1547 * config/tc-mmix.c (md_assemble) <fixup for
1548 BFD_RELOC_MMIX_BASE_PLUS_OFFSET>: This fixup affects 1 byte, not 8.
1549 Also, set its fx_no_overflow.
1550 (md_convert_frag) <case ENCODE_RELAX (STATE_PUSHJSTUB, STATE_ZERO)>:
1551 Similarly this fixup affects 4 bytes, not 8 and needs its
1553 * config/tc-mmix.h (TC_FX_SIZE_SLACK): Don't define.
1554 * testsuite/gas/mmix/pr25331.d, testsuite/gas/mmix/pr25331.s: New test.
1558 * config/tc-s12z.c: Use C style comments.
1559 * config/tc-z80.c: Likewise.
1560 * config/tc-xtensa.c (emit_ld_r_n): Remove commented out code.
1564 * config/tc-i386.c (md_assemble): Process ImmExt without
1569 * config/tc-i386.c (check_VecOperands): Replace vecsib with sib.
1570 Replace VecSIB128, VecSIB256 and VecSIB512 with VECSIB128,
1571 VECSIB256 and VECSIB512, respectively.
1572 (build_modrm_byte): Replace vecsib with sib.
1576 * testsuite/gas/i386/nop-1-suffix.d: New.
1577 * testsuite/gas/i386/i386.exp: Run new test.
1581 * config/tc-m68k.c (m68k_elf_gnu_attribute): New function.
1582 (md_pseudo_table): Handle "gnu_attribute".
1583 * doc/as.texi: Document GNU attribute for M68K.
1588 * config/tc-arm.c (arm_force_relocation): Force resolution of
1589 BFD_RELOC_THUMB_PCREL_BRANCH12 relocations.
1590 * testsuite/gas/arm/plt-1.d: Adjust expected disassembly.
1594 * config/tc-i386.c (md_assemble): Move call to process_immext()
1596 (process_operands): ... here.
1600 * config/tc-i386.c (process_suffix): Skip ambiguous operand size
1601 diagnostic when there is a sizing prefix. Switch to word/dword/
1602 qword encoding when there is a sizing prefix and no (explicit or
1604 (update_imm): Handle presence of a sizing prefix.
1605 * testsuite/gas/i386/noreg16-data32.d,
1606 testsuite/gas/i386/noreg32-data16.d,
1607 testsuite/gas/i386/noreg32-data16.e,
1608 testsuite/gas/i386/noreg64-data16.d,
1609 testsuite/gas/i386/noreg64-data16.e,
1610 testsuite/gas/i386/noreg64-rex64.d: New.
1611 * testsuite/gas/i386/i386.exp: Run new tests.
1612 * testsuite/gas/i386/noreg32.s, testsuite/gas/i386/noreg64.s:
1613 Introduce and use pfx* macros.
1614 * testsuite/gas/i386/noreg16.s: Likewise. Replace 32-bit
1616 * testsuite/gas/i386/noreg16.d: Adjust expectations.
1620 * testsuite/gas/i386/avx-16bit.d,
1621 testsuite/gas/i386/avx-scalar.d, testsuite/gas/i386/avx.d,
1622 testsuite/gas/i386/avx512f-16bit.d,
1623 testsuite/gas/i386/avx512f.d,
1624 testsuite/gas/i386/evex-lig256.d,
1625 testsuite/gas/i386/evex-lig512.d
1626 testsuite/gas/i386/evex-wig1.d, testsuite/gas/i386/katmai.d,
1627 testsuite/gas/i386/noreg16.d, testsuite/gas/i386/noreg32.d,
1628 testsuite/gas/i386/ptwrite.d, testsuite/gas/i386/simd.d,
1629 testsuite/gas/i386/sse2-16bit.d,
1630 testsuite/gas/i386/sse2.d, testsuite/gas/i386/sse2avx.d: Adjust
1635 * config/tc-i386.c (md_assemble): Also reject explicit REX
1636 prefixes with VEX and alike encoded insns. Zap consumed bits
1638 (output_insn): Don't ignore REX prefix for VEX and alike
1639 encodings; abort() instead if encountered.
1640 * testsuite/gas/i386/x86-64-pseudos.s: Move REX-with-VEX cases
1642 * testsuite/gas/i386/x86-64-pseudos-bad.s: ... here.
1643 * testsuite/gas/i386/x86-64-pseudos.d,
1644 testsuite/gas/i386/x86-64-pseudos-bad.l: Adjust expectations.
1648 * config/tc-i386.c (process_operands): Translate explicit REX
1649 prefix into i.rex for SSE2AVX templates.
1650 (set_rex_vrex): New helper.
1651 (build_modrm_byte): Use it.
1652 * testsuite/gas/i386/x86-64-sse2avx.s: Add cases with explict
1654 * testsuite/gas/i386/x86-64-sse2avx.d: Adjust expectations.
1658 * config/tc-i386.c (cpu_flags_match): Only match SSE2AVX
1659 templates when there's no data size prefix.
1660 (md_assemble): Reject data size prefix also for legacy encoded
1662 * testsuite/gas/i386/prefix32.s, testsuite/gas/i386/prefix64.s:
1663 Uncomment previously not working line.
1664 * testsuite/gas/i386/sse2avx.s: Add ldmxcsr/stmxcsr cases with
1666 * testsuite/gas/i386/prefix32.l, testsuite/gas/i386/prefix64.l,
1667 testsuite/gas/i386/sse2avx.d: Adjust expectations.
1671 * config/tc-i386.c (build_evex_prefix): Drop early setting of
1676 * config/tc-riscv.c (explicit_priv_attr): Rename explicit_csr to
1677 explicit_priv_attr. It used to indicate CSR or priv instructions are
1679 (riscv_is_priv_insn): Return True if it is a privileged instruction.
1680 (riscv_ip): Call riscv_is_priv_insn to check whether the instruction
1681 is privileged or not. If it is, then set explicit_priv_attr to TRUE.
1682 (riscv_write_out_attrs): Clarification of when to generate the elf
1683 priv spec attributes.
1684 * testsuite/gas/riscv/attribute-11.s: Add comments.
1685 * testsuite/gas/riscv/attribute-14.s: New testcase. Use symbol
1686 `priv_insn_<n>` to decide which priv instruction is expected to used.
1688 * testsuite/gas/riscv/attribute-14a.d: Likewise.
1689 * testsuite/gas/riscv/attribute-14b.d: Likewise.
1690 * testsuite/gas/riscv/attribute-14c.d: Likewise.
1691 * testsuite/gas/riscv/attribute-14d.d: Likewise.
1692 * testsuite/gas/riscv/attribute-14e.d: Likewise.
1696 * config/tc-riscv.c (buf_size, buf): Remove the unused variables.
1697 (riscv_set_default_priv_spec): Get the priv spec version from the
1698 priv spec attributes by riscv_get_priv_spec_class_from_numbers.
1702 * configure.tgt: Set bfd_gas for all SH targets.
1706 * testsuite/gas/i386/arch-13.s: Add alternative VMGEXIT case.
1707 * testsuite/gas/i386/arch-13.d: Extend -march=. Adjust
1712 * config/tc-i386.c (cpu_arch): Correct noavx512_vp2intersect
1713 cpu_arch to CPU_ANY_VP2INTERSECT_FLAGS.
1714 * doc/c-i386.texi: Add avx512_vp2intersect.
1718 * config/tc-i386.c (md_assemble): Drop SSE4a from SSE check
1720 * testsuite/gas/i386/sse-check.s: Adjust comment.
1721 * testsuite/gas/i386/sse-check-error.l,
1722 testsuite/gas/i386/sse-check-warn.e,
1723 testsuite/gas/i386/x86-64-sse-check-error.l: Adjust
1728 * config/tc-tic30.h: Remove OBJ_AOUT support.
1729 * configure.tgt: Delete tic30-*-*aout* entry.
1733 * config/tc-xtensa.c (XTHAL_ABI_WINDOWED, XTHAL_ABI_CALL0): New
1735 (elf32xtensa_abi): New declaration.
1736 (option_abi_windowed, option_abi_call0): New enum constants.
1737 (md_longopts): Add entries for --abi-windowed and --abi-call0.
1738 (md_parse_option): Add handlers for --abi-windowed and
1740 (xtensa_add_config_info): Use xtensa_abi_choice instead of
1741 XSHAL_ABI to format ABI tag.
1742 * doc/as.texi (Target Xtensa options): Add --abi-windowed and
1743 --abi-call0 to the list of options.
1744 * doc/c-xtensa.texi: Add description for options --abi-windowed
1746 * testsuite/gas/xtensa/abi-call0.d: New test definition.
1747 * testsuite/gas/xtensa/abi-windowed.d: New test definition.
1748 * testsuite/gas/xtensa/abi.s: New test source.
1753 * testsuite/gas/i386/tsxldtrk.d: Replace xsuspldtrk with
1755 * testsuite/gas/i386/tsxldtrk.s: Likewise.
1756 * testsuite/gas/i386/x86-64-tsxldtrk.d: Likewise.
1757 * testsuite/gas/i386/x86-64-tsxldtrk.s: Likewise.
1761 * testsuite/gas/riscv/priv-reg-fail-version-1p9.d: Removed.
1762 * testsuite/gas/riscv/priv-reg-fail-version-1p9.l: Likewise.
1763 * testsuite/gas/riscv/priv-reg-version-1p9.d: Likewise.
1767 * doc/c-avr.texi: Improve wording.
1771 * testsuite/gas/i386/x86-64-pseudos-bad.s,
1772 testsuite/gas/i386/x86-64-pseudos-bad.l: New.
1776 * testsuite/gas/i386/prefix.s: Add bogus prefix-with-VEX/EVEX
1778 * testsuite/gas/i386/prefix.d: Adjust expectations.
1782 * testsuite/gas/i386/prefix.s: Add bogus REP / EVEX.W prefix
1783 with VEX/EVEX encoding tests.
1784 * testsuite/gas/i386/prefix.d: Adjust expectations.
1788 * config/tc-i386.c (process_suffix): Restrict defaulting to 'q'
1790 * testsuite/gas/i386/noreg64.s: Add lcall/ljmp cases.
1791 * testsuite/gas/i386/noreg64.d: Adjust expectations.
1792 * testsuite/gas/i386/noreg-intel64.d,
1793 testsuite/gas/i386/noreg-intel64.l,
1794 testsuite/gas/i386/noreg-intel64.s: New.
1795 * testsuite/gas/i386/i386.exp: Run new tests.
1799 * config/tc-i386.c (vex_encoding_error): New enumerator.
1800 (VEX_check_operands): Rename to VEX_check_encoding. Check
1801 for vex_encoding_error. Move Imm4 handling ...
1802 (check_VecOperands): ... here.
1803 (match_template): Call VEX_check_encoding when there are no
1804 operands. Split construct calling check_VecOperands and
1805 VEX_check_encoding (when there are operands).
1806 (check_register): Don't blindly set vex_encoding_evex.
1807 * testsuite/gas/i386/pseudos-bad.s,
1808 testsuite/gas/i386/pseudos-bad.l: New.
1809 * testsuite/gas/i386/i386.exp: Run new test.
1810 * testsuite/gas/i386/xmmhi64.s: Drop {vex2}.
1814 * config/tc-arm.c (insns): Add dfb.
1815 * testsuite/gas/arm/dfb.d: New test.
1816 * testsuite/gas/arm/dfb.s: Input for test.
1820 * testsuite/gas/cfi/cfi-i386-2.d: Skip for PE based targets.
1824 * config/tc-i386.c (pi): Add checks for RegMask and RegBND.
1828 * config/tc-i386.c (check_byte_reg): Drop dead conditional
1833 * config/tc-i386.c (check_register): Split RegTR handling, to
1834 fail recognition also in 64-bit mode as well as with i586 or
1835 i686 explicitly enabled.
1836 * testsuite/gas/i386/x86_64.s: Add insns referencing tr<N>.
1837 * testsuite/gas/i386/x86_64-intel.d,
1838 testsuite/gas/i386/x86_64.d: Adjust expectations.
1842 * testsuite/gas/cfi/cfi-i386-2.d: Adjust expectations.
1843 * testsuite/gas/cfi/cfi.exp: Run this test.
1847 * config/tc-i386.c (parse_real_register): Add allow_pseudo_reg
1848 check to %st(N) parsing logic.
1849 * testsuite/gas/cfi/cfi-i386.s: Set "generic32" arch.
1853 * config/tc-i386.c (bad_reg): New.
1854 (check_VecOperations, i386_att_operand, i386_parse_name): Check
1856 (check_register): New, broken out from ...
1857 (parse_real_register): ... here. Call it.
1858 (parse_register): Call it, and error upon failure.
1859 * testsuite/gas/i386/equ-bad.s, testsuite/gas/i386/equ-bad.l,
1860 testsuite/gas/i386/x86-64-equ-bad.s,
1861 testsuite/gas/i386/x86-64-equ-bad.l: New.
1862 * testsuite/gas/i386/i386.exp: Run new tests.
1866 * config/tc-ppc.c (md_show_usage): Mention -mpower10 and -mpwr10.
1867 * doc/c-ppc.texi: Likewise.
1871 * config/tc-ppc.c: Update throughout for reloc renaming.
1875 * config/tc-bpf.c (md_apply_fix): Avoid GCC 10 warning
1880 * config/tc-riscv.c (explicit_csr): New static boolean.
1881 Used to indicate CSR are explictly used.
1882 (riscv_ip): Set explicit_csr to TRUE if any CSR is used.
1883 (riscv_write_out_attrs): If we already have set elf priv
1884 attributes, then generate them. Otherwise, don't generate
1885 them when no CSR are used.
1886 * testsuite/gas/riscv/attribute-01.d: Remove the priv attributes.
1887 * testsuite/gas/riscv/attribute-02.d: Likewise.
1888 * testsuite/gas/riscv/attribute-03.d: Likewise.
1889 * testsuite/gas/riscv/attribute-04.d: Likewise.
1890 * testsuite/gas/riscv/attribute-05.d: Likewise.
1891 * testsuite/gas/riscv/attribute-06.d: Likewise.
1892 * testsuite/gas/riscv/attribute-07.d: Likewise.
1893 * testsuite/gas/riscv/attribute-08.d: Likewise.
1894 * testsuite/gas/riscv/attribute-09.d: Likewise.
1895 * testsuite/gas/riscv/attribute-10.d: Likewise.
1896 * testsuite/gas/riscv/attribute-unknown.d: Likewise.
1897 * testsuite/gas/riscv/attribute-11.s: New testcase.
1898 * testsuite/gas/riscv/attribute-11.d: New testcase. The CSR is
1899 used, so we should output the ELF priv attributes.
1900 * testsuite/gas/riscv/attribute-12.d: New testcase. The CSR is
1901 used, so output the priv attributes according to the -mpriv-spec.
1902 * testsuite/gas/riscv/attribute-13.d: New testcase. The CSR isn't
1903 used, so ignore the -mpriv-spec setting.
1907 * config/tc-ip2k. (ip2k_apply_fix): Pass endianness to
1908 cgen_get_insn_value.
1909 * config/tc-xstormy16.c (xstormy16_md_apply_fix): Pass
1910 endianness to cgen_get_insn_value and cgen_put_insn_value.
1914 * config/tc-bpf.c (md_apply_fix): Simplify and avoid using
1915 cgen_put_insn_value.
1919 * config/tc-bpf.c (md_begin): Pass CGEN_CPU_OPEN_INSN_ENDIAN to
1921 (md_assemble): Remove no longer needed hack.
1925 * cgen.c (gas_cgen_finish_insn): Pass the endianness to
1926 cgen_put_insn_value.
1927 (gas_cgen_md_apply_fix): Likewise.
1928 (gas_cgen_md_apply_fix): Likewise.
1929 * config/tc-bpf.c (md_apply_fix): Pass data endianness to
1930 cgen_put_insn_value.
1931 * config/tc-mep.c (mep_check_ivc2_scheduling): Pass endianness to
1932 cgen_put_insn_value.
1936 * testsuite/config/default.exp: Remove global directive outside
1938 * testsuite/gas/mep/complex-relocs.exp: Likewise.
1939 * testsuite/gas/microblaze/relax_size.exp: Likewise.
1940 * testsuite/gas/microblaze/reloc_sym.exp: Likewise.
1941 * testsuite/gas/mt/relocs.exp: Likewise.
1942 * testsuite/gas/rx/rx.exp: Likewise.
1946 * doc/c-riscv.texi (RISC-V-Options): Fix non-ASCII apostrophe.
1952 * doc/c-riscv.texi (RISC-V-Formats): Add missing I format using
1953 simm12(rs1). Correct S format to use simm12(rs1). Drop SB and B
1954 formats using simm12(rs1). Correct SB and B to use rs1 and rs2.
1955 Move B before SB. Move J before UJ.
1959 * write.c (relax_segment): Fix handling of negative offset when
1960 relaxing an rs_org frag.
1961 * testsuite/gas/aarch64/org-neg.d: New test.
1962 * testsuite/gas/aarch64/org-neg.l: Error output for test.
1963 * testsuite/gas/aarch64/org-neg.s: Input for test.
1964 * testsuite/gas/arm/org-neg.d: New test.
1965 * testsuite/gas/arm/org-neg.l: Error output for test.
1966 * testsuite/gas/arm/org-neg.s: Input for test.
1970 Fix unexpected failures in gas testsuite for pdp11-aout target.
1971 These are caused by the PDP11's mix of little-endian octets in
1972 shorts but shorts in big endian order for long or quad.
1974 * config/tc-pdp11.c (md_number_to_chars): Implement .quad
1975 * testsuite/gas/all/gas.exp: Select alternate test scripts for
1976 pdp11, skip octa test completely.
1977 * testsuite/gas/all/eqv-dot-pdp11.s: Identical to eqv-dot.s
1978 * testsuite/gas/all/eqv-dot-pdp11.d: Match different octet order.
1979 * testsuite/gas/all/cond-pdp11.l: Match different octet order.
1983 * frags.c (frag_grow): Fix comment.
1988 * config/tc-pdp11.c (parse_reg): Distinguish register names from
1989 symbols that begin with a register name.
1990 * testsuite/gas/pdp11/pdp11.exp: Add test of such symbols.
1991 * testsuite/gas/pdp11/pr26001.s: Likewise.
1992 * testsuite/gas/pdp11/pr26001.d: Likewise.
1996 * config/tc-riscv.c (riscv_init_csr_hash): NULL initilize next
1997 pointer when creating struct riscv_csr_extra.
2001 * testsuite/gas/i386/align-branch-9.d: Updated for PECOFF.
2002 * testsuite/gas/i386/inval-avx512f.s: Add .p2align for PECOFF.
2003 * testsuite/gas/i386/inval-avx512f.l: Updated.
2007 * testsuite/gas/s390/zarch-z13.d: Add regexp checks for vector
2008 load/store instruction variants with alignment hints.
2009 * testsuite/gas/s390/zarch-z13.s: Emit new vector load/store
2010 instruction variants with alignment hints.
2015 * config/tc-xgate.c (md_apply_fix): Check BFD_RELOC_XGATE_PCREL_X
2016 instead of R_XGATE_PCREL_X.
2017 (xgate_parse_operand): Replace R_XGATE_PCREL_X with
2018 BFD_RELOC_XGATE_PCREL_X.
2023 * config/tc-visium.c (md_convert_frag): Replace fragP->fr_literal
2024 with &fragP->fr_literal[0].
2029 * config/tc-vax.c (md_estimate_size_before_relax): Replace
2030 fragP->fr_literal with &fragP->fr_literal[0].
2031 (md_convert_frag): Likewise.
2036 * config/tc-v850.c (md_convert_frag): Replace fragP->fr_literal
2037 with &fragP->fr_literal[0].
2042 * config/tc-crx.c (getreg_image): Change argument type to int.
2043 (md_convert_frag): Replace fragP->fr_literal with
2044 &fragP->fr_literal[0].
2049 * onfig/tc-score.c (s3_do_macro_bcmp): Replace overlapping
2050 sprintf with memmove.
2054 * config/tc-mcore.c (md_convert_frag): Replace fragP->fr_literal
2055 with &fragP->fr_literal[0].
2060 * config/tc-cr16.c (md_assemble): Use memmove to concatenate
2061 2 overlapping strings.
2065 * config/tc-cr16.c (md_convert_frag): Replace fragP->fr_literal
2066 with &fragP->fr_literal[0].
2070 * config/tc-csky.c (md_convert_frag): Replace fragp->fr_literal
2071 with &fragp->fr_literal[0].
2072 * config/tc-microblaze.c (md_apply_fix): Likewise.
2073 * config/tc-sh.c (md_convert_frag): Likewise.
2078 * config/tc-riscv.c (riscv_pre_output_hook): Change s type from const
2079 asection to segT. New locals seg and subseg. Call subseg_set before
2080 fix_new_exp. Call subseg_set after loop to restore original values.
2084 * atof-generic.c: Replace "if (x) free (x)" with "free (x)"
2086 * config/obj-elf.c: Likewise.
2087 * config/tc-aarch64.c: Likewise.
2088 * config/tc-arm.c: Likewise.
2089 * config/tc-m68k.c: Likewise.
2090 * config/tc-nios2.c: Likewise.
2091 * config/tc-tic30.c: Likewise.
2092 * ecoff.c: Likewise.
2094 * stabs.c: Likewise.
2095 * symbols.c: Likewise.
2096 * testsuite/gas/all/test-gen.c: Likewise.
2100 * testsuite/gas/riscv/priv-reg-fail-read-only-01.s: Updated.
2101 * config/tc-riscv.c (default_arch_with_ext, default_isa_spec):
2102 Static variables which are used to set the ISA extensions. You can
2103 use -march (or ELF build attributes) and -misa-spec to set them,
2105 (ext_version_hash): The hash table used to handle the extensions
2107 (init_ext_version_hash): Initialize the ext_version_hash according
2108 to riscv_ext_version_table.
2109 (riscv_get_default_ext_version): The callback function of
2110 riscv_parse_subset_t. According to the choosed ISA spec,
2111 get the default version for the specific extension.
2112 (riscv_set_arch): Set the callback function.
2113 (enum options, struct option md_longopts): Add new option -misa-spec.
2114 (md_parse_option): Do not call riscv_set_arch for -march. We will
2115 call it later in riscv_after_parse_args. Call riscv_get_isa_spec_class
2116 to set default_isa_spec class.
2117 (riscv_after_parse_args): Call init_ext_version_hash to initialize the
2118 ext_version_hash, and then call riscv_set_arch to set the architecture
2119 with versions according to default_arch_with_ext.
2120 * testsuite/gas/riscv/attribute-02.d: Set 0p0 as default version for
2122 * testsuite/gas/riscv/attribute-03.d: Likewise.
2123 * testsuite/gas/riscv/attribute-09.d: New testcase. For i-ext, we
2124 already set it's version to 2p1 by march, so no need to use the default
2125 2p2 version. For m-ext, we do not set the version by -march and ELF arch
2126 attribute, so set the default 2p0 to it. For zicsr, it is not defined in
2127 ISA spec 2p2, so set 0p0 to it.
2128 * testsuite/gas/riscv/attribute-10.d: New testcase. The version of
2129 zicsr is 2p0 according to ISA spec 20191213.
2130 * config/tc-riscv.c (DEFAULT_RISCV_ARCH_WITH_EXT)
2131 (DEFAULT_RISCV_ISA_SPEC): Default configure option settings.
2132 You can set them by configure options --with-arch and
2133 --with-isa-spec, respectively.
2134 (riscv_set_default_isa_spec): New function used to set the
2136 (md_parse_option): Call riscv_set_default_isa_spec rather than
2137 call riscv_get_isa_spec_class directly.
2138 (riscv_after_parse_args): If the -isa-spec is not set, then we
2139 set the default ISA spec according to DEFAULT_RISCV_ISA_SPEC by
2140 calling riscv_set_default_isa_spec.
2141 * testsuite/gas/riscv/attribute-01.d: Add -misa-spec=2.2, since
2142 the --with-isa-spec may be set to different ISA spec.
2143 * testsuite/gas/riscv/attribute-02.d: Likewise.
2144 * testsuite/gas/riscv/attribute-03.d: Likewise.
2145 * testsuite/gas/riscv/attribute-04.d: Likewise.
2146 * testsuite/gas/riscv/attribute-05.d: Likewise.
2147 * testsuite/gas/riscv/attribute-06.d: Likewise.
2148 * testsuite/gas/riscv/attribute-07.d: Likewise.
2149 * configure.ac: Add configure options, --with-arch and
2151 * configure: Regenerated.
2152 * config.in: Regenerated.
2153 * config/tc-riscv.c (default_priv_spec): Static variable which is
2154 used to check if the CSR is valid for the chosen privilege spec. You
2155 can use -mpriv-spec to set it.
2156 (enum reg_class): We now get the CSR address from csr_extra_hash rather
2157 than reg_names_hash. Therefore, move RCLASS_CSR behind RCLASS_MAX.
2158 (riscv_init_csr_hashes): Only need to initialize one hash table
2160 (riscv_csr_class_check): Change the return type to void. Don't check
2161 the ISA dependency if -mcsr-check isn't set.
2162 (riscv_csr_version_check): New function. Check and find the CSR address
2163 from csr_extra_hash, according to default_priv_spec. Report warning
2164 for the invalid CSR if -mcsr-check is set.
2165 (reg_csr_lookup_internal): Updated.
2166 (reg_lookup_internal): Likewise.
2167 (md_begin): Updated since DECLARE_CSR and DECLARE_CSR_ALIAS are changed.
2168 (enum options, struct option md_longopts): Add new GAS option -mpriv-spec.
2169 (md_parse_option): Call riscv_set_default_priv_version to set
2171 (riscv_after_parse_args): If -mpriv-spec isn't set, then set the default
2172 privilege spec to the newest one.
2173 (enum riscv_csr_class, struct riscv_csr_extra): Move them to
2174 include/opcode/riscv.h.
2175 * testsuite/gas/riscv/priv-reg-fail-fext.d: This test case just want
2176 to check the ISA dependency for CSR, so fix the spec version by adding
2178 * testsuite/gas/riscv/priv-reg-fail-fext.l: Likewise. There are some
2179 version warnings for the test case.
2180 * gas/testsuite/gas/riscv/priv-reg-fail-read-only-01.d: Likewise.
2181 * gas/testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
2182 * gas/testsuite/gas/riscv/priv-reg-fail-read-only-02.d: Likewise.
2183 * gas/testsuite/gas/riscv/priv-reg-fail-rv32-only.d: Likewise.
2184 * gas/testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
2185 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9.d: New test case.
2186 Check whether the CSR is valid when privilege version 1.9 is choosed.
2187 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9.l: Likewise.
2188 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9p1.d: New test case.
2189 Check whether the CSR is valid when privilege version 1.9.1 is choosed.
2190 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
2191 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p10.d: New test case.
2192 Check whether the CSR is valid when privilege version 1.10 is choosed.
2193 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
2194 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p11.d: New test case.
2195 Check whether the CSR is valid when privilege version 1.11 is choosed.
2196 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
2197 * config/tc-riscv.c (DEFAULT_RISCV_ISA_SPEC): Default configure option
2198 setting. You can set it by configure option --with-priv-spec.
2199 (riscv_set_default_priv_spec): New function used to set the default
2201 (md_parse_option): Call riscv_set_default_priv_spec rather than
2202 call riscv_get_priv_spec_class directly.
2203 (riscv_after_parse_args): If -mpriv-spec isn't set, then we set the
2204 default privilege spec according to DEFAULT_RISCV_PRIV_SPEC by
2205 calling riscv_set_default_priv_spec.
2206 * testsuite/gas/riscv/csr-dw-regnums.d: Add -mpriv-spec=1.11, since
2207 the --with-priv-spec may be set to different privilege spec.
2208 * testsuite/gas/riscv/priv-reg.d: Likewise.
2209 * configure.ac: Add configure option --with-priv-spec.
2210 * configure: Regenerated.
2211 * config.in: Regenerated.
2212 * config/tc-riscv.c (explicit_attr): Rename explicit_arch_attr to
2213 explicit_attr. Set it to TRUE if any ELF attribute is found.
2214 (riscv_set_default_priv_spec): Try to set the default_priv_spec if
2215 the priv attributes are set.
2216 (md_assemble): Set the default_priv_spec according to the priv
2217 attributes when we start to assemble instruction.
2218 (riscv_write_out_attrs): Rename riscv_write_out_arch_attr to
2219 riscv_write_out_attrs. Update the arch and priv attributes. If we
2220 don't set the corresponding ELF attributes, then try to output the
2222 (riscv_set_public_attributes): If any ELF attribute or -march-attr
2223 options is set (explicit_attr is TRUE), then call riscv_write_out_attrs
2224 to update the arch and priv attributes.
2225 (s_riscv_attribute): Make sure all arch and priv attributes are set
2226 before any instruction.
2227 * testsuite/gas/riscv/attribute-01.d: Update the priv attributes if any
2228 ELF attribute or -march-attr is set. If the priv attributes are not
2229 set, then try to update them by the default setting (-mpriv-spec or
2231 * testsuite/gas/riscv/attribute-02.d: Likewise.
2232 * testsuite/gas/riscv/attribute-03.d: Likewise.
2233 * testsuite/gas/riscv/attribute-04.d: Likewise.
2234 * testsuite/gas/riscv/attribute-06.d: Likewise.
2235 * testsuite/gas/riscv/attribute-07.d: Likewise.
2236 * testsuite/gas/riscv/attribute-08.d: Likewise.
2237 * testsuite/gas/riscv/attribute-09.d: Likewise.
2238 * testsuite/gas/riscv/attribute-10.d: Likewise.
2239 * testsuite/gas/riscv/attribute-unknown.d: Likewise.
2240 * testsuite/gas/riscv/attribute-05.d: Likewise. Also, the priv spec
2241 set by priv attributes must be supported.
2242 * testsuite/gas/riscv/attribute-05.s: Likewise.
2243 * testsuite/gas/riscv/priv-reg-fail-version-1p9.d: Likewise. Updated
2244 priv attributes according to the -mpriv-spec option.
2245 * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.d: Likewise.
2246 * testsuite/gas/riscv/priv-reg-fail-version-1p10.d: Likewise.
2247 * testsuite/gas/riscv/priv-reg-fail-version-1p11.d: Likewise.
2248 * testsuite/gas/riscv/priv-reg.d: Removed.
2249 * testsuite/gas/riscv/priv-reg-version-1p9.d: New test case. Dump the
2250 CSR according to the priv spec 1.9.
2251 * testsuite/gas/riscv/priv-reg-version-1p9p1.d: New test case. Dump the
2252 CSR according to the priv spec 1.9.1.
2253 * testsuite/gas/riscv/priv-reg-version-1p10.d: New test case. Dump the
2254 CSR according to the priv spec 1.10.
2255 * testsuite/gas/riscv/priv-reg-version-1p11.d: New test case. Dump the
2256 CSR according to the priv spec 1.11.
2257 * config/tc-riscv.c (md_show_usage): Add descriptions about
2258 the new GAS options.
2259 * doc/c-riscv.texi: Likewise.
2263 * testsuite/gas/ppc/power9.s <dcbf, dcbfl, dcbflp>: Add tests.
2264 * testsuite/gas/ppc/power9.d: Likewise.
2265 * testsuite/gas/ppc/power10.s <dcbf, dcbfps, dcbstps, hwsync, lwsync,
2266 pause_short, phwsync, plwsync, ptesync, stcisync, stncisync, stsync,
2267 sync, wait, waitrsv>: Add tests.
2268 * testsuite/gas/ppc/power10.d: Likewise.
2273 * config/tc-arm.c : Add arm_ext_v8r feature.
2274 (it_fsm_post_encode): Check arm_ext_v8r feature.
2275 (get_aeabi_cpu_arch_from_fset): Check arm_ext_v8r feature.
2279 * write.c (write_contents): Use bfd_get_filename rather than
2280 accessing bfd->filename directly. Use bfd_section_name rather
2281 than accessing section->name directly.
2285 * symbols.c (local_symbol_make): Init all of lsy_flags.
2289 * symbols.c (resolve_symbol_value): Invoke LOCAL_SYMBOL_CHECK
2290 before looking at add_symbol->sy_flags.
2294 * config/tc-i386.c: Not handle lret/iret.
2295 * testsuite/gas/i386/lfence-ret-a.d: Adjust testcase.
2296 * testsuite/gas/i386/lfence-ret-b.d: Ditto.
2297 * testsuite/gas/i386/lfence-ret-c.d: Ditto.
2298 * testsuite/gas/i386/lfence-ret-d.d: Ditto.
2299 * testsuite/gas/i386/lfence-ret.s: Ditto.
2300 * testsuite/gas/i386/x86-64-lfence-ret-a.d: Ditto.
2301 * testsuite/gas/i386/x86-64-lfence-ret-b.d: Ditto.
2302 * testsuite/gas/i386/x86-64-lfence-ret-c.d: Ditto.
2303 * testsuite/gas/i386/x86-64-lfence-ret-d.d: Ditto.
2304 * testsuite/gas/i386/x86-64-lfence-ret-e.d: Ditto.
2305 * testsuite/gas/i386/x86-64-lfence-ret.s: Ditto.
2306 * testsuite/gas/i386/x86-64-lfence-ret.e: Deleted.
2311 * symbols.c (struct local_symbol): Update comment.
2312 (resolve_symbol_value): For resolved symbols equated to other
2313 symbols, verify that the referenced symbol is not a local_symbol
2314 before accessing sy_value. Don't leave symbol loops during
2315 finalize_syms resolution.
2316 * testsuite/gas/all/assign-bad-recursive.d: New test.
2317 * testsuite/gas/all/assign-bad-recursive.l: Error output for test.
2318 * testsuite/gas/all/assign-bad-recursive.s: Assembly for test.
2319 * testsuite/gas/all/gas.exp: Run it.
2323 * po/sv.po: Updated Swedish translation.
2327 * testsuite/gas/ppc/scalarquad.d,
2328 * testsuite/gas/ppc/scalarquad.s: New test.
2329 * testsuite/gas/ppc/ppc.exp: Run it.
2333 * testsuite/gas/ppc/rightmost.d,
2334 * testsuite/gas/ppc/rightmost.s: New test.
2335 * testsuite/gas/ppc/ppc.exp: Run it.
2339 * testsuite/gas/ppc/xvtlsbb.d,
2340 * testsuite/gas/ppc/xvtlsbb.s: New test.
2341 * testsuite/gas/ppc/ppc.exp: Run it.
2345 * testsuite/gas/ppc/stringop.d,
2346 * testsuite/gas/ppc/stringop.s: New test.
2347 * testsuite/gas/ppc/ppc.exp: Run it.
2351 * testsuite/gas/ppc/set_bool.d,
2352 * testsuite/gas/ppc/set_bool.s: New test.
2353 * testsuite/gas/ppc/ppc.exp: Run it.
2357 * testsuite/gas/ppc/bitmanip.d,
2358 * testsuite/gas/ppc/bitmanip.s: New test.
2359 * testsuite/gas/ppc/ppc.exp: Run it.
2363 * testsuite/gas/ppc/genpcv.d,
2364 * testsuite/gas/ppc/genpcv.s: New test.
2365 * testsuite/gas/ppc/ppc.exp: Run it.
2369 * testsuite/gas/ppc/maskmanip.d,
2370 * testsuite/gas/ppc/maskmanip.s: New test.
2371 * testsuite/gas/ppc/ppc.exp: Run it.
2376 * config/tc-ppc.c (pre_defined_registers): Add accumulators.
2377 (md_assemble): Check acc specified in correct operand.
2378 * testsuite/gas/ppc/outerprod.d,
2379 * testsuite/gas/ppc/outerprod.s,
2380 * testsuite/gas/ppc/vsx4.d,
2381 * testsuite/gas/ppc/vsx4.s: New tests.
2382 * testsuite/gas/ppc/ppc.exp: Run them.
2386 * testsuite/gas/ppc/simd_perm.d,
2387 * testsuite/gas/ppc/simd_perm.s: New test.
2388 * testsuite/gas/ppc/ppc.exp: Run it.
2392 * testsuite/gas/ppc/int128.d,
2393 * testsuite/gas/ppc/int128.s: New test.
2394 * testsuite/gas/ppc/ppc.exp: Run it.
2398 * testsuite/gas/ppc/vsx_32byte.d,
2399 * testsuite/gas/ppc/vsx_32byte.s: New test.
2400 * testsuite/gas/ppc/ppc.exp: Run it.
2404 * testsuite/gas/ppc/vec_mul.s,
2405 * testsuite/gas/ppc/vec_mul.d: New test.
2406 * testsuite/gas/ppc/ppc.exp: Run it.
2410 * testsuite/gas/ppc/byte_rev.d,
2411 * testsuite/gas/ppc/byte_rev.s: New test.
2412 * testsuite/gas/ppc/ppc.exp: Run it.
2416 * testsuite/gas/ppc/power10.d: Add paste. tests.
2417 * testsuite/gas/ppc/power10.s: Likewise.
2421 * testsuite/gas/ppc/power10.s: New test.
2422 * testsuite/gas/ppc/power10.d: Likewise.
2423 * testsuite/gas/ppc/ppc.exp: Run it.
2427 * config/tc-ppc.c (md_assemble): Update for PPC_OPCODE_POWER10
2429 * testsuite/gas/ppc/prefix-align.d: Use -mpower10/-Mpower10 in
2430 place of -mfuture/-Mfuture.
2431 * testsuite/gas/ppc/prefix-pcrel.d: Likewise.
2432 * testsuite/gas/ppc/prefix-reloc.d: Likewise.
2436 * po/sv.po: Updated Swedish translation.
2441 * doc/as.texi (Preprocessing): Replace cross reference to not
2442 existant document with a URL to the equivalent page in the GCC
2447 * dwarf2dbg.c (out_dir_and_file_list): Add comments describing the
2448 construction of a DWARF-5 directory name table.
2449 * testsuite/gas/elf/pr25917.d: Update expected output.
2453 * config/tc-rx.c (elf_flags): Initialize for non-linux targets.
2454 (md_parse_option): Remove initialization of elf_flags.
2459 * config/tc-arm.c (do_mve_vmull): Fix scalar and NEON parsing of vmul.
2460 * testsuite/gas/arm/mve-scalar-vmult-it.d: New test.
2461 * testsuite/gas/arm/mve-scalar-vmult-it.s: New test.
2466 * dwarf2dbg.c (out_dir_and_file_list): Check for the directory
2467 table's existence before looking at its entries.
2468 Also do not emit a default directory entry if there are no
2471 * testsuite/gas/elf/pr25917.s: New test source file.
2472 * testsuite/gas/elf/pr25917.d: New test driver.
2473 * testsuite/gas/elf/elf.exp (run_elf_list_test): Run the new test.
2477 * config/tc-aarch64.c (fix_insn): Implement for
2478 AARCH64_OPND_UNDEFINED.
2479 (parse_operands): Implement for AARCH64_OPND_UNDEFINED.
2480 * testsuite/gas/aarch64/udf.s: New.
2481 * testsuite/gas/aarch64/udf.d: New.
2482 * testsuite/gas/aarch64/udf-invalid.s: New.
2483 * testsuite/gas/aarch64/udf-invalid.l: New.
2484 * testsuite/gas/aarch64/udf-invalid.d: New.
2488 * config/tc-rx.c (elf_flags): Reset default value.
2489 (md_parse_option): For rx-elf Initialize elf_flags with RX_ABI.
2493 * config/tc-xtensa.c (XTENSA_MARCH_EARLIEST): Define macro as 0
2494 if it's not defined.
2495 (microarch_earliest): New static variable.
2496 (xg_translate_idioms): Translate "simcall" to "simcall 0" when
2497 simcall opcode has mandatory parameter.
2498 (xg_init_global_config): Initialize microarch_earliest.
2503 * config/tc-sh.c (build_Mytes): Change operand type IMM0_8 to
2504 IMM0_8S and add support for IMM0_8U.
2505 * testsuite/gas/sh/sh4a.s: Add test of a logical insn using an
2506 unsigned 8-bit immediate.
2507 * testsuite/gas/sh/sh4a.d: Extended expected disassembly.
2508 * testsuite/gas/sh/sh4al-dsp.d: Update expected disassembly.
2512 * NEWS: Add news entry for big-obj.
2513 * config/tc-i386.c (i386_target_format): Support new format.
2514 * doc/c-i386.texi: Add i386 support.
2515 * testsuite/gas/pe/big-obj.d: Rename test to not be x64 specific.
2516 * testsuite/gas/pe/pe.exp (big-obj): Make test run on i386 as well.
2521 * dwarf2dbg.c (struct file_entry): Add auto_assigned field.
2522 (assign_file_to_slot): New function. Fills in an entry in the
2524 (allocate_filenum): Use new function.
2525 (allocate_filename_to_slot): Use new function. If the specified
2526 slot entry is already in use, but was chosen automatically then
2527 reassign the automatic entry.
2531 * config/tc-i386.c (lfence_before_ret_shl): New member.
2532 (load_insn_p): implict load for POP/POPA/POPF/XLATB, no load
2534 (insert_after_load): Issue warning for REP CMPS/SCAS.
2535 (insert_before_before): Handle iret, Handle
2536 -mlfence-before-ret=shl, Adjust operand size of or/not/shl to ret's,
2537 (md_parse_option): Change -mlfence-before-ret=[none|not|or] to
2538 -mlfence-before-ret=[none/not/or/shl/yes].
2539 Enable -mlfence-before-ret=shl when
2540 -mlfence-beofre-indirect-branch=all and no explict -mlfence-before-ret option.
2541 (md_show_usage): Ditto.
2542 * doc/c-i386.texi: Ditto.
2543 * testsuite/gas/i386/i386.exp: Add new testcases.
2544 * testsuite/gas/i386/lfence-load-b.d: New.
2545 * testsuite/gas/i386/lfence-load-b.e: New.
2546 * testsuite/gas/i386/lfence-load.d: Modified.
2547 * testsuite/gas/i386/lfence-load.e: New.
2548 * testsuite/gas/i386/lfence-load.s: Modified.
2549 * testsuite/gas/i386/lfence-ret-a.d: Modified.
2550 * testsuite/gas/i386/lfence-ret-b.d: Modified.
2551 * testsuite/gas/i386/lfence-ret-c.d: New.
2552 * testsuite/gas/i386/lfence-ret-d.d: New.
2553 * testsuite/gas/i386/lfence-ret.s: Modified.
2554 * testsuite/gas/i386/x86-64-lfence-load-b.d: New.
2555 * testsuite/gas/i386/x86-64-lfence-load.d: Modified.
2556 * testsuite/gas/i386/x86-64-lfence-load.s: Modified.
2557 * testsuite/gas/i386/x86-64-lfence-ret-a.d: Modified.
2558 * testsuite/gas/i386/x86-64-lfence-ret-b.d: Modified.
2559 * testsuite/gas/i386/x86-64-lfence-ret-c.d: New.
2560 * testsuite/gas/i386/x86-64-lfence-ret-d.d: New
2561 * testsuite/gas/i386/x86-64-lfence-ret-e.d: New.
2562 * testsuite/gas/i386/x86-64-lfence-ret.e: New.
2563 * testsuite/gas/i386/x86-64-lfence-ret.s: New.
2568 * config/tc-xtensa.c (md_apply_fix): Replace
2569 BFD_RELOC_XTENSA_DIFF{8,16,32} generation with
2570 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
2571 BFD_RELOC_XTENSA_NDIFF{8,16,32} generation.
2572 * testsuite/gas/xtensa/loc.d: Replace BFD_RELOC_XTENSA_DIFF16
2573 with BFD_RELOC_XTENSA_PDIFF16 in the expected output.
2577 * config/obj-elf.c (elf_frob_symbol): Unconditionally remove
2578 symbol for ".symver .. remove".
2579 * doc/as.texi (.symver): Update.
2580 * testsuite/gas/symver/symver11.s: Make foo weak.
2581 * testsuite/gas/symver/symver11.d: Expect an error.
2582 * testsuite/gas/symver/symver7.d: Allow other random symbols.
2586 * testsuite/gas/symver/symver11.s: Add ".balign 8".
2591 * testsuite/gas/m68k/operands.s: Add tests for cmpi.
2592 * testsuite/gas/m68k/operands.d: Update.
2593 * testsuite/gas/m68k/op68000.d: Update for new error messages.
2598 * testsuite/gas/arm/pr24753.d: New test.
2599 * testsuite/gas/arm/pr24753.s: New test.
2605 * NEWS: Mention .symver extension.
2606 * config/obj-elf.c (obj_elf_find_and_add_versioned_name): New
2608 (obj_elf_symver): Call obj_elf_find_and_add_versioned_name to
2609 add a version name. Add local, hidden and remove visibility
2611 (elf_frob_symbol): Handle the list of version names. Update the
2612 original symbol to local, hidden or remove it from the symbol
2614 (elf_frob_file_before_adjust): Handle the list of version names.
2615 * config/obj-elf.h (elf_visibility): New.
2616 (elf_versioned_name_list): Likewise.
2617 (elf_obj_sy): Change local to bitfield. Add rename, bad_version
2618 and visibility. Change versioned_name pointer to struct
2619 elf_versioned_name_list.
2620 * doc/as.texi: Update .symver directive.
2621 * testsuite/gas/symver/symver.exp: Run all *.d tests. Add more
2622 error checking tests.
2623 * testsuite/gas/symver/symver6.d: New file.
2624 * testsuite/gas/symver/symver7.d: Likewise.
2625 * testsuite/gas/symver/symver7.s: Likewise.
2626 * testsuite/gas/symver/symver8.d: Likewise.
2627 * testsuite/gas/symver/symver8.s: Likewise.
2628 * testsuite/gas/symver/symver9.s: Likewise.
2629 * testsuite/gas/symver/symver9a.d: Likewise.
2630 * testsuite/gas/symver/symver9b.d: Likewise.
2631 * testsuite/gas/symver/symver10.s: Likewise.
2632 * testsuite/gas/symver/symver10a.d: Likewise.
2633 * testsuite/gas/symver/symver10b.d: Likewise.
2634 * testsuite/gas/symver/symver11.d: Likewise.
2635 * testsuite/gas/symver/symver11.s: Likewise.
2636 * testsuite/gas/symver/symver12.d: Likewise.
2637 * testsuite/gas/symver/symver12.s: Likewise.
2638 * testsuite/gas/symver/symver13.d: Likewise.
2639 * testsuite/gas/symver/symver13.s: Likewise.
2640 * testsuite/gas/symver/symver14.d: Likewise.
2641 * testsuite/gas/symver/symver14.l: Likewise.
2642 * testsuite/gas/symver/symver15.d: Likewise.
2643 * testsuite/gas/symver/symver15.l: Likewise.
2644 * testsuite/gas/symver/symver6.l: Removed.
2645 * testsuite/gas/symver/symver6.s: Updated.
2649 * config/tc-aarch64.c (parse_barrier_psb): Update error messages
2651 * testsuite/gas/aarch64/system-2.d: Update -march and new tsb tests.
2652 * testsuite/gas/aarch64/system-2.s: Add new tsb tests.
2653 * testsuite/gas/aarch64/system.d: Update.
2657 * testsuite/gas/aarch64/bti.d: Update -march option.
2658 * testsuite/gas/aarch64/illegal-bti.d: Remove.
2659 * testsuite/gas/aarch64/illegal-bti.l: Remove.
2660 * testsuite/gas/aarch64/illegal-ras-1.l: Remove esb.
2661 * testsuite/gas/aarch64/illegal-ras-1.s: Remove esb.
2665 * config/tc-bfin.h (TC_EQUAL_IN_INSN): Allow assignment to dot.
2671 * config/obj-elf.c (obj_elf_type): Reject ifunc symbols on MIPS
2673 * testsuite/gas/elf/elf.exp: Add MIPS targets to the list to skip
2674 for the type-2 test.
2675 * testsuite/gas/elf/type-noifunc.e: Update to allow for MIPS
2676 targets running this test.
2680 * testsuite/gas/bpf/bpf.exp: Run jump32 tests.
2681 * testsuite/gas/bpf/jump32.s: New file.
2682 * testsuite/gas/bpf/jump32.d: Likewise.
2686 * doc/c-i386.texi: Correct -mlfence-before-indirect-branch=
2691 * config/tc-moxie.h (MD_PCREL_FROM_SECTION): Delete define.
2692 (md_pcrel_from): Remove prototytpe.
2693 * config/tc-m32c.h (MD_PCREL_FROM_SECTION): Delete duplicate
2695 (md_pcrel_from_section): Remove duplicate prototype.
2696 * tc.h (md_pcrel_from_section): Add prototype.
2697 * config/tc-aarch64.h (md_pcrel_from_section): Remove prototype.
2698 * config/tc-arc.h (md_pcrel_from_section): Likewise.
2699 * config/tc-arm.h (md_pcrel_from_section): Likewise.
2700 * config/tc-avr.h (md_pcrel_from_section): Likewise.
2701 * config/tc-bfin.h (md_pcrel_from_section): Likewise.
2702 * config/tc-bpf.h (md_pcrel_from_section): Likewise.
2703 * config/tc-csky.h (md_pcrel_from_section): Likewise.
2704 * config/tc-d10v.h (md_pcrel_from_section): Likewise.
2705 * config/tc-d30v.h (md_pcrel_from_section): Likewise.
2706 * config/tc-epiphany.h (md_pcrel_from_section): Likewise.
2707 * config/tc-fr30.h (md_pcrel_from_section): Likewise.
2708 * config/tc-frv.h (md_pcrel_from_section): Likewise.
2709 * config/tc-iq2000.h (md_pcrel_from_section): Likewise.
2710 * config/tc-lm32.h (md_pcrel_from_section): Likewise.
2711 * config/tc-m32c.h (md_pcrel_from_section): Likewise.
2712 * config/tc-m32r.h (md_pcrel_from_section): Likewise.
2713 * config/tc-mcore.h (md_pcrel_from_section): Likewise.
2714 * config/tc-mep.h (md_pcrel_from_section): Likewise.
2715 * config/tc-metag.h (md_pcrel_from_section): Likewise.
2716 * config/tc-microblaze.h (md_pcrel_from_section): Likewise.
2717 * config/tc-mmix.h (md_pcrel_from_section): Likewise.
2718 * config/tc-moxie.h (md_pcrel_from_section): Likewise.
2719 * config/tc-msp430.h (md_pcrel_from_section): Likewise.
2720 * config/tc-mt.h (md_pcrel_from_section): Likewise.
2721 * config/tc-or1k.h (md_pcrel_from_section): Likewise.
2722 * config/tc-ppc.h (md_pcrel_from_section): Likewise.
2723 * config/tc-rl78.h (md_pcrel_from_section): Likewise.
2724 * config/tc-rx.h (md_pcrel_from_section): Likewise.
2725 * config/tc-s390.h (md_pcrel_from_section): Likewise.
2726 * config/tc-sh.h (md_pcrel_from_section): Likewise.
2727 * config/tc-xc16x.h (md_pcrel_from_section): Likewise.
2728 * config/tc-xstormy16.h (md_pcrel_from_section): Likewise.
2729 * config/tc-microblaze.h (md_begin, md_assemble, md_undefined_symbol,
2730 md_show_usage, md_convert_frag, md_operand, md_number_to_chars,
2731 md_estimate_size_before_relax, md_section_align, tc_gen_reloc,
2732 md_apply_fix3): Delete prototypes.
2736 * NEWS: Mention support for Intel SERIALIZE and TSXLDTRK
2741 * doc/c-z80.texi: Fix @xref warnings.
2745 * config/tc-i386.c (cpu_arch): Add .TSXLDTRK.
2746 (cpu_noarch): Likewise.
2747 * doc/c-i386.texi: Document TSXLDTRK.
2748 * testsuite/gas/i386/i386.exp: Run TSXLDTRK tests.
2749 * testsuite/gas/i386/tsxldtrk.d: Likewise.
2750 * testsuite/gas/i386/tsxldtrk.s: Likewise.
2751 * testsuite/gas/i386/x86-64-tsxldtrk.d: Likewise.
2755 * config/tc-i386.c (cpu_arch): Add .serialize.
2756 (cpu_noarch): Likewise.
2757 * doc/c-i386.texi: Document serialize.
2758 * testsuite/gas/i386/i386.exp: Run serialize tests
2759 * testsuite/gas/i386/serialize.d: Likewise.
2760 * testsuite/gas/i386/x86-64-serialize.d: Likewise.
2761 * testsuite/gas/i386/serialize.s: Likewise.
2765 * testsuite/gas/elf/section12a.d: Use notarget instead of xfail.
2766 * testsuite/gas/elf/section12b.d: Likewise.
2767 * testsuite/gas/elf/section16a.d: Likewise.
2768 * testsuite/gas/elf/section16b.d: Likewise.
2772 * config/tc-m68k.c (m68k_ip): Fix range check for index register
2773 with a suppressed address register.
2778 * config/tc-i386.h (TC_FORCE_RELOCATION_ABS): New.
2779 * testsuite/gas/i386/localpic.s: Add a test for relocation
2780 against local absolute symbol.
2781 * testsuite/gas/i386/x86-64-localpic.s: Likewise.
2782 * testsuite/gas/i386/localpic.d: Updated.
2783 * testsuite/gas/i386/x86-64-localpic.d: Likewise.
2784 * testsuite/gas/i386/ilp32/x86-64-localpic.d: Likewise.
2789 * testsuite/gas/i386/solaris/x86-64-branch-2.d: New file.
2790 * testsuite/gas/i386/solaris/x86-64-branch-3.d: New file.
2791 * testsuite/gas/i386/solaris/x86-64-jump.d: Incorporate changes to
2792 testsuite/gas/i386/x86-64-jump.d.
2793 * gas/testsuite/gas/i386/solaris/x86-64-mpx-branch-1.d:
2794 Incorporate changes to
2795 gas/testsuite/gas/i386/x86-64-mpx-branch-1.d.
2796 * testsuite/gas/i386/solaris/x86-64-mpx-branch-2.d : Incorporate
2797 changes to testsuite/gas/i386/x86-64-mpx-branch-2.d.
2798 * testsuite/gas/i386/x86-64-branch-2.d: Skip on *-*-solaris*.
2799 * testsuite/gas/i386/x86-64-branch-3.d: Likewise.
2805 * dwarf2dbg.c: Do not include "bignum.h".
2809 * testsuite/gas/riscv/alias-csr.d: Move this to priv-reg-pseudo.
2810 * testsuite/gas/riscv/alias-csr.s: Likewise.
2811 * testsuite/gas/riscv/no-aliases-csr.d: Move this
2812 to priv-reg-pseudo-noalias.
2813 * testsuite/gas/riscv/bad-csr.d: Rename to priv-reg-fail-nonexistent.
2814 * testsuite/gas/riscv/bad-csr.l: Likewise.
2815 * testsuite/gas/riscv/bad-csr.s: Likewise.
2816 * testsuite/gas/riscv/satp.d: Removed. Already included in priv-reg.
2817 * testsuite/gas/riscv/satp.s: Likewise.
2818 * testsuite/gas/riscv/priv-reg-pseudo.d: New testcase for all pseudo
2819 csr instruction, including alias-csr testcase.
2820 * testsuite/gas/riscv/priv-reg-pseudo.s: Likewise.
2821 * testsuite/gas/riscv/priv-reg-pseudo-noalias.d: New testcase for all
2822 pseudo instruction with objdump -Mno-aliases.
2823 * testsuite/gas/riscv/priv-reg-fail-nonexistent.d: New testcase.
2824 * testsuite/gas/riscv/priv-reg-fail-nonexistent.l: Likewise.
2825 * testsuite/gas/riscv/priv-reg-fail-nonexistent.s: Likewise.
2826 * testsuite/gas/riscv/priv-reg.d: Update CSR to 1.11.
2827 * testsuite/gas/riscv/priv-reg.s: Likewise.
2828 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
2829 * testsuite/gas/riscv/csr-dw-regnums.d: Likewise.
2830 * testsuite/gas/riscv/csr-dw-regnums.s: Likewise.
2834 * config/obj-coff.c (obj_coff_section): Set the bss flag on
2835 sections with the "b" attribute.
2839 * testsuite/gas/s12z/truncated.d: Update expected output.
2844 * config/tc-z80.c (md_pseudo_table): Add xdef anf xref pseudo ops.
2845 * doc/c-z80.texi: Update documentation.
2852 Fix disassembling ED+A4/AC/B4/BC opcodes.
2853 Fix assembling lines containing colonless label and instruction
2854 with first operand inside parentheses.
2855 Fix registration of unsupported by target CPU registers.
2856 * config/tc-z80.c: See above.
2857 * config/tc-z80.h: See above.
2858 * testsuite/gas/z80/colonless.d: Update test.
2859 * testsuite/gas/z80/colonless.s: Likewise.
2860 * testsuite/gas/z80/ez80_adl_all.d: Likewise.
2861 * testsuite/gas/z80/ez80_unsup_regs.d: Likewise.
2862 * testsuite/gas/z80/ez80_z80_all.d: Likewise.
2863 * testsuite/gas/z80/gbz80_unsup_regs.d: Likewise.
2864 * testsuite/gas/z80/r800_unsup_regs.d: Likewise.
2865 * testsuite/gas/z80/unsup_regs.s: Likewise.
2866 * testsuite/gas/z80/z180_unsup_regs.d: Likewise.
2867 * testsuite/gas/z80/z80.exp: Likewise.
2868 * testsuite/gas/z80/z80_strict_unsup_regs.d: Likewise.
2869 * testsuite/gas/z80/z80_unsup_regs.d: Likewise.
2870 * testsuite/gas/z80/z80n_unsup_regs.d: Likewise.
2875 * config/tc-arm.c (operand_parse_code): Add OP_RNSDMQR and OP_oRNSDMQ.
2876 (parse_operands): Handle new operand codes.
2877 (do_neon_dyadic_long): Make shape check accept the scalar variants.
2878 (asm_opcode_insns): Fix operand codes for vaddl and vsubl.
2879 * testsuite/gas/arm/mve-vaddsub-it.s: New test.
2880 * testsuite/gas/arm/mve-vaddsub-it.d: New test.
2881 * testsuite/gas/arm/mve-vaddsub-it-bad.s: New test.
2882 * testsuite/gas/arm/mve-vaddsub-it-bad.l: New test.
2883 * testsuite/gas/arm/mve-vaddsub-it-bad.d: New test.
2884 * testsuite/gas/arm/nomve-vaddsub-it.d: New test.
2888 * NEWS: Mention x86 assembler options for CVE-2020-0551.
2892 * testsuite/gas/i386/i386.exp: Run new tests.
2893 * testsuite/gas/i386/lfence-byte.d: New file.
2894 * testsuite/gas/i386/lfence-byte.e: Likewise.
2895 * testsuite/gas/i386/lfence-byte.s: Likewise.
2896 * testsuite/gas/i386/lfence-indbr-a.d: Likewise.
2897 * testsuite/gas/i386/lfence-indbr-b.d: Likewise.
2898 * testsuite/gas/i386/lfence-indbr-c.d: Likewise.
2899 * testsuite/gas/i386/lfence-indbr.e: Likewise.
2900 * testsuite/gas/i386/lfence-indbr.s: Likewise.
2901 * testsuite/gas/i386/lfence-load.d: Likewise.
2902 * testsuite/gas/i386/lfence-load.s: Likewise.
2903 * testsuite/gas/i386/lfence-ret-a.d: Likewise.
2904 * testsuite/gas/i386/lfence-ret-b.d: Likewise.
2905 * testsuite/gas/i386/lfence-ret.s: Likewise.
2906 * testsuite/gas/i386/x86-64-lfence-byte.d: Likewise.
2907 * testsuite/gas/i386/x86-64-lfence-byte.e: Likewise.
2908 * testsuite/gas/i386/x86-64-lfence-byte.s: Likewise.
2909 * testsuite/gas/i386/x86-64-lfence-indbr-a.d: Likewise.
2910 * testsuite/gas/i386/x86-64-lfence-indbr-b.d: Likewise.
2911 * testsuite/gas/i386/x86-64-lfence-indbr-c.d: Likewise.
2912 * testsuite/gas/i386/x86-64-lfence-indbr.e: Likewise.
2913 * testsuite/gas/i386/x86-64-lfence-indbr.s: Likewise.
2914 * testsuite/gas/i386/x86-64-lfence-load.d: Likewise.
2915 * testsuite/gas/i386/x86-64-lfence-load.s: Likewise.
2916 * testsuite/gas/i386/x86-64-lfence-ret-a.d: Likewise.
2917 * testsuite/gas/i386/x86-64-lfence-ret-b.d: Likewise.
2921 * config/tc-i386.c (lfence_after_load): New.
2922 (lfence_before_indirect_branch_kind): New.
2923 (lfence_before_indirect_branch): New.
2924 (lfence_before_ret_kind): New.
2925 (lfence_before_ret): New.
2928 (insert_lfence_after): New.
2929 (insert_lfence_before): New.
2930 (md_assemble): Call insert_lfence_before and insert_lfence_after.
2932 (OPTION_MLFENCE_AFTER_LOAD): New.
2933 (OPTION_MLFENCE_BEFORE_INDIRECT_BRANCH): New.
2934 (OPTION_MLFENCE_BEFORE_RET): New.
2935 (md_longopts): Add -mlfence-after-load=,
2936 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
2937 (md_parse_option): Handle -mlfence-after-load=,
2938 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
2939 (md_show_usage): Display -mlfence-after-load=,
2940 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
2941 (i386_cons_align): New.
2942 * config/tc-i386.h (i386_cons_align): New.
2943 (md_cons_align): New.
2944 * doc/c-i386.texi: Document -mlfence-after-load=,
2945 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
2951 * dwarf2dbg.c (DWARF2_FILE_TIME_NAME): Default to -1.
2952 (DWARF2_FILE_SIZE_NAME): Default to -1.
2953 (DWARF2_LINE_VERSION): Default to the current dwarf level or 3,
2954 whichever is higher.
2955 (DWARF2_LINE_MAX_OPS_PER_INSN): Provide a default value of 1.
2956 (NUM_MD5_BYTES): Define.
2957 (struct file entry): Add md5 field.
2958 (get_filenum): Delete and replace with...
2959 (get_basename): New function.
2960 (get_directory_table_entry): New function.
2961 (allocate_filenum): New function.
2962 (allocate_filename_to_slot): New function.
2963 (dwarf2_where): Use new functions.
2964 (dwarf2_directive_filename): Add support for extended .file
2966 (dwarf2_directive_loc): Allow the use of file number zero with
2968 (out_file_list): Rename to...
2969 (out_dir_and_file_list): Add DWARF 5 support.
2970 (out_debug_line): Emit extra values into the section header for
2972 (out_debug_str): Allow for file 0 to be used with DWARF 5.
2973 * doc/as.texi (.file): Update the description of this pseudo-op.
2974 * testsuite/gas/elf-dwarf-5-file0.s: Add more lines.
2975 * testsuite/gas/elf-dwarf-5-file0.d: Update expected dump output.
2976 * testsuite/gas/lns/lns-diag-1.l: Update expected error message.
2977 * NEWS: Mention the new feature.
2981 * config/tc-csky.c (get_operand_value): Rewrite 1 << 31 expressions
2982 to avoid signed overflow.
2983 * config/tc-mcore.c (md_assemble): Likewise.
2984 * config/tc-mips.c (gpr_read_mask, gpr_write_mask): Likewise.
2985 * config/tc-nds32.c (SET_ADDEND): Likewise.
2986 * config/tc-nios2.c (nios2_assemble_arg_R): Likewise.
2990 * testsuite/gas/i386/avx.s: Add long-form VCMP[PS][SD] pseudos.
2991 * testsuite/gas/i386/avx.d, testsuite/gas/i386/avx-16bit.d,
2992 testsuite/gas/i386/avx-intel.d: Adjust expectations.
2996 * testsuite/gas/elf/dwarf-5-file0.s: Don't start directives in
3002 * dwarf2dbg.c (dwarf2_directive_filename): Allow a file number of
3003 0 if the dwarf_level is 5 or more. Complain if a filename follows
3005 * testsuite/gas/elf/dwarf-5-file0.s: New test.
3006 * testsuite/gas/elf/dwarf-5-file0.d: New test driver.
3007 * testsuite/gas/elf/elf.exp: Run the new test.
3010 * config/tc-ia64.h (DWARF2_VERISION): Fix typo.
3011 * doc/as.texi: Fix another typo.
3016 * as.c (dwarf_level): Define.
3017 (show_usage): Add --gdwarf-3, --gdwarf-4 and --gdwarf-5.
3018 (parse_args): Add support for the new options.
3019 as.h (dwarf_level): Prototype.
3020 * dwarf2dbg.c (DWARF2_VERSION): Use dwarf_level as default version
3022 * config/tc-ia64.h (DWARF2_VERISION): Update definition.
3023 (DWARF2_LINE_VERSION): Remove definition.
3024 * doc/as.texi: Document the new options.
3029 * as.c (main): Allow matching input and outputs when they are
3034 * config/tc-i386.c (match_mem_size): Generalize broadcast special
3036 (check_VecOperands): Zap xmmword/ymmword/zmmword when more than
3037 one of byte/word/dword/qword is set alongside a SIMD register in
3038 a template's operand.
3042 * config/tc-i386.c (match_template): Extend code in logic
3043 rejecting certain suffixes in certain modes to also cover mask
3044 register use and VecSIB. Drop special casing of broadcast. Skip
3045 immediates in the check.
3049 * config/tc-i386.c (match_template): Fold duplicate code in
3050 logic rejecting certain suffixes in certain modes. Drop
3055 * config/tc-i386.c (process_suffix): Exlucde !vexw insns
3056 alongside !norex64 ones.
3057 * testsuite/gas/i386/x86-64-avx512bw.s: Test VPEXTR* and VPINSR*
3058 with both 32- and 64-bit GPR operands.
3059 * testsuite/gas/i386/x86-64-avx512f.s: Test VEXTRACTPS with both
3060 32- and 64-bit GPR operands.
3061 * testsuite/gas/i386/x86-64-avx512bw-intel.d,
3062 testsuite/gas/i386/x86-64-avx512bw.d,
3063 testsuite/gas/i386/x86-64-avx512f-intel.d,
3064 testsuite/gas/i386/x86-64-avx512f.d: Adjust expectations.
3068 * config/tc-i386.c (md_assemble): Drop use of rex64.
3069 (process_suffix): For REX.W for 64-bit CRC32.
3073 * config/tc-i386.c (i386_addressing_mode): For 32-bit
3074 addressing for MPX insns without base/index.
3075 * testsuite/gas/i386/mpx-16bit.s,
3076 * testsuite/gas/i386/mpx-16bit.d: New.
3077 * testsuite/gas/i386/i386.exp: Run new test.
3081 * testsuite/gas/i386/adx.s, testsuite/gas/i386/cet.s,
3082 testsuite/gas/i386/ept.s, testsuite/gas/i386/fsgs.s,
3083 testsuite/gas/i386/invpcid.s, testsuite/gas/i386/movdir.s,
3084 testsuite/gas/i386/ptwrite.s, testsuite/gas/i386/vmx.s,
3085 * testsuite/gas/i386/code16.s: Add CR, DR, and TR access cases
3086 as well as a BSWAP one.
3087 * testsuite/gas/i386/rdpid.s: Add 16-bit case.
3088 * testsuite/gas/i386/sse2-16bit.s: Cover more insns.
3089 * testsuite/gas/i386/adx-intel.d, testsuite/gas/i386/adx.d,
3090 testsuite/gas/i386/cet-intel.d, testsuite/gas/i386/cet.d,
3091 testsuite/gas/i386/code16.d, testsuite/gas/i386/ept-intel.d,
3092 testsuite/gas/i386/ept.d, testsuite/gas/i386/fsgs-intel.d,
3093 testsuite/gas/i386/fsgs.d, testsuite/gas/i386/invpcid-intel.d,
3094 testsuite/gas/i386/invpcid.d, testsuite/gas/i386/movdir-intel.d,
3095 testsuite/gas/i386/movdir.d, testsuite/gas/i386/ptwrite-intel.d,
3096 testsuite/gas/i386/ptwrite.d, testsuite/gas/i386/rdpid-intel.d,
3097 testsuite/gas/i386/rdpid.d, testsuite/gas/i386/sse2-16bit.d,
3098 testsuite/gas/i386/vmx.d: Adjust expectations.
3102 * config/tc-i386.c (md_assemble): Also exclude tpause and umwait
3103 from having their operands swapped.
3104 * testsuite/gas/i386/waitpkg.s,
3105 testsuite/gas/i386/x86-64-waitpkg.s: Add tpause and umwait
3106 3-operand cases as well as testing of 16-bit code generation.
3107 * testsuite/gas/i386/waitpkg.d,
3108 testsuite/gas/i386/waitpkg-intel.d,
3109 testsuite/gas/i386/x86-64-waitpkg.d,
3110 testsuite/gas/i386/x86-64-waitpkg-intel.d: Adjust expectations.
3114 * config/tc-riscv.c (percent_op_utype): Support the modifier
3116 * doc/c-riscv.texi: Add documentation.
3117 * testsuite/gas/riscv/no-relax-reloc.d: Add test case for the new
3118 modifier %got_pcrel_hi.
3119 * testsuite/gas/riscv/no-relax-reloc.s: Likewise.
3120 * testsuite/gas/riscv/relax-reloc.d: Likewise.
3121 * testsuite/gas/riscv/relax-reloc.s: Likewise.
3123 * doc/c-riscv.texi (relocation modifiers): Add documentation.
3124 (RISC-V-Formats): Update the section name from "Instruction Formats"
3125 to "RISC-V Instruction Formats".
3129 * config/tc-arm.c (md_apply_fix): Warn if a PC-relative load is
3130 detected in a section which does not have at least 4 byte
3132 * testsuite/gas/arm/armv8-ar-it-bad.s: Add alignment directive.
3133 * testsuite/gas/arm/ldr-t.s: Likewise.
3134 * testsuite/gas/arm/sp-pc-usage-t.s: Likewise.
3135 * testsuite/gas/arm/sp-pc-usage-t.d: Finish test at end of
3136 disassembly, ignoring any NOPs that may have been inserted because
3137 of section alignment.
3138 * testsuite/gas/arm/ldr-t.d: Likewise.
3142 * config/tc-i386.c (cpu_arch): Add .sev_es entry.
3143 * doc/c-i386.texi: Mention sev_es.
3144 * testsuite/gas/i386/arch-13.s: Add SEV-ES case.
3145 * testsuite/gas/i386/arch-13.d: Extend -march=. Adjust
3147 * testsuite/gas/i386/arch-13-znver1.d,
3148 testsuite/gas/i386/arch-13-znver2.d: Extend -march=.
3152 * config/tc-i386.c (match_template): Replace ignoresize and
3153 defaultsize with mnemonicsize.
3154 (process_suffix): Likewise.
3159 * config/tc-z80.c (emit_ld_rr_m): Fix invalid compilation of
3160 instruction LD IY,(HL).
3161 * testsuite/gas/z80/ez80_adl_all.d: Update expected disassembly.
3162 * testsuite/gas/z80/ez80_adl_all.s: Add tests of the instruction.
3163 * testsuite/gas/z80/ez80_z80_all.d: Update expected disassembly.
3164 * testsuite/gas/z80/ez80_z80_all.s: Add tests of the instruction.
3169 * testsuite/gas/i386/i386.exp: Run x86-64-default-suffix and
3170 x86-64-default-suffix-avx.
3171 * testsuite/gas/i386/noreg64.s: Remove cvtsi2sd, cvtsi2ss,
3172 vcvtsi2sd, vcvtsi2ss, vcvtusi2sd and vcvtusi2ss entries.
3173 * testsuite/gas/i386/noreg64.d: Updated.
3174 * testsuite/gas/i386/noreg64.l: Likewise.
3175 * testsuite/gas/i386/x86-64-default-suffix-avx.d: New file.
3176 * testsuite/gas/i386/x86-64-default-suffix.d: Likewise.
3177 * testsuite/gas/i386/x86-64-default-suffix.s: Likewise.
3182 * config/tc-z80.c (contains_register): Prevent an illegal memory
3183 access when checking an expression for a register name.
3187 * config/obj-coff.h: Remove vestiges of coff-m68k and pe-mips
3192 * config/tc-m32r.c (md_begin): Set SEC_SMALL_DATA on .scommon section.
3193 * config/tc-mips.c (s_change_sec): Set SEC_SMALL_DATA for .sdata
3195 * config/tc-score.c: Delete !BFD_ASSEMBLER code throughout.
3196 (s3_s_change_sec): Set SEC_SMALL_DATA for .sbss section.
3197 (s3_s_score_lcomm): Likewise.
3198 * config/tc-score7.c: Similarly.
3199 * read.c (bss_alloc): Set SEC_SMALL_DATA for .sbss section.
3204 * config/tc-mips.c (fix_loongson3_llsc): Compare label value
3205 to handle multi-labels.
3206 (has_label_name): New.
3210 * config/tc-arm.c (enum pred_instruction_type): Remove
3211 NEUTRAL_IT_NO_VPT_INSN predication type.
3212 (cxn_handle_predication): Modify to require condition suffixes.
3213 (handle_pred_state): Remove NEUTRAL_IT_NO_VPT_INSN cases.
3214 * testsuite/gas/arm/cde-scalar.s: Update test.
3215 * testsuite/gas/arm/cde-warnings.l: Update test.
3216 * testsuite/gas/arm/cde-warnings.s: Update test.
3220 * config/tc-arm.c (reg_expected_msgs[REG_TYPE_RNB]): Don't use
3221 N_() on empty string.
3225 * read.c (read_a_source_file): Call strncpy with length one
3226 less than size of original_case_string.
3230 * config/obj-elf.c: Indent labels correctly.
3231 * config/obj-macho.c: Likewise.
3232 * config/tc-aarch64.c: Likewise.
3233 * config/tc-alpha.c: Likewise.
3234 * config/tc-arm.c: Likewise.
3235 * config/tc-cr16.c: Likewise.
3236 * config/tc-crx.c: Likewise.
3237 * config/tc-frv.c: Likewise.
3238 * config/tc-i386-intel.c: Likewise.
3239 * config/tc-i386.c: Likewise.
3240 * config/tc-ia64.c: Likewise.
3241 * config/tc-mn10200.c: Likewise.
3242 * config/tc-mn10300.c: Likewise.
3243 * config/tc-nds32.c: Likewise.
3244 * config/tc-riscv.c: Likewise.
3245 * config/tc-s12z.c: Likewise.
3246 * config/tc-xtensa.c: Likewise.
3247 * config/tc-z80.c: Likewise.
3249 * symbols.c: Likewise.
3250 * write.c: Likewise.
3254 * config/tc-riscv.c (riscv_ip): New boolean insn_with_csr to indicate
3255 we are assembling instruction with CSR. Call riscv_csr_read_only_check
3256 after parsing all arguments.
3257 (enum csr_insn_type): New enum is used to classify the CSR instruction.
3258 (riscv_csr_insn_type, riscv_csr_read_only_check): New functions. These
3259 are used to check if we write a read-only CSR by the CSR instruction.
3260 * testsuite/gas/riscv/priv-reg-fail-read-only-01.s: New testcase. Test
3261 all CSR for the read-only CSR checking.
3262 * testsuite/gas/riscv/priv-reg-fail-read-only-01.d: Likewise.
3263 * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
3264 * testsuite/gas/riscv/priv-reg-fail-read-only-02.s: New testcase. Test
3265 all CSR instructions for the read-only CSR checking.
3266 * testsuite/gas/riscv/priv-reg-fail-read-only-02.d: Likewise.
3267 * testsuite/gas/riscv/priv-reg-fail-read-only-02.l: Likewise.
3269 * config/tc-riscv.c (struct riscv_set_options): New field csr_check.
3270 (riscv_opts): Initialize it.
3271 (reg_lookup_internal): Check the `riscv_opts.csr_check`
3272 before doing the CSR checking.
3273 (enum options): Add OPTION_CSR_CHECK and OPTION_NO_CSR_CHECK.
3274 (md_longopts): Add mcsr-check and mno-csr-check.
3275 (md_parse_option): Handle new enum option values.
3276 (s_riscv_option): Handle new long options.
3277 * doc/c-riscv.texi: Add description for the new .option and assembler
3279 * testsuite/gas/riscv/priv-reg-fail-fext.d: Add `-mcsr-check` to enable
3281 * testsuite/gas/riscv/priv-reg-fail-rv32-only.d: Likewise.
3283 * config/tc-riscv.c (csr_extra_hash): New.
3284 (enum riscv_csr_class): New enum. Used to decide
3285 whether or not this CSR is legal in the current ISA string.
3286 (struct riscv_csr_extra): New structure to hold all extra information
3288 (riscv_init_csr_hashes): New. According to the DECLARE_CSR and
3289 DECLARE_CSR_ALIAS, insert CSR extra information into csr_extra_hash.
3290 Call hash_reg_name to insert CSR address into reg_names_hash.
3291 (reg_csr_lookup_internal, riscv_csr_class_check): New functions.
3292 Decide whether the CSR is valid according to the csr_extra_hash.
3293 (reg_lookup_internal): Call reg_csr_lookup_internal for CSRs.
3294 (init_opcode_hash): Update 'if (hash_error != NULL)' as hash_error is
3295 not a boolean. This is same as riscv_init_csr_hash, so keep the
3297 (md_begin): Call riscv_init_csr_hashes for each DECLARE_CSR.
3298 * testsuite/gas/riscv/csr-dw-regnums.d: Add -march=rv32if option.
3299 * testsuite/gas/riscv/priv-reg.d: Add f-ext by -march option.
3300 * testsuite/gas/riscv/priv-reg-fail-fext.d: New testcase. The source
3301 file is `priv-reg.s`, and the ISA is rv32i without f-ext, so the
3302 f-ext CSR are not allowed.
3303 * testsuite/gas/riscv/priv-reg-fail-fext.l: Likewise.
3304 * testsuite/gas/riscv/priv-reg-fail-rv32-only.d: New testcase. The
3305 source file is `priv-reg.s`, and the ISA is rv64if, so the
3306 rv32-only CSR are not allowed.
3307 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
3311 * config/tc-pdp11.c (md_apply_fix): Handle BFD_RELOC_32.
3312 (tc_gen_reloc): Only give a BAD_CASE assertion on pcrel relocs.
3317 * config/obj-aout.c (obj_aout_frob_file_before_fix): Don't loop
3318 on section size adjustment, instead perform another write if
3319 exec header size is larger than section size.
3323 * doc/c-riscv.texi: Add the doc entries for -march-attr/
3324 -mno-arch-attr command line options.
3328 * testsuite/gas/riscv/c-add-addi.d: New testcase.
3329 * testsuite/gas/riscv/c-add-addi.s: Likewise.
3334 * config/tc-z80.c (md_parse_option): Do not use an underscore
3335 prefix for local labels in SDCC compatability mode.
3336 (z80_start_line_hook): Remove SDCC dollar label support.
3337 * testsuite/gas/z80/sdcc.d: Update expected disassembly.
3338 * testsuite/gas/z80/sdcc.s: Likewise.
3343 * config/tc-z80.c: Add -march option.
3344 * doc/as.texi: Update Z80 documentation.
3345 * doc/c-z80.texi: Likewise.
3346 * testsuite/gas/z80/ez80_adl_all.d: Update command line.
3347 * testsuite/gas/z80/ez80_adl_suf.d: Likewise.
3348 * testsuite/gas/z80/ez80_pref_dis.d: Likewise.
3349 * testsuite/gas/z80/ez80_z80_all.d: Likewise.
3350 * testsuite/gas/z80/ez80_z80_suf.d: Likewise.
3351 * testsuite/gas/z80/gbz80_all.d: Likewise.
3352 * testsuite/gas/z80/r800_extra.d: Likewise.
3353 * testsuite/gas/z80/r800_ii8.d: Likewise.
3354 * testsuite/gas/z80/r800_z80_doc.d: Likewise.
3355 * testsuite/gas/z80/sdcc.d: Likewise.
3356 * testsuite/gas/z80/z180.d: Likewise.
3357 * testsuite/gas/z80/z180_z80_doc.d: Likewise.
3358 * testsuite/gas/z80/z80_doc.d: Likewise.
3359 * testsuite/gas/z80/z80_ii8.d: Likewise.
3360 * testsuite/gas/z80/z80_in_f_c.d: Likewise.
3361 * testsuite/gas/z80/z80_op_ii_ld.d: Likewise.
3362 * testsuite/gas/z80/z80_out_c_0.d: Likewise.
3363 * testsuite/gas/z80/z80_sli.d: Likewise.
3364 * testsuite/gas/z80/z80n_all.d: Likewise.
3365 * testsuite/gas/z80/z80n_reloc.d: Likewise.
3369 * config/tc-i386.c (output_insn): Mark cvtpi2ps and cvtpi2pd
3370 with GNU_PROPERTY_X86_FEATURE_2_MMX.
3371 * testsuite/gas/i386/i386.exp: Run property-3 and
3373 * testsuite/gas/i386/property-3.d: New file.
3374 * testsuite/gas/i386/property-3.s: Likewise.
3375 * testsuite/gas/i386/x86-64-property-3.d: Likewise.
3379 * config/tc-i386.c (cpu_arch): Add .popcnt.
3380 * doc/c-i386.texi: Remove abm and .abm. Add popcnt and .popcnt.
3381 Add a tab before @samp{.sse4a}.
3385 * config/tc-i386.c (process_suffix): Don't try to guess a suffix
3386 for AddrPrefixOpReg templates. Combine the two pieces of
3387 addrprefixopreg handling. Reject 16-bit address reg in 64-bit
3393 * config/tc-i386.c (md_assemble): Also suppress operand
3394 swapping for MONITOR{,X} and MWAIT{,X}.
3395 * testsuite/gas/i386/sse3.s, testsuite/gas/i386/x86-64-sse3.s:
3396 Add Intel syntax monitor/mwait tests.
3397 * testsuite/gas/i386/sse3.d, testsuite/gas/i386/x86-64-sse3.d:
3398 Adjust expectations.
3399 *testsuite/gas/i386/sse3-intel.d,
3400 testsuite/gas/i386/x86-64-sse3-intel.d: New.
3401 * testsuite/gas/i386/i386.exp: Run new tests.
3406 * config/tc-i386.c (process_suffix): Re-work Intel-syntax
3407 [XYZ]MMWord memory operand ambiguity recognition logic (largely
3409 * testsuite/gas/i386/avx512dq-inval.s: Add vcvtqq2ps/vcvtuqq2ps
3411 * testsuite/gas/i386/inval-avx512f.s: Also test vcvtneps2bf16.
3412 * testsuite/gas/i386/avx512dq-inval.l,
3413 testsuite/gas/i386/inval-avx.l,
3414 testsuite/gas/i386/inval-avx512f.l: Adjust expectations.
3415 * testsuite/gas/i386/avx512vl-ambig.s,
3416 testsuite/gas/i386/avx512vl-ambig.l: New.
3417 * testsuite/gas/i386/i386.exp: Run new test.
3421 * config/tc-i386.c (cpu_arch): Add .sse4a and nosse4a. Restore
3423 * doc/c-i386.texi: Document sse4a and nosse4a.
3427 * doc/c-i386.texi: Remove the old movsx and movzx documentation
3433 * config/tc-i386.c (md_assemble): Move movsx/movzx special
3435 (process_suffix): ... here. Consider just the first operand
3437 (check_long_reg): Drop opcode 0x63 special case again.
3438 * testsuite/gas/i386/i386.s, testsuite/gas/i386/iamcu-1.s,
3439 testsuite/gas/i386/ilp32/x86-64.s, testsuite/gas/i386/x86_64.s:
3440 Move ambiguous operand size tests ...
3441 * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
3442 testsuite/gas/i386/noreg64.s: ... here.
3443 * testsuite/gas/i386/i386.d, testsuite/gas/i386/i386-intel.d
3444 testsuite/gas/i386/iamcu-1.d, testsuite/gas/i386/ilp32/x86-64.d,
3445 testsuite/gas/i386/k1om.d, testsuite/gas/i386/l1om.d,
3446 testsuite/gas/i386/movx16.l, testsuite/gas/i386/movx32.l,
3447 testsuite/gas/i386/movx64.l, testsuite/gas/i386/noreg16.d,
3448 testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg64.d,
3449 testsuite/gas/i386/x86-64-movsxd.d,
3450 testsuite/gas/i386/x86-64-movsxd-intel.d,
3451 testsuite/gas/i386/x86_64.d, testsuite/gas/i386/x86_64-intel.d:
3452 Adjust expectations.
3453 * testsuite/gas/i386/movx16.s, testsuite/gas/i386/movx16.l,
3454 testsuite/gas/i386/movx32.s, testsuite/gas/i386/movx32.l,
3455 testsuite/gas/i386/movx64.s, testsuite/gas/i386/movx64.l: New.
3456 * testsuite/gas/i386/i386.exp: Run new tests.
3460 * config/tc-i386.c (process_operands): Also skip segment
3461 override prefix emission if it matches an already present one.
3462 * testsuite/gas/i386/prefix32.s: Add double segment override
3464 * testsuite/gas/i386/prefix32.l: Adjust expectations.
3468 * config/tc-i386.c (process_operands): Drop ineffectual segment
3469 overrides when optimizing.
3470 * testsuite/gas/i386/lea-optimize.d: New.
3471 * testsuite/gas/i386/i386.exp: Run new test.
3475 * config/tc-i386.c (process_operands): Also check insn prefix
3476 for ineffectual segment override warning. Don't cover possible
3477 VEX/EVEX encoded insns there.
3478 * testsuite/gas/i386/lea.s, testsuite/gas/i386/lea.d,
3479 testsuite/gas/i386/lea.e: New.
3480 * testsuite/gas/i386/i386.exp: Run new test.
3485 * doc/c-i386.texi: Document movsx, movsxd and movzx for AT&T
3492 * config/tc-i386.c (tc_i386_fix_adjustable): Don't check
3493 BFD_RELOC_386_PLT32 nor BFD_RELOC_X86_64_PLT32.
3494 * testsuite/gas/i386/i386.exp: Run relax-5 and x86-64-relax-4.
3495 * testsuite/gas/i386/relax-5.d: New file.
3496 * testsuite/gas/i386/relax-5.s: Likewise.
3497 * testsuite/gas/i386/x86-64-relax-4.d: Likewise.
3498 * testsuite/gas/i386/x86-64-relax-4.s: Likewise.
3502 * config/tc-i386.c (cpu_noarch): Use CPU_ANY_SSE4_FLAGS in
3507 * config/tc-i386.c (avx512): New (at file scope), moved from
3508 (check_VecOperands): ... here.
3509 (process_suffix): Add [XYZ]MMword operand size handling.
3510 * testsuite/gas/i386/avx512dq-inval.s: Add VFPCLASS tests.
3511 * testsuite/gas/i386/noavx512-2.s: Add Intel syntax VFPCLASS
3513 * testsuite/gas/i386/avx512dq-inval.l,
3514 testsuite/gas/i386/noavx512-2.l: Adjust expectations.
3519 * config/tc-i386.c (match_template): Apply AMD64 check to 64-bit
3521 * config/tc-i386-intel.c (i386_intel_operand): Also handle
3522 CALL/JMP in O_tbyte_ptr case.
3523 * doc/c-i386.texi: Mention far call and full pointer load ISA
3525 * testsuite/gas/i386/x86-64-branch-3.s,
3526 testsuite/gas/i386/x86-64-intel64.s: Add 64-bit far call cases.
3527 * testsuite/gas/i386/x86-64-branch-3.d,
3528 testsuite/gas/i386/x86-64-intel64.d: Adjust expectations.
3529 * testsuite/gas/i386/x86-64-branch-5.l,
3530 testsuite/gas/i386/x86-64-branch-5.s: New.
3531 * testsuite/gas/i386/i386.exp: Run new test.
3536 * config/tc-i386.c (REGISTER_WARNINGS): Delete.
3537 (check_byte_reg): Skip only source operand of CRC32. Drop Non-
3538 64-bit-only warning.
3539 (check_word_reg): Consistently error on mismatching register
3541 * testsuite/gas/i386/general.s: Replace dword GPR with word one
3542 for movw. Replace suffix / GPR for orb.
3543 * testsuite/gas/i386/inval.s: Add tests for movw with dword and
3544 byte GPRs as well as ones for inb/outb with a word accumulator.
3545 * testsuite/gas/i386/general.l, testsuite/gas/i386/intelbad.l,
3546 testsuite/gas/i386/inval.l: Adjust expectations.
3550 * config/tc-i386.c (operand_type_register_match): Also fall
3551 through initial two if()-s when the template allows for a GPR
3552 operand. Adjust comment.
3556 (struct _i386_insn): New field "short_form".
3557 (optimize_encoding): Drop setting of shortform field.
3558 (process_suffix): Set i.short_form. Replace shortform use.
3559 (process_operands): Replace shortform use.
3563 * config/tc-arm.c (vcx_handle_register_arguments): Remove `for`
3564 loop initial declaration.
3568 * config/tc-arm.c (NEON_MAX_TYPE_ELS): Increment to account for
3569 instructions that can have 5 arguments.
3570 (enum operand_parse_code): Add new operands.
3571 (parse_operands): Account for new operands.
3573 (enum neon_shape_el): Introduce P suffixes for coprocessor.
3574 (neon_select_shape): Account for P suffix.
3575 (LOW1): Move macro to global position.
3576 (HI4): Move macro to global position.
3577 (vcx_assign_vec_d): New.
3578 (vcx_assign_vec_m): New.
3579 (vcx_assign_vec_n): New.
3580 (enum vcx_reg_type): New.
3581 (vcx_get_reg_type): New.
3582 (vcx_size_pos): New.
3584 (vcx_handle_shape): New.
3585 (vcx_ensure_register_in_range): New.
3586 (vcx_handle_register_arguments): New.
3587 (vcx_handle_insn_block): New.
3588 (vcx_handle_common_checks): New.
3592 * testsuite/gas/arm/cde-missing-fp.d: New test.
3593 * testsuite/gas/arm/cde-missing-fp.l: New test.
3594 * testsuite/gas/arm/cde-missing-mve.d: New test.
3595 * testsuite/gas/arm/cde-missing-mve.l: New test.
3596 * testsuite/gas/arm/cde-mve-or-neon.d: New test.
3597 * testsuite/gas/arm/cde-mve-or-neon.s: New test.
3598 * testsuite/gas/arm/cde-mve.s: New test.
3599 * testsuite/gas/arm/cde-warnings.l:
3600 * testsuite/gas/arm/cde-warnings.s:
3601 * testsuite/gas/arm/cde.d:
3602 * testsuite/gas/arm/cde.s:
3607 * config/tc-arm.c (arm_ext_cde*): New feature sets for each
3608 CDE coprocessor that can be enabled.
3609 (enum pred_instruction_type): New pred type.
3610 (BAD_NO_VPT): New error message.
3611 (BAD_CDE): New error message.
3612 (BAD_CDE_COPROC): New error message.
3613 (enum operand_parse_code): Add new immediate operands.
3614 (parse_operands): Account for new immediate operands.
3615 (check_cde_operand): New.
3616 (cde_coproc_enabled): New.
3617 (cde_coproc_pos): New.
3618 (cde_handle_coproc): New.
3619 (cxn_handle_predication): New.
3620 (do_custom_instruction_1): New.
3621 (do_custom_instruction_2): New.
3622 (do_custom_instruction_3): New.
3635 (handle_pred_state): Define new IT block behaviour.
3636 (insns): Add newn CX*{,d}{,a} instructions.
3637 (CDE_EXTENSIONS,armv8m_main_ext_table,armv8_1m_main_ext_table):
3638 Define new cdecp extension strings.
3639 * doc/c-arm.texi: Document new cdecp extension arguments.
3640 * testsuite/gas/arm/cde-scalar.d: New test.
3641 * testsuite/gas/arm/cde-scalar.s: New test.
3642 * testsuite/gas/arm/cde-warnings.d: New test.
3643 * testsuite/gas/arm/cde-warnings.l: New test.
3644 * testsuite/gas/arm/cde-warnings.s: New test.
3645 * testsuite/gas/arm/cde.d: New test.
3646 * testsuite/gas/arm/cde.s: New test.
3651 * config/tc-i386.c (intel64): Renamed to ...
3653 (match_template): Accept Intel64 only instruction by default.
3654 (i386_displacement): Updated.
3655 (md_parse_option): Updated.
3656 * c-i386.texi: Update -mamd64/-mintel64 documentation.
3657 * testsuite/gas/i386/i386.exp: Run x86-64-sysenter. Pass
3658 -mamd64 to x86-64-sysenter-amd.
3659 * testsuite/gas/i386/x86-64-sysenter.d: New file.
3663 * config/obj-elf.c (obj_elf_change_section): Error for section
3664 type, attr or entsize changes in assembly.
3665 * testsuite/gas/elf/elf.exp: Pass -Z to gas for section5 test.
3666 * testsuite/gas/elf/section5.l: Update.
3670 * output-file.c (output_file_close): Do a normal close when
3671 flag_always_generate_output.
3672 * write.c (write_object_file): Don't stop output when
3673 flag_always_generate_output.
3678 * config/tc-z80.c: Add -gbz80 command line option to generate code
3679 for the GameBoy Z80. Add support for generating DWARF.
3680 * config/tc-z80.h: Add support for DWARF debug information
3682 * doc/c-z80.texi: Document new command line option.
3683 * testsuite/gas/z80/gbz80_all.d: New file.
3684 * testsuite/gas/z80/gbz80_all.s: New file.
3685 * testsuite/gas/z80/z80.exp: Run the new tests.
3686 * testsuite/gas/z80/z80n_all.d: New file.
3687 * testsuite/gas/z80/z80n_all.s: New file.
3688 * testsuite/gas/z80/z80n_reloc.d: New file.
3693 * config/obj-elf.c (get_section): Also check
3694 linked_to_symbol_name.
3695 (obj_elf_change_section): Also set map_head.linked_to_symbol_name.
3696 (obj_elf_parse_section_letters): Handle the 'o' flag.
3697 (build_group_lists): Renamed to ...
3698 (build_additional_section_info): This. Set elf_linked_to_section
3699 from map_head.linked_to_symbol_name.
3700 (elf_adjust_symtab): Updated.
3701 * config/obj-elf.h (elf_section_match): Add linked_to_symbol_name.
3702 * doc/as.texi: Document the 'o' flag.
3703 * testsuite/gas/elf/elf.exp: Run PR gas/25381 tests.
3704 * testsuite/gas/elf/section18.d: New file.
3705 * testsuite/gas/elf/section18.s: Likewise.
3706 * testsuite/gas/elf/section19.d: Likewise.
3707 * testsuite/gas/elf/section19.s: Likewise.
3708 * testsuite/gas/elf/section20.d: Likewise.
3709 * testsuite/gas/elf/section20.s: Likewise.
3710 * testsuite/gas/elf/section21.d: Likewise.
3711 * testsuite/gas/elf/section21.l: Likewise.
3712 * testsuite/gas/elf/section21.s: Likewise.
3716 * NEWS: Mention x86 assembler options to align branches for
3721 * testsuite/gas/i386/i386.exp: Run unique and x86-64-unique
3722 only for ELF targets.
3723 * testsuite/gas/i386/unique.d: Don't xfail.
3724 * testsuite/gas/i386/x86-64-unique.d: Likewise.
3728 * testsuite/gas/i386/unique.d: xfail for non-elf targets.
3729 * testsuite/gas/i386/x86-64-unique.d: Likewise.
3733 * testsuite/gas/elf/section12a.d: Use supports_gnu_osabi in
3734 xfail, and rename test.
3735 * testsuite/gas/elf/section12b.d: Likewise.
3736 * testsuite/gas/elf/section16a.d: Likewise.
3737 * testsuite/gas/elf/section16b.d: Likewise.
3742 * config/obj-elf.c (section_match): Removed.
3743 (get_section): Also match SEC_ASSEMBLER_SECTION_ID and
3745 (obj_elf_change_section): Replace info and group_name arguments
3746 with match_p. Also update the section ID and flags from match_p.
3747 (obj_elf_section): Handle "unique,N". Update call to
3748 obj_elf_change_section.
3749 * config/obj-elf.h (elf_section_match): New.
3750 (obj_elf_change_section): Updated.
3751 * config/tc-arm.c (start_unwind_section): Update call to
3752 obj_elf_change_section.
3753 * config/tc-ia64.c (obj_elf_vms_common): Likewise.
3754 * config/tc-microblaze.c (microblaze_s_data): Likewise.
3755 (microblaze_s_sdata): Likewise.
3756 (microblaze_s_rdata): Likewise.
3757 (microblaze_s_bss): Likewise.
3758 * config/tc-mips.c (s_change_section): Likewise.
3759 * config/tc-msp430.c (msp430_profiler): Likewise.
3760 * config/tc-rx.c (parse_rx_section): Likewise.
3761 * config/tc-tic6x.c (tic6x_start_unwind_section): Likewise.
3762 * doc/as.texi: Document "unique,N" in .section directive.
3763 * testsuite/gas/elf/elf.exp: Run "unique,N" tests.
3764 * testsuite/gas/elf/section15.d: New file.
3765 * testsuite/gas/elf/section15.s: Likewise.
3766 * testsuite/gas/elf/section16.s: Likewise.
3767 * testsuite/gas/elf/section16a.d: Likewise.
3768 * testsuite/gas/elf/section16b.d: Likewise.
3769 * testsuite/gas/elf/section17.d: Likewise.
3770 * testsuite/gas/elf/section17.l: Likewise.
3771 * testsuite/gas/elf/section17.s: Likewise.
3772 * testsuite/gas/i386/unique.d: Likewise.
3773 * testsuite/gas/i386/unique.s: Likewise.
3774 * testsuite/gas/i386/x86-64-unique.d: Likewise.
3775 * testsuite/gas/i386/i386.exp: Run unique and x86-64-unique.
3779 * testsuite/gas/elf/section13.s: Replace @nobits with %nobits.
3783 * config/tc-moxie.c (md_begin): Don't force big-endian mode.
3787 * config/tc-nios2.c (nios2_cons): Handle %gotoff as well as
3793 * config/tc-arm.c (armv8m_main_ext_table): Refactored +dsp adding.
3794 (armv8_1m_main_ext_table): Refactored +dsp adding and enabled dsp for
3796 * testsuite/gas/arm/mve_dsp.d: New test.
3800 * config/tc-s390.c (s390_elf_suffix): Return ELF_SUFFIX_NONE
3801 rather than BFD_RELOC_NONE.
3805 * config/tc-arm.c (fldmias): Moved inside "THUMB_VARIANT & arm_ext_v6t2"
3806 to support VLDMIA instruction for MVE.
3807 (fldmdbs): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VLDMDB
3808 instruction for MVE.
3809 (fstmias): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VSTMIA
3810 instruction for MVE.
3811 (fstmdbs): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VSTMDB
3812 instruction for MVE.
3813 * testsuite/gas/arm/mve-ldst.d: New test.
3814 * testsuite/gas/arm/mve-ldst.s: Likewise.
3818 * po/fr.po: Updated French translation.
3819 * po/ru.po: Updated Russian translation.
3823 * testsuite/gas/aarch64/sve-bfloat-movprfx.s: Use .h rather than
3825 * testsuite/gas/aarch64/sve-bfloat-movprfx.d: Update accordingly.
3826 * testsuite/gas/aarch64/sve-movprfx_28.d,
3827 * testsuite/gas/aarch64/sve-movprfx_28.l,
3828 * testsuite/gas/aarch64/sve-movprfx_28.s: New test.
3832 * config/tc-i386.c (output_disp): Tighten base_opcode check.
3833 * testsuite/gas/i386/got.s: Add LSL, MOVLPS, and BNDCN cases.
3834 * testsuite/gas/i386/got-no-relax.d, testsuite/gas/i386/got.d:
3835 Adjust expectations.
3839 * testsuite/gas/bpf/alu.d: Update expected opcode for `neg'.
3840 * testsuite/gas/bpf/alu-be.d: Likewise.
3841 * testsuite/gas/bpf/alu32.d: Likewise for `neg32'.
3842 * testsuite/gas/bpf/alu32-be.d: Likewise.
3846 * testsuite/gas/i386/x86-64-branch-2.s,
3847 testsuite/gas/i386/x86-64-branch-4.s,
3848 testsuite/gas/i386/x86-64-branch.s: Add RETW cases.
3849 * testsuite/gas/i386/ilp32/x86-64-branch.d,
3850 testsuite/gas/i386/x86-64-branch-2.d,
3851 testsuite/gas/i386/x86-64-branch-4.l,
3852 testsuite/gas/i386/x86-64-branch.d: Adjust expectations.
3856 * config/tc-i386.c (process_suffix): .
3857 testsuite/gas/i386/noreg64.s: Add IRET and LRET cases.
3858 testsuite/gas/i386/x86-64-opcode.s: Add suffix to IRET and LRET.
3860 testsuite/gas/i386/x86-64-suffix.s: Drop IRET case without
3862 testsuite/gas/i386/x86_64.s: Add RETF cases.
3863 * testsuite/gas/i386/k1om.d, testsuite/gas/i386/l1om.d,
3864 testsuite/gas/i386/noreg64.d, testsuite/gas/i386/noreg64.l,
3865 testsuite/gas/i386/x86-64-opcode.d,
3866 testsuite/gas/i386/x86-64-suffix-intel.d,
3867 testsuite/gas/i386/x86-64-suffix.d,
3868 testsuite/gas/i386/x86_64-intel.d
3869 testsuite/gas/i386/x86_64.d: Adjust expectations.
3870 * testsuite/gas/i386/x86-64-suffix.e,
3871 testsuite/gas/i386/x86_64.e: New.
3875 * config/tc-i386.c (process_suffix): Redo and move FLDENV et al
3881 * config/tc-i386.c (check_long_reg): Also convert to QWORD for
3883 * doc/c-i386.texi: Add a node for AMD64 vs. Intel64 ISA
3884 differences. Document movslq and movsxd.
3885 * testsuite/gas/i386/i386.exp: Run PR binutils/25445 tests.
3886 * testsuite/gas/i386/x86-64-movsxd-intel.d: New file.
3887 * testsuite/gas/i386/x86-64-movsxd-intel64-intel.d: Likewise.
3888 * testsuite/gas/i386/x86-64-movsxd-intel64-inval.l: Likewise.
3889 * testsuite/gas/i386/x86-64-movsxd-intel64-inval.s: Likewise.
3890 * testsuite/gas/i386/x86-64-movsxd-intel64.d: Likewise.
3891 * testsuite/gas/i386/x86-64-movsxd-intel64.s: Likewise.
3892 * testsuite/gas/i386/x86-64-movsxd-inval.l: Likewise.
3893 * testsuite/gas/i386/x86-64-movsxd-inval.s: Likewise.
3894 * testsuite/gas/i386/x86-64-movsxd.d: Likewise.
3895 * testsuite/gas/i386/x86-64-movsxd.s: Likewise.
3899 * testsuite/gas/all/gas.exp: Replace case statements with switch
3901 * testsuite/gas/elf/elf.exp: Likewise.
3902 * testsuite/gas/macros/macros.exp: Likewise.
3903 * testsuite/lib/gas-defs.exp: Likewise.
3908 * testsuite/gas/aarch64/armv8_4-a.d: Add cfinv.
3909 * testsuite/gas/aarch64/armv8_4-a.s: Likewise.
3913 * testsuite/gas/riscv/march-ok-s.d: sx is no longer valid and
3914 s exts must be known, so rename *ok* to *fail*.
3915 * testsuite/gas/riscv/march-ok-sx.d: Likewise.
3916 * testsuite/gas/riscv/march-ok-s-with-version: Likewise.
3917 * testsuite/gas/riscv/march-fail-s.l: Expected error messages for
3919 * testsuite/gas/riscv/march-fail-sx.l: Likewise.
3920 * testsuite/gas/riscv/march-fail-sx-with-version.l: Likewise.
3925 * config/tc-i386.c (check_long_reg): Always disallow double word
3926 suffix in mnemonic with word general register.
3927 * testsuite/gas/i386/general.s: Replace word general register
3928 with double word general register for movl.
3929 * testsuite/gas/i386/inval.s: Add tests for movl with word general
3931 * testsuite/gas/i386/general.l: Updated.
3932 * testsuite/gas/i386/inval.l: Likewise.
3936 * config/tc-ppc.c (parse_tls_arg): Handle tls arg for
3937 __tls_get_addr_desc and __tls_get_addr_opt.
3941 * testsuite/gas/i386/inval-crc32.s,
3942 testsuite/gas/i386/x86-64-inval-crc32.s: Add alignment directive.
3943 * testsuite/gas/i386/inval-crc32.l,
3944 testsuite/gas/i386/x86-64-inval-crc32.l: Adjust expectations.
3948 * config/tc-i386.c (process_suffix): Merge CRC32 handling into
3949 generic code path. Deal with No_lSuf being set in a template.
3950 * testsuite/gas/i386/inval-crc32.l,
3951 testsuite/gas/i386/x86-64-inval-crc32.l: Expect warning(s)
3952 instead of error(s) when operand size is ambiguous.
3953 * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
3954 testsuite/gas/i386/noreg64.s: Add CRC32 tests.
3955 * testsuite/gas/i386/noreg16.d, testsuite/gas/i386/noreg16.l,
3956 testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg32.l,
3957 testsuite/gas/i386/noreg64.d, testsuite/gas/i386/noreg64.l:
3958 Adjust expectations.
3962 * config/tc-i386.c (process_suffix): Drop SYSRET special case
3963 and an intel_syntax check. Re-write lack-of-suffix processing
3965 * doc/c-i386.texi: Document operand size defaults for suffix-
3966 less AT&T syntax insns.
3967 * testsuite/gas/i386/bundle.s, testsuite/gas/i386/lock-1.s,
3968 testsuite/gas/i386/opcode.s, testsuite/gas/i386/sse3.s,
3969 testsuite/gas/i386/x86-64-avx-scalar.s,
3970 testsuite/gas/i386/x86-64-avx.s,
3971 testsuite/gas/i386/x86-64-bundle.s,
3972 testsuite/gas/i386/x86-64-intel64.s,
3973 testsuite/gas/i386/x86-64-lock-1.s,
3974 testsuite/gas/i386/x86-64-opcode.s,
3975 testsuite/gas/i386/x86-64-sse2avx.s,
3976 testsuite/gas/i386/x86-64-sse3.s: Add missing suffixes.
3977 * testsuite/gas/i386/nops.s, testsuite/gas/i386/sse-noavx.s,
3978 testsuite/gas/i386/x86-64-nops.s,
3979 testsuite/gas/i386/x86-64-ptwrite.s,
3980 testsuite/gas/i386/x86-64-simd.s,
3981 testsuite/gas/i386/x86-64-sse-noavx.s,
3982 testsuite/gas/i386/x86-64-suffix.s: Drop bogus suffix-less
3984 * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
3985 testsuite/gas/i386/noreg64.s: Add further tests.
3986 * testsuite/gas/i386/ilp32/x86-64-nops.d,
3987 testsuite/gas/i386/nops.d, testsuite/gas/i386/noreg16.d,
3988 testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg64.d,
3989 testsuite/gas/i386/sse-noavx.d,
3990 testsuite/gas/i386/x86-64-intel64.d,
3991 testsuite/gas/i386/x86-64-nops.d,
3992 testsuite/gas/i386/x86-64-opcode.d,
3993 testsuite/gas/i386/x86-64-ptwrite-intel.d,
3994 testsuite/gas/i386/x86-64-ptwrite.d,
3995 testsuite/gas/i386/x86-64-simd-intel.d,
3996 testsuite/gas/i386/x86-64-simd-suffix.d,
3997 testsuite/gas/i386/x86-64-simd.d,
3998 testsuite/gas/i386/x86-64-sse-noavx.d
3999 testsuite/gas/i386/x86-64-suffix.d,
4000 testsuite/gas/i386/x86-64-suffix-intel.d: Adjust expectations.
4001 * testsuite/gas/i386/noreg16.l, testsuite/gas/i386/noreg32.l,
4002 testsuite/gas/i386/noreg64.l: New.
4003 * testsuite/gas/i386/i386.exp: Run new tests.
4007 * testsuite/gas/i386/avx512_bf16_vl.s,
4008 testsuite/gas/i386/x86-64-avx512_bf16_vl.s: Add broadcast forms
4009 of VCVTNEPS2BF16{X,Y}. Add operand-size less Intel syntax
4010 broadcast forms of VCVTNEPS2BF16.
4011 * testsuite/gas/i386/avx512_bf16_vl.d,
4012 testsuite/gas/i386/x86-64-avx512_bf16_vl.d: Adjust expectations.
4016 * po/uk.po: Updated Ukranian translation.
4021 * config/tc-i386.c (output_insn): Add a dummy REX_OPCODE prefix
4022 for lea with R_X86_64_GOTPC32_TLSDESC relocation when generating
4024 * testsuite/gas/i386/ilp32/x32-tls.d: Updated.
4025 * testsuite/gas/i386/ilp32/x32-tls.s: Add tests for lea with
4026 R_X86_64_GOTPC32_TLSDESC relocation.
4030 * configure: Regenerate.
4031 * po/gas.pot: Regenerate.
4035 Binutils 2.34 branch created.
4039 * config/tc-i386.c (_i386_insn): Replace vex_encoding_vex2
4040 with vex_encoding_vex.
4041 (parse_insn): Likewise.
4042 * doc/c-i386.texi: Replace {vex2} with {vex}. Update {vex}
4043 and {vex3} documentation.
4044 * testsuite/gas/i386/pseudos.s: Replace 3 {vex2} tests with
4046 * testsuite/gas/i386/x86-64-pseudos.s: Likewise.
4051 * config/tc-arm.c (mve_ext, mve_fp_ext): Use CORE_HIGH.
4052 (armv8_1m_main_ext_table): Use CORE_HIGH for mve.
4053 * testsuite/arm/armv8_1-m-fpu-mve-1.s: New.
4054 * testsuite/arm/armv8_1-m-fpu-mve-1.d: New.
4055 * testsuite/arm/armv8_1-m-fpu-mve-2.s: New.
4056 * testsuite/arm/armv8_1-m-fpu-mve-2.d: New.
4060 * config/tc-i386.c (match_template): Drop found_cpu_match local
4065 * testsuite/gas/i386/avx512dq-inval.l,
4066 testsuite/gas/i386/avx512dq-inval.s: New.
4067 * testsuite/gas/i386/i386.exp: Run new test.
4071 * config/tc-msp430.c (CHECK_RELOC_MSP430): Always generate 430X
4072 relocations when the target is 430X, except when extracting part of an
4074 (msp430_srcoperand): Adjust comment.
4075 Initialize the expp member of the msp430_operand_s struct as
4077 (msp430_dstoperand): Likewise.
4078 * testsuite/gas/msp430/msp430.exp: Run new test.
4079 * testsuite/gas/msp430/reloc-lo-430x.d: New test.
4080 * testsuite/gas/msp430/reloc-lo-430x.s: New test.
4084 * configure.tgt: Add sparc-*-freebsd case.
4088 * testsuite/gas/i386/align-branch-1a.d: Updated for Darwin.
4089 * testsuite/gas/i386/align-branch-1b.d: Likewise.
4090 * testsuite/gas/i386/align-branch-1c.d: Likewise.
4091 * testsuite/gas/i386/align-branch-1d.d: Likewise.
4092 * testsuite/gas/i386/align-branch-1e.d: Likewise.
4093 * testsuite/gas/i386/align-branch-1f.d: Likewise.
4094 * testsuite/gas/i386/align-branch-1g.d: Likewise.
4095 * testsuite/gas/i386/align-branch-1h.d: Likewise.
4096 * testsuite/gas/i386/align-branch-1i.d: Likewise.
4097 * testsuite/gas/i386/align-branch-5.d: Likewise.
4098 * testsuite/gas/i386/x86-64-align-branch-1a.d: Likewise.
4099 * testsuite/gas/i386/x86-64-align-branch-1b.d: Likewise.
4100 * testsuite/gas/i386/x86-64-align-branch-1c.d: Likewise.
4101 * testsuite/gas/i386/x86-64-align-branch-1d.d: Likewise.
4102 * testsuite/gas/i386/x86-64-align-branch-1e.d: Likewise.
4103 * testsuite/gas/i386/x86-64-align-branch-1f.d: Likewise.
4104 * testsuite/gas/i386/x86-64-align-branch-1g.d: Likewise.
4105 * testsuite/gas/i386/x86-64-align-branch-1h.d: Likewise.
4106 * testsuite/gas/i386/x86-64-align-branch-1i.d: Likewise.
4107 * testsuite/gas/i386/x86-64-align-branch-5.d: Likewise.
4108 * testsuite/gas/i386/i386.exp: Skip x86-64-align-branch-2a,
4109 x86-64-align-branch-2b and x86-64-align-branch-2c on Darwin.
4114 * config/tc-z80.c: Add support for half precision, single
4115 precision and double precision floating point values.
4116 * config/tc-z80.h b/gas/config/tc-z80.h: Disable string escapes.
4117 * doc/as.texi: Add new z80 command line options.
4118 * doc/c-z80.texi: Document new z80 command line options.
4119 * testsuite/gas/z80/ez80_pref_dis.s: New test.
4120 * testsuite/gas/z80/ez80_pref_dis.d: New test driver.
4121 * testsuite/gas/z80/z80.exp: Run the new test.
4122 * testsuite/gas/z80/fp_math48.d: Use correct command line option.
4123 * testsuite/gas/z80/fp_zeda32.d: Likewise.
4124 * testsuite/gas/z80/strings.d: Update expected output.
4128 * config/tc-aarch64.c (f64mm, f32mm): Add sve as a feature
4133 * config/tc-arc.c (arc_select_cpu): Re-init the bfd if we change
4135 * config/tc-arc.h: Add header if/defs.
4136 * testsuite/gas/arc/pseudos.d: Improve matching pattern.
4140 * testsuite/gas/wasm32/allinsn.d: Update expected output.
4144 * config/tc-tic4x.c (tic4x_operands_match): Correct tic3x trap
4149 * testsuite/gas/elf/pr14891.s: Don't start directives in first column.
4150 * testsuite/gas/elf/pr21661.d: Don't run on hpux.
4155 * config/tc-z80.c (emit_ld_m_rr): Use integer types when checking
4157 (emit_ld_r_r): Likewise.
4158 (emit_ld_rr_m): Likewise.
4159 (emit_ld_rr_nn): Likewise.
4163 * config/tc-i386.c (optimize_encoding): Add
4164 is_any_vex_encoding() invocations. Drop respective
4165 i.tm.extension_opcode == None checks.
4169 * config/tc-i386.c (md_assemble): Check RegRex is clear during
4170 REX transformations. Correct comment indentation.
4174 * config/tc-i386.c (optimize_encoding): Generalize register
4175 transformation for TEST optimization.
4179 * testsuite/gas/i386/x86-64-sysenter-amd.s,
4180 testsuite/gas/i386/x86-64-sysenter-amd.d,
4181 testsuite/gas/i386/x86-64-sysenter-amd.l,
4182 testsuite/gas/i386/x86-64-sysenter-intel.d,
4183 testsuite/gas/i386/x86-64-sysenter-mixed.d: New.
4184 * testsuite/gas/i386/i386.exp: Run new tests.
4189 * doc/as.texi (Align): Document the fact that all arguments can be
4192 (P2align): Likewise.
4197 * config/obj-elf.c (obj_elf_section): Fail if the section name is
4198 already defined as a different symbol type.
4199 * testsuite/gas/elf/pr14891.s: New test source file.
4200 * testsuite/gas/elf/pr14891.d: New test driver.
4201 * testsuite/gas/elf/pr14891.s: New test expected error output.
4202 * testsuite/gas/elf/elf.exp: Run the new test.
4206 * config/tc-z8k.c (md_begin): Make idx unsigned.
4207 (get_specific): Likewise for this_index.
4211 * onfig/tc-arc.c (parse_reloc_symbol): New function.
4212 (tokenize_arguments): Clean up, use parse_reloc_symbol function.
4213 (md_operand): Set X_md to absent.
4214 (arc_parse_name): Check for X_md.
4219 * as.h (TC_STRING_ESCAPES): Provide a default definition.
4220 * app.c (do_scrub_chars): Use TC_STRING_ESCAPES instead of
4222 * read.c (next_char_of_string): Likewise.
4223 * config/tc-ppc.h (TC_STRING_ESCAPES): Define.
4224 * config/tc-z80.h (TC_STRING_ESCAPES): Define.
4228 * po/sv.po: Updated Swedish translation.
4232 * testsuite/gas/aarch64/f64mm.s: Scale index of LD1RO{H,W,D}.
4233 * testsuite/gas/aarch64/f64mm.d: Adjust expectations.
4237 * testsuite/gas/aarch64/i8mm.s: Add 128-bit form tests for
4238 by-element usdot. Add 64-bit form tests for by-element sudot.
4239 * testsuite/gas/aarch64/i8mm.d: Adjust expectations.
4243 * testsuite/gas/aarch64/f64mm.s: Drop 'i' from uzip<n>.
4244 * testsuite/gas/aarch64/f64mm.d: Adjust expectations.
4248 * testsuite/gas/aarch64/f64mm.d,
4249 testsuite/gas/aarch64/sve-movprfx-mm.d: Adjust expectations.
4253 * config/tc-z80.c: Add new architectures: Z180 and eZ80. Add
4254 support for assembler code generated by SDCC. Add new relocation
4255 types. Add z80-elf target support.
4256 * config/tc-z80.h: Add z80-elf target support. Enable dollar local
4257 labels. Local labels starts from ".L".
4258 * NEWS: Mention the new support.
4259 * testsuite/gas/all/fwdexp.d: Fix failure due to symbol conflict.
4260 * testsuite/gas/all/fwdexp.s: Likewise.
4261 * testsuite/gas/all/cond.l: Likewise.
4262 * testsuite/gas/all/cond.s: Likewise.
4263 * testsuite/gas/all/fwdexp.d: Likewise.
4264 * testsuite/gas/all/fwdexp.s: Likewise.
4265 * testsuite/gas/elf/section2.e-mips: Likewise.
4266 * testsuite/gas/elf/section2.l: Likewise.
4267 * testsuite/gas/elf/section2.s: Likewise.
4268 * testsuite/gas/macros/app1.d: Likewise.
4269 * testsuite/gas/macros/app1.s: Likewise.
4270 * testsuite/gas/macros/app2.d: Likewise.
4271 * testsuite/gas/macros/app2.s: Likewise.
4272 * testsuite/gas/macros/app3.d: Likewise.
4273 * testsuite/gas/macros/app3.s: Likewise.
4274 * testsuite/gas/macros/app4.d: Likewise.
4275 * testsuite/gas/macros/app4.s: Likewise.
4276 * testsuite/gas/macros/app4b.s: Likewise.
4277 * testsuite/gas/z80/suffix.d: Fix failure on ELF target.
4278 * testsuite/gas/z80/z80.exp: Add new tests
4279 * testsuite/gas/z80/dollar.d: New file.
4280 * testsuite/gas/z80/dollar.s: New file.
4281 * testsuite/gas/z80/ez80_adl_all.d: New file.
4282 * testsuite/gas/z80/ez80_adl_all.s: New file.
4283 * testsuite/gas/z80/ez80_adl_suf.d: New file.
4284 * testsuite/gas/z80/ez80_isuf.s: New file.
4285 * testsuite/gas/z80/ez80_z80_all.d: New file.
4286 * testsuite/gas/z80/ez80_z80_all.s: New file.
4287 * testsuite/gas/z80/ez80_z80_suf.d: New file.
4288 * testsuite/gas/z80/r800_extra.d: New file.
4289 * testsuite/gas/z80/r800_extra.s: New file.
4290 * testsuite/gas/z80/r800_ii8.d: New file.
4291 * testsuite/gas/z80/r800_z80_doc.d: New file.
4292 * testsuite/gas/z80/z180.d: New file.
4293 * testsuite/gas/z80/z180.s: New file.
4294 * testsuite/gas/z80/z180_z80_doc.d: New file.
4295 * testsuite/gas/z80/z80_doc.d: New file.
4296 * testsuite/gas/z80/z80_doc.s: New file.
4297 * testsuite/gas/z80/z80_ii8.d: New file.
4298 * testsuite/gas/z80/z80_ii8.s: New file.
4299 * testsuite/gas/z80/z80_in_f_c.d: New file.
4300 * testsuite/gas/z80/z80_in_f_c.s: New file.
4301 * testsuite/gas/z80/z80_op_ii_ld.d: New file.
4302 * testsuite/gas/z80/z80_op_ii_ld.s: New file.
4303 * testsuite/gas/z80/z80_out_c_0.d: New file.
4304 * testsuite/gas/z80/z80_out_c_0.s: New file.
4305 * testsuite/gas/z80/z80_reloc.d: New file.
4306 * testsuite/gas/z80/z80_reloc.s: New file.
4307 * testsuite/gas/z80/z80_sli.d: New file.
4308 * testsuite/gas/z80/z80_sli.s: New file.
4312 * config/tc-arm.c (parse_reg_list): Use REG_TYPE_RN instead of
4317 Update year range in copyright notice of all files.
4319 For older changes see ChangeLog-2019
4321 Copyright (C) 2020 Free Software Foundation, Inc.
4323 Copying and distribution of this file, with or without modification,
4324 are permitted in any medium without royalty provided the copyright
4325 notice and this notice are preserved.
4331 version-control: never