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