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