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