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