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