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