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