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