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