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