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