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