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