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