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