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