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