1 2020-09-07 +2020-08-28 Mark Wielaard <mark@klomp.org>
3 * dwarf2dbg.c (dwarf2_directive_filename): Initialize with_md5 to
5 * gas/testsuite/gas/elf/dwarf-5-file0.s: Add a random bignum.
7 2020-09-01 Mark Wielaard <mark@klomp.org>
9 * dwarf2dbg.c (out_debug_abbrev): Use DW_FORM_sec_offset for DWARF
12 2020-09-02 Alan Modra <amodra@gmail.com>
14 * expr.c (add_to_result, subtract_from_result): Use unsigned
15 addition and subtraction.
17 2020-09-02 Alan Modra <amodra@gmail.com>
19 * config/tc-z80.c (is_overflow): Avoid too large shift.
21 2020-09-02 Alan Modra <amodra@gmail.com>
23 * config/tc-sparc.c (in_signed_range): Use an unsigned type for
26 2020-09-02 Alan Modra <amodra@gmail.com>
28 * config/tc-nios2.c (md_apply_fix): Avoid too large shift.
30 2020-09-02 Alan Modra <amodra@gmail.com>
32 * config/tc-mips.c (load_register): Avoid too large shift.
34 2020-09-02 Alan Modra <amodra@gmail.com>
36 * config/tc-d30v.c (parallel_ok): Use 1UL for left shift expression.
38 2020-09-02 Alan Modra <amodra@gmail.com>
40 * config/rx-parse.y (rx_intop): Avoid too large shifts.
41 (rx_intop, rx_uintop, rx_disp3op, rx_disp5op, displacement),
42 (rtsd_immediate): Use correctly typed unsigned variables.
44 2020-09-02 Alan Modra <amodra@gmail.com>
46 * config/obj-macho.c (obj_mach_o_zerofill): Correct type of
47 constant shifted left.
49 2020-09-02 Alan Modra <amodra@gmail.com>
51 * config/bfin-lex.l: Use an unsigned type for "value".
53 2020-09-02 Alan Modra <amodra@gmail.com>
55 * config/tc-pdp11.c (md_number_to_chars): Condition nbytes=8 code
58 2020-09-02 Cooper Qu <cooper.qu@linux.alibaba.com>
60 * config/tc-csky.c (csky_cpus): Add ck803r3.
61 (CSKY_ISA_803R3): Define.
62 (CSKY_ISA_803R2): Refine, use CSKY_ISA_803R1.
64 2020-09-02 Cooper Qu <cooper.qu@linux.alibaba.com>
66 * testsuite/gas/csky/cskyv2_dsp.d : Fix Encode of mulsws.
68 2020-09-02 Cooper Qu <cooper.qu@linux.alibaba.com>
70 * config/tc-csky.c (struct literal): New member bignum.
71 (dump_literals): Handle big constant.
72 (enter_literal): Likewise.
73 (parse_type_freg): Handle vector register.
75 2020-09-01 H.J. Lu <hongjiu.lu@intel.com>
77 * doc/as.texi: Document the .tls_common directive.
79 2020-09-01 Alan Modra <amodra@gmail.com>
85 * config/tc-arm.c (struct arm_it): Make size, size_req, cond and
86 uncond_value unsigned.
87 (parse_vfp_reg_list): Make setmask unsigned, vpr_str_len size_t.
88 (parse_big_immediate): Cast generic_bignum elements to unsigned.
89 (encode_thumb32_immediate): Shift left 0xffU.
90 (double_to_single): Make sign unsigned. Tidy.
91 (move_or_literal_pool): Cast LITTLE_NUM elements to uint64_t or
93 (vfp_or_neon_is_neon): Adjust inst.uncond_value expression.
94 (md_assemble): Likewise.
95 (handle_pred_state): Make cond unsigned.
96 (thumb32_negate_data_op): Make variables unsigned.
97 (md_apply_fix): Make value and newval unsigned, adjust uses.
99 2020-08-31 Alan Modra <amodra@gmail.com>
102 * config/tc-z8k.c (buffer): Use unsigned char.
103 (apply_fix): Use unsigned char* pointers.
104 (build_bytes): Likewise and mask nibbles when packing.
106 2020-08-31 Alan Modra <amodra@gmail.com>
109 * config/tc-v850.c (parse_register_list): Shift 1u left.
111 2020-08-31 Alan Modra <amodra@gmail.com>
114 * config/tc-tic6x.c (md_apply_fix): Use unsigned variables.
116 2020-08-31 Alan Modra <amodra@gmail.com>
119 * config/tc-sh.c (assemble_ppi): Use unsigned variables.
121 2020-08-31 Alan Modra <amodra@gmail.com>
124 * config/tc-score.c (s3_apply_fix): Use unsigned variables.
125 * config/tc-score7.c (s7_apply_fix): Likewise.
127 2020-08-31 Alan Modra <amodra@gmail.com>
130 * config/tc-nios2.c (nios2_parse_reglist): Shift 1UL left.
132 2020-08-31 Alan Modra <amodra@gmail.com>
135 * config/tc-nios2.c (md_chars_to_number): Cast buf[i] before shifting.
137 2020-08-31 Alan Modra <amodra@gmail.com>
142 * config/tc-mips.c (operand_reg_mask): Shift 1u left.
143 (load_register): Shift 0xffffU left.
145 2020-08-31 Alan Modra <amodra@gmail.com>
148 * config/tc-metag.c (md_chars_to_number): Make retval unsigned.
150 2020-08-31 Alan Modra <amodra@gmail.com>
153 * config/tc-mep.c (md_convert_frag): Use uint32_t for addend and
156 2020-08-31 Alan Modra <amodra@gmail.com>
159 * config/tc-riscv.c (riscv_ip): Cast X_add_number passed to
160 VALID_* macros to unsigned.
162 2020-08-31 Alan Modra <amodra@gmail.com>
164 * config/tc-crx.c: Formatting.
165 (CRX_PRINT): Wrap params in parentheses. Remove parens from uses
167 (reset_vars, get_register, get_copregister, get_optype, get_opbits),
168 (get_opflags, get_number_of_operands, parse_operand, gettrap),
169 (handle_LoadStor, getconstant, check_range, getreg_image),
170 (parse_operands, parse_insn, print_operand, print_constant),
171 (exponent2scale, mask_reg, process_label_constant, set_operand),
172 (assemble_insn, print_insn): Delete unnecessary forward declaration.
173 (print_insn): Make static.
174 (print_constant): Make "constant" unsigned.
175 (assemble_insn): Tidy REVERSE_MATCH index calc.
176 * expr.c (generic_bignum_to_int32): Cast elements to valueT.
178 2020-08-31 Alan Modra <amodra@gmail.com>
181 * config/tc-z80.c (is_overflow): Use 1UL in mask shift expression.
183 2020-08-30 Alan Modra <amodra@gmail.com>
185 * config/tc-tic4x.c (tic4x_gen_to_words): Rewrite mantissa
186 overflow test without UB. Avoid other UB shifts by making them
189 2020-08-31 Cooper Qu <cooper.qu@linux.alibaba.com>
191 * config/tc-csky.c (csky_error_state): New member 'arg_int'.
192 (SET_ERROR_NUMBER): Rename to SET_ERROR_STRING.
193 (SET_ERROR_INTEGER): New.
194 (err_formats): Add error format for ERROR_FREG_OVER_RANGE and
195 ERROR_VREG_OVER_RANGE.
196 (csky_show_error): Pass an integer argument for some error
198 (parse_exp): Call SET_ERROR_STRING instead of SET_ERROR_NUMBER.
199 (parse_rt): Likewise.
200 (parse_type_ctrlreg): Likewise.
201 (csky_get_reg_val): Likewise.
202 (is_reglist_legal): Likewise.
203 (is_freglist_legal): Likewise.
204 (is_reglist_dash_comma_legal): Likewise.
205 (is_reg_lshift_illegal): Likewise.
206 (is_psr_bit): Likewise.
207 (parse_type_cpreg): Likewise.
208 (parse_type_cpcreg): Likewise.
209 (parse_type_areg): Likewise.
210 (parse_type_freg): Likewise.
211 (parse_ldst_imm): Likewise and call SET_ERROR_INTEGER.
212 (get_operand_value): Likewise.
213 (parse_operands_op): Likewise and call is_imm_within_range,
214 is_imm_within_range_ext and is_oimm_within_range.
215 (md_assemble): Likewise.
216 (is_imm_within_range): New.
217 (is_imm_within_range_ext): Rename from is_imm_over_range.
218 (is_oimm_within_range): Rename from is_oimm_over_range.
219 (v2_work_add_sub): Call SET_ERROR_INTEGER.
220 (csky_rolc): call is_imm_within_range instead of
223 2020-08-31 Cooper Qu <cooper.qu@linux.alibaba.com>
225 * config/tc-csky.c (md_begin): Add warning when -mdsp and
226 -mcpu=ck803ern are both added.
227 (parse_ldst_imm): Fix error message.
229 2020-08-30 Alan Modra <amodra@gmail.com>
231 * testsuite/gas/cr16/cbitb_test.d: Update expected output.
232 * testsuite/gas/cr16/cbitw_test.d: Likewise.
233 * testsuite/gas/cr16/sbitb_test.d: Likewise.
234 * testsuite/gas/cr16/sbitw_test.d: Likewise.
235 * testsuite/gas/cr16/storb_test.d: Likewise.
236 * testsuite/gas/cr16/storw_test.d: Likewise.
237 * testsuite/gas/cr16/tbitb_test.d: Likewise.
238 * testsuite/gas/cr16/tbitw_test.d: Likewise.
240 2020-08-30 Alan Modra <amodra@gmail.com>
244 * config/tc-cr16.c: Include limits.h, formatting.
245 (CR16_PRINT): Wrap params in parentheses. Remove parens from uses
247 (getconstant): Handle zero nbits.
248 (print_operand): Use unsigned variables. Simplify handling of
250 (check_range): Use int32_t variables. Correct range checks.
252 2020-08-29 Alan Modra <amodra@gmail.com>
255 * config/tc-pj.c (md_assemble): Don't loop past end of
258 2020-08-28 Alan Modra <amodra@gmail.com>
261 * config/tc-ia64.c (parse_operands): Don't access past end of
264 2020-08-26 Mark Wielaard <mark@klomp.org>
266 * as.c (parse_args): Handle bad -gdwarf options.
268 2020-08-28 Cooper Qu <cooper.qu@linux.alibaba.com>
270 * gas/config/tc-csky.c (md_begin): Set attributes.
271 (isa_flag): Change type to unsigned 64 bits.
272 (struct csky_cpu_info): Likewise.
273 (struct csky_macro_info): Likewise.
274 (set_csky_attribute): New.
275 * testsuite/gas/csky/802j.d: Ignore .csky.attributes section.
276 * testsuite/gas/csky/all.d: Likewise.
277 * testsuite/gas/csky/bsr1.d: Likewise.
278 * testsuite/gas/csky/csky_vdsp.d: Likewise.
279 * testsuite/gas/csky/cskyv2_all.d: Likewise.
280 * testsuite/gas/csky/cskyv2_ck803r2.d: Likewise.
281 * testsuite/gas/csky/cskyv2_ck860.d: Likewise.
282 * testsuite/gas/csky/cskyv2_dsp.d: Likewise.
283 * testsuite/gas/csky/cskyv2_elrw.d: Likewise.
284 * testsuite/gas/csky/cskyv2_float.d: Likewise.
285 * testsuite/gas/csky/enhance_dsp.d: Likewise.
286 * testsuite/gas/csky/java.d: Likewise.
287 * testsuite/gas/csky/v1_float.d: Likewise.
288 * testsuite/gas/csky/v2_float_part1.d: Likewise.
289 * testsuite/gas/csky/v2_float_part2.d: Likewise.
290 * testsuite/gas/csky/v2_tls_gd.d: Likewise.
291 * testsuite/gas/csky/v2_tls_ie.d: Likewise.
292 * testsuite/gas/csky/v2_tls_ld.d: Likewise.
293 * testsuite/gas/csky/v2_tls_le.d: Likewise.
294 * testsuite/gas/elf/elf.exp: Add handler for CSKY.
295 * testsuite/gas/elf/section2.e-csky: New.
297 2020-08-27 Alan Modra <amodra@gmail.com>
300 * cgen.c (weak_operand_overflow_check): Handle opmask for
301 operand length zero. Use 1UL constant.
303 2020-08-26 Alan Modra <amodra@gmail.com>
306 * config/tc-xtensa.c (xg_get_trampoline_chain): Return early
307 when n_entries is zero.
309 2020-08-26 Alan Modra <amodra@gmail.com>
312 * symbols.c: Include limits.h.
313 (resolve_symbol_value <O_left_shift, O_right_shift>): Do an
314 unsigned shift. Warn if shift count larger than valueT size.
316 2020-08-26 Alan Modra <amodra@gmail.com>
319 * expr.c (expr <O_left_shift>): Do an unsigned shift.
321 2020-08-25 Alan Modra <amodra@gmail.com>
323 2020-08-26 David Faust <david.faust@oracle.com>
325 * config/tc-bpf.c: Add option -mxbpf to select xbpf isa.
326 * testsuite/gas/bpf/indcall-1.d: New file.
327 * testsuite/gas/bpf/indcall-1.s: Likewise.
328 * testsuite/gas/bpf/indcall-bad-1.l: Likewise.
329 * testsuite/gas/bpf/indcall-bad-1.s: Likewise.
330 * testsuite/gas/bpf/bpf.exp: Run new tests.
332 2020-08-25 Alan Modra <amodra@gmail.com>
335 * gas/config/tc-tic54x.c (tic54x_undefined_symbol): Properly treat
336 misc_symbol_hash entries without values.
338 2020-08-25 Alan Modra <amodra@gmail.com>
341 * tc-tic4x.c (tic4x_inst_make): Don't die on terminating insn
344 2020-08-25 Alan Modra <amodra@gmail.com>
347 * config/tc-cr16.c (get_b_cc): Return NULL early if op isn't
348 two or three chars, and don't bother copying.
350 2020-08-25 Alan Modra <amodra@gmail.com>
353 * config/tc-arm.c (do_neon_mvn, do_neon_swp): Bail out on
356 2020-08-25 Alan Modra <amodra@gmail.com>
359 * symbols.c (dollar_label_count, dollar_label_max): Make size_t.
360 (dollar_label_clear): Don't call memset with NULL pointer.
362 2020-08-25 Alan Modra <amodra@gmail.com>
364 * config/tc-arc.c (declare_register_set): Avoid false positive
365 format-overflow warning.
366 * config/tc-epiphany.c (md_assemble): Likewise.
367 * config/tc-mips.c (md_begin): Likewise.
368 * config/tc-mmix.c (mmix_md_begin): Likewise.
369 * config/tc-nds32.c (nds32_elf_append_relax_relocs): Avoid false
370 positive "may be used uninitialized" warning.
372 2020-08-24 Cooper Qu <cooper.qu@linux.alibaba.com>
374 * config/tc-csky.c (csky_archs): Add item for CK860,
375 change ck810 and ck807's arch_flag.
376 (csky_cpus): Add item for CK860.
377 (md_begin): Enable DSP for CK810 and CK807 by default.
378 (md_apply_fix): Fix CKCORE_TLS_IE32 relocation failure.
379 * gas/testsuite/gas/csky/cskyv2_all.d: Change 'sync 0'
381 * gas/testsuite/gas/csky/cskyv2_all.s: Likewise.
382 * gas/testsuite/gas/csky/cskyv2_ck860.d: New.
383 * gas/testsuite/gas/csky/cskyv2_ck860.s: New.
384 * gas/testsuite/gas/csky/enhance_dsp.d: Change plsli.u16
386 * gas/testsuite/gas/csky/enhance_dsp.s: Likewise.
388 2020-08-24 Alan Modra <amodra@gmail.com>
390 * config/tc-tic54x.c (stag_add_field_symbols): Don't free "name"
391 in case where it isn't copied.
392 * config/tc-tic54x.h (LOCAL_LABELS_FB): Undef.
393 * testsuite/gas/tic54x/field.d: Dump section contents and symbols
394 rather than disassembling.
395 * testsuite/gas/tic54x/set.d: Adjust for newer disassembly.
397 2020-08-24 Alan Modra <amodra@gmail.com>
399 * config/tc-aarch64.c (md_begin): Don't bother checking for
400 out of memory failure from str_htab_create.
401 * config/tc-arc.c (arc_insert_opcode, md_begin): Likewise.
402 (arc_extcorereg, arc_stralloc): Likewise.
403 * config/tc-arm.c (md_begin): Likewise.
404 * config/tc-cr16.c (initialise_reg_hash_table, md_begin): Likewise.
405 * config/tc-cris.c (md_begin): Likewise.
406 * config/tc-crx.c (md_begin): Likewise.
407 * config/tc-pdp11.c (md_begin): Likewise.
408 * config/tc-score.c (s3_build_reg_hsh, s3_begin): Likewise.
409 * config/tc-score7.c (s7_build_reg_hsh, s7_begin): Likewise.
411 2020-08-24 Alan Modra <amodra@gmail.com>
413 * config/tc-arm.c (move_or_literal_pool): Avoid false positive
414 "may be used uninitialised".
415 (opcode_lookup): Likewise.
417 2020-08-24 Alan Modra <amodra@gmail.com>
420 * symbols.c (local_symbol_convert): Clear out xtra.
422 2020-08-21 Cooper Qu <cooper.qu@linux.alibaba.com>
424 * config/tc-csky.c (CSKY_ISA_803R2): New.
425 (csky_archs): Add ck803r2 series.
426 (md_begin): Fix warning about -medsp.
427 (csky_get_freg_val): Support lowercase of fpu register name.
428 * testsuite/gas/csky/cskyv2_ck803r2.s: New file.
429 * testsuite/gas/csky/cskyv2_ck803r2.d: New file.
431 2020-08-23 Alan Modra <amodra@gmail.com>
434 * hash.h (htab_insert): Update prototype and comment.
435 (struct string_tuple): Make "value" a const void*.
436 (string_tuple_alloc): Likewise.
437 (str_hash_find, str_hash_find_n): Cast returned value.
438 (str_hash_insert): Add "replace" parameter, and return slot pointer.
439 Free alloc'd element when not inserted.
440 * hash.c (htab_insert): Likewise. Return slot when element exists,
441 otherwise return NULL.
442 * read.c (pop_insert): Insert into hash table without first searching.
443 * config/tc-avr.c (md_begin): Likewise.
444 * config/tc-msp430.c (md_begin): Likewise.
445 * config/tc-nds32.c (nds32_init_nds32_pseudo_opcodes): Likewise.
446 * config/tc-v850.c (md_begin): Likewise.
447 * macro.c (do_formals, define_macro, macro_expand_body): Likewise.
448 (delete_macro): Delete from hash table.
449 * config/tc-tic54x.c (subsym_create_or_replace): Correct logic.
451 * symbols.c (local_symbol_make, symbol_table_insert): Allow
452 replacement of hash table entries.
453 * config/obj-coff-seh.c (seh_hash_insert): Likewise.
454 * config/obj-coff.c (tag_insert): Likewise.
455 * config/tc-iq2000.c (iq2000_add_macro): Likewise.
456 * config/tc-m68k.c (md_begin): Likewise for aliases.
457 * config/tc-tic4x.c (tic4x_asg): Likewise.
458 * config/tc-tic6x.c (md_begin): Likewise.
460 * dw2gencfi.c (dwcfi_hash_find_or_make): Disallow replacement of
462 * ecoff.c (add_string, get_tag): Likewise.
463 * macro.c (expand_irp): Likewise.
464 * config/obj-elf.c (build_additional_section_info): Likewise.
465 * config/tc-aarch64.c (insert_reg_alias): Likewise.
466 (checked_hash_insert): Likewise.
467 * config/tc-alpha.c (get_alpha_reloc_tag, md_begin): Likewise.
468 * config/tc-arc.c (arc_insert_opcode, declare_register): Likewise.
469 (declare_addrtype, md_begin, arc_extcorereg): Likewise.
470 * config/tc-arm.c (insert_reg_alias): Likewise.
471 (arm_tc_equal_in_insn, md_begin): Likewise.
472 * config/tc-cr16.c (initialise_reg_hash_table, md_begin): Likewise.
473 * config/tc-cris.c (md_begin): Likewise.
474 * config/tc-crx.c (md_begin): Likewise.
475 * config/tc-csky.c (md_begin): Likewise.
476 * config/tc-d10v.c (md_begin): Likewise.
477 * config/tc-dlx.c (md_begin): Likewise.
478 * config/tc-ft32.c (md_begin): Likewise.
479 * config/tc-h8300.c (md_begin): Likewise.
480 * config/tc-hppa.c (md_begin): Likewise.
481 * config/tc-i386.c (md_begin): Likewise.
482 * config/tc-ia64.c (dot_rot, dot_entry, declare_register): Likewise.
483 (md_begin, dot_alias): Likewise.
484 * config/tc-m68hc11.c (md_begin): Likewise.
485 * config/tc-m68k.c (md_begin): Likewise.
486 * config/tc-mcore.c (md_begin): Likewise.
487 * config/tc-microblaze.c (md_begin): Likewise.
488 * config/tc-mips.c (md_begin): Likewise.
489 * config/tc-mmix.c (md_begin): Likewise.
490 * config/tc-mn10200.c (md_begin): Likewise.
491 * config/tc-mn10300.c (md_begin): Likewise.
492 * config/tc-moxie.c (md_begin): Likewise.
493 * config/tc-nds32.c (nds32_relax_hint, md_begin): Likewise.
494 * config/tc-nios2.c (md_begin): Likewise.
495 * config/tc-ns32k.c (md_begin): Likewise.
496 * config/tc-pdp11.c (md_begin): Likewise.
497 * config/tc-pj.c (fake_opcode, md_begin): Likewise.
498 * config/tc-ppc.c (ppc_setup_opcodes): Likewise.
499 * config/tc-pru.c (md_begin): Likewise.
500 * config/tc-riscv.c (init_ext_version_hash): Likewise.
501 (init_opcode_names_hash, hash_reg_name, init_opcode_hash): Likewise.
502 (riscv_init_csr_hash): Likewise.
503 * config/tc-s390.c (s390_setup_opcodes, md_begin): Likewise.
504 * config/tc-score.c (s3_insert_reg): Likewise.
505 (s3_build_score_ops_hsh, s3_build_dependency_insn_hsh): Likewise.
506 * config/tc-score7.c (s7_build_score_ops_hsh): Likewise.
507 (s7_build_dependency_insn_hsh, s7_insert_reg): Likewise.
508 * config/tc-sh.c (md_begin): Likewise.
509 * config/tc-sparc.c (md_begin): Likewise.
510 * config/tc-spu.c (md_begin): Likewise.
511 * config/tc-tic30.c (md_begin): Likewise.
512 * config/tc-tic4x.c (tic4x_inst_insert): Likewise.
513 * config/tc-tic54x.c (stag_add_field_symbols, md_begin): Likewise.
514 (tic54x_endstruct, tic54x_var, tic54x_macro_info): Likewise.
515 (subsym_substitute): Likewise.
516 * config/tc-tilegx.c (md_begin): Likewise.
517 * config/tc-tilepro.c (md_begin): Likewise.
518 * config/tc-vax.c (vip_begin): Likewise.
519 * config/tc-wasm32.c (md_begin): Likewise.
520 * config/tc-xgate.c (md_begin): Likewise.
521 * config/tc-z8k.c (md_begin): Likewise.
522 * testsuite/gas/ppc/dcbt.d,
523 * testsuite/gas/ppc/dcbt.s: New test.
524 * testsuite/gas/ppc/ppc.exp: Run it.
526 * ecoff.c (add_string): Report fatal error on duplicates.
527 * config/tc-alpha.c (md_begin): Likewise.
528 * config/tc-arc.c (arc_insert_opcode, declare_register): Likewise.
529 (declare_addrtype, md_begin, arc_extcorereg): Likewise.
530 * config/tc-cr16.c (initialise_reg_hash_table, md_begin): Likewise.
531 * config/tc-cris.c (md_begin): Likewise.
532 * config/tc-crx.c (md_begin): Likewise.
533 * config/tc-dlx.c (md_begin): Likewise.
534 * config/tc-hppa.c (md_begin): Likewise.
535 * config/tc-i386.c (md_begin): Likewise.
536 * config/tc-ia64.c (dot_rot, dot_entry, declare_register): Likewise.
537 (md_begin): Likewise.
538 * config/tc-m68k.c (md_begin): Likewise.
539 * config/tc-mips.c (md_begin): Likewise.
540 * config/tc-nios2.c (md_begin): Likewise.
541 * config/tc-ns32k.c (md_begin): Likewise.
542 * config/tc-ppc.c (ppc_setup_opcodes): Likewise.
543 * config/tc-pru.c (md_begin): Likewise.
544 * config/tc-riscv.c (init_ext_version_hash): Likewise.
545 (init_opcode_names_hash, hash_reg_name, init_opcode_hash): Likewise.
546 * config/tc-s390.c (s390_setup_opcodes, md_begin): Likewise.
547 * config/tc-sparc.c (md_begin): Likewise.
548 * config/tc-tic30.c (md_begin): Likewise.
549 * config/tc-tic4x.c (tic4x_inst_insert): Likewise.
550 * config/tc-tilegx.c (md_begin): Likewise.
551 * config/tc-tilepro.c (md_begin): Likewise.
552 * config/tc-vax.c (vip_begin): Likewise.
560 * config/tc-m68hc11.c,
562 * config/tc-microblaze.c,
567 * config/tc-score7.c,
569 * config/tc-tic54x.c,
570 * config/tc-tilegx.c,
571 * config/tc-tilepro.c,
572 * config/tc-xgate.c: Formatting.
574 2020-08-21 Alan Modra <amodra@gmail.com>
576 * symbols.c (struct local_symbol): Add "hash" entry. Reorder fields.
577 Delete union. Adjust code throughout file.
578 (struct symbol): Add "hash", "name" and "x" entries. Reorder fields.
580 (struct xsymbol): ..this. New struct. Adjust code throughout file
581 accessing these fields.
582 (struct symbol_entry): Delete.
583 (union symbol_entry): New.
584 (hash_symbol_entry): Adjust for symbol_entry_t change.
585 (symbol_entry_find): Likewise.
586 (eq_symbol_entry): Compare hash values too.
587 (symbol_entry_alloc): Delete.
588 (local_symbol_converted_p, local_symbol_mark_converted): Delete.
589 (local_symbol_get_real_symbol, local_symbol_set_real_symbol): Delete.
590 (local_hash): Delete.
591 (abs_symbol_x, dot_symbol_x): New static var.
592 (symbol_init): New function.
593 (symbol_create): Rewrite.
594 (LOCAL_SYMBOL_CHECK): Delete. Replace uses throughout with simple
595 test of flags.local_symbol.
596 (local_symbol_make): Adjust for struct local_symbol changes.
597 (local_symbol_convert): Rewrite. Adjust all callers.
598 (symbol_table_insert): Simplify.
599 (symbol_clone): Comment on local sym cloning. Handle split symbol
601 (get_real_sym): Delete. Remove all uses.
602 (symbol_find_exact_noref): Simplify.
603 (resolve_local_symbol): Don't resolve non-locals.
604 (S_SET_SEGMENT): Don't special case reg_section.
605 (S_SET_NAME): Set both name and bsym->name.
606 (symbol_mark_resolved, symbol_resolved_p): Simplify.
607 (symbol_symbolS): Update comment.
608 (symbol_begin): Don't create local_hash. Adjust abs_symbol setup.
609 (dot_symbol_init): Adjust dot_symbol setup.
610 (symbol_print_statistics): Delete local_hash stats.
612 2020-08-21 Alan Modra <amodra@gmail.com>
614 * symbols.c (struct symbol_flags): Rename sy_volatile to volatil,
615 and remove sy_ from other field names. Update throughout.
616 (struct symbol): Remove sy_ from field names. Delete unused
617 TARGET_SYMBOL_FIELDS. Update throughout file. Move after..
618 (struct local_symbol): ..here. Remove lsy_ from field names.
619 Delete unused TC_LOCAL_SYMFIELD_TYPE. Update throughout file.
620 (local_symbol_resolved_p, local_symbol_mark_resolved): Delete.
621 Expand uses throughout file.
622 (local_symbol_get_frag, local_symbol_set_frag): Likewise.
623 (symbol_new): Move symbol_table_frozen test to..
624 (symbol_append): ..here, and..
625 (symbol_insert): ..here.
626 (resolve_symbol_value, symbol_relc_make_expr): White space fixes.
627 (HANDLE_XADD_OPT1, HANDLE_XADD_OPT2): Likewise.
628 * config/obj-coff.h (RESOLVE_SYMBOL_REDEFINITION): Update.
630 2020-08-21 Alan Modra <amodra@gmail.com>
632 * symbols.h (symbol_new, symbol_create, local_symbol_make),
633 (symbol_temp_new): Arrange params as section, frag, offset.
634 * symbols.c: Adjust to suit.
637 * dwarf2dbg.c: Likewise.
640 * itbl-ops.c: Likewise.
643 * subsegs.c: Likewise.
644 * config/obj-coff.c: Likewise.
645 * config/obj-elf.c: Likewise.
646 * config/obj-macho.c: Likewise.
647 * config/tc-aarch64.c: Likewise.
648 * config/tc-alpha.c: Likewise.
649 * config/tc-arc.c: Likewise.
650 * config/tc-arm.c: Likewise.
651 * config/tc-avr.c: Likewise.
652 * config/tc-cr16.c: Likewise.
653 * config/tc-cris.c: Likewise.
654 * config/tc-csky.c: Likewise.
655 * config/tc-dlx.c: Likewise.
656 * config/tc-hppa.c: Likewise.
657 * config/tc-i386.c: Likewise.
658 * config/tc-ia64.c: Likewise.
659 * config/tc-m32r.c: Likewise.
660 * config/tc-m68k.c: Likewise.
661 * config/tc-mips.c: Likewise.
662 * config/tc-mmix.c: Likewise.
663 * config/tc-mn10200.c: Likewise.
664 * config/tc-mn10300.c: Likewise.
665 * config/tc-nds32.c: Likewise.
666 * config/tc-nios2.c: Likewise.
667 * config/tc-ppc.c: Likewise.
668 * config/tc-riscv.c: Likewise.
669 * config/tc-s390.c: Likewise.
670 * config/tc-sh.c: Likewise.
671 * config/tc-tic4x.c: Likewise.
672 * config/tc-tic54x.c: Likewise.
673 * config/tc-xtensa.c: Likewise.
675 2020-08-21 Cooper Qu <cooper.qu@linux.alibaba.com>
677 * config/tc-csky.c (csky_insn_info): Add member last_isize.
678 (md_assemble): Assign value to csky_insn.last_isize.
679 * testsuite/gas/csky/enhance_dsp.d: Test bloop's two operands form.
680 * testsuite/gas/csky/enhance_dsp.s: Likewise.
682 2020-08-20 Martin Liska <mliska@suse.cz>
684 * NEWS: Mention --reduce-memory-overheads and --hash-size arguments
686 * as.c: Remove the options from help.
687 * doc/as.texi: Remove options.
688 * doc/internals.texi: Remove hash from documentation.
689 * hash.c (struct hash_entry): Remove.
690 (struct hash_control): Likewise.
691 (set_gas_hash_table_size): Likewise.
692 (hash_new_sized): Likewise.
693 (hash_new): Likewise.
694 (hash_die): Likewise.
695 (hash_lookup): Likewise.
696 (hash_insert): Likewise.
697 (hash_jam): Likewise.
698 (hash_replace): Likewise.
699 (hash_find): Likewise.
700 (hash_find_n): Likewise.
701 (hash_delete): Likewise.
702 (hash_traverse): Likewise.
703 (hash_print_statistics): Likewise.
705 (STATBUFSIZE): Likewise.
709 (applicatee): Likewise.
710 (whattable): Likewise.
711 * hash.h (struct hash_control): Likewise.
712 (set_gas_hash_table_size): Likewise.
713 (hash_new): Likewise.
714 (hash_new_sized): Likewise.
715 (hash_die): Likewise.
716 (hash_insert): Likewise.
717 (hash_jam): Likewise.
718 (hash_replace): Likewise.
719 (hash_find): Likewise.
720 (hash_find_n): Likewise.
721 (hash_delete): Likewise.
722 (hash_traverse): Likewise.
723 (hash_print_statistics): Likewise.
725 2020-08-20 Martin Liska <mliska@suse.cz>
727 * config/obj-coff-seh.c (seh_hash_insert): Port to use new
729 (seh_hash_find): Likewise.
730 (seh_hash_find_or_make): Likewise.
731 * config/obj-coff.c (tag_init): Likewise.
732 (tag_insert): Likewise.
733 (tag_find): Likewise.
734 * config/obj-elf.c (struct group_list): Likewise.
735 (build_additional_section_info): Likewise.
736 (free_section_idx): Likewise.
737 (elf_adjust_symtab): Likewise.
738 (elf_frob_file_after_relocs): Likewise.
739 * config/tc-aarch64.c (INSN_SIZE): Likewise.
740 (parse_reg): Likewise.
741 (insert_reg_alias): Likewise.
742 (create_register_alias): Likewise.
744 (parse_shift): Likewise.
745 (parse_pldop): Likewise.
746 (parse_barrier): Likewise.
747 (parse_barrier_psb): Likewise.
748 (parse_bti_operand): Likewise.
749 (parse_sys_reg): Likewise.
750 (parse_sys_ins_reg): Likewise.
751 (lookup_mnemonic): Likewise.
752 (opcode_lookup): Likewise.
753 (parse_operands): Likewise.
754 (checked_hash_insert): Likewise.
755 (sysreg_hash_insert): Likewise.
756 (fill_instruction_hash_table): Likewise.
757 (md_begin): Likewise.
758 * config/tc-alpha.c (struct alpha_reloc_tag): Likewise.
759 (get_alpha_reloc_tag): Likewise.
760 (assemble_tokens_to_insn): Likewise.
761 (assemble_tokens): Likewise.
762 (md_begin): Likewise.
763 * config/tc-arc.c (arc_find_opcode): Likewise.
764 (arc_insert_opcode): Likewise.
765 (find_opcode_match): Likewise.
766 (declare_register): Likewise.
767 (declare_addrtype): Likewise.
768 (md_begin): Likewise.
769 (arc_parse_name): Likewise.
770 (tc_arc_regname_to_dw2regnum): Likewise.
771 (arc_extcorereg): Likewise.
772 * config/tc-arm.c (MVE_BAD_QREG): Likewise.
773 (arm_reg_parse_multi): Likewise.
774 (parse_reloc): Likewise.
775 (insert_reg_alias): Likewise.
776 (create_register_alias): Likewise.
778 (parse_shift): Likewise.
779 (parse_psr): Likewise.
780 (parse_cond): Likewise.
781 (parse_barrier): Likewise.
782 (do_vfp_nsyn_opcode): Likewise.
783 (opcode_lookup): Likewise.
784 (arm_tc_equal_in_insn): Likewise.
785 (md_begin): Likewise.
786 * config/tc-avr.c (md_begin): Likewise.
787 (avr_ldi_expression): Likewise.
788 (md_assemble): Likewise.
789 (avr_update_gccisr): Likewise.
790 (avr_emit_insn): Likewise.
791 * config/tc-cr16.c (get_register): Likewise.
792 (get_register_pair): Likewise.
793 (get_index_register): Likewise.
794 (get_index_register_pair): Likewise.
795 (get_pregister): Likewise.
796 (get_pregisterp): Likewise.
797 (initialise_reg_hash_table): Likewise.
798 (md_begin): Likewise.
799 (cr16_assemble): Likewise.
800 (md_assemble): Likewise.
801 * config/tc-cris.c (cris_insn_first_word_frag): Likewise.
802 (md_begin): Likewise.
803 (cris_process_instruction): Likewise.
804 * config/tc-crx.c (get_register): Likewise.
805 (get_copregister): Likewise.
806 (md_begin): Likewise.
807 (md_assemble): Likewise.
808 * config/tc-csky.c (md_begin): Likewise.
809 (parse_opcode): Likewise.
810 (get_operand_value): Likewise.
811 (v1_work_jbsr): Likewise.
812 (v2_work_rotlc): Likewise.
813 (v2_work_bgeni): Likewise.
814 (v2_work_not): Likewise.
815 * config/tc-d10v.c (sizeof): Likewise.
816 (md_begin): Likewise.
817 (do_assemble): Likewise.
818 (md_apply_fix): Likewise.
819 * config/tc-d30v.c (sizeof): Likewise.
820 (md_begin): Likewise.
821 (do_assemble): Likewise.
822 * config/tc-dlx.c (RELOC_DLX_VTENTRY): Likewise.
823 (md_begin): Likewise.
824 (machine_ip): Likewise.
825 * config/tc-ft32.c (md_begin): Likewise.
826 (md_assemble): Likewise.
827 * config/tc-h8300.c (md_begin): Likewise.
828 (md_assemble): Likewise.
829 * config/tc-hppa.c (pa_ip): Likewise.
830 (md_begin): Likewise.
831 * config/tc-i386.c (md_begin): Likewise.
832 (i386_print_statistics): Likewise.
833 (parse_insn): Likewise.
834 (process_operands): Likewise.
835 (i386_index_check): Likewise.
836 (parse_real_register): Likewise.
837 * config/tc-ia64.c (dot_rot): Likewise.
838 (dot_entry): Likewise.
839 (declare_register): Likewise.
840 (md_begin): Likewise.
841 (ia64_parse_name): Likewise.
842 (md_assemble): Likewise.
843 (dot_alias): Likewise.
844 (do_alias): Likewise.
845 (ia64_adjust_symtab): Likewise.
846 (do_secalias): Likewise.
847 (ia64_frob_file): Likewise.
848 * config/tc-m68hc11.c (m68hc11_print_statistics): Likewise.
849 (md_begin): Likewise.
850 (print_insn_format): Likewise.
851 (md_assemble): Likewise.
852 * config/tc-m68k.c (tc_gen_reloc): Likewise.
854 (md_begin): Likewise.
855 * config/tc-mcore.c (md_begin): Likewise.
856 (md_assemble): Likewise.
857 * config/tc-microblaze.c (md_begin): Likewise.
858 (md_assemble): Likewise.
859 (md_apply_fix): Likewise.
860 * config/tc-mips.c (nopic_need_relax): Likewise.
861 (md_begin): Likewise.
862 (macro_build): Likewise.
863 (mips16_macro_build): Likewise.
864 (mips_lookup_insn): Likewise.
866 (mips16_ip): Likewise.
867 * config/tc-mmix.c (sizeof): Likewise.
868 (mmix_md_begin): Likewise.
869 (md_assemble): Likewise.
870 * config/tc-mn10200.c (md_begin): Likewise.
871 (md_assemble): Likewise.
872 * config/tc-mn10300.c (HAVE_AM30): Likewise.
873 (md_begin): Likewise.
874 (md_assemble): Likewise.
875 * config/tc-moxie.c (md_begin): Likewise.
876 (md_assemble): Likewise.
877 * config/tc-msp430.c (md_begin): Likewise.
878 (msp430_operands): Likewise.
879 (md_assemble): Likewise.
880 * config/tc-nds32.c (PV_DONT_CARE): Likewise.
881 (builtin_isreg): Likewise.
882 (builtin_regnum): Likewise.
883 (nds32_init_nds32_pseudo_opcodes): Likewise.
884 (nds32_lookup_pseudo_opcode): Likewise.
885 (nds32_relax_hint): Likewise.
886 (md_begin): Likewise.
887 (nds32_find_reloc_table): Likewise.
888 (nds32_elf_append_relax_relocs_traverse): Likewise.
889 (nds32_relax_branch_instructions): Likewise.
890 (md_convert_frag): Likewise.
891 (nds32_elf_analysis_relax_hint): Likewise.
892 (tc_nds32_regname_to_dw2regnum): Likewise.
893 * config/tc-nios2.c (nios2_opcode_lookup): Likewise.
894 (nios2_reg_lookup): Likewise.
895 (nios2_ps_lookup): Likewise.
896 (md_begin): Likewise.
897 * config/tc-ns32k.c (struct hash_control): Likewise.
899 (md_begin): Likewise.
900 * config/tc-pdp11.c (md_begin): Likewise.
901 (md_assemble): Likewise.
902 * config/tc-pj.c (fake_opcode): Likewise.
904 (md_begin): Likewise.
905 (md_assemble): Likewise.
906 * config/tc-ppc.c (ppc_setup_opcodes): Likewise.
907 (md_assemble): Likewise.
908 * config/tc-pru.c (pru_opcode_lookup): Likewise.
909 (pru_reg_lookup): Likewise.
910 (md_begin): Likewise.
912 * config/tc-riscv.c (init_ext_version_hash): Likewise.
913 (riscv_get_default_ext_version): Likewise.
914 (riscv_set_arch): Likewise.
915 (init_opcode_names_hash): Likewise.
916 (opcode_name_lookup): Likewise.
917 (enum reg_class): Likewise.
918 (hash_reg_name): Likewise.
919 (riscv_init_csr_hash): Likewise.
920 (reg_csr_lookup_internal): Likewise.
921 (reg_lookup_internal): Likewise.
922 (init_opcode_hash): Likewise.
923 (md_begin): Likewise.
924 (DECLARE_CSR): Likewise.
925 (macro_build): Likewise.
926 (riscv_ip): Likewise.
927 * config/tc-s390.c (register_name): Likewise.
928 (s390_setup_opcodes): Likewise.
929 (md_begin): Likewise.
930 (md_assemble): Likewise.
931 (s390_insn): Likewise.
932 * config/tc-score.c (struct s3_reg_map): Likewise.
933 (s3_score_reg_parse): Likewise.
934 (s3_dependency_type_from_insn): Likewise.
935 (s3_parse_16_32_inst): Likewise.
936 (s3_parse_48_inst): Likewise.
937 (s3_insert_reg): Likewise.
938 (s3_build_reg_hsh): Likewise.
939 (s3_build_score_ops_hsh): Likewise.
940 (s3_build_dependency_insn_hsh): Likewise.
941 (s3_begin): Likewise.
942 * config/tc-score7.c (struct s7_reg_map): Likewise.
943 (s7_score_reg_parse): Likewise.
944 (s7_dependency_type_from_insn): Likewise.
945 (s7_parse_16_32_inst): Likewise.
946 (s7_build_score_ops_hsh): Likewise.
947 (s7_build_dependency_insn_hsh): Likewise.
948 (s7_insert_reg): Likewise.
949 (s7_build_reg_hsh): Likewise.
950 (s7_begin): Likewise.
951 * config/tc-sh.c (EMPTY): Likewise.
952 (md_begin): Likewise.
953 (find_cooked_opcode): Likewise.
954 * config/tc-sparc.c (md_begin): Likewise.
955 (sparc_ip): Likewise.
956 * config/tc-spu.c (md_begin): Likewise.
957 (md_assemble): Likewise.
958 * config/tc-tic30.c (md_begin): Likewise.
959 (tic30_operand): Likewise.
960 (tic30_parallel_insn): Likewise.
961 (md_assemble): Likewise.
962 * config/tc-tic4x.c (TIC4X_ALT_SYNTAX): Likewise.
963 (tic4x_asg): Likewise.
964 (tic4x_inst_insert): Likewise.
965 (tic4x_inst_add): Likewise.
966 (md_begin): Likewise.
967 (tic4x_operand_parse): Likewise.
968 (md_assemble): Likewise.
969 * config/tc-tic54x.c (MAX_SUBSYM_HASH): Likewise.
970 (stag_add_field_symbols): Likewise.
971 (tic54x_endstruct): Likewise.
972 (tic54x_tag): Likewise.
973 (tic54x_remove_local_label): Likewise.
974 (tic54x_clear_local_labels): Likewise.
975 (tic54x_var): Likewise.
976 (tic54x_macro_start): Likewise.
977 (tic54x_macro_info): Likewise.
978 (tic54x_macro_end): Likewise.
979 (subsym_isreg): Likewise.
980 (subsym_structsz): Likewise.
981 (md_begin): Likewise.
982 (is_mmreg): Likewise.
984 (encode_condition): Likewise.
985 (encode_cc3): Likewise.
986 (encode_cc2): Likewise.
987 (encode_operand): Likewise.
988 (tic54x_parse_insn): Likewise.
989 (tic54x_parse_parallel_insn_firstline): Likewise.
990 (subsym_create_or_replace): Likewise.
991 (subsym_lookup): Likewise.
992 (subsym_substitute): Likewise.
993 (tic54x_undefined_symbol): Likewise.
994 * config/tc-tic6x.c (md_begin): Likewise.
995 (md_assemble): Likewise.
996 * config/tc-tilegx.c (O_hw2_last_plt): Likewise.
997 (INSERT_SPECIAL_OP): Likewise.
998 (md_begin): Likewise.
999 (tilegx_parse_name): Likewise.
1000 (parse_reg_expression): Likewise.
1001 (md_assemble): Likewise.
1002 * config/tc-tilepro.c (O_tls_ie_load): Likewise.
1003 (INSERT_SPECIAL_OP): Likewise.
1004 (tilepro_parse_name): Likewise.
1005 (parse_reg_expression): Likewise.
1006 (md_assemble): Likewise.
1007 * config/tc-v850.c (md_begin): Likewise.
1008 (md_assemble): Likewise.
1009 * config/tc-vax.c (md_ri_to_chars): Likewise.
1010 (vip_begin): Likewise.
1013 (md_begin): Likewise.
1014 * config/tc-wasm32.c (md_begin): Likewise.
1015 (md_assemble): Likewise.
1016 * config/tc-xgate.c (xgate_parse_operand): Likewise.
1017 (md_begin): Likewise.
1018 (md_assemble): Likewise.
1019 * config/tc-z8k.c (md_begin): Likewise.
1020 (md_assemble): Likewise.
1022 2020-08-20 Martin Liska <mliska@suse.cz>
1024 * dw2gencfi.c (dwcfi_hash_insert): Use htab_t and str_hash_*
1026 (dwcfi_hash_find): Likewise.
1027 (dwcfi_hash_find_or_make): Likewise.
1029 2020-08-20 Martin Liska <mliska@suse.cz>
1031 * ecoff.c (INIT_VARRAY): Use htab_t.
1032 (add_string): Likewise.
1033 (ecoff_read_begin_hook): Use new str_htab_create.
1034 (get_tag): Use htab_t.
1035 (add_file): Likewise.
1037 2020-08-20 Martin Liska <mliska@suse.cz>
1039 * hash.h (struct string_tuple): New.
1040 (hash_string_tuple): Likewise.
1041 (eq_string_tuple): Likewise.
1042 (string_tuple_alloc): Likewise.
1043 (str_hash_find): Likewise.
1044 (str_hash_find_n): Likewise.
1045 (str_hash_delete): Likewise.
1046 (str_hash_insert): Likewise.
1047 (str_htab_create): Likewise.
1049 2020-08-20 Martin Liska <mliska@suse.cz>
1051 * symbols.c (struct symbol_entry): New.
1052 (hash_symbol_entry): Likewise.
1053 (eq_symbol_entry): Likewise.
1054 (symbol_entry_alloc): Likewise.
1055 (symbol_entry_find): Likewise.
1056 (local_symbol_make): Use htab hash table.
1057 (local_symbol_convert): Likewise.
1058 (symbol_table_insert): Likewise.
1059 (symbol_find_exact_noref): Likewise.
1060 (resolve_local_symbol): Likewise.
1061 (resolve_local_symbol_values): Likewise.
1062 (symbol_begin): Likewise.
1063 (symbol_print_statistics): Likewise.
1065 2020-08-20 Martin Liska <mliska@suse.cz>
1067 * read.c (struct po_entry): New.
1068 (hash_po_entry): Likewise.
1069 (eq_po_entry): Likewise.
1070 (po_entry_alloc): Likewise.
1071 (po_entry_find): Likewise.
1072 (pop_insert): Likewise.
1073 (pobegin): Use htab hash table.
1074 (read_a_source_file): Likewise.
1075 (s_macro): Likewise.
1076 (read_print_statistics): Likewise.
1077 * config/tc-m68k.c (m68k_conditional_pseudoop): Add const qualifier.
1078 * config/tc-m68k.h (m68k_conditional_pseudoop): Likewise.
1080 2020-08-20 Martin Liska <mliska@suse.cz>
1082 * config/tc-iq2000.c (iq2000_add_macro): Use htab hash table.
1083 * macro.c (struct hash_control): Use htab.
1084 (macro_init): Likewise.
1085 (do_formals): Likewise.
1086 (free_macro): Likewise.
1087 (define_macro): Likewise.
1088 (sub_actual): Likewise.
1089 (macro_expand_body): Likewise.
1090 (macro_expand): Likewise.
1091 (check_macro): Likewise.
1092 (delete_macro): Likewise.
1093 (expand_irp): Likewise.
1094 * macro.h (struct macro_hash_entry): New struct.
1095 (hash_macro_entry): New.
1096 (eq_macro_entry): Likewise.
1097 (macro_entry_alloc): Likewise.
1098 (macro_entry_find): Likewise.
1099 (struct formal_hash_entry): Likewise.
1100 (hash_formal_entry): Likewise.
1101 (eq_formal_entry): Likewise.
1102 (formal_entry_alloc): Likewise.
1103 (formal_entry_find): Likewise.
1105 2020-08-20 Martin Liska <mliska@suse.cz>
1107 * as.h: Include hashtab.h.
1108 * hash.c (htab_insert): New.
1109 (htab_print_statistics): Likewise.
1110 * hash.h (htab_insert): Likewise.
1111 (htab_print_statistics): Likewise.
1113 2020-08-19 Alan Modra <amodra@gmail.com>
1115 * testsuite/gas/ppc/int128.s: Correct vcmpuq.
1116 * testsuite/gas/ppc/int128.d: Update.
1117 * testsuite/gas/ppc/xvtlsbb.d: Update.
1119 2020-08-18 Peter Bergner <bergner@linux.ibm.com>
1121 * testsuite/gas/ppc/vsx4.s: Update test to use new mnemonic.
1122 * testsuite/gas/ppc/vsx4.d: Likewise.
1124 2020-08-17 Alex Coplan <alex.coplan@arm.com>
1126 * config/obj-elf.c (obj_elf_change_section): When repurposing an
1127 existing symbol, ensure that we set sy_value as per other (fresh)
1129 * testsuite/gas/elf/elf.exp: Add new test.
1130 * testsuite/gas/elf/section-symbol-redef.d: New test.
1131 * testsuite/gas/elf/section-symbol-redef.s: Input for test.
1133 2020-08-13 Nick Clifton <nickc@redhat.com>
1136 * config/obj-som.c (obj_som_init_stab_section): Do nothing if the
1137 $GDB_DEBUG$ section has already been created.
1139 2020-08-12 Joe Ramsay <joe.ramsay@.arm.com>
1141 * config/tc-arm.c (do_neon_cvt_1): Parse vcvtne as vcvt-ne for
1142 NS_FD shape when MVE is present
1143 * testsuite/gas/arm/mve-vcvtne-it-bad.d: New test.
1144 * testsuite/gas/arm/mve-vcvtne-it-bad.l: New test.
1145 * testsuite/gas/arm/mve-vcvtne-it-bad.s: New test.
1146 * testsuite/gas/arm/mve-vcvtne-it.d: New test.
1147 * testsuite/gas/arm/mve-vcvtne-it.s: New test.
1149 2020-08-12 Alex Coplan <alex.coplan@arm.com>
1151 * testsuite/gas/aarch64/mpam-bad.d: New test.
1152 * testsuite/gas/aarch64/mpam-bad.l: Error output.
1153 * testsuite/gas/aarch64/mpam-bad.s: Input.
1154 * testsuite/gas/aarch64/mpam.d: New test.
1155 * testsuite/gas/aarch64/mpam.s: Input.
1157 2020-08-12 Nick Clifton <nickc@redhat.com>
1160 * doc/c-riscv.texi (RISC-V-Options): Fix typo in the description
1161 of the -mno-csr-check option.
1163 2020-08-12 Nick Clifton <nickc@redhat.com>
1165 * po/ru.po: Updated Russian translation.
1167 2020-08-10 Alex Coplan <alex.coplan@arm.com>
1169 * config/tc-aarch64.c (parse_sys_reg): Don't assert when parsing
1170 a long system register.
1171 (parse_sys_ins_reg): Likewise.
1172 (sysreg_hash_insert): New.
1173 (md_begin): Use sysreg_hash_insert() to ensure all system
1174 registers are no longer than the maximum length at startup.
1175 * testsuite/gas/aarch64/invalid-sysreg-assert.d: New test.
1176 * testsuite/gas/aarch64/invalid-sysreg-assert.l: Error output.
1177 * testsuite/gas/aarch64/invalid-sysreg-assert.s: Input.
1179 2020-08-10 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1181 * config/tc-aarch64.c (parse_sys_reg): Call to
1182 aarch64_sys_ins_reg_supported_p instead of
1183 aarch64_sys_reg_supported_p.
1184 (parse_sys_ins_reg): Add aarch64_sys_reg_deprecated_p check.
1185 * testsuite/gas/aarch64/illegal-sysreg-5.d: New test.
1186 * testsuite/gas/aarch64/illegal-sysreg-5.l: New test.
1187 * testsuite/gas/aarch64/sysreg-5.s: New test.
1189 2020-08-10 Alan Modra <amodra@gmail.com>
1191 * testsuite/gas/ppc/power8.d,
1192 * testsuite/gas/ppc/power8.s: Add miso.
1193 * testsuite/gas/ppc/power9.d,
1194 * testsuite/gas/ppc/power8.s: Add exser, msgsndu, msgclru.
1196 2020-08-10 Alan Modra <amodra@gmail.com>
1198 * testsuite/gas/ppc/power8.d: Update.
1199 * testsuite/gas/ppc/vsx2.d: Update.
1201 2020-08-10 Alan Modra <amodra@gmail.com>
1203 * config/tc-ppc.c (md_assemble): Error for lmw, stmw, lswi, lswx,
1204 stswi, or stswx in little-endian mode.
1205 * testsuite/gas/ppc/476.d,
1206 * testsuite/gas/ppc/476.s: Delete lmw, stmw, lswi, lswx, stswi, stswx.
1207 * testsuite/gas/ppc/a2.d,
1208 * testsuite/gas/ppc/a2.s: Move lmw, stmw, lswi, lswx, stswi, stswx..
1209 * testsuite/gas/ppc/be.d,
1210 * testsuite/gas/ppc/be.s: ..to here, new big-endian only test.
1211 * testsuite/gas/ppc/le_error.d,
1212 * testsuite/gas/ppc/le_error.l: New little-endian test.
1213 * testsuite/gas/ppc/ppc.exp: Run new tests.
1215 2020-08-07 H.J. Lu <hongjiu.lu@intel.com>
1217 * read.c (read_a_source_file): Ignore rest of line on overflow
1220 2020-08-06 Alex Coplan <alex.coplan@arm.com>
1222 * read.c (read_a_source_file): Use long for local labels, detect
1223 overflow and raise an error for overly-long labels.
1224 * testsuite/gas/all/gas.exp: Add local-label-overflow test.
1225 * testsuite/gas/all/local-label-overflow.d: New test.
1226 * testsuite/gas/all/local-label-overflow.l: Error output.
1227 * testsuite/gas/all/local-label-overflow.s: Input.
1229 2020-08-04 Christian Groessler <chris@groessler.org>
1231 * gas/testsuite/gas/z8k/inout.d: Adapt to correct encoding of
1232 "sout/soutb #imm,reg"
1234 2020-08-04 H.J. Lu <hongjiu.lu@intel.com>
1236 * NEWS: Mention {disp16} pseudo prefix.
1238 2020-08-04 H.J. Lu <hongjiu.lu@intel.com>
1240 * testsuite/gas/i386/x86-64-pseudos.d: Revert an accidental
1243 2020-08-04 Mark Wielaard <mark@klomp.org>
1245 * dwarf2dbg.c (out_debug_abbrev): When DWARF2_VERSION >= 4, use
1246 DW_FORM_udata for DW_AT_high_pc.
1247 (out_debug_info): Use emit_leb128_expr for DW_AT_high_pc, when
1248 DWARF2_VERSION >= 4.
1249 * read.c (emit_leb128_exp): No longer static.
1250 * read.h (emit_leb128_exp): Define.
1252 2020-08-02 Mark Wielaard <mark@klomp.org>
1254 * gas/dwarf2dbg.c (out_dir_and_file_list): For DWARF5 emit at
1255 least one directory if there is at least one file. Use dirs[1]
1256 if dirs[0] is not set, or if there is no dirs[1] the current
1257 working directory. Use files[1] filename, when files[0] filename
1260 2020-08-02 Mark Wielaard <mark@klomp.org>
1262 * dwarf2dbg.c (out_debug_info): Emit unit type and abbrev offset
1264 * gas/testsuite/gas/elf/dwarf-4-cu.d: New file.
1265 * gas/testsuite/gas/elf/dwarf-4-cu.s: Likewise.
1266 * gas/testsuite/gas/elf/dwarf-5-cu.d: Likewise.
1267 * gas/testsuite/gas/elf/dwarf-5-cu.s: Likewise.
1268 * testsuite/gas/elf/elf.exp: Run dwarf-4-cu and dwarf-5-cu.
1270 2020-08-02 Mark Wielaard <mark@klomp.org>
1272 * doc/as.texi (--gdwarf-[345]): Fix typo.
1274 2020-08-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1276 * config/tc-msp430.c (OPTION_MOVE_DATA): Remove.
1277 (md_parse_option): Remove case for OPTION_MOVE_DATA.
1278 (md_longopts): Remove "md" entry.
1279 (md_show_usage): Likewise.
1281 2020-07-30 H.J. Lu <hongjiu.lu@intel.com>
1284 * config/tc-i386.c (_i386_insn::disp_encoding): Add
1285 disp_encoding_16bit.
1286 (parse_insn): Check Prefix_XXX for pseudo prefixes. Handle
1288 (build_modrm_byte): Handle {disp16}.
1289 (i386_index_check): Check invalid {disp16} and {disp32} pseudo
1291 * doc/c-i386.texi: Update {disp32} documentation and document
1293 * testsuite/gas/i386/i386.exp: Run x86-64-inval-pseudo.
1294 * testsuite/gas/i386/inval-pseudo.s: Add {disp32}/{disp16}
1296 * testsuite/gas/i386/pseudos.s: Add {disp8}/{disp32} vmovaps
1297 tests with 128-byte displacement. Add {disp16} tests.
1298 * testsuite/gas/i386/x86-64-pseudos.s: Add {disp8}/{disp32}
1299 vmovaps test. Add (%r13)/(%r13d) tests.
1300 * testsuite/gas/i386/x86-64-inval-pseudo.l: New file.
1301 * testsuite/gas/i386/x86-64-inval-pseudo.s: Likewise.
1302 * testsuite/gas/i386/inval-pseudo.l: Updated.
1303 * testsuite/gas/i386/pseudos.d: Likewise.
1304 * testsuite/gas/i386/x86-64-pseudos.d: Likewise.
1306 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1308 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1309 * Makefile.in, doc/Makefile.in: Regenerate.
1310 * configure: Regenerate.
1312 2020-07-30 H.J. Lu <hongjiu.lu@intel.com>
1314 * testsuite/gas/elf/dwarf2-3.d:Pass --gdwarf-3 to assembler.
1315 * testsuite/gas/elf/dwarf2-5.d: Likewise.
1316 * testsuite/gas/i386/dw2-compress-3a.d: Likewise.
1317 * testsuite/gas/i386/dw2-compress-3b.d: Likewise.
1318 * testsuite/gas/i386/dw2-compressed-3a.d: Likewise.
1319 * testsuite/gas/i386/dw2-compressed-3b.d: Likewise.
1321 2020-07-30 Nick Clifton <nickc@redhat.com>
1323 * as.c (dwarf_level): Initialise to 3 in case this is not set on
1326 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
1328 * testsuite/gas/mips/global-local-symtab-sort-o32.d: New test.
1329 * testsuite/gas/mips/global-local-symtab-sort-o32t.d: New test.
1330 * testsuite/gas/mips/global-local-symtab-sort-n32.d: New test.
1331 * testsuite/gas/mips/global-local-symtab-sort-n32t.d: New test.
1332 * testsuite/gas/mips/global-local-symtab-sort-n64.d: New test.
1333 * testsuite/gas/mips/global-local-symtab-sort-n64t.d: New test.
1334 * testsuite/gas/mips/mips.exp: Run the new tests.
1336 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
1338 * testsuite/gas/mips/global-local-symtab-o32.d: New test.
1339 * testsuite/gas/mips/global-local-symtab-o32t.d: New test.
1340 * testsuite/gas/mips/global-local-symtab-n32.d: New test.
1341 * testsuite/gas/mips/global-local-symtab-n32t.d: New test.
1342 * testsuite/gas/mips/global-local-symtab-n64.d: New test.
1343 * testsuite/gas/mips/global-local-symtab.s: New test source.
1344 * testsuite/gas/mips/mips.exp: Run the new tests.
1346 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1349 * config/tc-i386.c (build_modrm_byte): Use disp32/disp16 on
1350 (%bp)/(%ebp)/(%rbp) for {disp32}.
1351 * doc/c-i386.texi: Update {disp32} documentation.
1352 * testsuite/gas/i386/pseudos.s: Add (%bp)/(%ebp) tests.
1353 * testsuite/gas/i386/x86-64-pseudos.s: Add (%ebp)/(%rbp) tests.
1354 * testsuite/gas/i386/pseudos.d: Updated.
1355 * testsuite/gas/i386/x86-64-pseudos.d: Likewise.
1357 2020-07-27 H.J. Lu <hongjiu.lu@intel.com>
1359 * doc/as.texi: Replace preceeded with preceded.
1361 2020-07-22 Maciej W. Rozycki <macro@linux-mips.org>
1363 * testsuite/gas/mips/jal-svr4pic-irix.d: New file.
1364 * testsuite/gas/mips/mips1@jal-svr4pic-irix.d: New file.
1365 * testsuite/gas/mips/mipsr6@jal-svr4pic-irix.d: New file.
1366 * testsuite/gas/mips/micromips@jal-svr4pic-irix.d: New file.
1367 * testsuite/gas/mips/r3000@jal-svr4pic-irix.d: New file.
1368 * testsuite/gas/mips/jal-svr4pic-local-irix.d: New file.
1369 * testsuite/gas/mips/mips1@jal-svr4pic-local-irix.d: New file.
1370 * testsuite/gas/mips/micromips@jal-svr4pic-local-irix.d: New
1372 * testsuite/gas/mips/r3000@jal-svr4pic-local-irix.d: New file.
1373 * testsuite/gas/mips/jal-svr4pic-noreorder-irix.d: New file.
1374 * testsuite/gas/mips/mips1@jal-svr4pic-noreorder-irix.d: New
1376 * testsuite/gas/mips/mipsr6@jal-svr4pic-noreorder-irix.d: New
1378 * testsuite/gas/mips/micromips@jal-svr4pic-noreorder-irix.d: New
1380 * testsuite/gas/mips/r3000@jal-svr4pic-noreorder-irix.d: New
1382 * testsuite/gas/mips/jal-xgot-irix.d: New file.
1383 * testsuite/gas/mips/jalr2-irix.d: New file.
1384 * testsuite/gas/mips/micromips-branch-relax-insn32-pic-irix.d:
1386 * testsuite/gas/mips/micromips-branch-relax-pic-irix.d: New
1388 * testsuite/gas/mips/mips-abi32-pic2-irix.d: New file.
1389 * testsuite/gas/mips/jal-svr4pic-local.d: Don't exclude
1390 `*-*-irix*' targets. Add source file designator.
1391 * testsuite/gas/mips/mips1@jal-svr4pic-local.d: Don't exclude
1392 `*-*-irix*' targets.
1393 * testsuite/gas/mips/r3000@jal-svr4pic-local.d: Likewise.
1394 * testsuite/gas/mips/micromips@jal-svr4pic-local.d: Likewise.
1395 * testsuite/gas/mips/jalr2.d: Add name designator.
1396 * testsuite/gas/mips/mips.exp: Use respective IRIX variants for
1397 tests involving the JALR relocation throughout.
1399 2020-07-22 Maciej W. Rozycki <macro@linux-mips.org>
1401 * testsuite/gas/mips/mips.exp: Use a helper variable for
1402 IRIX/non-IRIX test selection.
1404 2020-07-21 Jan Beulich <jbeulich@suse.com>
1406 * testsuite/gas/i386/evex-no-scale-64.d,
1407 testsuite/gas/i386/addr32.d,
1408 testsuite/gas/i386/x86-64-addr32-intel.d,
1409 testsuite/gas/i386/x86-64-addr32.d: Adjust expectations.
1411 2020-07-21 Cooper Qu <cooper.qu@linux.alibaba.com>
1413 * config/tc-csky.c (md_begin): Fix tests of arch and mach flags.
1415 2020-07-21 Jan Beulich <jbeulich@suse.com>
1417 * testsuite/gas/i386/evex-no-scale-32.d,
1418 testsuite/gas/i386/evex-no-scale-64.d: Add #source and #pass.
1419 * testsuite/gas/i386/evex-no-scale-32.s,
1420 testsuite/gas/i386/evex-no-scale-64.s: Rename / fold into ...
1421 * testsuite/gas/i386/evex-no-scale.s: ... this. Use .struct
1422 instead of .section.
1423 * testsuite/gas/i386/i386.exp: Move above tests out of ELF-
1426 2020-07-21 Maciej W. Rozycki <macro@linux-mips.org>
1428 * config/tc-mips.c (prev_reloc_op_frag): Remove variable.
1429 (my_getSmallExpression): Adjust accordingly.
1431 2020-07-20 Jan Beulich <jbeulich@suse.com>
1434 * config/tc-i386.c (i386_comment_chars): Drop TE_I386AIX from
1435 conditional around it.
1436 (md_begin): Insert backslash into operand_chars[] when slash is
1437 a comment character.
1438 * config/tc-i386-intel.c (i386_operator): Recognize \/, \%, and
1439 \* as operators when / may be a comment character.
1440 * testsuite/gas/i386/svr4.s, testsuite/gas/i386/svr4.d: New.
1441 * testsuite/gas/i386/i386.exp: Run new test.
1443 2020-07-20 Jan Beulich <jbeulich@suse.com>
1446 * app.c (last_char): Drop TC_ARM conditional around it.
1447 (struct app_save): Drop TC_ARM conditional around last_char.
1448 (app_push, app_pop): Drop TC_ARM conditional from last_char
1450 (do_scrub_chars): Likewise. Drop TC_ARM conditional from
1451 backslash-precedes-comment-character check.
1453 2020-07-20 Jan Beulich <jbeulich@suse.com>
1455 * config/tc-i386.c (frag_opcode_byte): New.
1456 (output_branch): Emit error when in absolute section.
1457 (output_jump, output_insn): Use frag_opcode_byte. Handle being
1458 in absolute section.
1459 (output_interseg_jump, output_disp, output_imm): Handle being in
1461 * testsuite/gas/i386/sizing.s,
1462 testsuite/gas/i386/sizing32.d,
1463 testsuite/gas/i386/sizing64.d: New.
1464 * testsuite/gas/i386/i386.exp: Run new tests.
1466 2020-07-20 Jan Beulich <jbeulich@suse.com>
1468 * testsuite/gas/i386/i386.exp: Include *-*-vxworks alongside
1469 is_elf_format as applicable; merely exclude iamcu tests.
1471 2020-07-19 H.J. Lu <hongjiu.lu@intel.com>
1474 * config/tc-i386.c (i386_validate_fix): Change PLT32 reloc
1475 against section to PC32 reloc.
1476 * testsuite/gas/i386/relax-5.d: Updated.
1477 * testsuite/gas/i386/x86-64-relax-4.d: Likewise.
1479 2020-07-15 H.J. Lu <hongjiu.lu@intel.com>
1482 * testsuite/gas/i386/evex-no-scale-64.d: Updated.
1483 * testsuite/gas/i386/addr32.d: Likewise.
1484 * testsuite/gas/i386/x86-64-addr32-intel.d: Likewise.
1485 * testsuite/gas/i386/x86-64-addr32.d: Likewise.
1487 2020-07-15 Nick Clifton <nickc@redhat.com>
1489 * write.c (create_note_reloc): Add desc2_size parameter. Zero out
1490 the addend field of REL relocations. Store the full addend into
1491 the note for REL relocations.
1493 2020-07-15 Jan Beulich <jbeulich@suse.com>
1495 * testsuite/gas/i386/x86-64-stack.s: Adjust 32-bit push
1497 * testsuite/gas/i386/x86-64-stack-intel.d,
1498 testsuite/gas/i386/x86-64-stack-suffix.d,
1499 testsuite/gas/i386/x86-64-stack.d: Adjust expectations.
1501 2020-07-15 Jan Beulich <jbeulich@suse.com>
1503 * testsuite/gas/i386/disassem.d,
1504 testsuite/gas/i386/ilp32/x86-64-branch.d,
1505 testsuite/gas/i386/intel.d, testsuite/gas/i386/jump16.d,
1506 testsuite/gas/i386/lfence-load.d, testsuite/gas/i386/noreg16.d,
1507 testsuite/gas/i386/noreg32.d,
1508 testsuite/gas/i386/noreg64-rex64.d,
1509 testsuite/gas/i386/noreg64.d, testsuite/gas/i386/notrack.d,
1510 testsuite/gas/i386/opcode.d,
1511 testsuite/gas/i386/solaris/x86-64-branch-2.d,
1512 testsuite/gas/i386/solaris/x86-64-jump.d,
1513 testsuite/gas/i386/solaris/x86-64-mpx-branch-1.d,
1514 testsuite/gas/i386/solaris/x86-64-nop-3.d,
1515 testsuite/gas/i386/solaris/x86-64-nop-4.d,
1516 testsuite/gas/i386/solaris/x86-64-nop-5.d,
1517 testsuite/gas/i386/solaris/x86-64-relax-2.d,
1518 testsuite/gas/i386/solaris/x86-64-relax-3.d,
1519 testsuite/gas/i386/x86-64-align-branch-1a.d,
1520 testsuite/gas/i386/x86-64-align-branch-1b.d,
1521 testsuite/gas/i386/x86-64-align-branch-1c.d,
1522 testsuite/gas/i386/x86-64-align-branch-1d.d,
1523 testsuite/gas/i386/x86-64-align-branch-1e.d,
1524 testsuite/gas/i386/x86-64-align-branch-1f.d,
1525 testsuite/gas/i386/x86-64-align-branch-1g.d,
1526 testsuite/gas/i386/x86-64-align-branch-1h.d,
1527 testsuite/gas/i386/x86-64-align-branch-1i.d,
1528 testsuite/gas/i386/x86-64-align-branch-2a.d,
1529 testsuite/gas/i386/x86-64-align-branch-2b.d,
1530 testsuite/gas/i386/x86-64-align-branch-2c.d,
1531 testsuite/gas/i386/x86-64-align-branch-3.d,
1532 testsuite/gas/i386/x86-64-align-branch-4a.d,
1533 testsuite/gas/i386/x86-64-align-branch-4b.d,
1534 testsuite/gas/i386/x86-64-align-branch-5.d,
1535 testsuite/gas/i386/x86-64-align-branch-6.d,
1536 testsuite/gas/i386/x86-64-branch-2.d,
1537 testsuite/gas/i386/x86-64-branch-3.d,
1538 testsuite/gas/i386/x86-64-branch.d,
1539 testsuite/gas/i386/x86-64-disassem.d,
1540 testsuite/gas/i386/x86-64-disp32.d,
1541 testsuite/gas/i386/x86-64-gotpcrel-no-relax.d,
1542 testsuite/gas/i386/x86-64-gotpcrel.d,
1543 testsuite/gas/i386/x86-64-ifunc.d,
1544 testsuite/gas/i386/x86-64-jump.d,
1545 testsuite/gas/i386/x86-64-lfence-byte.d,
1546 testsuite/gas/i386/x86-64-lfence-indbr-a.d,
1547 testsuite/gas/i386/x86-64-lfence-indbr-b.d,
1548 testsuite/gas/i386/x86-64-lfence-indbr-c.d,
1549 testsuite/gas/i386/x86-64-lfence-load.d,
1550 testsuite/gas/i386/x86-64-lfence-ret-a.d,
1551 testsuite/gas/i386/x86-64-lfence-ret-b.d,
1552 testsuite/gas/i386/x86-64-lfence-ret-c.d,
1553 testsuite/gas/i386/x86-64-lfence-ret-d.d,
1554 testsuite/gas/i386/x86-64-lfence-ret-e.d,
1555 testsuite/gas/i386/x86-64-mpx-add-bnd-prefix.d,
1556 testsuite/gas/i386/x86-64-mpx-branch-1.d,
1557 testsuite/gas/i386/x86-64-mpx.d,
1558 testsuite/gas/i386/x86-64-nop-3.d,
1559 testsuite/gas/i386/x86-64-nop-4.d,
1560 testsuite/gas/i386/x86-64-nop-5.d,
1561 testsuite/gas/i386/x86-64-nops-7.d,
1562 testsuite/gas/i386/x86-64-notrack.d,
1563 testsuite/gas/i386/x86-64-opcode.d,
1564 testsuite/gas/i386/x86-64-relax-2.d,
1565 testsuite/gas/i386/x86-64-relax-3.d,
1566 testsuite/gas/i386/x86-64-relax-4.d,
1567 testsuite/gas/i386/x86-64-rtm.d,
1568 testsuite/gas/i386/x86-64-stack.d,
1569 testsuite/gas/i386/x86-64-unique.d,
1570 testsuite/gas/i386/x86_64-intel.d: Adjust expectations.
1572 2020-07-14 H.J. Lu <hongjiu.lu@intel.com>
1575 * testsuite/gas/i386/addr32.s: Add tests for 32-bit wrapped around
1577 * testsuite/gas/i386/x86-64-addr32.s: Likewise.
1578 * testsuite/gas/i386/addr32.d: Updated.
1579 * testsuite/gas/i386/x86-64-addr32-intel.d: Likewise.
1580 * testsuite/gas/i386/x86-64-addr32.d: Likewise.
1581 * testsuite/gas/i386/ilp32/x86-64-addr32-intel.d: Likewise.
1582 * testsuite/gas/i386/ilp32/x86-64-addr32.d: Likewise.
1584 2020-07-14 Jan Beulich <jbeulich@suse.com>
1586 * testsuite/gas/i386/intel.s: Use dr<N> instead of db<N>.
1587 * testsuite/gas/i386/intel-intel.d: Disambiguate name.
1588 * testsuite/gas/i386/intel.d,
1589 testsuite/gas/i386/opcode-intel.d: Adjust expectations.
1591 2020-07-14 Jan Beulich <jbeulich@suse.com>
1593 * testsuite/gas/i386/prefix.d: Adjust expectations.
1595 2020-07-14 Jan Beulich <jbeulich@suse.com>
1597 * testsuite/gas/i386/x86-64-avx-intel.d,
1598 testsuite/gas/i386/x86-64-sse4_2-intel.d: Adjust expectations.
1600 2020-07-14 Jan Beulich <jbeulich@suse.com>
1602 * testsuite/gas/i386/movbe-suffix.d,
1603 testsuite/gas/i386/x86-64-movbe-suffix.d: New.
1604 * testsuite/gas/i386/i386.exp: Run new tests.
1606 2020-07-14 Jan Beulich <jbeulich@suse.com>
1608 * testsuite/gas/i386/crc32-suffix.d,
1609 testsuite/gas/i386/x86-64-crc32-suffix.d: New.
1610 * testsuite/gas/i386/i386.exp: Run new tests.
1611 * testsuite/gas/i386/arch-10-bdver1.d,
1612 testsuite/gas/i386/arch-10-bdver2.d,
1613 testsuite/gas/i386/arch-10-bdver3.d,
1614 testsuite/gas/i386/arch-10-bdver4.d,
1615 testsuite/gas/i386/arch-10-btver1.d,
1616 testsuite/gas/i386/arch-10-btver2.d,
1617 testsuite/gas/i386/arch-10-lzcnt.d,
1618 testsuite/gas/i386/arch-10-prefetchw.d,
1619 testsuite/gas/i386/arch-10.d, testsuite/gas/i386/arch-2.d,
1620 testsuite/gas/i386/arch-3.d, testsuite/gas/i386/arch-5.d,
1621 testsuite/gas/i386/arch-6.d, testsuite/gas/i386/crc32.d,
1622 testsuite/gas/i386/sse-noavx.d, testsuite/gas/i386/sse4_2.d,
1623 testsuite/gas/i386/x86-64-arch-2-bdver1.d,
1624 testsuite/gas/i386/x86-64-arch-2-bdver2.d,
1625 testsuite/gas/i386/x86-64-arch-2-bdver3.d,
1626 testsuite/gas/i386/x86-64-arch-2-bdver4.d,
1627 testsuite/gas/i386/x86-64-arch-2-btver1.d,
1628 testsuite/gas/i386/x86-64-arch-2-btver2.d,
1629 testsuite/gas/i386/x86-64-arch-2-lzcnt.d,
1630 testsuite/gas/i386/x86-64-arch-2-prefetchw.d,
1631 testsuite/gas/i386/x86-64-arch-2.d,
1632 testsuite/gas/i386/x86-64-crc32.d,
1633 testsuite/gas/i386/x86-64-pseudos.d,
1634 testsuite/gas/i386/x86-64-sse-noavx.d,
1635 testsuite/gas/i386/x86-64-sse4_2.d: Adjust expectations.
1637 2020-07-14 Jan Beulich <jbeulich@suse.com>
1639 * testsuite/gas/i386/x86-64-pseudos.s: Add empty-REX tests for
1640 ModR/M-encoded byte register cases.
1641 * testsuite/gas/i386/x86-64-pseudos.d,
1642 testsuite/gas/i386/x86-64-reg-intel.d,
1643 testsuite/gas/i386/x86-64-reg.d: Adjust expectations.
1645 2020-07-14 Jan Beulich <jbeulich@suse.com>
1647 * testsuite/gas/i386/x86-64-pseudos.s: Add empty-REX tests for
1648 not-ModR/M-encoded byte register cases.
1649 * testsuite/gas/i386/x86-64-pseudos.d: Adjust expectations.
1651 2020-07-14 Jan Beulich <jbeulich@suse.com>
1653 * testsuite/gas/i386/ilp32/x86-64-arch-1.d,
1654 testsuite/gas/i386/ilp32/x86-64-arch-2.d,
1655 testsuite/gas/i386/ilp32/x86-64-avx-intel.d,
1656 testsuite/gas/i386/ilp32/x86-64-avx.d,
1657 testsuite/gas/i386/ilp32/x86-64-crc32-intel.d,
1658 testsuite/gas/i386/ilp32/x86-64-crc32.d,
1659 testsuite/gas/i386/ilp32/x86-64-gotpcrel.d,
1660 testsuite/gas/i386/ilp32/x86-64-ifunc.d,
1661 testsuite/gas/i386/ilp32/x86-64-reg-intel.d,
1662 testsuite/gas/i386/ilp32/x86-64-reg.d,
1663 testsuite/gas/i386/ilp32/x86-64-rep-suffix.d,
1664 testsuite/gas/i386/ilp32/x86-64-sse4_2-intel.d,
1665 testsuite/gas/i386/ilp32/x86-64-sse4_2.d,
1666 testsuite/gas/i386/ilp32/x86-64-stack-intel.d,
1667 testsuite/gas/i386/ilp32/x86-64-stack-suffix.d,
1668 testsuite/gas/i386/ilp32/x86-64-stack.d: Reference parent dir
1671 2020-07-13 H.J. Lu <hongjiu.lu@intel.com>
1673 * config/tc-i386.c (offset_in_range): Remove 32-bit sign
1676 2020-07-13 Nick Clifton <nickc@redhat.com>
1678 * po/fr.po: Updated French translation.
1680 2020-07-13 Alan Modra <amodra@gmail.com>
1682 * testsuite/gas/elf/dwarf2-7.d: Remove most xfails.
1683 * testsuite/gas/elf/dwarf2-12.d: Likewise.
1684 * testsuite/gas/elf/dwarf2-13.d: Likewise.
1685 * testsuite/gas/elf/dwarf2-14.d: Likewise.
1687 2020-07-11 H.J. Lu <hongjiu.lu@intel.com>
1689 * config/tc-i386.c (output_insn): Check i.xstate to set
1690 GNU_PROPERTY_X86_FEATURE_2_TMM.
1691 * testsuite/gas/i386/i386.exp: Run x86-64-property-7,
1692 x86-64-property-8 and x86-64-property-9.
1693 * testsuite/gas/i386/x86-64-property-7.d: New file.
1694 * testsuite/gas/i386/x86-64-property-7.s: Likewise.
1695 * testsuite/gas/i386/x86-64-property-8.d: Likewise.
1696 * testsuite/gas/i386/x86-64-property-8.s: Likewise.
1697 * testsuite/gas/i386/x86-64-property-9.d: Likewise.
1698 * testsuite/gas/i386/x86-64-property-9.s: Likewise.
1700 2020-07-10 H.J. Lu <hongjiu.lu@intel.com>
1702 * config/tc-i386.c (_i386_insn): Remove has_regmmx, has_regxmm,
1703 has_regymm, has_regzmm and has_regtmm. Add xstate.
1704 (md_assemble): Set i.xstate from operand types in instruction
1706 (build_modrm_byte): Updated.
1707 (output_insn): Check i.xstate.
1708 * testsuite/gas/i386/i386.exp: Run property-6 and
1710 * testsuite/gas/i386/property-6.d: New file.
1711 * testsuite/gas/i386/property-6.s: Updated.
1712 * testsuite/gas/i386/x86-64-property-6.d: Likewise.
1714 2020-07-10 H.J. Lu <hongjiu.lu@intel.com>
1716 * testsuite/gas/i386/property-5.d: Correct test name.
1718 2020-07-10 Lili Cui <lili.cui@intel.com>
1720 * NEWS: Mention support for Intel AMX instructions.
1721 * config/tc-i386.c (i386_error): Add invalid_sib_address.
1722 (cpu_arch): Add .amx_int8, .amx_bf16 and .amx_tile.
1723 (cpu_noarch): Add noamx_int8, noamx_bf16 and noamx_tile.
1724 (match_simd_size): Add tmmword check.
1725 (operand_type_match): Add tmmword.
1726 (type_names): Add rTMM.
1727 (i386_error): Add invalid_tmm_register_set.
1728 (check_VecOperands): Handle invalid_sib_address and
1729 invalid_tmm_register_set.
1730 (match_template): Handle invalid_sib_address.
1731 (build_modrm_byte): Handle non-vector SIB and zmmword.
1732 (i386_index_check): Disallow RegIP for non-vector SIB.
1733 (check_register): Handle zmmword.
1734 * doc/c-i386.texi: Document amx_int8, amx_bf16 and amx_tile.
1735 * testsuite/gas/i386/i386.exp: Add AMX new tests.
1736 * testsuite/gas/i386/intel-regs.d: Add tmm.
1737 * testsuite/gas/i386/intel-regs.s: Add tmm.
1738 * testsuite/gas/i386/x86-64-amx-intel.d: New.
1739 * testsuite/gas/i386/x86-64-amx-inval.l: New.
1740 * testsuite/gas/i386/x86-64-amx-inval.s: New.
1741 * testsuite/gas/i386/x86-64-amx.d: New.
1742 * testsuite/gas/i386/x86-64-amx.s: New.
1743 * testsuite/gas/i386/x86-64-amx-bad.d: New.
1744 * testsuite/gas/i386/x86-64-amx-bad.s: New.
1746 2020-07-10 Tom de Vries <tdevries@suse.de>
1748 * testsuite/gas/elf/dwarf2-11.d: Update expected output from
1749 readelf's line table decoding.
1750 * testsuite/gas/elf/dwarf2-12.d: Likewise.
1751 * testsuite/gas/elf/dwarf2-13.d: Likewise.
1752 * testsuite/gas/elf/dwarf2-14.d: Likewise.
1753 * testsuite/gas/elf/dwarf2-15.d: Likewise.
1754 * testsuite/gas/elf/dwarf2-16.d: Likewise.
1755 * testsuite/gas/elf/dwarf2-17.d: Likewise.
1756 * testsuite/gas/elf/dwarf2-18.d: Likewise.
1757 * testsuite/gas/elf/dwarf2-19.d: Likewise.
1758 * testsuite/gas/elf/dwarf2-5.d: Likewise.
1759 * testsuite/gas/elf/dwarf2-6.d: Likewise.
1760 * testsuite/gas/elf/dwarf2-7.d: Likewise.
1762 2020-07-09 H.J. Lu <hongjiu.lu@intel.com>
1764 * config/tc-i386.c (output_insn): Set YMM/ZMM features for
1765 VEX/EVEX vector instructions.
1766 * testsuite/gas/i386/property-4.d: New file.
1767 * testsuite/gas/i386/property-4.s: Likewise.
1768 * testsuite/gas/i386/property-5.d: Likewise.
1769 * testsuite/gas/i386/property-5.s: Likewise.
1770 * testsuite/gas/i386/x86-64-property-4.d: Likewise.
1771 * testsuite/gas/i386/x86-64-property-5.d: Likewise.
1773 2020-07-09 H.J. Lu <hongjiu.lu@intel.com>
1775 * NEWS: Mention --enable-x86-used-note.
1776 * configure.ac: Configure with --enable-x86-used-note by default
1778 * configure: Regenerated.
1780 2020-07-09 Alan Modra <amodra@gmail.com>
1782 * config/obj-coff.h: Remove TE_PE support.
1783 * config/tc-ppc.c: Likewise.
1784 * config/tc-ppc.h: Likewise.
1785 * configure.tgt: Remove powerpc PE and powerpc lynxos.
1786 * testsuite/gas/cfi/cfi.exp (cfi-common-6): Remove powerpc PE
1788 * testsuite/gas/macros/macros.exp: Don't xfail powerpc PE.
1790 2020-07-08 Jan Beulich <jbeulich@suse.com>
1792 * testsuite/gas/i386/fma4-lig.d, testsuite/gas/i386/xop-lig.d:
1794 * testsuite/gas/i386/i386.exp: Run new tests.
1796 2020-07-07 Claudiu Zissulescu <claziss@synopsys.com>
1798 * config/tc-arc.c (find_opcode_match): Add error messages.
1799 * testsuite/gas/arc/add_s-err.s: Update test.
1800 * testsuite/gas/arc/asm-errors.err: Likewise.
1801 * testsuite/gas/arc/cpu-em-err.s: Likewise.
1802 * testsuite/gas/arc/hregs-err.s: Likewise.
1803 * testsuite/gas/arc/warn.s: Likewise.
1805 2020-07-07 H.J. Lu <hongjiu.lu@intel.com>
1808 * doc/c-i386.texi: Remove an incorrect AVX2 entry.
1810 2020-07-07 Alan Modra <amodra@gmail.com>
1812 * testsuite/gas/all/gas.exp: Use is_xcoff_format.
1813 * testsuite/gas/ppc/ppc.exp: Likewise.
1814 * testsuite/gas/all/weakref1l.d: Likewise.
1816 2020-07-07 Nick Clifton <nickc@redhat.com>
1818 * testsuite/gas/arm/cde-missing-fp.l: Fix spelling mistake in
1821 2020-07-06 Jan Beulich <jbeulich@suse.com>
1823 * testsuite/gas/i386/x86-64-avx512bw-wig1.d,
1824 testsuite/gas/i386/x86-64-avx512bw-wig1-intel.d,
1825 testsuite/gas/i386/x86-64-evex-wig1.d,
1826 testsuite/gas/i386/x86-64-evex-wig1-intel.d: Adjust
1829 2020-07-06 Jan Beulich <jbeulich@suse.com>
1831 * testsuite/gas/i386/avx512f-opts.s: Add EVEX movq tests.
1832 * testsuite/gas/i386/x86-64-avx512f-opts.s: Add blank line.
1833 * testsuite/gas/i386/avx512f-opts-intel.d,
1834 testsuite/gas/i386/avx512f-opts.d
1835 testsuite/gas/i386/x86-64-avx512f-opts-intel.d
1836 testsuite/gas/i386/x86-64-avx512f-opts.d: Adjust expectations.
1838 2020-07-06 Yuri Chornoivan <yurchor@ukr.net>
1841 * config/tc-arm.c: Fix spelling mistake.
1842 * config/tc-riscv.c: Likewise.
1843 * config/tc-z80.c: Likewise.
1844 * po/gas.pot: Regenerate.
1846 2020-07-06 Nick Clifton <nickc@redhat.com>
1848 * po/uk.po: Updated Ukranian translation.
1850 2020-07-04 Nick Clifton <nickc@redhat.com>
1852 * configure: Regenerate.
1853 * po/gas.pot: Regenerate.
1855 2020-07-04 Nick Clifton <nickc@redhat.com>
1857 * version.m4: Change version number to 2.35.50.
1858 * configure: Regenerate.
1859 * po/bfd.pot: Regenerate.
1861 2020-07-04 Nick Clifton <nickc@redhat.com>
1863 Binutils 2.35 branch created.
1865 2020-07-03 Alan Modra <amodra@gmail.com>
1868 * testsuite/gas/ia64/unwind-ilp32.d: Add -T to readelf options.
1870 2020-07-02 H.J. Lu <hongjiu.lu@intel.com>
1872 * config/tc-i386.c (build_modrm_byte): Check vexswapsources to
1873 swap two source operands.
1875 2020-07-02 Nick Clifton <nickc@redhat.com>
1877 * testsuite/gas/all/fill-1.d: Skip for MeP targets.
1879 2020-07-02 Alex Coplan <alex.coplan@arm.com>
1881 * config/tc-aarch64.c (reg_name_p): Fix cast so that we don't
1882 segfault on negative chars.
1883 * testsuite/gas/aarch64/reglike-label-unicode-segv.d: New test.
1884 * testsuite/gas/aarch64/reglike-label-unicode-segv.s: Input.
1886 2020-07-02 Nick Clifton <nickc@redhat.com>
1889 * testsuite/gas/ia64/group-2.d: Add -T option to readelf
1891 * testsuite/gas/ia64/unwind.d: Likewise.
1892 * testsuite/gas/mmix/bspec-1.d: Likewise.
1893 * testsuite/gas/mmix/bspec-2.d: Likewise.
1894 * testsuite/gas/mmix/comment-1.d: Likewise.
1895 * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
1897 2020-07-01 Alan Modra <amodra@gmail.com>
1899 * config/tc-xc16x.c (md_apply_fix): Add FIXME.
1901 2020-07-01 Alan Modra <amodra@gmail.com>
1903 * testsuite/gas/all/eqv-dot.d: xfail targets that set linkrelax
1904 in data sections, and mep.
1906 2020-06-30 H.J. Lu <hongjiu.lu@intel.com>
1908 * NEWS: Mention x86 NaCl target support removal.
1909 * config/tc-i386.c: Remove x86 NaCl target support.
1910 * config/tc-i386.h: Likewise.
1911 * configure.tgt: Likewise.
1912 * testsuite/gas/i386/i386.exp: Likewise.
1913 * testsuite/gas/i386/iamcu-1.d: Likewise.
1914 * testsuite/gas/i386/iamcu-2.d: Likewise.
1915 * testsuite/gas/i386/iamcu-3.d: Likewise.
1916 * testsuite/gas/i386/iamcu-4.d: Likewise.
1917 * testsuite/gas/i386/iamcu-5.d: Likewise.
1918 * testsuite/gas/i386/k1om.d: Likewise.
1919 * testsuite/gas/i386/l1om.d: Likewise.
1921 2020-06-30 Nelson Chu <nelson.chu@sifive.com>
1923 * config/tc-riscv.c (riscv_csr_class_check): Removed. Move the
1924 checking into riscv_csr_address.
1925 (riscv_csr_version_check): Likewise.
1926 (riscv_csr_address): New function. Return the suitable CSR address
1927 after checking the ISA dependency and versions. Issue warnings if
1928 we find any conflict and -mcsr-check is set. CSR_CLASS_F and
1929 CSR_CLASS_DEBUG are unprivileged CSR for now, so don't check the
1930 priv spec versions for them.
1931 (reg_csr_lookup_internal): Call riscv_csr_address to find the
1932 suitable CSR address.
1933 * testsuite/gas/riscv/priv-reg-fail-fext.d: Remove -mpriv-spec=1.11.
1934 * testsuite/gas/riscv/priv-reg-fail-read-only-01.d: Likewise.
1935 * testsuite/gas/riscv/priv-reg-fail-rv32-only.d: Likewise.
1936 * testsuite/gas/riscv/priv-reg-fail-fext.l: We don't care the
1937 priv spec warnings here. These warnings are added by accident.
1938 Remove them and only focus on the ISA dependency warnings.
1939 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
1940 * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
1941 * testsuite/gas/riscv/priv-reg-fail-version-1p9.l: Updated since
1942 dscratch0 and dscratch1 are regarded as the unprivileged CSR rather
1943 than the privileged ones.
1944 * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
1945 * testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
1946 * testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
1947 * testsuite/gas/riscv/priv-reg.s: Likewise. Add missing debug CSR.
1948 * testsuite/gas/riscv/priv-reg-version-1p9.d: Likewise.
1949 * testsuite/gas/riscv/priv-reg-version-1p9p1.d: Likewise.
1950 * testsuite/gas/riscv/priv-reg-version-1p10.d: Likewise.
1951 * testsuite/gas/riscv/priv-reg-version-1p11.d: Likewise.
1952 * testsuite/gas/riscv/csr-dw-regnums.d: Likewise.
1953 * testsuite/gas/riscv/csr-dw-regnums.s: Likewise.
1955 2020-06-29 H.J. Lu <hongjiu.lu@intel.com>
1957 * tc-i386.c (build_vex_prefix): Support VEX base opcode length > 1.
1958 (md_assemble): Don't process ImmExt without operands.
1960 2020-06-29 Hans-Peter Nilsson <hp@bitrange.com>
1963 * config/tc-mmix.c (md_assemble) <fixup for
1964 BFD_RELOC_MMIX_BASE_PLUS_OFFSET>: This fixup affects 1 byte, not 8.
1965 Also, set its fx_no_overflow.
1966 (md_convert_frag) <case ENCODE_RELAX (STATE_PUSHJSTUB, STATE_ZERO)>:
1967 Similarly this fixup affects 4 bytes, not 8 and needs its
1969 * config/tc-mmix.h (TC_FX_SIZE_SLACK): Don't define.
1970 * testsuite/gas/mmix/pr25331.d, testsuite/gas/mmix/pr25331.s: New test.
1972 2020-06-29 Alan Modra <amodra@gmail.com>
1974 * config/tc-s12z.c: Use C style comments.
1975 * config/tc-z80.c: Likewise.
1976 * config/tc-xtensa.c (emit_ld_r_n): Remove commented out code.
1978 2020-06-26 H.J. Lu <hongjiu.lu@intel.com>
1980 * config/tc-i386.c (md_assemble): Process ImmExt without
1983 2020-06-26 H.J. Lu <hongjiu.lu@intel.com>
1985 * config/tc-i386.c (check_VecOperands): Replace vecsib with sib.
1986 Replace VecSIB128, VecSIB256 and VecSIB512 with VECSIB128,
1987 VECSIB256 and VECSIB512, respectively.
1988 (build_modrm_byte): Replace vecsib with sib.
1990 2020-06-26 Jan Beulich <jbeulich@suse.com>
1992 * testsuite/gas/i386/nop-1-suffix.d: New.
1993 * testsuite/gas/i386/i386.exp: Run new test.
1995 2020-06-26 Pat Bernardi <bernardi@adacore.com>
1997 * config/tc-m68k.c (m68k_elf_gnu_attribute): New function.
1998 (md_pseudo_table): Handle "gnu_attribute".
1999 * doc/as.texi: Document GNU attribute for M68K.
2001 2020-06-25 Nick Clifton <nickc@redhat.com>
2004 * config/tc-arm.c (arm_force_relocation): Force resolution of
2005 BFD_RELOC_THUMB_PCREL_BRANCH12 relocations.
2006 * testsuite/gas/arm/plt-1.d: Adjust expected disassembly.
2008 2020-06-25 Jan Beulich <jbeulich@suse.com>
2010 * config/tc-i386.c (md_assemble): Move call to process_immext()
2012 (process_operands): ... here.
2014 2020-06-25 Jan Beulich <jbeulich@suse.com>
2016 * config/tc-i386.c (process_suffix): Skip ambiguous operand size
2017 diagnostic when there is a sizing prefix. Switch to word/dword/
2018 qword encoding when there is a sizing prefix and no (explicit or
2020 (update_imm): Handle presence of a sizing prefix.
2021 * testsuite/gas/i386/noreg16-data32.d,
2022 testsuite/gas/i386/noreg32-data16.d,
2023 testsuite/gas/i386/noreg32-data16.e,
2024 testsuite/gas/i386/noreg64-data16.d,
2025 testsuite/gas/i386/noreg64-data16.e,
2026 testsuite/gas/i386/noreg64-rex64.d: New.
2027 * testsuite/gas/i386/i386.exp: Run new tests.
2028 * testsuite/gas/i386/noreg32.s, testsuite/gas/i386/noreg64.s:
2029 Introduce and use pfx* macros.
2030 * testsuite/gas/i386/noreg16.s: Likewise. Replace 32-bit
2032 * testsuite/gas/i386/noreg16.d: Adjust expectations.
2034 2020-06-25 Jan Beulich <jbeulich@suse.com>
2036 * testsuite/gas/i386/avx-16bit.d,
2037 testsuite/gas/i386/avx-scalar.d, testsuite/gas/i386/avx.d,
2038 testsuite/gas/i386/avx512f-16bit.d,
2039 testsuite/gas/i386/avx512f.d,
2040 testsuite/gas/i386/evex-lig256.d,
2041 testsuite/gas/i386/evex-lig512.d
2042 testsuite/gas/i386/evex-wig1.d, testsuite/gas/i386/katmai.d,
2043 testsuite/gas/i386/noreg16.d, testsuite/gas/i386/noreg32.d,
2044 testsuite/gas/i386/ptwrite.d, testsuite/gas/i386/simd.d,
2045 testsuite/gas/i386/sse2-16bit.d,
2046 testsuite/gas/i386/sse2.d, testsuite/gas/i386/sse2avx.d: Adjust
2049 2020-06-25 Jan Beulich <jbeulich@suse.com>
2051 * config/tc-i386.c (md_assemble): Also reject explicit REX
2052 prefixes with VEX and alike encoded insns. Zap consumed bits
2054 (output_insn): Don't ignore REX prefix for VEX and alike
2055 encodings; abort() instead if encountered.
2056 * testsuite/gas/i386/x86-64-pseudos.s: Move REX-with-VEX cases
2058 * testsuite/gas/i386/x86-64-pseudos-bad.s: ... here.
2059 * testsuite/gas/i386/x86-64-pseudos.d,
2060 testsuite/gas/i386/x86-64-pseudos-bad.l: Adjust expectations.
2062 2020-06-25 Jan Beulich <jbeulich@suse.com>
2064 * config/tc-i386.c (process_operands): Translate explicit REX
2065 prefix into i.rex for SSE2AVX templates.
2066 (set_rex_vrex): New helper.
2067 (build_modrm_byte): Use it.
2068 * testsuite/gas/i386/x86-64-sse2avx.s: Add cases with explict
2070 * testsuite/gas/i386/x86-64-sse2avx.d: Adjust expectations.
2072 2020-06-25 Jan Beulich <jbeulich@suse.com>
2074 * config/tc-i386.c (cpu_flags_match): Only match SSE2AVX
2075 templates when there's no data size prefix.
2076 (md_assemble): Reject data size prefix also for legacy encoded
2078 * testsuite/gas/i386/prefix32.s, testsuite/gas/i386/prefix64.s:
2079 Uncomment previously not working line.
2080 * testsuite/gas/i386/sse2avx.s: Add ldmxcsr/stmxcsr cases with
2082 * testsuite/gas/i386/prefix32.l, testsuite/gas/i386/prefix64.l,
2083 testsuite/gas/i386/sse2avx.d: Adjust expectations.
2085 2020-06-25 Jan Beulich <jbeulich@suse.com>
2087 * config/tc-i386.c (build_evex_prefix): Drop early setting of
2090 2020-06-23 Nelson Chu <nelson.chu@sifive.com>
2092 * config/tc-riscv.c (explicit_priv_attr): Rename explicit_csr to
2093 explicit_priv_attr. It used to indicate CSR or priv instructions are
2095 (riscv_is_priv_insn): Return True if it is a privileged instruction.
2096 (riscv_ip): Call riscv_is_priv_insn to check whether the instruction
2097 is privileged or not. If it is, then set explicit_priv_attr to TRUE.
2098 (riscv_write_out_attrs): Clarification of when to generate the elf
2099 priv spec attributes.
2100 * testsuite/gas/riscv/attribute-11.s: Add comments.
2101 * testsuite/gas/riscv/attribute-14.s: New testcase. Use symbol
2102 `priv_insn_<n>` to decide which priv instruction is expected to used.
2104 * testsuite/gas/riscv/attribute-14a.d: Likewise.
2105 * testsuite/gas/riscv/attribute-14b.d: Likewise.
2106 * testsuite/gas/riscv/attribute-14c.d: Likewise.
2107 * testsuite/gas/riscv/attribute-14d.d: Likewise.
2108 * testsuite/gas/riscv/attribute-14e.d: Likewise.
2110 2020-06-22 Nelson Chu <nelson.chu@sifive.com>
2112 * config/tc-riscv.c (buf_size, buf): Remove the unused variables.
2113 (riscv_set_default_priv_spec): Get the priv spec version from the
2114 priv spec attributes by riscv_get_priv_spec_class_from_numbers.
2116 2020-06-20 Alan Modra <amodra@gmail.com>
2118 * configure.tgt: Set bfd_gas for all SH targets.
2120 2020-06-18 Jan Beulich <jbeulich@suse.com>
2122 * testsuite/gas/i386/arch-13.s: Add alternative VMGEXIT case.
2123 * testsuite/gas/i386/arch-13.d: Extend -march=. Adjust
2126 2020-06-16 Lili Cui <lili.cui@intel.com>
2128 * config/tc-i386.c (cpu_arch): Correct noavx512_vp2intersect
2129 cpu_arch to CPU_ANY_VP2INTERSECT_FLAGS.
2130 * doc/c-i386.texi: Add avx512_vp2intersect.
2132 2020-06-16 Jan Beulich <jbeulich@suse.com>
2134 * config/tc-i386.c (md_assemble): Drop SSE4a from SSE check
2136 * testsuite/gas/i386/sse-check.s: Adjust comment.
2137 * testsuite/gas/i386/sse-check-error.l,
2138 testsuite/gas/i386/sse-check-warn.e,
2139 testsuite/gas/i386/x86-64-sse-check-error.l: Adjust
2142 2020-06-16 Alan Modra <amodra@gmail.com>
2144 * config/tc-tic30.h: Remove OBJ_AOUT support.
2145 * configure.tgt: Delete tic30-*-*aout* entry.
2147 2020-06-15 Max Filippov <jcmvbkbc@gmail.com>
2149 * config/tc-xtensa.c (XTHAL_ABI_WINDOWED, XTHAL_ABI_CALL0): New
2151 (elf32xtensa_abi): New declaration.
2152 (option_abi_windowed, option_abi_call0): New enum constants.
2153 (md_longopts): Add entries for --abi-windowed and --abi-call0.
2154 (md_parse_option): Add handlers for --abi-windowed and
2156 (xtensa_add_config_info): Use xtensa_abi_choice instead of
2157 XSHAL_ABI to format ABI tag.
2158 * doc/as.texi (Target Xtensa options): Add --abi-windowed and
2159 --abi-call0 to the list of options.
2160 * doc/c-xtensa.texi: Add description for options --abi-windowed
2162 * testsuite/gas/xtensa/abi-call0.d: New test definition.
2163 * testsuite/gas/xtensa/abi-windowed.d: New test definition.
2164 * testsuite/gas/xtensa/abi.s: New test source.
2166 2020-06-14 H.J. Lu <hongjiu.lu@intel.com>
2169 * testsuite/gas/i386/tsxldtrk.d: Replace xsuspldtrk with
2171 * testsuite/gas/i386/tsxldtrk.s: Likewise.
2172 * testsuite/gas/i386/x86-64-tsxldtrk.d: Likewise.
2173 * testsuite/gas/i386/x86-64-tsxldtrk.s: Likewise.
2175 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2177 * testsuite/gas/riscv/priv-reg-fail-version-1p9.d: Removed.
2178 * testsuite/gas/riscv/priv-reg-fail-version-1p9.l: Likewise.
2179 * testsuite/gas/riscv/priv-reg-version-1p9.d: Likewise.
2181 2020-06-09 Seth Girvan <snth@snthhacks.com>
2183 * doc/c-avr.texi: Improve wording.
2185 2020-06-09 Jan Beulich <jbeulich@suse.com>
2187 * testsuite/gas/i386/x86-64-pseudos-bad.s,
2188 testsuite/gas/i386/x86-64-pseudos-bad.l: New.
2190 2020-06-09 Jan Beulich <jbeulich@suse.com>
2192 * testsuite/gas/i386/prefix.s: Add bogus prefix-with-VEX/EVEX
2194 * testsuite/gas/i386/prefix.d: Adjust expectations.
2196 2020-06-09 Jan Beulich <jbeulich@suse.com>
2198 * testsuite/gas/i386/prefix.s: Add bogus REP / EVEX.W prefix
2199 with VEX/EVEX encoding tests.
2200 * testsuite/gas/i386/prefix.d: Adjust expectations.
2202 2020-06-09 Jan Beulich <jbeulich@suse.com>
2204 * config/tc-i386.c (process_suffix): Restrict defaulting to 'q'
2206 * testsuite/gas/i386/noreg64.s: Add lcall/ljmp cases.
2207 * testsuite/gas/i386/noreg64.d: Adjust expectations.
2208 * testsuite/gas/i386/noreg-intel64.d,
2209 testsuite/gas/i386/noreg-intel64.l,
2210 testsuite/gas/i386/noreg-intel64.s: New.
2211 * testsuite/gas/i386/i386.exp: Run new tests.
2213 2020-06-09 Jan Beulich <jbeulich@suse.com>
2215 * config/tc-i386.c (vex_encoding_error): New enumerator.
2216 (VEX_check_operands): Rename to VEX_check_encoding. Check
2217 for vex_encoding_error. Move Imm4 handling ...
2218 (check_VecOperands): ... here.
2219 (match_template): Call VEX_check_encoding when there are no
2220 operands. Split construct calling check_VecOperands and
2221 VEX_check_encoding (when there are operands).
2222 (check_register): Don't blindly set vex_encoding_evex.
2223 * testsuite/gas/i386/pseudos-bad.s,
2224 testsuite/gas/i386/pseudos-bad.l: New.
2225 * testsuite/gas/i386/i386.exp: Run new test.
2226 * testsuite/gas/i386/xmmhi64.s: Drop {vex2}.
2228 2020-06-08 Alex Coplan <alex.coplan@arm.com>
2230 * config/tc-arm.c (insns): Add dfb.
2231 * testsuite/gas/arm/dfb.d: New test.
2232 * testsuite/gas/arm/dfb.s: Input for test.
2234 2020-06-08 Nick Clifton <nickc@redhat.com>
2236 * testsuite/gas/cfi/cfi-i386-2.d: Skip for PE based targets.
2238 2020-06-08 Jan Beulich <jbeulich@suse.com>
2240 * config/tc-i386.c (pi): Add checks for RegMask and RegBND.
2242 2020-06-08 Jan Beulich <jbeulich@suse.com>
2244 * config/tc-i386.c (check_byte_reg): Drop dead conditional
2247 2020-06-08 Jan Beulich <jbeulich@suse.com>
2249 * config/tc-i386.c (check_register): Split RegTR handling, to
2250 fail recognition also in 64-bit mode as well as with i586 or
2251 i686 explicitly enabled.
2252 * testsuite/gas/i386/x86_64.s: Add insns referencing tr<N>.
2253 * testsuite/gas/i386/x86_64-intel.d,
2254 testsuite/gas/i386/x86_64.d: Adjust expectations.
2256 2020-06-08 Jan Beulich <jbeulich@suse.com>
2258 * testsuite/gas/cfi/cfi-i386-2.d: Adjust expectations.
2259 * testsuite/gas/cfi/cfi.exp: Run this test.
2261 2020-06-08 Jan Beulich <jbeulich@suse.com>
2263 * config/tc-i386.c (parse_real_register): Add allow_pseudo_reg
2264 check to %st(N) parsing logic.
2265 * testsuite/gas/cfi/cfi-i386.s: Set "generic32" arch.
2267 2020-06-08 Jan Beulich <jbeulich@suse.com>
2269 * config/tc-i386.c (bad_reg): New.
2270 (check_VecOperations, i386_att_operand, i386_parse_name): Check
2272 (check_register): New, broken out from ...
2273 (parse_real_register): ... here. Call it.
2274 (parse_register): Call it, and error upon failure.
2275 * testsuite/gas/i386/equ-bad.s, testsuite/gas/i386/equ-bad.l,
2276 testsuite/gas/i386/x86-64-equ-bad.s,
2277 testsuite/gas/i386/x86-64-equ-bad.l: New.
2278 * testsuite/gas/i386/i386.exp: Run new tests.
2280 2020-06-06 Alan Modra <amodra@gmail.com>
2282 * config/tc-ppc.c (md_show_usage): Mention -mpower10 and -mpwr10.
2283 * doc/c-ppc.texi: Likewise.
2285 2020-06-06 Alan Modra <amodra@gmail.com>
2287 * config/tc-ppc.c: Update throughout for reloc renaming.
2289 2020-06-05 Jose E. Marchesi <jose.marchesi@oracle.com>
2291 * config/tc-bpf.c (md_apply_fix): Avoid GCC 10 warning
2294 2020-06-05 Nelson Chu <nelson.chu@sifive.com>
2296 * config/tc-riscv.c (explicit_csr): New static boolean.
2297 Used to indicate CSR are explictly used.
2298 (riscv_ip): Set explicit_csr to TRUE if any CSR is used.
2299 (riscv_write_out_attrs): If we already have set elf priv
2300 attributes, then generate them. Otherwise, don't generate
2301 them when no CSR are used.
2302 * testsuite/gas/riscv/attribute-01.d: Remove the priv attributes.
2303 * testsuite/gas/riscv/attribute-02.d: Likewise.
2304 * testsuite/gas/riscv/attribute-03.d: Likewise.
2305 * testsuite/gas/riscv/attribute-04.d: Likewise.
2306 * testsuite/gas/riscv/attribute-05.d: Likewise.
2307 * testsuite/gas/riscv/attribute-06.d: Likewise.
2308 * testsuite/gas/riscv/attribute-07.d: Likewise.
2309 * testsuite/gas/riscv/attribute-08.d: Likewise.
2310 * testsuite/gas/riscv/attribute-09.d: Likewise.
2311 * testsuite/gas/riscv/attribute-10.d: Likewise.
2312 * testsuite/gas/riscv/attribute-unknown.d: Likewise.
2313 * testsuite/gas/riscv/attribute-11.s: New testcase.
2314 * testsuite/gas/riscv/attribute-11.d: New testcase. The CSR is
2315 used, so we should output the ELF priv attributes.
2316 * testsuite/gas/riscv/attribute-12.d: New testcase. The CSR is
2317 used, so output the priv attributes according to the -mpriv-spec.
2318 * testsuite/gas/riscv/attribute-13.d: New testcase. The CSR isn't
2319 used, so ignore the -mpriv-spec setting.
2321 2020-06-04 H.J. Lu <hongjiu.lu@intel.com>
2323 * config/tc-ip2k. (ip2k_apply_fix): Pass endianness to
2324 cgen_get_insn_value.
2325 * config/tc-xstormy16.c (xstormy16_md_apply_fix): Pass
2326 endianness to cgen_get_insn_value and cgen_put_insn_value.
2328 2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2330 * config/tc-bpf.c (md_apply_fix): Simplify and avoid using
2331 cgen_put_insn_value.
2333 2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2335 * config/tc-bpf.c (md_begin): Pass CGEN_CPU_OPEN_INSN_ENDIAN to
2337 (md_assemble): Remove no longer needed hack.
2339 2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2341 * cgen.c (gas_cgen_finish_insn): Pass the endianness to
2342 cgen_put_insn_value.
2343 (gas_cgen_md_apply_fix): Likewise.
2344 (gas_cgen_md_apply_fix): Likewise.
2345 * config/tc-bpf.c (md_apply_fix): Pass data endianness to
2346 cgen_put_insn_value.
2347 * config/tc-mep.c (mep_check_ivc2_scheduling): Pass endianness to
2348 cgen_put_insn_value.
2350 2020-06-04 Alan Modra <amodra@gmail.com>
2352 * testsuite/config/default.exp: Remove global directive outside
2354 * testsuite/gas/mep/complex-relocs.exp: Likewise.
2355 * testsuite/gas/microblaze/relax_size.exp: Likewise.
2356 * testsuite/gas/microblaze/reloc_sym.exp: Likewise.
2357 * testsuite/gas/mt/relocs.exp: Likewise.
2358 * testsuite/gas/rx/rx.exp: Likewise.
2360 2020-06-03 Stephen Casner <casner@acm.org>
2362 * doc/c-riscv.texi (RISC-V-Options): Fix non-ASCII apostrophe.
2364 2020-06-02 Frédéric Pétrot <frederic.petrot@univ-grenoble-alpes.fr>
2365 Jim Wilson <jimw@sifive.com>
2368 * doc/c-riscv.texi (RISC-V-Formats): Add missing I format using
2369 simm12(rs1). Correct S format to use simm12(rs1). Drop SB and B
2370 formats using simm12(rs1). Correct SB and B to use rs1 and rs2.
2371 Move B before SB. Move J before UJ.
2373 2020-06-01 Alex Coplan <alex.coplan@arm.com>
2375 * write.c (relax_segment): Fix handling of negative offset when
2376 relaxing an rs_org frag.
2377 * testsuite/gas/aarch64/org-neg.d: New test.
2378 * testsuite/gas/aarch64/org-neg.l: Error output for test.
2379 * testsuite/gas/aarch64/org-neg.s: Input for test.
2380 * testsuite/gas/arm/org-neg.d: New test.
2381 * testsuite/gas/arm/org-neg.l: Error output for test.
2382 * testsuite/gas/arm/org-neg.s: Input for test.
2384 2020-05-28 Stephen Casner <casner@acm.org>
2386 Fix unexpected failures in gas testsuite for pdp11-aout target.
2387 These are caused by the PDP11's mix of little-endian octets in
2388 shorts but shorts in big endian order for long or quad.
2390 * config/tc-pdp11.c (md_number_to_chars): Implement .quad
2391 * testsuite/gas/all/gas.exp: Select alternate test scripts for
2392 pdp11, skip octa test completely.
2393 * testsuite/gas/all/eqv-dot-pdp11.s: Identical to eqv-dot.s
2394 * testsuite/gas/all/eqv-dot-pdp11.d: Match different octet order.
2395 * testsuite/gas/all/cond-pdp11.l: Match different octet order.
2397 2020-05-28 Alex Coplan <alex.coplan@arm.com>
2399 * frags.c (frag_grow): Fix comment.
2401 2020-05-27 Stephen Casner <casner@acm.org>
2404 * config/tc-pdp11.c (parse_reg): Distinguish register names from
2405 symbols that begin with a register name.
2406 * testsuite/gas/pdp11/pdp11.exp: Add test of such symbols.
2407 * testsuite/gas/pdp11/pr26001.s: Likewise.
2408 * testsuite/gas/pdp11/pr26001.d: Likewise.
2410 2020-05-27 Simon Cook <simon.cook@embecosm.com>
2412 * config/tc-riscv.c (riscv_init_csr_hash): NULL initilize next
2413 pointer when creating struct riscv_csr_extra.
2415 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
2417 * testsuite/gas/i386/align-branch-9.d: Updated for PECOFF.
2418 * testsuite/gas/i386/inval-avx512f.s: Add .p2align for PECOFF.
2419 * testsuite/gas/i386/inval-avx512f.l: Updated.
2421 2020-05-26 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
2423 * testsuite/gas/s390/zarch-z13.d: Add regexp checks for vector
2424 load/store instruction variants with alignment hints.
2425 * testsuite/gas/s390/zarch-z13.s: Emit new vector load/store
2426 instruction variants with alignment hints.
2428 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
2431 * config/tc-xgate.c (md_apply_fix): Check BFD_RELOC_XGATE_PCREL_X
2432 instead of R_XGATE_PCREL_X.
2433 (xgate_parse_operand): Replace R_XGATE_PCREL_X with
2434 BFD_RELOC_XGATE_PCREL_X.
2436 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
2439 * config/tc-visium.c (md_convert_frag): Replace fragP->fr_literal
2440 with &fragP->fr_literal[0].
2442 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
2445 * config/tc-vax.c (md_estimate_size_before_relax): Replace
2446 fragP->fr_literal with &fragP->fr_literal[0].
2447 (md_convert_frag): Likewise.
2449 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
2452 * config/tc-v850.c (md_convert_frag): Replace fragP->fr_literal
2453 with &fragP->fr_literal[0].
2455 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
2458 * config/tc-crx.c (getreg_image): Change argument type to int.
2459 (md_convert_frag): Replace fragP->fr_literal with
2460 &fragP->fr_literal[0].
2462 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
2465 * onfig/tc-score.c (s3_do_macro_bcmp): Replace overlapping
2466 sprintf with memmove.
2468 2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
2470 * config/tc-mcore.c (md_convert_frag): Replace fragP->fr_literal
2471 with &fragP->fr_literal[0].
2473 2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
2476 * config/tc-cr16.c (md_assemble): Use memmove to concatenate
2477 2 overlapping strings.
2479 2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
2481 * config/tc-cr16.c (md_convert_frag): Replace fragP->fr_literal
2482 with &fragP->fr_literal[0].
2484 2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
2486 * config/tc-csky.c (md_convert_frag): Replace fragp->fr_literal
2487 with &fragp->fr_literal[0].
2488 * config/tc-microblaze.c (md_apply_fix): Likewise.
2489 * config/tc-sh.c (md_convert_frag): Likewise.
2491 2020-05-24 Jim Wilson <jimw@sifive.com>
2494 * config/tc-riscv.c (riscv_pre_output_hook): Change s type from const
2495 asection to segT. New locals seg and subseg. Call subseg_set before
2496 fix_new_exp. Call subseg_set after loop to restore original values.
2498 2020-05-21 Alan Modra <amodra@gmail.com>
2500 * atof-generic.c: Replace "if (x) free (x)" with "free (x)"
2502 * config/obj-elf.c: Likewise.
2503 * config/tc-aarch64.c: Likewise.
2504 * config/tc-arm.c: Likewise.
2505 * config/tc-m68k.c: Likewise.
2506 * config/tc-nios2.c: Likewise.
2507 * config/tc-tic30.c: Likewise.
2508 * ecoff.c: Likewise.
2510 * stabs.c: Likewise.
2511 * symbols.c: Likewise.
2512 * testsuite/gas/all/test-gen.c: Likewise.
2514 2020-05-20 Nelson Chu <nelson.chu@sifive.com>
2516 * testsuite/gas/riscv/priv-reg-fail-read-only-01.s: Updated.
2517 * config/tc-riscv.c (default_arch_with_ext, default_isa_spec):
2518 Static variables which are used to set the ISA extensions. You can
2519 use -march (or ELF build attributes) and -misa-spec to set them,
2521 (ext_version_hash): The hash table used to handle the extensions
2523 (init_ext_version_hash): Initialize the ext_version_hash according
2524 to riscv_ext_version_table.
2525 (riscv_get_default_ext_version): The callback function of
2526 riscv_parse_subset_t. According to the choosed ISA spec,
2527 get the default version for the specific extension.
2528 (riscv_set_arch): Set the callback function.
2529 (enum options, struct option md_longopts): Add new option -misa-spec.
2530 (md_parse_option): Do not call riscv_set_arch for -march. We will
2531 call it later in riscv_after_parse_args. Call riscv_get_isa_spec_class
2532 to set default_isa_spec class.
2533 (riscv_after_parse_args): Call init_ext_version_hash to initialize the
2534 ext_version_hash, and then call riscv_set_arch to set the architecture
2535 with versions according to default_arch_with_ext.
2536 * testsuite/gas/riscv/attribute-02.d: Set 0p0 as default version for
2538 * testsuite/gas/riscv/attribute-03.d: Likewise.
2539 * testsuite/gas/riscv/attribute-09.d: New testcase. For i-ext, we
2540 already set it's version to 2p1 by march, so no need to use the default
2541 2p2 version. For m-ext, we do not set the version by -march and ELF arch
2542 attribute, so set the default 2p0 to it. For zicsr, it is not defined in
2543 ISA spec 2p2, so set 0p0 to it.
2544 * testsuite/gas/riscv/attribute-10.d: New testcase. The version of
2545 zicsr is 2p0 according to ISA spec 20191213.
2546 * config/tc-riscv.c (DEFAULT_RISCV_ARCH_WITH_EXT)
2547 (DEFAULT_RISCV_ISA_SPEC): Default configure option settings.
2548 You can set them by configure options --with-arch and
2549 --with-isa-spec, respectively.
2550 (riscv_set_default_isa_spec): New function used to set the
2552 (md_parse_option): Call riscv_set_default_isa_spec rather than
2553 call riscv_get_isa_spec_class directly.
2554 (riscv_after_parse_args): If the -isa-spec is not set, then we
2555 set the default ISA spec according to DEFAULT_RISCV_ISA_SPEC by
2556 calling riscv_set_default_isa_spec.
2557 * testsuite/gas/riscv/attribute-01.d: Add -misa-spec=2.2, since
2558 the --with-isa-spec may be set to different ISA spec.
2559 * testsuite/gas/riscv/attribute-02.d: Likewise.
2560 * testsuite/gas/riscv/attribute-03.d: Likewise.
2561 * testsuite/gas/riscv/attribute-04.d: Likewise.
2562 * testsuite/gas/riscv/attribute-05.d: Likewise.
2563 * testsuite/gas/riscv/attribute-06.d: Likewise.
2564 * testsuite/gas/riscv/attribute-07.d: Likewise.
2565 * configure.ac: Add configure options, --with-arch and
2567 * configure: Regenerated.
2568 * config.in: Regenerated.
2569 * config/tc-riscv.c (default_priv_spec): Static variable which is
2570 used to check if the CSR is valid for the chosen privilege spec. You
2571 can use -mpriv-spec to set it.
2572 (enum reg_class): We now get the CSR address from csr_extra_hash rather
2573 than reg_names_hash. Therefore, move RCLASS_CSR behind RCLASS_MAX.
2574 (riscv_init_csr_hashes): Only need to initialize one hash table
2576 (riscv_csr_class_check): Change the return type to void. Don't check
2577 the ISA dependency if -mcsr-check isn't set.
2578 (riscv_csr_version_check): New function. Check and find the CSR address
2579 from csr_extra_hash, according to default_priv_spec. Report warning
2580 for the invalid CSR if -mcsr-check is set.
2581 (reg_csr_lookup_internal): Updated.
2582 (reg_lookup_internal): Likewise.
2583 (md_begin): Updated since DECLARE_CSR and DECLARE_CSR_ALIAS are changed.
2584 (enum options, struct option md_longopts): Add new GAS option -mpriv-spec.
2585 (md_parse_option): Call riscv_set_default_priv_version to set
2587 (riscv_after_parse_args): If -mpriv-spec isn't set, then set the default
2588 privilege spec to the newest one.
2589 (enum riscv_csr_class, struct riscv_csr_extra): Move them to
2590 include/opcode/riscv.h.
2591 * testsuite/gas/riscv/priv-reg-fail-fext.d: This test case just want
2592 to check the ISA dependency for CSR, so fix the spec version by adding
2594 * testsuite/gas/riscv/priv-reg-fail-fext.l: Likewise. There are some
2595 version warnings for the test case.
2596 * gas/testsuite/gas/riscv/priv-reg-fail-read-only-01.d: Likewise.
2597 * gas/testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
2598 * gas/testsuite/gas/riscv/priv-reg-fail-read-only-02.d: Likewise.
2599 * gas/testsuite/gas/riscv/priv-reg-fail-rv32-only.d: Likewise.
2600 * gas/testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
2601 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9.d: New test case.
2602 Check whether the CSR is valid when privilege version 1.9 is choosed.
2603 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9.l: Likewise.
2604 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9p1.d: New test case.
2605 Check whether the CSR is valid when privilege version 1.9.1 is choosed.
2606 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
2607 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p10.d: New test case.
2608 Check whether the CSR is valid when privilege version 1.10 is choosed.
2609 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
2610 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p11.d: New test case.
2611 Check whether the CSR is valid when privilege version 1.11 is choosed.
2612 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
2613 * config/tc-riscv.c (DEFAULT_RISCV_ISA_SPEC): Default configure option
2614 setting. You can set it by configure option --with-priv-spec.
2615 (riscv_set_default_priv_spec): New function used to set the default
2617 (md_parse_option): Call riscv_set_default_priv_spec rather than
2618 call riscv_get_priv_spec_class directly.
2619 (riscv_after_parse_args): If -mpriv-spec isn't set, then we set the
2620 default privilege spec according to DEFAULT_RISCV_PRIV_SPEC by
2621 calling riscv_set_default_priv_spec.
2622 * testsuite/gas/riscv/csr-dw-regnums.d: Add -mpriv-spec=1.11, since
2623 the --with-priv-spec may be set to different privilege spec.
2624 * testsuite/gas/riscv/priv-reg.d: Likewise.
2625 * configure.ac: Add configure option --with-priv-spec.
2626 * configure: Regenerated.
2627 * config.in: Regenerated.
2628 * config/tc-riscv.c (explicit_attr): Rename explicit_arch_attr to
2629 explicit_attr. Set it to TRUE if any ELF attribute is found.
2630 (riscv_set_default_priv_spec): Try to set the default_priv_spec if
2631 the priv attributes are set.
2632 (md_assemble): Set the default_priv_spec according to the priv
2633 attributes when we start to assemble instruction.
2634 (riscv_write_out_attrs): Rename riscv_write_out_arch_attr to
2635 riscv_write_out_attrs. Update the arch and priv attributes. If we
2636 don't set the corresponding ELF attributes, then try to output the
2638 (riscv_set_public_attributes): If any ELF attribute or -march-attr
2639 options is set (explicit_attr is TRUE), then call riscv_write_out_attrs
2640 to update the arch and priv attributes.
2641 (s_riscv_attribute): Make sure all arch and priv attributes are set
2642 before any instruction.
2643 * testsuite/gas/riscv/attribute-01.d: Update the priv attributes if any
2644 ELF attribute or -march-attr is set. If the priv attributes are not
2645 set, then try to update them by the default setting (-mpriv-spec or
2647 * testsuite/gas/riscv/attribute-02.d: Likewise.
2648 * testsuite/gas/riscv/attribute-03.d: Likewise.
2649 * testsuite/gas/riscv/attribute-04.d: Likewise.
2650 * testsuite/gas/riscv/attribute-06.d: Likewise.
2651 * testsuite/gas/riscv/attribute-07.d: Likewise.
2652 * testsuite/gas/riscv/attribute-08.d: Likewise.
2653 * testsuite/gas/riscv/attribute-09.d: Likewise.
2654 * testsuite/gas/riscv/attribute-10.d: Likewise.
2655 * testsuite/gas/riscv/attribute-unknown.d: Likewise.
2656 * testsuite/gas/riscv/attribute-05.d: Likewise. Also, the priv spec
2657 set by priv attributes must be supported.
2658 * testsuite/gas/riscv/attribute-05.s: Likewise.
2659 * testsuite/gas/riscv/priv-reg-fail-version-1p9.d: Likewise. Updated
2660 priv attributes according to the -mpriv-spec option.
2661 * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.d: Likewise.
2662 * testsuite/gas/riscv/priv-reg-fail-version-1p10.d: Likewise.
2663 * testsuite/gas/riscv/priv-reg-fail-version-1p11.d: Likewise.
2664 * testsuite/gas/riscv/priv-reg.d: Removed.
2665 * testsuite/gas/riscv/priv-reg-version-1p9.d: New test case. Dump the
2666 CSR according to the priv spec 1.9.
2667 * testsuite/gas/riscv/priv-reg-version-1p9p1.d: New test case. Dump the
2668 CSR according to the priv spec 1.9.1.
2669 * testsuite/gas/riscv/priv-reg-version-1p10.d: New test case. Dump the
2670 CSR according to the priv spec 1.10.
2671 * testsuite/gas/riscv/priv-reg-version-1p11.d: New test case. Dump the
2672 CSR according to the priv spec 1.11.
2673 * config/tc-riscv.c (md_show_usage): Add descriptions about
2674 the new GAS options.
2675 * doc/c-riscv.texi: Likewise.
2677 2020-05-19 Peter Bergner <bergner@linux.ibm.com>
2679 * testsuite/gas/ppc/power9.s <dcbf, dcbfl, dcbflp>: Add tests.
2680 * testsuite/gas/ppc/power9.d: Likewise.
2681 * testsuite/gas/ppc/power10.s <dcbf, dcbfps, dcbstps, hwsync, lwsync,
2682 pause_short, phwsync, plwsync, ptesync, stcisync, stncisync, stsync,
2683 sync, wait, waitrsv>: Add tests.
2684 * testsuite/gas/ppc/power10.d: Likewise.
2686 2020-05-19 Alexander Fedotov <alfedotov@gmail.com>
2689 * config/tc-arm.c : Add arm_ext_v8r feature.
2690 (it_fsm_post_encode): Check arm_ext_v8r feature.
2691 (get_aeabi_cpu_arch_from_fset): Check arm_ext_v8r feature.
2693 2020-05-19 Alan Modra <amodra@gmail.com>
2695 * write.c (write_contents): Use bfd_get_filename rather than
2696 accessing bfd->filename directly. Use bfd_section_name rather
2697 than accessing section->name directly.
2699 2020-05-19 Alan Modra <amodra@gmail.com>
2701 * symbols.c (local_symbol_make): Init all of lsy_flags.
2703 2020-05-18 Alan Modra <amodra@gmail.com>
2705 * symbols.c (resolve_symbol_value): Invoke LOCAL_SYMBOL_CHECK
2706 before looking at add_symbol->sy_flags.
2708 2020-05-18 Hongtao Liu <hongtao.liu@intel.com>
2710 * config/tc-i386.c: Not handle lret/iret.
2711 * testsuite/gas/i386/lfence-ret-a.d: Adjust testcase.
2712 * testsuite/gas/i386/lfence-ret-b.d: Ditto.
2713 * testsuite/gas/i386/lfence-ret-c.d: Ditto.
2714 * testsuite/gas/i386/lfence-ret-d.d: Ditto.
2715 * testsuite/gas/i386/lfence-ret.s: Ditto.
2716 * testsuite/gas/i386/x86-64-lfence-ret-a.d: Ditto.
2717 * testsuite/gas/i386/x86-64-lfence-ret-b.d: Ditto.
2718 * testsuite/gas/i386/x86-64-lfence-ret-c.d: Ditto.
2719 * testsuite/gas/i386/x86-64-lfence-ret-d.d: Ditto.
2720 * testsuite/gas/i386/x86-64-lfence-ret-e.d: Ditto.
2721 * testsuite/gas/i386/x86-64-lfence-ret.s: Ditto.
2722 * testsuite/gas/i386/x86-64-lfence-ret.e: Deleted.
2724 2020-05-15 Alan Modra <amodra@gmail.com>
2725 Alex Coplan <alex.coplan@arm.com>
2727 * symbols.c (struct local_symbol): Update comment.
2728 (resolve_symbol_value): For resolved symbols equated to other
2729 symbols, verify that the referenced symbol is not a local_symbol
2730 before accessing sy_value. Don't leave symbol loops during
2731 finalize_syms resolution.
2732 * testsuite/gas/all/assign-bad-recursive.d: New test.
2733 * testsuite/gas/all/assign-bad-recursive.l: Error output for test.
2734 * testsuite/gas/all/assign-bad-recursive.s: Assembly for test.
2735 * testsuite/gas/all/gas.exp: Run it.
2737 2020-05-14 Nick Clifton <nickc@redhat.com>
2739 * po/sv.po: Updated Swedish translation.
2741 2020-05-11 Alan Modra <amodra@gmail.com>
2743 * testsuite/gas/ppc/scalarquad.d,
2744 * testsuite/gas/ppc/scalarquad.s: New test.
2745 * testsuite/gas/ppc/ppc.exp: Run it.
2747 2020-05-11 Alan Modra <amodra@gmail.com>
2749 * testsuite/gas/ppc/rightmost.d,
2750 * testsuite/gas/ppc/rightmost.s: New test.
2751 * testsuite/gas/ppc/ppc.exp: Run it.
2753 2020-05-11 Alan Modra <amodra@gmail.com>
2755 * testsuite/gas/ppc/xvtlsbb.d,
2756 * testsuite/gas/ppc/xvtlsbb.s: New test.
2757 * testsuite/gas/ppc/ppc.exp: Run it.
2759 2020-05-11 Alan Modra <amodra@gmail.com>
2761 * testsuite/gas/ppc/stringop.d,
2762 * testsuite/gas/ppc/stringop.s: New test.
2763 * testsuite/gas/ppc/ppc.exp: Run it.
2765 2020-05-11 Peter Bergner <bergner@linux.ibm.com>
2767 * testsuite/gas/ppc/set_bool.d,
2768 * testsuite/gas/ppc/set_bool.s: New test.
2769 * testsuite/gas/ppc/ppc.exp: Run it.
2771 2020-05-11 Alan Modra <amodra@gmail.com>
2773 * testsuite/gas/ppc/bitmanip.d,
2774 * testsuite/gas/ppc/bitmanip.s: New test.
2775 * testsuite/gas/ppc/ppc.exp: Run it.
2777 2020-05-11 Alan Modra <amodra@gmail.com>
2779 * testsuite/gas/ppc/genpcv.d,
2780 * testsuite/gas/ppc/genpcv.s: New test.
2781 * testsuite/gas/ppc/ppc.exp: Run it.
2783 2020-05-11 Alan Modra <amodra@gmail.com>
2785 * testsuite/gas/ppc/maskmanip.d,
2786 * testsuite/gas/ppc/maskmanip.s: New test.
2787 * testsuite/gas/ppc/ppc.exp: Run it.
2789 2020-05-11 Alan Modra <amodra@gmail.com>
2790 Peter Bergner <bergner@linux.ibm.com>
2792 * config/tc-ppc.c (pre_defined_registers): Add accumulators.
2793 (md_assemble): Check acc specified in correct operand.
2794 * testsuite/gas/ppc/outerprod.d,
2795 * testsuite/gas/ppc/outerprod.s,
2796 * testsuite/gas/ppc/vsx4.d,
2797 * testsuite/gas/ppc/vsx4.s: New tests.
2798 * testsuite/gas/ppc/ppc.exp: Run them.
2800 2020-05-11 Alan Modra <amodra@gmail.com>
2802 * testsuite/gas/ppc/simd_perm.d,
2803 * testsuite/gas/ppc/simd_perm.s: New test.
2804 * testsuite/gas/ppc/ppc.exp: Run it.
2806 2020-05-11 Alan Modra <amodra@gmail.com>
2808 * testsuite/gas/ppc/int128.d,
2809 * testsuite/gas/ppc/int128.s: New test.
2810 * testsuite/gas/ppc/ppc.exp: Run it.
2812 2020-05-11 Alan Modra <amodra@gmail.com>
2814 * testsuite/gas/ppc/vsx_32byte.d,
2815 * testsuite/gas/ppc/vsx_32byte.s: New test.
2816 * testsuite/gas/ppc/ppc.exp: Run it.
2818 2020-05-11 Alan Modra <amodra@gmail.com>
2820 * testsuite/gas/ppc/vec_mul.s,
2821 * testsuite/gas/ppc/vec_mul.d: New test.
2822 * testsuite/gas/ppc/ppc.exp: Run it.
2824 2020-05-11 Peter Bergner <bergner@linux.ibm.com>
2826 * testsuite/gas/ppc/byte_rev.d,
2827 * testsuite/gas/ppc/byte_rev.s: New test.
2828 * testsuite/gas/ppc/ppc.exp: Run it.
2830 2020-05-11 Peter Bergner <bergner@linux.ibm.com>
2832 * testsuite/gas/ppc/power10.d: Add paste. tests.
2833 * testsuite/gas/ppc/power10.s: Likewise.
2835 2020-05-11 Peter Bergner <bergner@linux.ibm.com>
2837 * testsuite/gas/ppc/power10.s: New test.
2838 * testsuite/gas/ppc/power10.d: Likewise.
2839 * testsuite/gas/ppc/ppc.exp: Run it.
2841 2020-05-11 Alan Modra <amodra@gmail.com>
2843 * config/tc-ppc.c (md_assemble): Update for PPC_OPCODE_POWER10
2845 * testsuite/gas/ppc/prefix-align.d: Use -mpower10/-Mpower10 in
2846 place of -mfuture/-Mfuture.
2847 * testsuite/gas/ppc/prefix-pcrel.d: Likewise.
2848 * testsuite/gas/ppc/prefix-reloc.d: Likewise.
2850 2020-05-06 Nick Clifton <nickc@redhat.com>
2852 * po/sv.po: Updated Swedish translation.
2854 2020-05-06 Nick Clifton <nickc@redhat.com>
2857 * doc/as.texi (Preprocessing): Replace cross reference to not
2858 existant document with a URL to the equivalent page in the GCC
2861 2020-05-05 Nick Clifton <nickc@redhat.com>
2863 * dwarf2dbg.c (out_dir_and_file_list): Add comments describing the
2864 construction of a DWARF-5 directory name table.
2865 * testsuite/gas/elf/pr25917.d: Update expected output.
2867 2020-05-05 Gunther Nikl <gnikl@justmail.de>
2869 * config/tc-rx.c (elf_flags): Initialize for non-linux targets.
2870 (md_parse_option): Remove initialization of elf_flags.
2872 2020-05-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
2875 * config/tc-arm.c (do_mve_vmull): Fix scalar and NEON parsing of vmul.
2876 * testsuite/gas/arm/mve-scalar-vmult-it.d: New test.
2877 * testsuite/gas/arm/mve-scalar-vmult-it.s: New test.
2879 2020-05-04 Nick Clifton <nickc@redhat.com>
2882 * dwarf2dbg.c (out_dir_and_file_list): Check for the directory
2883 table's existence before looking at its entries.
2884 Also do not emit a default directory entry if there are no
2887 * testsuite/gas/elf/pr25917.s: New test source file.
2888 * testsuite/gas/elf/pr25917.d: New test driver.
2889 * testsuite/gas/elf/elf.exp (run_elf_list_test): Run the new test.
2891 2020-04-30 Alex Coplan <alex.coplan@arm.com>
2893 * config/tc-aarch64.c (fix_insn): Implement for
2894 AARCH64_OPND_UNDEFINED.
2895 (parse_operands): Implement for AARCH64_OPND_UNDEFINED.
2896 * testsuite/gas/aarch64/udf.s: New.
2897 * testsuite/gas/aarch64/udf.d: New.
2898 * testsuite/gas/aarch64/udf-invalid.s: New.
2899 * testsuite/gas/aarch64/udf-invalid.l: New.
2900 * testsuite/gas/aarch64/udf-invalid.d: New.
2902 2020-04-30 Yoshinori Sato <ysato@users.sourceforge.jp>
2904 * config/tc-rx.c (elf_flags): Reset default value.
2905 (md_parse_option): For rx-elf Initialize elf_flags with RX_ABI.
2907 2020-04-29 Max Filippov <jcmvbkbc@gmail.com>
2909 * config/tc-xtensa.c (XTENSA_MARCH_EARLIEST): Define macro as 0
2910 if it's not defined.
2911 (microarch_earliest): New static variable.
2912 (xg_translate_idioms): Translate "simcall" to "simcall 0" when
2913 simcall opcode has mandatory parameter.
2914 (xg_init_global_config): Initialize microarch_earliest.
2916 2020-04-29 Nick Clifton <nickc@redhat.com>
2919 * config/tc-sh.c (build_Mytes): Change operand type IMM0_8 to
2920 IMM0_8S and add support for IMM0_8U.
2921 * testsuite/gas/sh/sh4a.s: Add test of a logical insn using an
2922 unsigned 8-bit immediate.
2923 * testsuite/gas/sh/sh4a.d: Extended expected disassembly.
2924 * testsuite/gas/sh/sh4al-dsp.d: Update expected disassembly.
2926 2020-04-27 Tamar Christina <tamar.christina@arm.com>
2928 * NEWS: Add news entry for big-obj.
2929 * config/tc-i386.c (i386_target_format): Support new format.
2930 * doc/c-i386.texi: Add i386 support.
2931 * testsuite/gas/pe/big-obj.d: Rename test to not be x64 specific.
2932 * testsuite/gas/pe/pe.exp (big-obj): Make test run on i386 as well.
2934 2020-04-27 Nick Clifton <nickc@redhat.com>
2937 * dwarf2dbg.c (struct file_entry): Add auto_assigned field.
2938 (assign_file_to_slot): New function. Fills in an entry in the
2940 (allocate_filenum): Use new function.
2941 (allocate_filename_to_slot): Use new function. If the specified
2942 slot entry is already in use, but was chosen automatically then
2943 reassign the automatic entry.
2945 2020-04-26 Hongtao Liu <hongtao.liu@intel.com
2947 * config/tc-i386.c (lfence_before_ret_shl): New member.
2948 (load_insn_p): implict load for POP/POPA/POPF/XLATB, no load
2950 (insert_after_load): Issue warning for REP CMPS/SCAS.
2951 (insert_before_before): Handle iret, Handle
2952 -mlfence-before-ret=shl, Adjust operand size of or/not/shl to ret's,
2953 (md_parse_option): Change -mlfence-before-ret=[none|not|or] to
2954 -mlfence-before-ret=[none/not/or/shl/yes].
2955 Enable -mlfence-before-ret=shl when
2956 -mlfence-beofre-indirect-branch=all and no explict -mlfence-before-ret option.
2957 (md_show_usage): Ditto.
2958 * doc/c-i386.texi: Ditto.
2959 * testsuite/gas/i386/i386.exp: Add new testcases.
2960 * testsuite/gas/i386/lfence-load-b.d: New.
2961 * testsuite/gas/i386/lfence-load-b.e: New.
2962 * testsuite/gas/i386/lfence-load.d: Modified.
2963 * testsuite/gas/i386/lfence-load.e: New.
2964 * testsuite/gas/i386/lfence-load.s: Modified.
2965 * testsuite/gas/i386/lfence-ret-a.d: Modified.
2966 * testsuite/gas/i386/lfence-ret-b.d: Modified.
2967 * testsuite/gas/i386/lfence-ret-c.d: New.
2968 * testsuite/gas/i386/lfence-ret-d.d: New.
2969 * testsuite/gas/i386/lfence-ret.s: Modified.
2970 * testsuite/gas/i386/x86-64-lfence-load-b.d: New.
2971 * testsuite/gas/i386/x86-64-lfence-load.d: Modified.
2972 * testsuite/gas/i386/x86-64-lfence-load.s: Modified.
2973 * testsuite/gas/i386/x86-64-lfence-ret-a.d: Modified.
2974 * testsuite/gas/i386/x86-64-lfence-ret-b.d: Modified.
2975 * testsuite/gas/i386/x86-64-lfence-ret-c.d: New.
2976 * testsuite/gas/i386/x86-64-lfence-ret-d.d: New
2977 * testsuite/gas/i386/x86-64-lfence-ret-e.d: New.
2978 * testsuite/gas/i386/x86-64-lfence-ret.e: New.
2979 * testsuite/gas/i386/x86-64-lfence-ret.s: New.
2981 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
2984 * config/tc-xtensa.c (md_apply_fix): Replace
2985 BFD_RELOC_XTENSA_DIFF{8,16,32} generation with
2986 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
2987 BFD_RELOC_XTENSA_NDIFF{8,16,32} generation.
2988 * testsuite/gas/xtensa/loc.d: Replace BFD_RELOC_XTENSA_DIFF16
2989 with BFD_RELOC_XTENSA_PDIFF16 in the expected output.
2991 2020-04-22 Alan Modra <amodra@gmail.com>
2993 * config/obj-elf.c (elf_frob_symbol): Unconditionally remove
2994 symbol for ".symver .. remove".
2995 * doc/as.texi (.symver): Update.
2996 * testsuite/gas/symver/symver11.s: Make foo weak.
2997 * testsuite/gas/symver/symver11.d: Expect an error.
2998 * testsuite/gas/symver/symver7.d: Allow other random symbols.
3000 2020-04-21 H.J. Lu <hongjiu.lu@intel.com>
3002 * testsuite/gas/symver/symver11.s: Add ".balign 8".
3004 2020-04-21 Andreas Schwab <schwab@linux-m68k.org>
3007 * testsuite/gas/m68k/operands.s: Add tests for cmpi.
3008 * testsuite/gas/m68k/operands.d: Update.
3009 * testsuite/gas/m68k/op68000.d: Update for new error messages.
3011 2020-04-21 Tamar Christina <tamar.christina@arm.com>
3014 * testsuite/gas/arm/pr24753.d: New test.
3015 * testsuite/gas/arm/pr24753.s: New test.
3017 2020-04-21 H.J. Lu <hongjiu.lu@intel.com>
3021 * NEWS: Mention .symver extension.
3022 * config/obj-elf.c (obj_elf_find_and_add_versioned_name): New
3024 (obj_elf_symver): Call obj_elf_find_and_add_versioned_name to
3025 add a version name. Add local, hidden and remove visibility
3027 (elf_frob_symbol): Handle the list of version names. Update the
3028 original symbol to local, hidden or remove it from the symbol
3030 (elf_frob_file_before_adjust): Handle the list of version names.
3031 * config/obj-elf.h (elf_visibility): New.
3032 (elf_versioned_name_list): Likewise.
3033 (elf_obj_sy): Change local to bitfield. Add rename, bad_version
3034 and visibility. Change versioned_name pointer to struct
3035 elf_versioned_name_list.
3036 * doc/as.texi: Update .symver directive.
3037 * testsuite/gas/symver/symver.exp: Run all *.d tests. Add more
3038 error checking tests.
3039 * testsuite/gas/symver/symver6.d: New file.
3040 * testsuite/gas/symver/symver7.d: Likewise.
3041 * testsuite/gas/symver/symver7.s: Likewise.
3042 * testsuite/gas/symver/symver8.d: Likewise.
3043 * testsuite/gas/symver/symver8.s: Likewise.
3044 * testsuite/gas/symver/symver9.s: Likewise.
3045 * testsuite/gas/symver/symver9a.d: Likewise.
3046 * testsuite/gas/symver/symver9b.d: Likewise.
3047 * testsuite/gas/symver/symver10.s: Likewise.
3048 * testsuite/gas/symver/symver10a.d: Likewise.
3049 * testsuite/gas/symver/symver10b.d: Likewise.
3050 * testsuite/gas/symver/symver11.d: Likewise.
3051 * testsuite/gas/symver/symver11.s: Likewise.
3052 * testsuite/gas/symver/symver12.d: Likewise.
3053 * testsuite/gas/symver/symver12.s: Likewise.
3054 * testsuite/gas/symver/symver13.d: Likewise.
3055 * testsuite/gas/symver/symver13.s: Likewise.
3056 * testsuite/gas/symver/symver14.d: Likewise.
3057 * testsuite/gas/symver/symver14.l: Likewise.
3058 * testsuite/gas/symver/symver15.d: Likewise.
3059 * testsuite/gas/symver/symver15.l: Likewise.
3060 * testsuite/gas/symver/symver6.l: Removed.
3061 * testsuite/gas/symver/symver6.s: Updated.
3063 2020-04-20 Sudakshina Das <sudi.das@arm.com>
3065 * config/tc-aarch64.c (parse_barrier_psb): Update error messages
3067 * testsuite/gas/aarch64/system-2.d: Update -march and new tsb tests.
3068 * testsuite/gas/aarch64/system-2.s: Add new tsb tests.
3069 * testsuite/gas/aarch64/system.d: Update.
3071 2020-04-20 Sudakshina Das <sudi.das@arm.com>
3073 * testsuite/gas/aarch64/bti.d: Update -march option.
3074 * testsuite/gas/aarch64/illegal-bti.d: Remove.
3075 * testsuite/gas/aarch64/illegal-bti.l: Remove.
3076 * testsuite/gas/aarch64/illegal-ras-1.l: Remove esb.
3077 * testsuite/gas/aarch64/illegal-ras-1.s: Remove esb.
3079 2020-04-17 Alan Modra <amodra@gmail.com>
3081 * config/tc-bfin.h (TC_EQUAL_IN_INSN): Allow assignment to dot.
3083 2020-04-16 Gagan Singh Sidhu <broly@mac.com>
3084 Nick Clifton <nickc@redhat.com>
3087 * config/obj-elf.c (obj_elf_type): Reject ifunc symbols on MIPS
3089 * testsuite/gas/elf/elf.exp: Add MIPS targets to the list to skip
3090 for the type-2 test.
3091 * testsuite/gas/elf/type-noifunc.e: Update to allow for MIPS
3092 targets running this test.
3094 2020-02-16 David Faust <david.faust@oracle.com>
3096 * testsuite/gas/bpf/bpf.exp: Run jump32 tests.
3097 * testsuite/gas/bpf/jump32.s: New file.
3098 * testsuite/gas/bpf/jump32.d: Likewise.
3100 2020-04-08 H.J. Lu <hongjiu.lu@intel.com>
3102 * doc/c-i386.texi: Correct -mlfence-before-indirect-branch=
3105 2020-04-08 Gunther Nikl <gnikl@justmail.de>
3107 * config/tc-moxie.h (MD_PCREL_FROM_SECTION): Delete define.
3108 (md_pcrel_from): Remove prototytpe.
3109 * config/tc-m32c.h (MD_PCREL_FROM_SECTION): Delete duplicate
3111 (md_pcrel_from_section): Remove duplicate prototype.
3112 * tc.h (md_pcrel_from_section): Add prototype.
3113 * config/tc-aarch64.h (md_pcrel_from_section): Remove prototype.
3114 * config/tc-arc.h (md_pcrel_from_section): Likewise.
3115 * config/tc-arm.h (md_pcrel_from_section): Likewise.
3116 * config/tc-avr.h (md_pcrel_from_section): Likewise.
3117 * config/tc-bfin.h (md_pcrel_from_section): Likewise.
3118 * config/tc-bpf.h (md_pcrel_from_section): Likewise.
3119 * config/tc-csky.h (md_pcrel_from_section): Likewise.
3120 * config/tc-d10v.h (md_pcrel_from_section): Likewise.
3121 * config/tc-d30v.h (md_pcrel_from_section): Likewise.
3122 * config/tc-epiphany.h (md_pcrel_from_section): Likewise.
3123 * config/tc-fr30.h (md_pcrel_from_section): Likewise.
3124 * config/tc-frv.h (md_pcrel_from_section): Likewise.
3125 * config/tc-iq2000.h (md_pcrel_from_section): Likewise.
3126 * config/tc-lm32.h (md_pcrel_from_section): Likewise.
3127 * config/tc-m32c.h (md_pcrel_from_section): Likewise.
3128 * config/tc-m32r.h (md_pcrel_from_section): Likewise.
3129 * config/tc-mcore.h (md_pcrel_from_section): Likewise.
3130 * config/tc-mep.h (md_pcrel_from_section): Likewise.
3131 * config/tc-metag.h (md_pcrel_from_section): Likewise.
3132 * config/tc-microblaze.h (md_pcrel_from_section): Likewise.
3133 * config/tc-mmix.h (md_pcrel_from_section): Likewise.
3134 * config/tc-moxie.h (md_pcrel_from_section): Likewise.
3135 * config/tc-msp430.h (md_pcrel_from_section): Likewise.
3136 * config/tc-mt.h (md_pcrel_from_section): Likewise.
3137 * config/tc-or1k.h (md_pcrel_from_section): Likewise.
3138 * config/tc-ppc.h (md_pcrel_from_section): Likewise.
3139 * config/tc-rl78.h (md_pcrel_from_section): Likewise.
3140 * config/tc-rx.h (md_pcrel_from_section): Likewise.
3141 * config/tc-s390.h (md_pcrel_from_section): Likewise.
3142 * config/tc-sh.h (md_pcrel_from_section): Likewise.
3143 * config/tc-xc16x.h (md_pcrel_from_section): Likewise.
3144 * config/tc-xstormy16.h (md_pcrel_from_section): Likewise.
3145 * config/tc-microblaze.h (md_begin, md_assemble, md_undefined_symbol,
3146 md_show_usage, md_convert_frag, md_operand, md_number_to_chars,
3147 md_estimate_size_before_relax, md_section_align, tc_gen_reloc,
3148 md_apply_fix3): Delete prototypes.
3150 2020-04-07 H.J. Lu <hongjiu.lu@intel.com>
3152 * NEWS: Mention support for Intel SERIALIZE and TSXLDTRK
3155 2020-04-07 H.J. Lu <hongjiu.lu@intel.com>
3157 * doc/c-z80.texi: Fix @xref warnings.
3159 2020-04-07 Lili Cui <lili.cui@intel.com>
3161 * config/tc-i386.c (cpu_arch): Add .TSXLDTRK.
3162 (cpu_noarch): Likewise.
3163 * doc/c-i386.texi: Document TSXLDTRK.
3164 * testsuite/gas/i386/i386.exp: Run TSXLDTRK tests.
3165 * testsuite/gas/i386/tsxldtrk.d: Likewise.
3166 * testsuite/gas/i386/tsxldtrk.s: Likewise.
3167 * testsuite/gas/i386/x86-64-tsxldtrk.d: Likewise.
3169 2020-04-02 Lili Cui <lili.cui@intel.com>
3171 * config/tc-i386.c (cpu_arch): Add .serialize.
3172 (cpu_noarch): Likewise.
3173 * doc/c-i386.texi: Document serialize.
3174 * testsuite/gas/i386/i386.exp: Run serialize tests
3175 * testsuite/gas/i386/serialize.d: Likewise.
3176 * testsuite/gas/i386/x86-64-serialize.d: Likewise.
3177 * testsuite/gas/i386/serialize.s: Likewise.
3179 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3181 * testsuite/gas/elf/section12a.d: Use notarget instead of xfail.
3182 * testsuite/gas/elf/section12b.d: Likewise.
3183 * testsuite/gas/elf/section16a.d: Likewise.
3184 * testsuite/gas/elf/section16b.d: Likewise.
3186 2020-04-02 Gunther Nikl <gnikl@justmail.de>
3188 * config/tc-m68k.c (m68k_ip): Fix range check for index register
3189 with a suppressed address register.
3191 2020-04-01 H.J. Lu <hongjiu.lu@intel.com>
3194 * config/tc-i386.h (TC_FORCE_RELOCATION_ABS): New.
3195 * testsuite/gas/i386/localpic.s: Add a test for relocation
3196 against local absolute symbol.
3197 * testsuite/gas/i386/x86-64-localpic.s: Likewise.
3198 * testsuite/gas/i386/localpic.d: Updated.
3199 * testsuite/gas/i386/x86-64-localpic.d: Likewise.
3200 * testsuite/gas/i386/ilp32/x86-64-localpic.d: Likewise.
3202 2020-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3205 * testsuite/gas/i386/solaris/x86-64-branch-2.d: New file.
3206 * testsuite/gas/i386/solaris/x86-64-branch-3.d: New file.
3207 * testsuite/gas/i386/solaris/x86-64-jump.d: Incorporate changes to
3208 testsuite/gas/i386/x86-64-jump.d.
3209 * gas/testsuite/gas/i386/solaris/x86-64-mpx-branch-1.d:
3210 Incorporate changes to
3211 gas/testsuite/gas/i386/x86-64-mpx-branch-1.d.
3212 * testsuite/gas/i386/solaris/x86-64-mpx-branch-2.d : Incorporate
3213 changes to testsuite/gas/i386/x86-64-mpx-branch-2.d.
3214 * testsuite/gas/i386/x86-64-branch-2.d: Skip on *-*-solaris*.
3215 * testsuite/gas/i386/x86-64-branch-3.d: Likewise.
3217 2020-03-31 Maciej W. Rozycki <macro@linux-mips.org>
3221 * dwarf2dbg.c: Do not include "bignum.h".
3223 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
3225 * testsuite/gas/riscv/alias-csr.d: Move this to priv-reg-pseudo.
3226 * testsuite/gas/riscv/alias-csr.s: Likewise.
3227 * testsuite/gas/riscv/no-aliases-csr.d: Move this
3228 to priv-reg-pseudo-noalias.
3229 * testsuite/gas/riscv/bad-csr.d: Rename to priv-reg-fail-nonexistent.
3230 * testsuite/gas/riscv/bad-csr.l: Likewise.
3231 * testsuite/gas/riscv/bad-csr.s: Likewise.
3232 * testsuite/gas/riscv/satp.d: Removed. Already included in priv-reg.
3233 * testsuite/gas/riscv/satp.s: Likewise.
3234 * testsuite/gas/riscv/priv-reg-pseudo.d: New testcase for all pseudo
3235 csr instruction, including alias-csr testcase.
3236 * testsuite/gas/riscv/priv-reg-pseudo.s: Likewise.
3237 * testsuite/gas/riscv/priv-reg-pseudo-noalias.d: New testcase for all
3238 pseudo instruction with objdump -Mno-aliases.
3239 * testsuite/gas/riscv/priv-reg-fail-nonexistent.d: New testcase.
3240 * testsuite/gas/riscv/priv-reg-fail-nonexistent.l: Likewise.
3241 * testsuite/gas/riscv/priv-reg-fail-nonexistent.s: Likewise.
3242 * testsuite/gas/riscv/priv-reg.d: Update CSR to 1.11.
3243 * testsuite/gas/riscv/priv-reg.s: Likewise.
3244 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
3245 * testsuite/gas/riscv/csr-dw-regnums.d: Likewise.
3246 * testsuite/gas/riscv/csr-dw-regnums.s: Likewise.
3248 2020-03-25 J.W. Jagersma <jwjagersma@gmail.com>
3250 * config/obj-coff.c (obj_coff_section): Set the bss flag on
3251 sections with the "b" attribute.
3253 2020-03-22 Alan Modra <amodra@gmail.com>
3255 * testsuite/gas/s12z/truncated.d: Update expected output.
3257 2020-03-17 Sergey Belyashov <sergey.belyashov@gmail.com>
3260 * config/tc-z80.c (md_pseudo_table): Add xdef anf xref pseudo ops.
3261 * doc/c-z80.texi: Update documentation.
3263 2020-03-17 Sergey Belyashov <sergey.belyashov@gmail.com>
3268 Fix disassembling ED+A4/AC/B4/BC opcodes.
3269 Fix assembling lines containing colonless label and instruction
3270 with first operand inside parentheses.
3271 Fix registration of unsupported by target CPU registers.
3272 * config/tc-z80.c: See above.
3273 * config/tc-z80.h: See above.
3274 * testsuite/gas/z80/colonless.d: Update test.
3275 * testsuite/gas/z80/colonless.s: Likewise.
3276 * testsuite/gas/z80/ez80_adl_all.d: Likewise.
3277 * testsuite/gas/z80/ez80_unsup_regs.d: Likewise.
3278 * testsuite/gas/z80/ez80_z80_all.d: Likewise.
3279 * testsuite/gas/z80/gbz80_unsup_regs.d: Likewise.
3280 * testsuite/gas/z80/r800_unsup_regs.d: Likewise.
3281 * testsuite/gas/z80/unsup_regs.s: Likewise.
3282 * testsuite/gas/z80/z180_unsup_regs.d: Likewise.
3283 * testsuite/gas/z80/z80.exp: Likewise.
3284 * testsuite/gas/z80/z80_strict_unsup_regs.d: Likewise.
3285 * testsuite/gas/z80/z80_unsup_regs.d: Likewise.
3286 * testsuite/gas/z80/z80n_unsup_regs.d: Likewise.
3288 2020-03-13 Andre Vieira <andre.simoesdiasvieira@arm.com>
3291 * config/tc-arm.c (operand_parse_code): Add OP_RNSDMQR and OP_oRNSDMQ.
3292 (parse_operands): Handle new operand codes.
3293 (do_neon_dyadic_long): Make shape check accept the scalar variants.
3294 (asm_opcode_insns): Fix operand codes for vaddl and vsubl.
3295 * testsuite/gas/arm/mve-vaddsub-it.s: New test.
3296 * testsuite/gas/arm/mve-vaddsub-it.d: New test.
3297 * testsuite/gas/arm/mve-vaddsub-it-bad.s: New test.
3298 * testsuite/gas/arm/mve-vaddsub-it-bad.l: New test.
3299 * testsuite/gas/arm/mve-vaddsub-it-bad.d: New test.
3300 * testsuite/gas/arm/nomve-vaddsub-it.d: New test.
3302 2020-03-11 H.J. Lu <hongjiu.lu@intel.com>
3304 * NEWS: Mention x86 assembler options for CVE-2020-0551.
3306 2020-03-11 H.J. Lu <hongjiu.lu@intel.com>
3308 * testsuite/gas/i386/i386.exp: Run new tests.
3309 * testsuite/gas/i386/lfence-byte.d: New file.
3310 * testsuite/gas/i386/lfence-byte.e: Likewise.
3311 * testsuite/gas/i386/lfence-byte.s: Likewise.
3312 * testsuite/gas/i386/lfence-indbr-a.d: Likewise.
3313 * testsuite/gas/i386/lfence-indbr-b.d: Likewise.
3314 * testsuite/gas/i386/lfence-indbr-c.d: Likewise.
3315 * testsuite/gas/i386/lfence-indbr.e: Likewise.
3316 * testsuite/gas/i386/lfence-indbr.s: Likewise.
3317 * testsuite/gas/i386/lfence-load.d: Likewise.
3318 * testsuite/gas/i386/lfence-load.s: Likewise.
3319 * testsuite/gas/i386/lfence-ret-a.d: Likewise.
3320 * testsuite/gas/i386/lfence-ret-b.d: Likewise.
3321 * testsuite/gas/i386/lfence-ret.s: Likewise.
3322 * testsuite/gas/i386/x86-64-lfence-byte.d: Likewise.
3323 * testsuite/gas/i386/x86-64-lfence-byte.e: Likewise.
3324 * testsuite/gas/i386/x86-64-lfence-byte.s: Likewise.
3325 * testsuite/gas/i386/x86-64-lfence-indbr-a.d: Likewise.
3326 * testsuite/gas/i386/x86-64-lfence-indbr-b.d: Likewise.
3327 * testsuite/gas/i386/x86-64-lfence-indbr-c.d: Likewise.
3328 * testsuite/gas/i386/x86-64-lfence-indbr.e: Likewise.
3329 * testsuite/gas/i386/x86-64-lfence-indbr.s: Likewise.
3330 * testsuite/gas/i386/x86-64-lfence-load.d: Likewise.
3331 * testsuite/gas/i386/x86-64-lfence-load.s: Likewise.
3332 * testsuite/gas/i386/x86-64-lfence-ret-a.d: Likewise.
3333 * testsuite/gas/i386/x86-64-lfence-ret-b.d: Likewise.
3335 2020-03-11 H.J. Lu <hongjiu.lu@intel.com>
3337 * config/tc-i386.c (lfence_after_load): New.
3338 (lfence_before_indirect_branch_kind): New.
3339 (lfence_before_indirect_branch): New.
3340 (lfence_before_ret_kind): New.
3341 (lfence_before_ret): New.
3344 (insert_lfence_after): New.
3345 (insert_lfence_before): New.
3346 (md_assemble): Call insert_lfence_before and insert_lfence_after.
3348 (OPTION_MLFENCE_AFTER_LOAD): New.
3349 (OPTION_MLFENCE_BEFORE_INDIRECT_BRANCH): New.
3350 (OPTION_MLFENCE_BEFORE_RET): New.
3351 (md_longopts): Add -mlfence-after-load=,
3352 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
3353 (md_parse_option): Handle -mlfence-after-load=,
3354 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
3355 (md_show_usage): Display -mlfence-after-load=,
3356 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
3357 (i386_cons_align): New.
3358 * config/tc-i386.h (i386_cons_align): New.
3359 (md_cons_align): New.
3360 * doc/c-i386.texi: Document -mlfence-after-load=,
3361 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
3363 2020-03-11 Nick Clifton <nickc@redhat.com>
3367 * dwarf2dbg.c (DWARF2_FILE_TIME_NAME): Default to -1.
3368 (DWARF2_FILE_SIZE_NAME): Default to -1.
3369 (DWARF2_LINE_VERSION): Default to the current dwarf level or 3,
3370 whichever is higher.
3371 (DWARF2_LINE_MAX_OPS_PER_INSN): Provide a default value of 1.
3372 (NUM_MD5_BYTES): Define.
3373 (struct file entry): Add md5 field.
3374 (get_filenum): Delete and replace with...
3375 (get_basename): New function.
3376 (get_directory_table_entry): New function.
3377 (allocate_filenum): New function.
3378 (allocate_filename_to_slot): New function.
3379 (dwarf2_where): Use new functions.
3380 (dwarf2_directive_filename): Add support for extended .file
3382 (dwarf2_directive_loc): Allow the use of file number zero with
3384 (out_file_list): Rename to...
3385 (out_dir_and_file_list): Add DWARF 5 support.
3386 (out_debug_line): Emit extra values into the section header for
3388 (out_debug_str): Allow for file 0 to be used with DWARF 5.
3389 * doc/as.texi (.file): Update the description of this pseudo-op.
3390 * testsuite/gas/elf-dwarf-5-file0.s: Add more lines.
3391 * testsuite/gas/elf-dwarf-5-file0.d: Update expected dump output.
3392 * testsuite/gas/lns/lns-diag-1.l: Update expected error message.
3393 * NEWS: Mention the new feature.
3395 2020-03-10 Alan Modra <amodra@gmail.com>
3397 * config/tc-csky.c (get_operand_value): Rewrite 1 << 31 expressions
3398 to avoid signed overflow.
3399 * config/tc-mcore.c (md_assemble): Likewise.
3400 * config/tc-mips.c (gpr_read_mask, gpr_write_mask): Likewise.
3401 * config/tc-nds32.c (SET_ADDEND): Likewise.
3402 * config/tc-nios2.c (nios2_assemble_arg_R): Likewise.
3404 2020-03-09 Jan Beulich <jbeulich@suse.com>
3406 * testsuite/gas/i386/avx.s: Add long-form VCMP[PS][SD] pseudos.
3407 * testsuite/gas/i386/avx.d, testsuite/gas/i386/avx-16bit.d,
3408 testsuite/gas/i386/avx-intel.d: Adjust expectations.
3410 2020-03-07 Alan Modra <amodra@gmail.com>
3412 * testsuite/gas/elf/dwarf-5-file0.s: Don't start directives in
3415 2020-03-06 Nick Clifton <nickc@redhat.com>
3418 * dwarf2dbg.c (dwarf2_directive_filename): Allow a file number of
3419 0 if the dwarf_level is 5 or more. Complain if a filename follows
3421 * testsuite/gas/elf/dwarf-5-file0.s: New test.
3422 * testsuite/gas/elf/dwarf-5-file0.d: New test driver.
3423 * testsuite/gas/elf/elf.exp: Run the new test.
3426 * config/tc-ia64.h (DWARF2_VERISION): Fix typo.
3427 * doc/as.texi: Fix another typo.
3429 2020-03-06 Nick Clifton <nickc@redhat.com>
3432 * as.c (dwarf_level): Define.
3433 (show_usage): Add --gdwarf-3, --gdwarf-4 and --gdwarf-5.
3434 (parse_args): Add support for the new options.
3435 as.h (dwarf_level): Prototype.
3436 * dwarf2dbg.c (DWARF2_VERSION): Use dwarf_level as default version
3438 * config/tc-ia64.h (DWARF2_VERISION): Update definition.
3439 (DWARF2_LINE_VERSION): Remove definition.
3440 * doc/as.texi: Document the new options.
3442 2020-03-06 Nick Clifton <nickc@redhat.com>
3445 * as.c (main): Allow matching input and outputs when they are
3448 2020-03-06 Jan Beulich <jbeulich@suse.com>
3450 * config/tc-i386.c (match_mem_size): Generalize broadcast special
3452 (check_VecOperands): Zap xmmword/ymmword/zmmword when more than
3453 one of byte/word/dword/qword is set alongside a SIMD register in
3454 a template's operand.
3456 2020-03-06 Jan Beulich <jbeulich@suse.com>
3458 * config/tc-i386.c (match_template): Extend code in logic
3459 rejecting certain suffixes in certain modes to also cover mask
3460 register use and VecSIB. Drop special casing of broadcast. Skip
3461 immediates in the check.
3463 2020-03-06 Jan Beulich <jbeulich@suse.com>
3465 * config/tc-i386.c (match_template): Fold duplicate code in
3466 logic rejecting certain suffixes in certain modes. Drop
3469 2020-03-06 Jan Beulich <jbeulich@suse.com>
3471 * config/tc-i386.c (process_suffix): Exlucde !vexw insns
3472 alongside !norex64 ones.
3473 * testsuite/gas/i386/x86-64-avx512bw.s: Test VPEXTR* and VPINSR*
3474 with both 32- and 64-bit GPR operands.
3475 * testsuite/gas/i386/x86-64-avx512f.s: Test VEXTRACTPS with both
3476 32- and 64-bit GPR operands.
3477 * testsuite/gas/i386/x86-64-avx512bw-intel.d,
3478 testsuite/gas/i386/x86-64-avx512bw.d,
3479 testsuite/gas/i386/x86-64-avx512f-intel.d,
3480 testsuite/gas/i386/x86-64-avx512f.d: Adjust expectations.
3482 2020-03-06 Jan Beulich <jbeulich@suse.com>
3484 * config/tc-i386.c (md_assemble): Drop use of rex64.
3485 (process_suffix): For REX.W for 64-bit CRC32.
3487 2020-03-06 Jan Beulich <jbeulich@suse.com>
3489 * config/tc-i386.c (i386_addressing_mode): For 32-bit
3490 addressing for MPX insns without base/index.
3491 * testsuite/gas/i386/mpx-16bit.s,
3492 * testsuite/gas/i386/mpx-16bit.d: New.
3493 * testsuite/gas/i386/i386.exp: Run new test.
3495 2020-03-06 Jan Beulich <jbeulich@suse.com>
3497 * testsuite/gas/i386/adx.s, testsuite/gas/i386/cet.s,
3498 testsuite/gas/i386/ept.s, testsuite/gas/i386/fsgs.s,
3499 testsuite/gas/i386/invpcid.s, testsuite/gas/i386/movdir.s,
3500 testsuite/gas/i386/ptwrite.s, testsuite/gas/i386/vmx.s,
3501 * testsuite/gas/i386/code16.s: Add CR, DR, and TR access cases
3502 as well as a BSWAP one.
3503 * testsuite/gas/i386/rdpid.s: Add 16-bit case.
3504 * testsuite/gas/i386/sse2-16bit.s: Cover more insns.
3505 * testsuite/gas/i386/adx-intel.d, testsuite/gas/i386/adx.d,
3506 testsuite/gas/i386/cet-intel.d, testsuite/gas/i386/cet.d,
3507 testsuite/gas/i386/code16.d, testsuite/gas/i386/ept-intel.d,
3508 testsuite/gas/i386/ept.d, testsuite/gas/i386/fsgs-intel.d,
3509 testsuite/gas/i386/fsgs.d, testsuite/gas/i386/invpcid-intel.d,
3510 testsuite/gas/i386/invpcid.d, testsuite/gas/i386/movdir-intel.d,
3511 testsuite/gas/i386/movdir.d, testsuite/gas/i386/ptwrite-intel.d,
3512 testsuite/gas/i386/ptwrite.d, testsuite/gas/i386/rdpid-intel.d,
3513 testsuite/gas/i386/rdpid.d, testsuite/gas/i386/sse2-16bit.d,
3514 testsuite/gas/i386/vmx.d: Adjust expectations.
3516 2020-03-06 Jan Beulich <jbeulich@suse.com>
3518 * config/tc-i386.c (md_assemble): Also exclude tpause and umwait
3519 from having their operands swapped.
3520 * testsuite/gas/i386/waitpkg.s,
3521 testsuite/gas/i386/x86-64-waitpkg.s: Add tpause and umwait
3522 3-operand cases as well as testing of 16-bit code generation.
3523 * testsuite/gas/i386/waitpkg.d,
3524 testsuite/gas/i386/waitpkg-intel.d,
3525 testsuite/gas/i386/x86-64-waitpkg.d,
3526 testsuite/gas/i386/x86-64-waitpkg-intel.d: Adjust expectations.
3528 2020-03-04 Nelson Chu <nelson.chu@sifive.com>
3530 * config/tc-riscv.c (percent_op_utype): Support the modifier
3532 * doc/c-riscv.texi: Add documentation.
3533 * testsuite/gas/riscv/no-relax-reloc.d: Add test case for the new
3534 modifier %got_pcrel_hi.
3535 * testsuite/gas/riscv/no-relax-reloc.s: Likewise.
3536 * testsuite/gas/riscv/relax-reloc.d: Likewise.
3537 * testsuite/gas/riscv/relax-reloc.s: Likewise.
3539 * doc/c-riscv.texi (relocation modifiers): Add documentation.
3540 (RISC-V-Formats): Update the section name from "Instruction Formats"
3541 to "RISC-V Instruction Formats".
3543 2020-03-04 Alexandre Oliva <oliva@adacore.com>
3545 * config/tc-arm.c (md_apply_fix): Warn if a PC-relative load is
3546 detected in a section which does not have at least 4 byte
3548 * testsuite/gas/arm/armv8-ar-it-bad.s: Add alignment directive.
3549 * testsuite/gas/arm/ldr-t.s: Likewise.
3550 * testsuite/gas/arm/sp-pc-usage-t.s: Likewise.
3551 * testsuite/gas/arm/sp-pc-usage-t.d: Finish test at end of
3552 disassembly, ignoring any NOPs that may have been inserted because
3553 of section alignment.
3554 * testsuite/gas/arm/ldr-t.d: Likewise.
3556 2020-03-04 Jan Beulich <jbeulich@suse.com>
3558 * config/tc-i386.c (cpu_arch): Add .sev_es entry.
3559 * doc/c-i386.texi: Mention sev_es.
3560 * testsuite/gas/i386/arch-13.s: Add SEV-ES case.
3561 * testsuite/gas/i386/arch-13.d: Extend -march=. Adjust
3563 * testsuite/gas/i386/arch-13-znver1.d,
3564 testsuite/gas/i386/arch-13-znver2.d: Extend -march=.
3566 2020-03-03 H.J. Lu <hongjiu.lu@intel.com>
3568 * config/tc-i386.c (match_template): Replace ignoresize and
3569 defaultsize with mnemonicsize.
3570 (process_suffix): Likewise.
3572 2020-03-03 Sergey Belyashov <sergey.belyashov@gmail.com>
3575 * config/tc-z80.c (emit_ld_rr_m): Fix invalid compilation of
3576 instruction LD IY,(HL).
3577 * testsuite/gas/z80/ez80_adl_all.d: Update expected disassembly.
3578 * testsuite/gas/z80/ez80_adl_all.s: Add tests of the instruction.
3579 * testsuite/gas/z80/ez80_z80_all.d: Update expected disassembly.
3580 * testsuite/gas/z80/ez80_z80_all.s: Add tests of the instruction.
3582 2020-03-03 H.J. Lu <hongjiu.lu@intel.com>
3585 * testsuite/gas/i386/i386.exp: Run x86-64-default-suffix and
3586 x86-64-default-suffix-avx.
3587 * testsuite/gas/i386/noreg64.s: Remove cvtsi2sd, cvtsi2ss,
3588 vcvtsi2sd, vcvtsi2ss, vcvtusi2sd and vcvtusi2ss entries.
3589 * testsuite/gas/i386/noreg64.d: Updated.
3590 * testsuite/gas/i386/noreg64.l: Likewise.
3591 * testsuite/gas/i386/x86-64-default-suffix-avx.d: New file.
3592 * testsuite/gas/i386/x86-64-default-suffix.d: Likewise.
3593 * testsuite/gas/i386/x86-64-default-suffix.s: Likewise.
3595 2020-03-03 Sergey Belyashov <sergey.belyashov@gmail.com>
3598 * config/tc-z80.c (contains_register): Prevent an illegal memory
3599 access when checking an expression for a register name.
3601 2020-03-03 Alan Modra <amodra@gmail.com>
3603 * config/obj-coff.h: Remove vestiges of coff-m68k and pe-mips
3606 2020-03-02 Alan Modra <amodra@gmail.com>
3608 * config/tc-m32r.c (md_begin): Set SEC_SMALL_DATA on .scommon section.
3609 * config/tc-mips.c (s_change_sec): Set SEC_SMALL_DATA for .sdata
3611 * config/tc-score.c: Delete !BFD_ASSEMBLER code throughout.
3612 (s3_s_change_sec): Set SEC_SMALL_DATA for .sbss section.
3613 (s3_s_score_lcomm): Likewise.
3614 * config/tc-score7.c: Similarly.
3615 * read.c (bss_alloc): Set SEC_SMALL_DATA for .sbss section.
3617 2020-02-28 YunQiang Su <syq@debian.org>
3620 * config/tc-mips.c (fix_loongson3_llsc): Compare label value
3621 to handle multi-labels.
3622 (has_label_name): New.
3624 2020-02-26 Matthew Malcomson <matthew.malcomson@arm.com>
3626 * config/tc-arm.c (enum pred_instruction_type): Remove
3627 NEUTRAL_IT_NO_VPT_INSN predication type.
3628 (cxn_handle_predication): Modify to require condition suffixes.
3629 (handle_pred_state): Remove NEUTRAL_IT_NO_VPT_INSN cases.
3630 * testsuite/gas/arm/cde-scalar.s: Update test.
3631 * testsuite/gas/arm/cde-warnings.l: Update test.
3632 * testsuite/gas/arm/cde-warnings.s: Update test.
3634 2020-02-26 Alan Modra <amodra@gmail.com>
3636 * config/tc-arm.c (reg_expected_msgs[REG_TYPE_RNB]): Don't use
3637 N_() on empty string.
3639 2020-02-26 Alan Modra <amodra@gmail.com>
3641 * read.c (read_a_source_file): Call strncpy with length one
3642 less than size of original_case_string.
3644 2020-02-26 Alan Modra <amodra@gmail.com>
3646 * config/obj-elf.c: Indent labels correctly.
3647 * config/obj-macho.c: Likewise.
3648 * config/tc-aarch64.c: Likewise.
3649 * config/tc-alpha.c: Likewise.
3650 * config/tc-arm.c: Likewise.
3651 * config/tc-cr16.c: Likewise.
3652 * config/tc-crx.c: Likewise.
3653 * config/tc-frv.c: Likewise.
3654 * config/tc-i386-intel.c: Likewise.
3655 * config/tc-i386.c: Likewise.
3656 * config/tc-ia64.c: Likewise.
3657 * config/tc-mn10200.c: Likewise.
3658 * config/tc-mn10300.c: Likewise.
3659 * config/tc-nds32.c: Likewise.
3660 * config/tc-riscv.c: Likewise.
3661 * config/tc-s12z.c: Likewise.
3662 * config/tc-xtensa.c: Likewise.
3663 * config/tc-z80.c: Likewise.
3665 * symbols.c: Likewise.
3666 * write.c: Likewise.
3668 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
3670 * config/tc-riscv.c (riscv_ip): New boolean insn_with_csr to indicate
3671 we are assembling instruction with CSR. Call riscv_csr_read_only_check
3672 after parsing all arguments.
3673 (enum csr_insn_type): New enum is used to classify the CSR instruction.
3674 (riscv_csr_insn_type, riscv_csr_read_only_check): New functions. These
3675 are used to check if we write a read-only CSR by the CSR instruction.
3676 * testsuite/gas/riscv/priv-reg-fail-read-only-01.s: New testcase. Test
3677 all CSR for the read-only CSR checking.
3678 * testsuite/gas/riscv/priv-reg-fail-read-only-01.d: Likewise.
3679 * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
3680 * testsuite/gas/riscv/priv-reg-fail-read-only-02.s: New testcase. Test
3681 all CSR instructions for the read-only CSR checking.
3682 * testsuite/gas/riscv/priv-reg-fail-read-only-02.d: Likewise.
3683 * testsuite/gas/riscv/priv-reg-fail-read-only-02.l: Likewise.
3685 * config/tc-riscv.c (struct riscv_set_options): New field csr_check.
3686 (riscv_opts): Initialize it.
3687 (reg_lookup_internal): Check the `riscv_opts.csr_check`
3688 before doing the CSR checking.
3689 (enum options): Add OPTION_CSR_CHECK and OPTION_NO_CSR_CHECK.
3690 (md_longopts): Add mcsr-check and mno-csr-check.
3691 (md_parse_option): Handle new enum option values.
3692 (s_riscv_option): Handle new long options.
3693 * doc/c-riscv.texi: Add description for the new .option and assembler
3695 * testsuite/gas/riscv/priv-reg-fail-fext.d: Add `-mcsr-check` to enable
3697 * testsuite/gas/riscv/priv-reg-fail-rv32-only.d: Likewise.
3699 * config/tc-riscv.c (csr_extra_hash): New.
3700 (enum riscv_csr_class): New enum. Used to decide
3701 whether or not this CSR is legal in the current ISA string.
3702 (struct riscv_csr_extra): New structure to hold all extra information
3704 (riscv_init_csr_hashes): New. According to the DECLARE_CSR and
3705 DECLARE_CSR_ALIAS, insert CSR extra information into csr_extra_hash.
3706 Call hash_reg_name to insert CSR address into reg_names_hash.
3707 (reg_csr_lookup_internal, riscv_csr_class_check): New functions.
3708 Decide whether the CSR is valid according to the csr_extra_hash.
3709 (reg_lookup_internal): Call reg_csr_lookup_internal for CSRs.
3710 (init_opcode_hash): Update 'if (hash_error != NULL)' as hash_error is
3711 not a boolean. This is same as riscv_init_csr_hash, so keep the
3713 (md_begin): Call riscv_init_csr_hashes for each DECLARE_CSR.
3714 * testsuite/gas/riscv/csr-dw-regnums.d: Add -march=rv32if option.
3715 * testsuite/gas/riscv/priv-reg.d: Add f-ext by -march option.
3716 * testsuite/gas/riscv/priv-reg-fail-fext.d: New testcase. The source
3717 file is `priv-reg.s`, and the ISA is rv32i without f-ext, so the
3718 f-ext CSR are not allowed.
3719 * testsuite/gas/riscv/priv-reg-fail-fext.l: Likewise.
3720 * testsuite/gas/riscv/priv-reg-fail-rv32-only.d: New testcase. The
3721 source file is `priv-reg.s`, and the ISA is rv64if, so the
3722 rv32-only CSR are not allowed.
3723 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
3725 2020-02-21 Alan Modra <amodra@gmail.com>
3727 * config/tc-pdp11.c (md_apply_fix): Handle BFD_RELOC_32.
3728 (tc_gen_reloc): Only give a BAD_CASE assertion on pcrel relocs.
3730 2020-02-21 Alan Modra <amodra@gmail.com>
3733 * config/obj-aout.c (obj_aout_frob_file_before_fix): Don't loop
3734 on section size adjustment, instead perform another write if
3735 exec header size is larger than section size.
3737 2020-02-19 Nelson Chu <nelson.chu@sifive.com>
3739 * doc/c-riscv.texi: Add the doc entries for -march-attr/
3740 -mno-arch-attr command line options.
3742 2020-02-19 Nelson Chu <nelson.chu@sifive.com>
3744 * testsuite/gas/riscv/c-add-addi.d: New testcase.
3745 * testsuite/gas/riscv/c-add-addi.s: Likewise.
3747 2020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
3750 * config/tc-z80.c (md_parse_option): Do not use an underscore
3751 prefix for local labels in SDCC compatability mode.
3752 (z80_start_line_hook): Remove SDCC dollar label support.
3753 * testsuite/gas/z80/sdcc.d: Update expected disassembly.
3754 * testsuite/gas/z80/sdcc.s: Likewise.
3756 2020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
3759 * config/tc-z80.c: Add -march option.
3760 * doc/as.texi: Update Z80 documentation.
3761 * doc/c-z80.texi: Likewise.
3762 * testsuite/gas/z80/ez80_adl_all.d: Update command line.
3763 * testsuite/gas/z80/ez80_adl_suf.d: Likewise.
3764 * testsuite/gas/z80/ez80_pref_dis.d: Likewise.
3765 * testsuite/gas/z80/ez80_z80_all.d: Likewise.
3766 * testsuite/gas/z80/ez80_z80_suf.d: Likewise.
3767 * testsuite/gas/z80/gbz80_all.d: Likewise.
3768 * testsuite/gas/z80/r800_extra.d: Likewise.
3769 * testsuite/gas/z80/r800_ii8.d: Likewise.
3770 * testsuite/gas/z80/r800_z80_doc.d: Likewise.
3771 * testsuite/gas/z80/sdcc.d: Likewise.
3772 * testsuite/gas/z80/z180.d: Likewise.
3773 * testsuite/gas/z80/z180_z80_doc.d: Likewise.
3774 * testsuite/gas/z80/z80_doc.d: Likewise.
3775 * testsuite/gas/z80/z80_ii8.d: Likewise.
3776 * testsuite/gas/z80/z80_in_f_c.d: Likewise.
3777 * testsuite/gas/z80/z80_op_ii_ld.d: Likewise.
3778 * testsuite/gas/z80/z80_out_c_0.d: Likewise.
3779 * testsuite/gas/z80/z80_sli.d: Likewise.
3780 * testsuite/gas/z80/z80n_all.d: Likewise.
3781 * testsuite/gas/z80/z80n_reloc.d: Likewise.
3783 2020-02-19 H.J. Lu <hongjiu.lu@intel.com>
3785 * config/tc-i386.c (output_insn): Mark cvtpi2ps and cvtpi2pd
3786 with GNU_PROPERTY_X86_FEATURE_2_MMX.
3787 * testsuite/gas/i386/i386.exp: Run property-3 and
3789 * testsuite/gas/i386/property-3.d: New file.
3790 * testsuite/gas/i386/property-3.s: Likewise.
3791 * testsuite/gas/i386/x86-64-property-3.d: Likewise.
3793 2020-02-17 H.J. Lu <hongjiu.lu@intel.com>
3795 * config/tc-i386.c (cpu_arch): Add .popcnt.
3796 * doc/c-i386.texi: Remove abm and .abm. Add popcnt and .popcnt.
3797 Add a tab before @samp{.sse4a}.
3799 2020-02-17 Jan Beulich <jbeulich@suse.com>
3801 * config/tc-i386.c (process_suffix): Don't try to guess a suffix
3802 for AddrPrefixOpReg templates. Combine the two pieces of
3803 addrprefixopreg handling. Reject 16-bit address reg in 64-bit
3806 2020-02-17 Jan Beulich <jbeulich@suse.com>
3809 * config/tc-i386.c (md_assemble): Also suppress operand
3810 swapping for MONITOR{,X} and MWAIT{,X}.
3811 * testsuite/gas/i386/sse3.s, testsuite/gas/i386/x86-64-sse3.s:
3812 Add Intel syntax monitor/mwait tests.
3813 * testsuite/gas/i386/sse3.d, testsuite/gas/i386/x86-64-sse3.d:
3814 Adjust expectations.
3815 *testsuite/gas/i386/sse3-intel.d,
3816 testsuite/gas/i386/x86-64-sse3-intel.d: New.
3817 * testsuite/gas/i386/i386.exp: Run new tests.
3819 2020-02-17 Jan Beulich <jbeulich@suse.com>
3822 * config/tc-i386.c (process_suffix): Re-work Intel-syntax
3823 [XYZ]MMWord memory operand ambiguity recognition logic (largely
3825 * testsuite/gas/i386/avx512dq-inval.s: Add vcvtqq2ps/vcvtuqq2ps
3827 * testsuite/gas/i386/inval-avx512f.s: Also test vcvtneps2bf16.
3828 * testsuite/gas/i386/avx512dq-inval.l,
3829 testsuite/gas/i386/inval-avx.l,
3830 testsuite/gas/i386/inval-avx512f.l: Adjust expectations.
3831 * testsuite/gas/i386/avx512vl-ambig.s,
3832 testsuite/gas/i386/avx512vl-ambig.l: New.
3833 * testsuite/gas/i386/i386.exp: Run new test.
3835 2020-02-16 H.J. Lu <hongjiu.lu@intel.com>
3837 * config/tc-i386.c (cpu_arch): Add .sse4a and nosse4a. Restore
3839 * doc/c-i386.texi: Document sse4a and nosse4a.
3841 2020-02-14 H.J. Lu <hongjiu.lu@intel.com>
3843 * doc/c-i386.texi: Remove the old movsx and movzx documentation
3846 2020-02-14 Jan Beulich <jbeulich@suse.com>
3849 * config/tc-i386.c (md_assemble): Move movsx/movzx special
3851 (process_suffix): ... here. Consider just the first operand
3853 (check_long_reg): Drop opcode 0x63 special case again.
3854 * testsuite/gas/i386/i386.s, testsuite/gas/i386/iamcu-1.s,
3855 testsuite/gas/i386/ilp32/x86-64.s, testsuite/gas/i386/x86_64.s:
3856 Move ambiguous operand size tests ...
3857 * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
3858 testsuite/gas/i386/noreg64.s: ... here.
3859 * testsuite/gas/i386/i386.d, testsuite/gas/i386/i386-intel.d
3860 testsuite/gas/i386/iamcu-1.d, testsuite/gas/i386/ilp32/x86-64.d,
3861 testsuite/gas/i386/k1om.d, testsuite/gas/i386/l1om.d,
3862 testsuite/gas/i386/movx16.l, testsuite/gas/i386/movx32.l,
3863 testsuite/gas/i386/movx64.l, testsuite/gas/i386/noreg16.d,
3864 testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg64.d,
3865 testsuite/gas/i386/x86-64-movsxd.d,
3866 testsuite/gas/i386/x86-64-movsxd-intel.d,
3867 testsuite/gas/i386/x86_64.d, testsuite/gas/i386/x86_64-intel.d:
3868 Adjust expectations.
3869 * testsuite/gas/i386/movx16.s, testsuite/gas/i386/movx16.l,
3870 testsuite/gas/i386/movx32.s, testsuite/gas/i386/movx32.l,
3871 testsuite/gas/i386/movx64.s, testsuite/gas/i386/movx64.l: New.
3872 * testsuite/gas/i386/i386.exp: Run new tests.
3874 2020-02-14 Jan Beulich <jbeulich@suse.com>
3876 * config/tc-i386.c (process_operands): Also skip segment
3877 override prefix emission if it matches an already present one.
3878 * testsuite/gas/i386/prefix32.s: Add double segment override
3880 * testsuite/gas/i386/prefix32.l: Adjust expectations.
3882 2020-02-14 Jan Beulich <jbeulich@suse.com>
3884 * config/tc-i386.c (process_operands): Drop ineffectual segment
3885 overrides when optimizing.
3886 * testsuite/gas/i386/lea-optimize.d: New.
3887 * testsuite/gas/i386/i386.exp: Run new test.
3889 2020-02-14 Jan Beulich <jbeulich@suse.com>
3891 * config/tc-i386.c (process_operands): Also check insn prefix
3892 for ineffectual segment override warning. Don't cover possible
3893 VEX/EVEX encoded insns there.
3894 * testsuite/gas/i386/lea.s, testsuite/gas/i386/lea.d,
3895 testsuite/gas/i386/lea.e: New.
3896 * testsuite/gas/i386/i386.exp: Run new test.
3898 2020-02-14 H.J. Lu <hongjiu.lu@intel.com>
3901 * doc/c-i386.texi: Document movsx, movsxd and movzx for AT&T
3904 2020-02-13 Fangrui Song <maskray@google.com>
3905 H.J. Lu <hongjiu.lu@intel.com>
3908 * config/tc-i386.c (tc_i386_fix_adjustable): Don't check
3909 BFD_RELOC_386_PLT32 nor BFD_RELOC_X86_64_PLT32.
3910 * testsuite/gas/i386/i386.exp: Run relax-5 and x86-64-relax-4.
3911 * testsuite/gas/i386/relax-5.d: New file.
3912 * testsuite/gas/i386/relax-5.s: Likewise.
3913 * testsuite/gas/i386/x86-64-relax-4.d: Likewise.
3914 * testsuite/gas/i386/x86-64-relax-4.s: Likewise.
3916 2020-02-13 Jan Beulich <jbeulich@suse.com>
3918 * config/tc-i386.c (cpu_noarch): Use CPU_ANY_SSE4_FLAGS in
3921 2020-02-12 Jan Beulich <jbeulich@suse.com>
3923 * config/tc-i386.c (avx512): New (at file scope), moved from
3924 (check_VecOperands): ... here.
3925 (process_suffix): Add [XYZ]MMword operand size handling.
3926 * testsuite/gas/i386/avx512dq-inval.s: Add VFPCLASS tests.
3927 * testsuite/gas/i386/noavx512-2.s: Add Intel syntax VFPCLASS
3929 * testsuite/gas/i386/avx512dq-inval.l,
3930 testsuite/gas/i386/noavx512-2.l: Adjust expectations.
3932 2020-02-12 Jan Beulich <jbeulich@suse.com>
3935 * config/tc-i386.c (match_template): Apply AMD64 check to 64-bit
3937 * config/tc-i386-intel.c (i386_intel_operand): Also handle
3938 CALL/JMP in O_tbyte_ptr case.
3939 * doc/c-i386.texi: Mention far call and full pointer load ISA
3941 * testsuite/gas/i386/x86-64-branch-3.s,
3942 testsuite/gas/i386/x86-64-intel64.s: Add 64-bit far call cases.
3943 * testsuite/gas/i386/x86-64-branch-3.d,
3944 testsuite/gas/i386/x86-64-intel64.d: Adjust expectations.
3945 * testsuite/gas/i386/x86-64-branch-5.l,
3946 testsuite/gas/i386/x86-64-branch-5.s: New.
3947 * testsuite/gas/i386/i386.exp: Run new test.
3949 2020-02-12 Jan Beulich <jbeulich@suse.com>
3952 * config/tc-i386.c (REGISTER_WARNINGS): Delete.
3953 (check_byte_reg): Skip only source operand of CRC32. Drop Non-
3954 64-bit-only warning.
3955 (check_word_reg): Consistently error on mismatching register
3957 * testsuite/gas/i386/general.s: Replace dword GPR with word one
3958 for movw. Replace suffix / GPR for orb.
3959 * testsuite/gas/i386/inval.s: Add tests for movw with dword and
3960 byte GPRs as well as ones for inb/outb with a word accumulator.
3961 * testsuite/gas/i386/general.l, testsuite/gas/i386/intelbad.l,
3962 testsuite/gas/i386/inval.l: Adjust expectations.
3964 2020-02-12 Jan Beulich <jbeulich@suse.com>
3966 * config/tc-i386.c (operand_type_register_match): Also fall
3967 through initial two if()-s when the template allows for a GPR
3968 operand. Adjust comment.
3970 2020-02-11 Jan Beulich <jbeulich@suse.com>
3972 (struct _i386_insn): New field "short_form".
3973 (optimize_encoding): Drop setting of shortform field.
3974 (process_suffix): Set i.short_form. Replace shortform use.
3975 (process_operands): Replace shortform use.
3977 2020-02-11 Matthew Malcomson <matthew.malcomson@arm.com>
3979 * config/tc-arm.c (vcx_handle_register_arguments): Remove `for`
3980 loop initial declaration.
3982 2020-02-10 Matthew Malcomson <matthew.malcomson@arm.com>
3984 * config/tc-arm.c (NEON_MAX_TYPE_ELS): Increment to account for
3985 instructions that can have 5 arguments.
3986 (enum operand_parse_code): Add new operands.
3987 (parse_operands): Account for new operands.
3989 (enum neon_shape_el): Introduce P suffixes for coprocessor.
3990 (neon_select_shape): Account for P suffix.
3991 (LOW1): Move macro to global position.
3992 (HI4): Move macro to global position.
3993 (vcx_assign_vec_d): New.
3994 (vcx_assign_vec_m): New.
3995 (vcx_assign_vec_n): New.
3996 (enum vcx_reg_type): New.
3997 (vcx_get_reg_type): New.
3998 (vcx_size_pos): New.
4000 (vcx_handle_shape): New.
4001 (vcx_ensure_register_in_range): New.
4002 (vcx_handle_register_arguments): New.
4003 (vcx_handle_insn_block): New.
4004 (vcx_handle_common_checks): New.
4008 * testsuite/gas/arm/cde-missing-fp.d: New test.
4009 * testsuite/gas/arm/cde-missing-fp.l: New test.
4010 * testsuite/gas/arm/cde-missing-mve.d: New test.
4011 * testsuite/gas/arm/cde-missing-mve.l: New test.
4012 * testsuite/gas/arm/cde-mve-or-neon.d: New test.
4013 * testsuite/gas/arm/cde-mve-or-neon.s: New test.
4014 * testsuite/gas/arm/cde-mve.s: New test.
4015 * testsuite/gas/arm/cde-warnings.l:
4016 * testsuite/gas/arm/cde-warnings.s:
4017 * testsuite/gas/arm/cde.d:
4018 * testsuite/gas/arm/cde.s:
4020 2020-02-10 Stam Markianos-Wright <stam.markianos-wright@arm.com>
4021 Matthew Malcomson <matthew.malcomson@arm.com>
4023 * config/tc-arm.c (arm_ext_cde*): New feature sets for each
4024 CDE coprocessor that can be enabled.
4025 (enum pred_instruction_type): New pred type.
4026 (BAD_NO_VPT): New error message.
4027 (BAD_CDE): New error message.
4028 (BAD_CDE_COPROC): New error message.
4029 (enum operand_parse_code): Add new immediate operands.
4030 (parse_operands): Account for new immediate operands.
4031 (check_cde_operand): New.
4032 (cde_coproc_enabled): New.
4033 (cde_coproc_pos): New.
4034 (cde_handle_coproc): New.
4035 (cxn_handle_predication): New.
4036 (do_custom_instruction_1): New.
4037 (do_custom_instruction_2): New.
4038 (do_custom_instruction_3): New.
4051 (handle_pred_state): Define new IT block behaviour.
4052 (insns): Add newn CX*{,d}{,a} instructions.
4053 (CDE_EXTENSIONS,armv8m_main_ext_table,armv8_1m_main_ext_table):
4054 Define new cdecp extension strings.
4055 * doc/c-arm.texi: Document new cdecp extension arguments.
4056 * testsuite/gas/arm/cde-scalar.d: New test.
4057 * testsuite/gas/arm/cde-scalar.s: New test.
4058 * testsuite/gas/arm/cde-warnings.d: New test.
4059 * testsuite/gas/arm/cde-warnings.l: New test.
4060 * testsuite/gas/arm/cde-warnings.s: New test.
4061 * testsuite/gas/arm/cde.d: New test.
4062 * testsuite/gas/arm/cde.s: New test.
4064 2020-02-10 H.J. Lu <hongjiu.lu@intel.com>
4067 * config/tc-i386.c (intel64): Renamed to ...
4069 (match_template): Accept Intel64 only instruction by default.
4070 (i386_displacement): Updated.
4071 (md_parse_option): Updated.
4072 * c-i386.texi: Update -mamd64/-mintel64 documentation.
4073 * testsuite/gas/i386/i386.exp: Run x86-64-sysenter. Pass
4074 -mamd64 to x86-64-sysenter-amd.
4075 * testsuite/gas/i386/x86-64-sysenter.d: New file.
4077 2020-02-10 Alan Modra <amodra@gmail.com>
4079 * config/obj-elf.c (obj_elf_change_section): Error for section
4080 type, attr or entsize changes in assembly.
4081 * testsuite/gas/elf/elf.exp: Pass -Z to gas for section5 test.
4082 * testsuite/gas/elf/section5.l: Update.
4084 2020-02-10 Alan Modra <amodra@gmail.com>
4086 * output-file.c (output_file_close): Do a normal close when
4087 flag_always_generate_output.
4088 * write.c (write_object_file): Don't stop output when
4089 flag_always_generate_output.
4091 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
4094 * config/tc-z80.c: Add -gbz80 command line option to generate code
4095 for the GameBoy Z80. Add support for generating DWARF.
4096 * config/tc-z80.h: Add support for DWARF debug information
4098 * doc/c-z80.texi: Document new command line option.
4099 * testsuite/gas/z80/gbz80_all.d: New file.
4100 * testsuite/gas/z80/gbz80_all.s: New file.
4101 * testsuite/gas/z80/z80.exp: Run the new tests.
4102 * testsuite/gas/z80/z80n_all.d: New file.
4103 * testsuite/gas/z80/z80n_all.s: New file.
4104 * testsuite/gas/z80/z80n_reloc.d: New file.
4106 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
4109 * config/obj-elf.c (get_section): Also check
4110 linked_to_symbol_name.
4111 (obj_elf_change_section): Also set map_head.linked_to_symbol_name.
4112 (obj_elf_parse_section_letters): Handle the 'o' flag.
4113 (build_group_lists): Renamed to ...
4114 (build_additional_section_info): This. Set elf_linked_to_section
4115 from map_head.linked_to_symbol_name.
4116 (elf_adjust_symtab): Updated.
4117 * config/obj-elf.h (elf_section_match): Add linked_to_symbol_name.
4118 * doc/as.texi: Document the 'o' flag.
4119 * testsuite/gas/elf/elf.exp: Run PR gas/25381 tests.
4120 * testsuite/gas/elf/section18.d: New file.
4121 * testsuite/gas/elf/section18.s: Likewise.
4122 * testsuite/gas/elf/section19.d: Likewise.
4123 * testsuite/gas/elf/section19.s: Likewise.
4124 * testsuite/gas/elf/section20.d: Likewise.
4125 * testsuite/gas/elf/section20.s: Likewise.
4126 * testsuite/gas/elf/section21.d: Likewise.
4127 * testsuite/gas/elf/section21.l: Likewise.
4128 * testsuite/gas/elf/section21.s: Likewise.
4130 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
4132 * NEWS: Mention x86 assembler options to align branches for
4135 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
4137 * testsuite/gas/i386/i386.exp: Run unique and x86-64-unique
4138 only for ELF targets.
4139 * testsuite/gas/i386/unique.d: Don't xfail.
4140 * testsuite/gas/i386/x86-64-unique.d: Likewise.
4142 2020-02-06 Alan Modra <amodra@gmail.com>
4144 * testsuite/gas/i386/unique.d: xfail for non-elf targets.
4145 * testsuite/gas/i386/x86-64-unique.d: Likewise.
4147 2020-02-06 Alan Modra <amodra@gmail.com>
4149 * testsuite/gas/elf/section12a.d: Use supports_gnu_osabi in
4150 xfail, and rename test.
4151 * testsuite/gas/elf/section12b.d: Likewise.
4152 * testsuite/gas/elf/section16a.d: Likewise.
4153 * testsuite/gas/elf/section16b.d: Likewise.
4155 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
4158 * config/obj-elf.c (section_match): Removed.
4159 (get_section): Also match SEC_ASSEMBLER_SECTION_ID and
4161 (obj_elf_change_section): Replace info and group_name arguments
4162 with match_p. Also update the section ID and flags from match_p.
4163 (obj_elf_section): Handle "unique,N". Update call to
4164 obj_elf_change_section.
4165 * config/obj-elf.h (elf_section_match): New.
4166 (obj_elf_change_section): Updated.
4167 * config/tc-arm.c (start_unwind_section): Update call to
4168 obj_elf_change_section.
4169 * config/tc-ia64.c (obj_elf_vms_common): Likewise.
4170 * config/tc-microblaze.c (microblaze_s_data): Likewise.
4171 (microblaze_s_sdata): Likewise.
4172 (microblaze_s_rdata): Likewise.
4173 (microblaze_s_bss): Likewise.
4174 * config/tc-mips.c (s_change_section): Likewise.
4175 * config/tc-msp430.c (msp430_profiler): Likewise.
4176 * config/tc-rx.c (parse_rx_section): Likewise.
4177 * config/tc-tic6x.c (tic6x_start_unwind_section): Likewise.
4178 * doc/as.texi: Document "unique,N" in .section directive.
4179 * testsuite/gas/elf/elf.exp: Run "unique,N" tests.
4180 * testsuite/gas/elf/section15.d: New file.
4181 * testsuite/gas/elf/section15.s: Likewise.
4182 * testsuite/gas/elf/section16.s: Likewise.
4183 * testsuite/gas/elf/section16a.d: Likewise.
4184 * testsuite/gas/elf/section16b.d: Likewise.
4185 * testsuite/gas/elf/section17.d: Likewise.
4186 * testsuite/gas/elf/section17.l: Likewise.
4187 * testsuite/gas/elf/section17.s: Likewise.
4188 * testsuite/gas/i386/unique.d: Likewise.
4189 * testsuite/gas/i386/unique.s: Likewise.
4190 * testsuite/gas/i386/x86-64-unique.d: Likewise.
4191 * testsuite/gas/i386/i386.exp: Run unique and x86-64-unique.
4193 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
4195 * testsuite/gas/elf/section13.s: Replace @nobits with %nobits.
4197 2020-02-01 Anthony Green <green@moxielogic.com>
4199 * config/tc-moxie.c (md_begin): Don't force big-endian mode.
4201 2020-01-31 Sandra Loosemore <sandra@codesourcery.com>
4203 * config/tc-nios2.c (nios2_cons): Handle %gotoff as well as
4206 2020-01-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
4209 * config/tc-arm.c (armv8m_main_ext_table): Refactored +dsp adding.
4210 (armv8_1m_main_ext_table): Refactored +dsp adding and enabled dsp for
4212 * testsuite/gas/arm/mve_dsp.d: New test.
4214 2020-01-31 Nick Clifton <nickc@redhat.com>
4216 * config/tc-s390.c (s390_elf_suffix): Return ELF_SUFFIX_NONE
4217 rather than BFD_RELOC_NONE.
4219 2020-01-31 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4221 * config/tc-arm.c (fldmias): Moved inside "THUMB_VARIANT & arm_ext_v6t2"
4222 to support VLDMIA instruction for MVE.
4223 (fldmdbs): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VLDMDB
4224 instruction for MVE.
4225 (fstmias): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VSTMIA
4226 instruction for MVE.
4227 (fstmdbs): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VSTMDB
4228 instruction for MVE.
4229 * testsuite/gas/arm/mve-ldst.d: New test.
4230 * testsuite/gas/arm/mve-ldst.s: Likewise.
4232 2020-01-31 Nick Clifton <nickc@redhat.com>
4234 * po/fr.po: Updated French translation.
4235 * po/ru.po: Updated Russian translation.
4237 2020-01-31 Richard Sandiford <richard.sandiford@arm.com>
4239 * testsuite/gas/aarch64/sve-bfloat-movprfx.s: Use .h rather than
4241 * testsuite/gas/aarch64/sve-bfloat-movprfx.d: Update accordingly.
4242 * testsuite/gas/aarch64/sve-movprfx_28.d,
4243 * testsuite/gas/aarch64/sve-movprfx_28.l,
4244 * testsuite/gas/aarch64/sve-movprfx_28.s: New test.
4246 2020-01-30 Jan Beulich <jbeulich@suse.com>
4248 * config/tc-i386.c (output_disp): Tighten base_opcode check.
4249 * testsuite/gas/i386/got.s: Add LSL, MOVLPS, and BNDCN cases.
4250 * testsuite/gas/i386/got-no-relax.d, testsuite/gas/i386/got.d:
4251 Adjust expectations.
4253 2020-01-30 Jose E. Marchesi <jose.marchesi@oracle.com>
4255 * testsuite/gas/bpf/alu.d: Update expected opcode for `neg'.
4256 * testsuite/gas/bpf/alu-be.d: Likewise.
4257 * testsuite/gas/bpf/alu32.d: Likewise for `neg32'.
4258 * testsuite/gas/bpf/alu32-be.d: Likewise.
4260 2020-01-30 Jan Beulich <jbeulich@suse.com>
4262 * testsuite/gas/i386/x86-64-branch-2.s,
4263 testsuite/gas/i386/x86-64-branch-4.s,
4264 testsuite/gas/i386/x86-64-branch.s: Add RETW cases.
4265 * testsuite/gas/i386/ilp32/x86-64-branch.d,
4266 testsuite/gas/i386/x86-64-branch-2.d,
4267 testsuite/gas/i386/x86-64-branch-4.l,
4268 testsuite/gas/i386/x86-64-branch.d: Adjust expectations.
4270 2020-01-30 Jan Beulich <jbeulich@suse.com>
4272 * config/tc-i386.c (process_suffix): .
4273 testsuite/gas/i386/noreg64.s: Add IRET and LRET cases.
4274 testsuite/gas/i386/x86-64-opcode.s: Add suffix to IRET and LRET.
4276 testsuite/gas/i386/x86-64-suffix.s: Drop IRET case without
4278 testsuite/gas/i386/x86_64.s: Add RETF cases.
4279 * testsuite/gas/i386/k1om.d, testsuite/gas/i386/l1om.d,
4280 testsuite/gas/i386/noreg64.d, testsuite/gas/i386/noreg64.l,
4281 testsuite/gas/i386/x86-64-opcode.d,
4282 testsuite/gas/i386/x86-64-suffix-intel.d,
4283 testsuite/gas/i386/x86-64-suffix.d,
4284 testsuite/gas/i386/x86_64-intel.d
4285 testsuite/gas/i386/x86_64.d: Adjust expectations.
4286 * testsuite/gas/i386/x86-64-suffix.e,
4287 testsuite/gas/i386/x86_64.e: New.
4289 2020-01-30 Jan Beulich <jbeulich@suse.com>
4291 * config/tc-i386.c (process_suffix): Redo and move FLDENV et al
4294 2020-01-27 H.J. Lu <hongjiu.lu@intel.com>
4297 * config/tc-i386.c (check_long_reg): Also convert to QWORD for
4299 * doc/c-i386.texi: Add a node for AMD64 vs. Intel64 ISA
4300 differences. Document movslq and movsxd.
4301 * testsuite/gas/i386/i386.exp: Run PR binutils/25445 tests.
4302 * testsuite/gas/i386/x86-64-movsxd-intel.d: New file.
4303 * testsuite/gas/i386/x86-64-movsxd-intel64-intel.d: Likewise.
4304 * testsuite/gas/i386/x86-64-movsxd-intel64-inval.l: Likewise.
4305 * testsuite/gas/i386/x86-64-movsxd-intel64-inval.s: Likewise.
4306 * testsuite/gas/i386/x86-64-movsxd-intel64.d: Likewise.
4307 * testsuite/gas/i386/x86-64-movsxd-intel64.s: Likewise.
4308 * testsuite/gas/i386/x86-64-movsxd-inval.l: Likewise.
4309 * testsuite/gas/i386/x86-64-movsxd-inval.s: Likewise.
4310 * testsuite/gas/i386/x86-64-movsxd.d: Likewise.
4311 * testsuite/gas/i386/x86-64-movsxd.s: Likewise.
4313 2020-01-27 Alan Modra <amodra@gmail.com>
4315 * testsuite/gas/all/gas.exp: Replace case statements with switch
4317 * testsuite/gas/elf/elf.exp: Likewise.
4318 * testsuite/gas/macros/macros.exp: Likewise.
4319 * testsuite/lib/gas-defs.exp: Likewise.
4321 2020-01-27 Tamar Christina <tamar.christina@arm.com>
4324 * testsuite/gas/aarch64/armv8_4-a.d: Add cfinv.
4325 * testsuite/gas/aarch64/armv8_4-a.s: Likewise.
4327 2020-01-22 Maxim Blinov <maxim.blinov@embecosm.com>
4329 * testsuite/gas/riscv/march-ok-s.d: sx is no longer valid and
4330 s exts must be known, so rename *ok* to *fail*.
4331 * testsuite/gas/riscv/march-ok-sx.d: Likewise.
4332 * testsuite/gas/riscv/march-ok-s-with-version: Likewise.
4333 * testsuite/gas/riscv/march-fail-s.l: Expected error messages for
4335 * testsuite/gas/riscv/march-fail-sx.l: Likewise.
4336 * testsuite/gas/riscv/march-fail-sx-with-version.l: Likewise.
4338 2020-01-22 H.J. Lu <hongjiu.lu@intel.com>
4341 * config/tc-i386.c (check_long_reg): Always disallow double word
4342 suffix in mnemonic with word general register.
4343 * testsuite/gas/i386/general.s: Replace word general register
4344 with double word general register for movl.
4345 * testsuite/gas/i386/inval.s: Add tests for movl with word general
4347 * testsuite/gas/i386/general.l: Updated.
4348 * testsuite/gas/i386/inval.l: Likewise.
4350 2020-01-22 Alan Modra <amodra@gmail.com>
4352 * config/tc-ppc.c (parse_tls_arg): Handle tls arg for
4353 __tls_get_addr_desc and __tls_get_addr_opt.
4355 2020-01-21 Jan Beulich <jbeulich@suse.com>
4357 * testsuite/gas/i386/inval-crc32.s,
4358 testsuite/gas/i386/x86-64-inval-crc32.s: Add alignment directive.
4359 * testsuite/gas/i386/inval-crc32.l,
4360 testsuite/gas/i386/x86-64-inval-crc32.l: Adjust expectations.
4362 2020-01-21 Jan Beulich <jbeulich@suse.com>
4364 * config/tc-i386.c (process_suffix): Merge CRC32 handling into
4365 generic code path. Deal with No_lSuf being set in a template.
4366 * testsuite/gas/i386/inval-crc32.l,
4367 testsuite/gas/i386/x86-64-inval-crc32.l: Expect warning(s)
4368 instead of error(s) when operand size is ambiguous.
4369 * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
4370 testsuite/gas/i386/noreg64.s: Add CRC32 tests.
4371 * testsuite/gas/i386/noreg16.d, testsuite/gas/i386/noreg16.l,
4372 testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg32.l,
4373 testsuite/gas/i386/noreg64.d, testsuite/gas/i386/noreg64.l:
4374 Adjust expectations.
4376 2020-01-21 Jan Beulich <jbeulich@suse.com>
4378 * config/tc-i386.c (process_suffix): Drop SYSRET special case
4379 and an intel_syntax check. Re-write lack-of-suffix processing
4381 * doc/c-i386.texi: Document operand size defaults for suffix-
4382 less AT&T syntax insns.
4383 * testsuite/gas/i386/bundle.s, testsuite/gas/i386/lock-1.s,
4384 testsuite/gas/i386/opcode.s, testsuite/gas/i386/sse3.s,
4385 testsuite/gas/i386/x86-64-avx-scalar.s,
4386 testsuite/gas/i386/x86-64-avx.s,
4387 testsuite/gas/i386/x86-64-bundle.s,
4388 testsuite/gas/i386/x86-64-intel64.s,
4389 testsuite/gas/i386/x86-64-lock-1.s,
4390 testsuite/gas/i386/x86-64-opcode.s,
4391 testsuite/gas/i386/x86-64-sse2avx.s,
4392 testsuite/gas/i386/x86-64-sse3.s: Add missing suffixes.
4393 * testsuite/gas/i386/nops.s, testsuite/gas/i386/sse-noavx.s,
4394 testsuite/gas/i386/x86-64-nops.s,
4395 testsuite/gas/i386/x86-64-ptwrite.s,
4396 testsuite/gas/i386/x86-64-simd.s,
4397 testsuite/gas/i386/x86-64-sse-noavx.s,
4398 testsuite/gas/i386/x86-64-suffix.s: Drop bogus suffix-less
4400 * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
4401 testsuite/gas/i386/noreg64.s: Add further tests.
4402 * testsuite/gas/i386/ilp32/x86-64-nops.d,
4403 testsuite/gas/i386/nops.d, testsuite/gas/i386/noreg16.d,
4404 testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg64.d,
4405 testsuite/gas/i386/sse-noavx.d,
4406 testsuite/gas/i386/x86-64-intel64.d,
4407 testsuite/gas/i386/x86-64-nops.d,
4408 testsuite/gas/i386/x86-64-opcode.d,
4409 testsuite/gas/i386/x86-64-ptwrite-intel.d,
4410 testsuite/gas/i386/x86-64-ptwrite.d,
4411 testsuite/gas/i386/x86-64-simd-intel.d,
4412 testsuite/gas/i386/x86-64-simd-suffix.d,
4413 testsuite/gas/i386/x86-64-simd.d,
4414 testsuite/gas/i386/x86-64-sse-noavx.d
4415 testsuite/gas/i386/x86-64-suffix.d,
4416 testsuite/gas/i386/x86-64-suffix-intel.d: Adjust expectations.
4417 * testsuite/gas/i386/noreg16.l, testsuite/gas/i386/noreg32.l,
4418 testsuite/gas/i386/noreg64.l: New.
4419 * testsuite/gas/i386/i386.exp: Run new tests.
4421 2020-01-21 Jan Beulich <jbeulich@suse.com>
4423 * testsuite/gas/i386/avx512_bf16_vl.s,
4424 testsuite/gas/i386/x86-64-avx512_bf16_vl.s: Add broadcast forms
4425 of VCVTNEPS2BF16{X,Y}. Add operand-size less Intel syntax
4426 broadcast forms of VCVTNEPS2BF16.
4427 * testsuite/gas/i386/avx512_bf16_vl.d,
4428 testsuite/gas/i386/x86-64-avx512_bf16_vl.d: Adjust expectations.
4430 2020-01-20 Nick Clifton <nickc@redhat.com>
4432 * po/uk.po: Updated Ukranian translation.
4434 2020-01-20 H.J. Lu <hongjiu.lu@intel.com>
4437 * config/tc-i386.c (output_insn): Add a dummy REX_OPCODE prefix
4438 for lea with R_X86_64_GOTPC32_TLSDESC relocation when generating
4440 * testsuite/gas/i386/ilp32/x32-tls.d: Updated.
4441 * testsuite/gas/i386/ilp32/x32-tls.s: Add tests for lea with
4442 R_X86_64_GOTPC32_TLSDESC relocation.
4444 2020-01-18 Nick Clifton <nickc@redhat.com>
4446 * configure: Regenerate.
4447 * po/gas.pot: Regenerate.
4449 2020-01-18 Nick Clifton <nickc@redhat.com>
4451 Binutils 2.34 branch created.
4453 2020-01-17 H.J. Lu <hongjiu.lu@intel.com>
4455 * config/tc-i386.c (_i386_insn): Replace vex_encoding_vex2
4456 with vex_encoding_vex.
4457 (parse_insn): Likewise.
4458 * doc/c-i386.texi: Replace {vex2} with {vex}. Update {vex}
4459 and {vex3} documentation.
4460 * testsuite/gas/i386/pseudos.s: Replace 3 {vex2} tests with
4462 * testsuite/gas/i386/x86-64-pseudos.s: Likewise.
4464 2020-01-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
4467 * config/tc-arm.c (mve_ext, mve_fp_ext): Use CORE_HIGH.
4468 (armv8_1m_main_ext_table): Use CORE_HIGH for mve.
4469 * testsuite/arm/armv8_1-m-fpu-mve-1.s: New.
4470 * testsuite/arm/armv8_1-m-fpu-mve-1.d: New.
4471 * testsuite/arm/armv8_1-m-fpu-mve-2.s: New.
4472 * testsuite/arm/armv8_1-m-fpu-mve-2.d: New.
4474 2020-01-16 Jan Beulich <jbeulich@suse.com>
4476 * config/tc-i386.c (match_template): Drop found_cpu_match local
4479 2020-01-16 Jan Beulich <jbeulich@suse.com>
4481 * testsuite/gas/i386/avx512dq-inval.l,
4482 testsuite/gas/i386/avx512dq-inval.s: New.
4483 * testsuite/gas/i386/i386.exp: Run new test.
4485 2020-01-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4487 * config/tc-msp430.c (CHECK_RELOC_MSP430): Always generate 430X
4488 relocations when the target is 430X, except when extracting part of an
4490 (msp430_srcoperand): Adjust comment.
4491 Initialize the expp member of the msp430_operand_s struct as
4493 (msp430_dstoperand): Likewise.
4494 * testsuite/gas/msp430/msp430.exp: Run new test.
4495 * testsuite/gas/msp430/reloc-lo-430x.d: New test.
4496 * testsuite/gas/msp430/reloc-lo-430x.s: New test.
4498 2020-01-15 Alan Modra <amodra@gmail.com>
4500 * configure.tgt: Add sparc-*-freebsd case.
4502 2020-01-14 Lili Cui <lili.cui@intel.com>
4504 * testsuite/gas/i386/align-branch-1a.d: Updated for Darwin.
4505 * testsuite/gas/i386/align-branch-1b.d: Likewise.
4506 * testsuite/gas/i386/align-branch-1c.d: Likewise.
4507 * testsuite/gas/i386/align-branch-1d.d: Likewise.
4508 * testsuite/gas/i386/align-branch-1e.d: Likewise.
4509 * testsuite/gas/i386/align-branch-1f.d: Likewise.
4510 * testsuite/gas/i386/align-branch-1g.d: Likewise.
4511 * testsuite/gas/i386/align-branch-1h.d: Likewise.
4512 * testsuite/gas/i386/align-branch-1i.d: Likewise.
4513 * testsuite/gas/i386/align-branch-5.d: Likewise.
4514 * testsuite/gas/i386/x86-64-align-branch-1a.d: Likewise.
4515 * testsuite/gas/i386/x86-64-align-branch-1b.d: Likewise.
4516 * testsuite/gas/i386/x86-64-align-branch-1c.d: Likewise.
4517 * testsuite/gas/i386/x86-64-align-branch-1d.d: Likewise.
4518 * testsuite/gas/i386/x86-64-align-branch-1e.d: Likewise.
4519 * testsuite/gas/i386/x86-64-align-branch-1f.d: Likewise.
4520 * testsuite/gas/i386/x86-64-align-branch-1g.d: Likewise.
4521 * testsuite/gas/i386/x86-64-align-branch-1h.d: Likewise.
4522 * testsuite/gas/i386/x86-64-align-branch-1i.d: Likewise.
4523 * testsuite/gas/i386/x86-64-align-branch-5.d: Likewise.
4524 * testsuite/gas/i386/i386.exp: Skip x86-64-align-branch-2a,
4525 x86-64-align-branch-2b and x86-64-align-branch-2c on Darwin.
4527 2020-01-14 Sergey Belyashov <sergey.belyashov@gmail.com>
4530 * config/tc-z80.c: Add support for half precision, single
4531 precision and double precision floating point values.
4532 * config/tc-z80.h b/gas/config/tc-z80.h: Disable string escapes.
4533 * doc/as.texi: Add new z80 command line options.
4534 * doc/c-z80.texi: Document new z80 command line options.
4535 * testsuite/gas/z80/ez80_pref_dis.s: New test.
4536 * testsuite/gas/z80/ez80_pref_dis.d: New test driver.
4537 * testsuite/gas/z80/z80.exp: Run the new test.
4538 * testsuite/gas/z80/fp_math48.d: Use correct command line option.
4539 * testsuite/gas/z80/fp_zeda32.d: Likewise.
4540 * testsuite/gas/z80/strings.d: Update expected output.
4542 2020-01-13 Matthew Malcomson <matthew.malcomson@arm.com>
4544 * config/tc-aarch64.c (f64mm, f32mm): Add sve as a feature
4547 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
4549 * config/tc-arc.c (arc_select_cpu): Re-init the bfd if we change
4551 * config/tc-arc.h: Add header if/defs.
4552 * testsuite/gas/arc/pseudos.d: Improve matching pattern.
4554 2020-01-13 Alan Modra <amodra@gmail.com>
4556 * testsuite/gas/wasm32/allinsn.d: Update expected output.
4558 2020-01-13 Alan Modra <amodra@gmail.com>
4560 * config/tc-tic4x.c (tic4x_operands_match): Correct tic3x trap
4563 2020-01-10 Alan Modra <amodra@gmail.com>
4565 * testsuite/gas/elf/pr14891.s: Don't start directives in first column.
4566 * testsuite/gas/elf/pr21661.d: Don't run on hpux.
4568 2020-01-03 Sergey Belyashov <sergey.belyashov@gmail.com>
4571 * config/tc-z80.c (emit_ld_m_rr): Use integer types when checking
4573 (emit_ld_r_r): Likewise.
4574 (emit_ld_rr_m): Likewise.
4575 (emit_ld_rr_nn): Likewise.
4577 2020-01-09 Jan Beulich <jbeulich@suse.com>
4579 * config/tc-i386.c (optimize_encoding): Add
4580 is_any_vex_encoding() invocations. Drop respective
4581 i.tm.extension_opcode == None checks.
4583 2020-01-09 Jan Beulich <jbeulich@suse.com>
4585 * config/tc-i386.c (md_assemble): Check RegRex is clear during
4586 REX transformations. Correct comment indentation.
4588 2020-01-09 Jan Beulich <jbeulich@suse.com>
4590 * config/tc-i386.c (optimize_encoding): Generalize register
4591 transformation for TEST optimization.
4593 2020-01-09 Jan Beulich <jbeulich@suse.com>
4595 * testsuite/gas/i386/x86-64-sysenter-amd.s,
4596 testsuite/gas/i386/x86-64-sysenter-amd.d,
4597 testsuite/gas/i386/x86-64-sysenter-amd.l,
4598 testsuite/gas/i386/x86-64-sysenter-intel.d,
4599 testsuite/gas/i386/x86-64-sysenter-mixed.d: New.
4600 * testsuite/gas/i386/i386.exp: Run new tests.
4602 2020-01-08 Nick Clifton <nickc@redhat.com>
4605 * doc/as.texi (Align): Document the fact that all arguments can be
4608 (P2align): Likewise.
4610 2020-01-08 Nick Clifton <nickc@redhat.com>
4613 * config/obj-elf.c (obj_elf_section): Fail if the section name is
4614 already defined as a different symbol type.
4615 * testsuite/gas/elf/pr14891.s: New test source file.
4616 * testsuite/gas/elf/pr14891.d: New test driver.
4617 * testsuite/gas/elf/pr14891.s: New test expected error output.
4618 * testsuite/gas/elf/elf.exp: Run the new test.
4620 2020-01-08 Alan Modra <amodra@gmail.com>
4622 * config/tc-z8k.c (md_begin): Make idx unsigned.
4623 (get_specific): Likewise for this_index.
4625 2020-01-07 Claudiu Zissulescu <claziss@synopsys.com>
4627 * onfig/tc-arc.c (parse_reloc_symbol): New function.
4628 (tokenize_arguments): Clean up, use parse_reloc_symbol function.
4629 (md_operand): Set X_md to absent.
4630 (arc_parse_name): Check for X_md.
4632 2020-01-03 Sergey Belyashov <sergey.belyashov@gmail.com>
4635 * as.h (TC_STRING_ESCAPES): Provide a default definition.
4636 * app.c (do_scrub_chars): Use TC_STRING_ESCAPES instead of
4638 * read.c (next_char_of_string): Likewise.
4639 * config/tc-ppc.h (TC_STRING_ESCAPES): Define.
4640 * config/tc-z80.h (TC_STRING_ESCAPES): Define.
4642 2020-01-03 Nick Clifton <nickc@redhat.com>
4644 * po/sv.po: Updated Swedish translation.
4646 2020-01-03 Jan Beulich <jbeulich@suse.com>
4648 * testsuite/gas/aarch64/f64mm.s: Scale index of LD1RO{H,W,D}.
4649 * testsuite/gas/aarch64/f64mm.d: Adjust expectations.
4651 2020-01-03 Jan Beulich <jbeulich@suse.com>
4653 * testsuite/gas/aarch64/i8mm.s: Add 128-bit form tests for
4654 by-element usdot. Add 64-bit form tests for by-element sudot.
4655 * testsuite/gas/aarch64/i8mm.d: Adjust expectations.
4657 2020-01-03 Jan Beulich <jbeulich@suse.com>
4659 * testsuite/gas/aarch64/f64mm.s: Drop 'i' from uzip<n>.
4660 * testsuite/gas/aarch64/f64mm.d: Adjust expectations.
4662 2020-01-03 Jan Beulich <jbeulich@suse.com>
4664 * testsuite/gas/aarch64/f64mm.d,
4665 testsuite/gas/aarch64/sve-movprfx-mm.d: Adjust expectations.
4667 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
4669 * config/tc-z80.c: Add new architectures: Z180 and eZ80. Add
4670 support for assembler code generated by SDCC. Add new relocation
4671 types. Add z80-elf target support.
4672 * config/tc-z80.h: Add z80-elf target support. Enable dollar local
4673 labels. Local labels starts from ".L".
4674 * NEWS: Mention the new support.
4675 * testsuite/gas/all/fwdexp.d: Fix failure due to symbol conflict.
4676 * testsuite/gas/all/fwdexp.s: Likewise.
4677 * testsuite/gas/all/cond.l: Likewise.
4678 * testsuite/gas/all/cond.s: Likewise.
4679 * testsuite/gas/all/fwdexp.d: Likewise.
4680 * testsuite/gas/all/fwdexp.s: Likewise.
4681 * testsuite/gas/elf/section2.e-mips: Likewise.
4682 * testsuite/gas/elf/section2.l: Likewise.
4683 * testsuite/gas/elf/section2.s: Likewise.
4684 * testsuite/gas/macros/app1.d: Likewise.
4685 * testsuite/gas/macros/app1.s: Likewise.
4686 * testsuite/gas/macros/app2.d: Likewise.
4687 * testsuite/gas/macros/app2.s: Likewise.
4688 * testsuite/gas/macros/app3.d: Likewise.
4689 * testsuite/gas/macros/app3.s: Likewise.
4690 * testsuite/gas/macros/app4.d: Likewise.
4691 * testsuite/gas/macros/app4.s: Likewise.
4692 * testsuite/gas/macros/app4b.s: Likewise.
4693 * testsuite/gas/z80/suffix.d: Fix failure on ELF target.
4694 * testsuite/gas/z80/z80.exp: Add new tests
4695 * testsuite/gas/z80/dollar.d: New file.
4696 * testsuite/gas/z80/dollar.s: New file.
4697 * testsuite/gas/z80/ez80_adl_all.d: New file.
4698 * testsuite/gas/z80/ez80_adl_all.s: New file.
4699 * testsuite/gas/z80/ez80_adl_suf.d: New file.
4700 * testsuite/gas/z80/ez80_isuf.s: New file.
4701 * testsuite/gas/z80/ez80_z80_all.d: New file.
4702 * testsuite/gas/z80/ez80_z80_all.s: New file.
4703 * testsuite/gas/z80/ez80_z80_suf.d: New file.
4704 * testsuite/gas/z80/r800_extra.d: New file.
4705 * testsuite/gas/z80/r800_extra.s: New file.
4706 * testsuite/gas/z80/r800_ii8.d: New file.
4707 * testsuite/gas/z80/r800_z80_doc.d: New file.
4708 * testsuite/gas/z80/z180.d: New file.
4709 * testsuite/gas/z80/z180.s: New file.
4710 * testsuite/gas/z80/z180_z80_doc.d: New file.
4711 * testsuite/gas/z80/z80_doc.d: New file.
4712 * testsuite/gas/z80/z80_doc.s: New file.
4713 * testsuite/gas/z80/z80_ii8.d: New file.
4714 * testsuite/gas/z80/z80_ii8.s: New file.
4715 * testsuite/gas/z80/z80_in_f_c.d: New file.
4716 * testsuite/gas/z80/z80_in_f_c.s: New file.
4717 * testsuite/gas/z80/z80_op_ii_ld.d: New file.
4718 * testsuite/gas/z80/z80_op_ii_ld.s: New file.
4719 * testsuite/gas/z80/z80_out_c_0.d: New file.
4720 * testsuite/gas/z80/z80_out_c_0.s: New file.
4721 * testsuite/gas/z80/z80_reloc.d: New file.
4722 * testsuite/gas/z80/z80_reloc.s: New file.
4723 * testsuite/gas/z80/z80_sli.d: New file.
4724 * testsuite/gas/z80/z80_sli.s: New file.
4726 2020-01-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
4728 * config/tc-arm.c (parse_reg_list): Use REG_TYPE_RN instead of
4731 2020-01-01 Alan Modra <amodra@gmail.com>
4733 Update year range in copyright notice of all files.
4735 For older changes see ChangeLog-2019
4737 Copyright (C) 2020 Free Software Foundation, Inc.
4739 Copying and distribution of this file, with or without modification,
4740 are permitted in any medium without royalty provided the copyright
4741 notice and this notice are preserved.
4747 version-control: never