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