]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gas/ChangeLog
Invoke the linker's error handling script with the keyword "undefined-symbol" when...
[thirdparty/binutils-gdb.git] / gas / ChangeLog
CommitLineData
7e300b86
LX
12020-10-26 Cooper Qu <cooper.qu@linux.alibaba.com>
2
3 * config/tc-csky.c (dump_literals): Fix the literal dump
4 of big vector constant.
5
eae61d61
CQ
62020-10-26 Cooper Qu <cooper.qu@linux.alibaba.com>
7
8 * testsuite/gas/csky/enhance_dsp.s : Change plsl.u16 to plsl.16.
9 * testsuite/gas/csky/enhance_dsp.d : Change plsl.u16 to plsl.16.
10
9d1ccf22
CQ
112020-10-26 Cooper Qu <cooper.qu@linux.alibaba.com>
12
13 * config/tc-csky.c (md_begin): Add version flag in eflag.
14
039dac29
CQ
152020-10-26 Cooper Qu <cooper.qu@linux.alibaba.com>
16
17 * config/tc-csky.c (get_operand_value): Add handler for
18 OPRND_TYPE_IMM5b_VSH and OPRND_TYPE_VREG_WITH_INDEX.
19 * testsuite/gas/csky/csky_vdsp.d : Fix the disassembling for
20 vector register.
21
069ef164
CL
222020-10-26 Lili Cui <lili.cui@intel.com>
23
24 * testsuite/gas/i386/avx-vnni.d: Change psuedo prefix from
25 {vex3} to {vex}
26 * testsuite/gas/i386/x86-64-avx-vnni.d: Likewise.
27
79248c83
SP
282020-10-21 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
29
30 PR target/26763
31 * config/tc-arm.c (parse_address_main): Add new MVE addressing mode
32 check.
33 * testsuite/gas/arm/mve-vldr-vstr-bad.d: New test.
34 * testsuite/gas/arm/mve-vldr-vstr-bad.l: Likewise.
35 * testsuite/gas/arm/mve-vldr-vstr-bad.s: Likewise.
36
777cd7ab
DDAG
372020-10-20 Dr. David Alan Gilbert <dgilbert@redhat.com>
38
39 * config/tc-arc.c (emit_insn0): Fix printf format.
40
646cc3e0
GG
412020-10-20 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
42
43 * config/tc-i386.c (cpu_arch): Add CPU_ZNVER3_FLAGS flags.
44 (i386_align_code): Add PROCESSOR_ZNVER cases.
45 * doc/c-i386.texi: Add znver3, snp, invlpgb and tlbsync.
46 * gas/i386/i386.exp: Add new znver3 test cases.
47 * gas/i386/arch-14-znver3.d: New.
48 * gas/i386/arch-14.d: New.
49 * gas/i386/arch-14.s: New.
50 * gas/i386/invlpgb.d: New.
51 * gas/i386/invlpgb64.d: New.
52 * gas/i386/invlpgb.s: New.
53 * gas/i386/snp.d: New.
54 * gas/i386/snp64.d: New.
55 * gas/i386/snp.s: New.
56 * gas/i386/tlbsync.d: New.
57 * gas/i386/tlbsync.s: New.
58 * gas/i386/x86-64-arch-4-znver3.d: New.
59 * gas/i386/x86-64-arch-4.d: New.
60 * gas/i386/x86-64-arch-4.s: New.
61
9717970a
L
622020-10-17 H.J. Lu <hongjiu.lu@intel.com>
63
64 PR gas/25878
65 PR gas/26740
66 * testsuite/gas/i386/dwarf5-line-4.d: New file.
67 * testsuite/gas/i386/dwarf5-line-4.s: Likewise.
68 * testsuite/gas/i386/i386.exp: Run dwarf5-line-4.
69
7ffdc9ae
L
702020-10-17 H.J. Lu <hongjiu.lu@intel.com>
71
72 PR gas/25878
73 PR gas/26740
74 * testsuite/gas/i386/dwarf5-line-3.s: Replace dwarf5-line-2.S
75 with dwarf5-line-3.S.
76 * testsuite/gas/i386/dwarf5-line-3.d: Updated.
77
bd0c565e
L
782020-10-17 H.J. Lu <hongjiu.lu@intel.com>
79
80 PR gas/25878
81 PR gas/26740
82 * dwarf2dbg.c (allocate_filename_to_slot): Don't reuse the slot 1
83 here.
84 (dwarf2_where): Restore as_where.
85 (dwarf2_directive_filename): Clear the slot 1 if it was assigned
86 to the input file.
87 * testsuite/gas/i386/dwarf5-line-2.d: New file.
88 * testsuite/gas/i386/dwarf5-line-2.s: Likewise.
89 * testsuite/gas/i386/dwarf5-line-3.d: Likewise.
90 * testsuite/gas/i386/dwarf5-line-3.s: Likewise.
91 * testsuite/gas/i386/i386.exp: Run dwarf5-line-2 and
92 dwarf5-line-3.
93
6915020b
L
942020-10-16 H.J. Lu <hongjiu.lu@intel.com>
95
96 PR gas/25878
97 PR gas/26740
98 * dwarf2dbg.c (file_entry): Remove auto_assigned.
99 (assign_file_to_slot): Remove the auto_assign argument.
100 (allocate_filenum): Updated.
101 (allocate_filename_to_slot): Reuse the input file entry in the
102 file table.
103 (dwarf2_where): Replace as_where with as_where_physical.
104 * testsuite/gas/i386/dwarf5-line-1.d: New file.
105 * testsuite/gas/i386/dwarf5-line-1.s: Likewise.
106 * testsuite/gas/i386/i386.exp: Run dwarf5-line-1.
107
57392598
CL
1082020-10-16 Lili Cui <lili.cui@intel.com>
109
6915020b
L
110 * config/tc-i386.c (cpu_flags_match): Move Pseudo Prefix check
111 to ...
112 (match_template): Here.
57392598
CL
113 * testsuite/gas/i386/avx-vnni-inval.l: New file.
114 * testsuite/gas/i386/avx-vnni-inval.s: Likewise.
115 * testsuite/gas/i386/avx-vnni.d: Delete invalid {vex2} test.
116 * testsuite/gas/i386/avx-vnni.s: Likewise.
117 * testsuite/gas/i386/i386.exp: Add AVX VNNI invalid tests.
118 * testsuite/gas/i386/x86-64-avx-vnni-inval.l: New file.
119 * testsuite/gas/i386/x86-64-avx-vnni-inval.s: Likewise.
120 * testsuite/gas/i386/x86-64-avx-vnni.d: Delete invalid {vex2} test.
121 * testsuite/gas/i386/x86-64-avx-vnni.s: Likewise.
122
58bf9b6a
L
1232020-10-14 H.J. Lu <hongjiu.lu@intel.com>
124 Lili Cui <lili.cui@intel.com>
125
126 * NEWS: Add Intel AVX VNNI.
127 * config/tc-i386.c (cpu_arch): Add .avx_vnni and noavx_vnni.
128 (cpu_flags_match): Support CpuVEX_PREFIX.
129 * doc/c-i386.texi: Document .avx_vnni, noavx_vnni and how to
130 encode Intel VNNI instructions with VEX prefix.
131 * testsuite/gas/i386/avx-vnni.d: New file.
132 * testsuite/gas/i386/avx-vnni.s: Likewise.
133 * testsuite/gas/i386/x86-64-avx-vnni.d: Likewise.
134 * testsuite/gas/i386/x86-64-avx-vnni.s: Likewise.
135 * testsuite/gas/i386/i386.exp: Run AVX VNNI tests.
136
c1fa250a
LC
1372020-10-14 Lili Cui <lili.cui@intel.com>
138
139 * NEWS: Add Intel HRESET.
140 * config/tc-i386.c (cpu_arch): Add .hreset.
141 (cpu_noarch): Likewise.
142 * doc/c-i386.texi: Document .hreset, nohreset.
143 * testsuite/gas/i386/i386.exp: Run HRESET tests.
144 * testsuite/gas/i386/hreset.d: New file.
145 * testsuite/gas/i386/x86-64-hreset.d: Likewise.
146 * testsuite/gas/i386/hreset.s: Likewise.
147
f64c42a9
LC
1482020-10-14 Lili Cui <lili.cui@intel.com>
149
150 * NEWS: Add Intel UINTR.
151 * config/tc-i386.c (cpu_arch): Add .uintr.
152 (cpu_noarch): Likewise.
153 * doc/c-i386.texi: Document .uintr and nouintr.
154 * testsuite/gas/i386/i386.exp: Run UINTR tests.
155 * testsuite/gas/i386/x86-64-uintr.d: Likewise.
156 * testsuite/gas/i386/x86-64-uintr.s: Likewise.
157
8b65b895
L
1582020-10-14 H.J. Lu <hongjiu.lu@intel.com>
159
160 * config/tc-i386.c (load_insn_p): Check opcodeprefix == 0 for
161 base_opcode == 0xfc7.
162 (match_template): Likewise.
163 (process_suffix): Check opcodeprefix == PREFIX_0XF2 for CRC32.
164 (check_byte_reg): Likewise.
165 (output_insn): Don't add the 0xf3 prefix twice for PadLock
166 instructions. Don't add prefix from non-VEX/EVEX base_opcode.
167
7b47a312
L
1682020-10-13 H.J. Lu <hongjiu.lu@intel.com>
169
170 * config/tc-i386.c (build_vex_prefix): Replace vexopcode with
171 opcodeprefix.
172 (build_evex_prefix): Likewise.
173 (is_any_vex_encoding): Don't check vexopcode.
174 (output_insn): Handle opcodeprefix.
175
32930e4e
L
1762020-10-09 H.J. Lu <hongjiu.lu@intel.com>
177
178 PR gas/26703
179 * config/tc-i386.c (xstate): Add xstate_mask.
180 (md_assemble): Check i.types[j], instead of i.tm.operand_types[j],
181 for xstate. Set xstate_mask, instead of xstate_zmm, for RegMask.
182 (output_insn): Update for GNU_PROPERTY_X86_ISA_1_V[234]. Update
183 xstate for mask register and VSIB.
184 * testsuite/gas/i386/i386.exp: Run more GNU_PROPERTY tests.
185 * testsuite/gas/i386/property-1.s: Updated to the current
186 GNU_PROPERTY_X86_ISA_1_USED value.
187 * testsuite/gas/i386/property-2.s: Only keep cmove.
188 * testsuite/gas/i386/property-3.s: Changed to addsubpd.
189 * testsuite/gas/i386/property-1.d: Updated.
190 * testsuite/gas/i386/property-2.d: Likewise.
191 * testsuite/gas/i386/property-3.d: Likewise.
192 * testsuite/gas/i386/property-4.d: Likewise.
193 * testsuite/gas/i386/property-5.d: Likewise.
194 * testsuite/gas/i386/property-6.d: Likewise.
195 * testsuite/gas/i386/x86-64-property-1.d: Likewise.
196 * testsuite/gas/i386/x86-64-property-2.d: Likewise.
197 * testsuite/gas/i386/x86-64-property-3.d: Likewise.
198 * testsuite/gas/i386/x86-64-property-4.d: Likewise.
199 * testsuite/gas/i386/x86-64-property-5.d: Likewise.
200 * testsuite/gas/i386/x86-64-property-6.d: Likewise.
201 * testsuite/gas/i386/x86-64-property-7.d: Likewise.
202 * testsuite/gas/i386/x86-64-property-8.d: Likewise.
203 * testsuite/gas/i386/x86-64-property-9.d: Likewise.
204 * testsuite/gas/i386/property-11.d: New file.
205 * testsuite/gas/i386/property-11.s: Likewise.
206 * testsuite/gas/i386/property-12.d: Likewise.
207 * testsuite/gas/i386/property-12.s: Likewise.
208 * testsuite/gas/i386/property-13.d: Likewise.
209 * testsuite/gas/i386/property-13.s: Likewise.
210 * testsuite/gas/i386/x86-64-property-11.d: Likewise.
211 * testsuite/gas/i386/x86-64-property-12.d: Likewise.
212 * testsuite/gas/i386/x86-64-property-13.d: Likewise.
213 * testsuite/gas/i386/x86-64-property-14.d: Likewise.
214 * testsuite/gas/i386/x86-64-property-14.s: Likewise.
215
05cfb0d8
AC
2162020-10-06 Alex Coplan <alex.coplan@arm.com>
217
218 PR 26699
219 * config/tc-aarch64.c (asm_barrier_opt): Delete.
220 (parse_barrier): Fix bogus type punning.
221 * testsuite/gas/aarch64/system.d: Update disassembly.
222 * testsuite/gas/aarch64/system.s: Add isb sy test.
223
0ae9445d
SB
2242020-10-06 Sergey Belyashav <sergey.belyashov@gmail.com>
225
226 PR 26692
227 * config/tc-z80.c (md_begin): Ensure that xpressions are empty
228 before using them.
229 (unify_indexed): Likewise.
230 (z80_start_line_hook): Improve hash sign handling when SDCC
231 compatibility mode enabled.
232 (md_parse_exp_not_indexed): Improve indirect addressing
233 detection.
234 (md_pseudo_table): Accept hd64 as an alias of z810.
235
3ce6300e
AM
2362020-10-06 Alan Modra <amodra@gmail.com>
237
238 * testsuite/gas/elf/sh-link-zero.s: Don't start directives in
239 first column. Don't use numeric labels.
240
cc8b27f8
KR
2412020-10-05 Kamil Rytarowski <n54@gmx.com>
242
243 * configure.tgt (aarch64*-*-netbsd*): Add target.
244
0cc79db2
SN
2452020-10-05 Samanta Navarro <ferivoz@riseup.net>
246
247 * doc/as.texi: Fix spelling mistakes.
248 * doc/c-wasm32.texi: Likewise.
249
6d96a594
C
2502020-10-05 T.K. Chia <u1049321969@caramail.com>
251
252 PR gas/26694
253 * NEWS: Updated for i386 lcall and ljmp change.
254 * config/tc-i386.c (output_interseg_jump): Allow non-absolute
255 segment operand for immediate lcall and ljmp.
256 * testsuite/gas/i386/jump.d,
257 * testsuite/gas/i386/jump.s,
258 * testsuite/gas/i386/jump16.d,
259 * testsuite/gas/i386/jump16.e,
260 * testsuite/gas/i386/jump16.s: Add tests for non-absolute
261 segment operand for immediate ljmp.
262
5b316d90
L
2632020-10-05 H.J. Lu <hongjiu.lu@intel.com>
264
265 PR binutils/26704
266 * testsuite/gas/i386/noreg64-data16.d: Expect sysretl instead of
267 sysret.
268 * testsuite/gas/i386/noreg64.d: Likewise.
269 * testsuite/gas/i386/x86-64-intel64.d: Likewise.
270 * testsuite/gas/i386/x86-64-opcode.d: Likewise.
271
0e9f3bf1
L
2722020-10-05 H.J. Lu <hongjiu.lu@intel.com>
273
274 PR binutils/26705
275 * testsuite/gas/i386/x86-64-suffix.s: Add "mov %rsp,%rbp" before
276 sysretq.
277 * testsuite/gas/i386/x86-64-suffix-intel.d: Updated.
278 * testsuite/gas/i386/x86-64-suffix.d: Likewise.
279
b71702f1
NC
2802020-10-05 Nick Clifton <nickc@redhat.com>
281
282 PR 26253
283 * config/obj-elf.c (obj_elf_section): Accept a numeric value for
284 the "o" section flag. Interpret it as a section index. Allow an
285 index of zero.
286 * doc/as.texi: Document the new behaviour.
287 * NEWS: Mention the new feature. Tidy entries.
288 * testsuite/gas/elf/sh-link-zero.s: New test.
289 * testsuite/gas/elf/sh-link-zero.d: New test driver.
290 * testsuite/gas/elf/elf.exp: Run the new test.
291 * testsuite/gas/elf/section21.l: Updated expected assembler
292 output.
293
b3a3496f
L
2942020-10-03 H.J. Lu <hongjiu.lu@intel.com>
295
296 PR gas/26685
297 * config/tc-i386.c (process_suffix): Also check the register
298 operand for the address size prefix if the memory operand has
299 no real registers.
300 * testsuite/gas/i386/enqcmd-16bit.d: New file.
301 * testsuite/gas/i386/enqcmd-16bit.s: Likewise.
302 * testsuite/gas/i386/movdir-16bit.d: Likewise.
303 * testsuite/gas/i386/movdir-16bit.s: Likewise.
304 * testsuite/gas/i386/enqcmd.s: Add tests with symbol and DISP.
305 * testsuite/gas/i386/x86-64-enqcmd.s: Likewise.
306 * testsuite/gas/i386/x86-64-movdir.s: Likewise.
307 * testsuite/gas/i386/movdir.s: Add tests with symbol and DISP.
308 Remove the .code16 test.
309 * testsuite/gas/i386/i386.exp: Run movdir-16bit and enqcmd-16bit.
310 * testsuite/gas/i386/x86-64-enqcmd-intel.d: Updated.
311 * testsuite/gas/i386/x86-64-enqcmd.d: Likewise.
312 * testsuite/gas/i386/x86-64-movdir-intel.d: Likewise.
313 * testsuite/gas/i386/x86-64-movdir.d: Likewise.
314 * testsuite/gas/i386/enqcmd-intel.d: Likewise.
315 * testsuite/gas/i386/enqcmd.d: Likewise.
316 * testsuite/gas/i386/movdir-intel.d: Likewise.
317 * testsuite/gas/i386/movdir.d: Likewise.
318 * testsuite/gas/i386/x86-64-enqcmd-intel.d: Likewise.
319 * testsuite/gas/i386/x86-64-enqcmd.d: Likewise.
320 * testsuite/gas/i386/x86-64-movdir-intel.d: Likewise.
321 * testsuite/gas/i386/x86-64-movdir.d: Likewise.
322
7bd766cc
NC
3232020-10-02 Nick Clifton <nickc@redhat.com>
324
325 * testsuite/gas/arm/mve-vcvtne-it.d: Allow for padding inserted by
326 PE based targets.
327
642f545a
NC
3282020-10-01 Nick Clifton <nickc@redhat.com>
329
330 * config/obj-elf (elf_pseudo_table): Add attach_to_group.
331 (obj_elf_attach_to_group): New function.
332 * doc/as.texi: Document the new directive.
333 * NEWS: Mention the new feature.
334 * testsuite/gas/elf/attach-1.s: New test.
335 * testsuite/gas/elf/attach-1.d: New test driver.
336 * testsuite/gas/elf/attach-2.s: New test.
337 * testsuite/gas/elf/attach-2.d: New test driver.
338 * testsuite/gas/elf/attach-err.s: New test.
339 * testsuite/gas/elf/attach-err.d: New test driver.
340 * testsuite/gas/elf/attach-err.err: New test error output.
341 * testsuite/gas/elf/elf.exp: Run the new tests.
342
27f13469
L
3432020-09-16 H.J. Lu <hongjiu.lu@intel.com>
344
345 PR gas/26685
346 * config/tc-i386.c (process_suffix): Check the register operand
347 for the address size prefix if the memory operand is symbol(%rip).
348 * testsuite/gas/i386/x86-64-enqcmd.s: Add tests with RIP-relative
349 addressing.
350 * testsuite/gas/i386/x86-64-movdir.s: Likewise.
351 * testsuite/gas/i386/x86-64-enqcmd-intel.d: Updated.
352 * testsuite/gas/i386/x86-64-enqcmd.d: Likewise.
353 * testsuite/gas/i386/x86-64-movdir-intel.d: Likewise.
354 * testsuite/gas/i386/x86-64-movdir.d: Likewise.
355
77718e5b
PW
3562020-09-30 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
357
358 * config/tc-aarch64.c: Add Cortex-A78 and Cortex-A78AE cores.
359 * doc/c-aarch64.texi: Update docs.
360 * NEWS: Update news.
361
c81946ef
AC
3622020-09-30 Alex Coplan <alex.coplan@arm.com>
363
364 * NEWS: Mention recent Arm processor support.
365
990e5268
AC
3662020-09-30 Alex Coplan <alex.coplan@arm.com>
367
368 * config/tc-aarch64.c (aarch64_cpus): Add neoverse-n2.
369 * doc/c-aarch64.texi: Document support for Neoverse N2.
370
e37c930f
AM
3712020-09-30 Alan Modra <amodra@gmail.com>
372
373 * config/obj-elf.c (obj_elf_change_section): Rename variable to
374 avoid shadowing warning.
375 * symbols.c (symbol_entry_find): Init all symbol_flags fields.
376
aeaccbf4
PW
3772020-09-29 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
378
379 * NEWS: TRBE, ETE, ETMv4 and Cortex-X1 news updates.
380
394e9bf6
PW
3812020-09-28 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
382
383 * config/tc-arm.c: (arm_cpus): Add Cortex-X1.
384 * doc/c-arm.texi: Document -mcpu=cortex-x1.
385 * testsuite/gas/arm/cpu-cortex-x1.d: New test.
386
12e35da6
PW
3872020-09-28 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
388
389 * testsuite/gas/aarch64/etm-ro-invalid.d: New test.
390 * testsuite/gas/aarch64/etm-ro-invalid.l: New test.
391 * testsuite/gas/aarch64/etm-ro-invalid.s: New test.
392 * testsuite/gas/aarch64/etm-ro.s: New test.
393 * testsuite/gas/aarch64/etm-wo-invalid.d: New test.
394 * testsuite/gas/aarch64/etm-wo-invalid.l: New test.
395 * testsuite/gas/aarch64/etm-wo-invalid.s: New test.
396 * testsuite/gas/aarch64/etm-wo.s: New test.
397 * testsuite/gas/aarch64/etm.s: New test.
398 * testsuite/gas/aarch64/sysreg.d: system register s2_1_c0_c3_0
399 disassembled now to trcstatr.
400
47e1f9de
PW
4012020-09-28 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
402
403 * config/tc-aarch64.c: (aarch64_cpus): Add Cortex-X1.
404 * doc/c-aarch64.texi: Document -mcpu=cortex-x1.
405
3454861d
PW
4062020-09-28 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
407
12e35da6
PW
408 * testsuite/gas/aarch64/ete.d: New test.
409 * testsuite/gas/aarch64/ete.s: New test.
3454861d 410
1ff8e401
PW
4112020-09-28 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
412
12e35da6
PW
413 * testsuite/gas/aarch64/trbe-invalid.d: New test.
414 * testsuite/gas/aarch64/trbe-invalid.l: New test.
415 * testsuite/gas/aarch64/trbe-invalid.s: New test.
416 * testsuite/gas/aarch64/trbe.d: New test.
417 * testsuite/gas/aarch64/trbe.s: New test.
1ff8e401 418
9bede61c
AC
4192020-09-28 Alex Coplan <alex.coplan@arm.com>
420
421 * config/tc-arm.c (arm_cpus): Add FP16 to Neoverse V1.
422
c769fd6a
AC
4232020-09-28 Alex Coplan <alex.coplan@arm.com>
424
425 * config/tc-aarch64.c (aarch64_cpus): Group Neoverse cores together,
426 add missing F16 bit to Neoverse V1.
427
0be2fe67
AM
4282020-09-26 Alan Modra <amodra@gmail.com>
429
430 * config/tc-csky.c (parse_type_ctrlreg): Don't mask mach_flag
431 for csky_get_control_regno.
432 (csky_get_reg_val): Likewise when calling csky_get_general_regno.
433
743f5cfc
JW
4342020-09-24 Jim Wilson <jimw@sifive.com>
435
436 PR 26400
437 * config/tc-riscv.c (append_insn): If in absolute section, emit
438 error before add_relaxed_insn call.
439 * testsuite/gas/riscv/absolute-sec.d: New.
440 * testsuite/gas/riscv/absolute-sec.l: New.
441 * testsuite/gas/riscv/absolute-sec.s: New.
442
debd1a62
MW
4432020-09-23 Mark Wielaard <mark@klomp.org>
444
445 * testsuite/gas/elf/dwarf-5-cu.d: Adjust expected output.
446
6eee0315
AC
4472020-09-24 Alex Coplan <alex.coplan@arm.com>
448
449 * config/tc-arm.c (arm_cpus): Add Neoverse V1.
450 * doc/c-arm.texi: Document Neoverse V1 support.
451
9e980ddc
AC
4522020-09-24 Alex Coplan <alex.coplan@arm.com>
453
454 * config/tc-aarch64.c (aarch64_cpu_option_table): Add Neoverse V1.
455 * doc/c-aarch64.texi: Document Neoverse V1 support.
456
f3034e25
AC
4572020-09-24 Alex Coplan <alex.coplan@arm.com>
458
459 * config/tc-arm.c (arm_cpus): Add Neoverse N2.
460 * doc/c-arm.texi: Document -mcpu=neoverse-n2.
461
81d54bb7
CL
4622020-09-24 Lili Cui <lili.cui@intel.com>
463
464 * NEWS: Add TDX.
465 * config/tc-i386.c (cpu_arch): Add .tdx.
466 (cpu_noarch): Likewise.
467 * doc/c-i386.texi: Document tdx.
468 * testsuite/gas/i386/i386.exp: Run tdx tests.
469 * testsuite/gas/i386/tdx.d: Likewise.
470 * testsuite/gas/i386/tdx.s: Likewise.
471 * testsuite/gas/i386/x86-64-tdx.d: Likewise.
472 * testsuite/gas/i386/x86-64-tdx.s: Likewise.
473
4742020-09-17 Cooper Qu <cooper.qu@linux.alibaba.com>
afdcafe8
CQ
475
476 * config/tc-csky.c (parse_type_ctrlreg): Use function
477 csky_get_control_regno to operand.
478 (csky_get_reg_val): Likewise.
479 (is_reg_sp_with_bracket): Use function csky_get_reg_val
480 to parse operand.
481 (is_reg_sp): Refine.
482 (is_oimm_within_range): Fix, report error when operand
483 is not constant.
484 (parse_type_cpreg): Refine.
485 (parse_type_cpcreg): Refine.
486 (get_operand_value): Add handle of OPRND_TYPE_IMM5b_LS.
487 (md_assemble): Fix no error reporting somtimes when
488 operands number are not fit.
489 (csky_addc64): Refine.
490 (csky_subc64): Refine.
491 (csky_or64): Refine.
492 (v1_work_fpu_fo): Refine.
493 (v1_work_fpu_read): Refine.
494 (v1_work_fpu_writed): Refine.
495 (v1_work_fpu_readd): Refine.
496 (v2_work_addc): New function, strengthen the operands legality
497 check of addc.
0be2fe67 498 * testsuite/gas/csky/all.d : Use register number format when
afdcafe8 499 disassemble register name by default.
0be2fe67
AM
500 * testsuite/gas/csky/cskyv2_all.d : Likewise.
501 * testsuite/gas/csky/trust.d: Likewise.
502 * testsuite/gas/csky/cskyv2_ck860.d : Fix.
503 * testsuite/gas/csky/trust.s : Fix.
c4694f17
TG
504
5052020-09-23 Lili Cui <lili.cui@intel.com>
506
507 * NEWS: Add Key Locker.
508 * config/tc-i386.c (cpu_arch): Add .kl and .wide_kl.
509 (cpu_noarch): Likewise.
510 * doc/c-i386.texi: Document kl and wide_kl.
511 * testsuite/gas/i386/i386.exp: Run keylocker tests.
512 * testsuite/gas/i386/keylocker-intel.d: New test.
513 * testsuite/gas/i386/keylocker.d: Likewise.
514 * testsuite/gas/i386/keylocker.s: Likewise.
515 * testsuite/gas/i386/x86-64-keylocker-intel.d: Likewise.
516 * testsuite/gas/i386/x86-64-keylocker.d: Likewise.
517 * testsuite/gas/i386/x86-64-keylocker.s: Likewise.
518 * testsuite/gas/i386/x86-64-property-10.d: Likewise.
519 * testsuite/gas/i386/property-10.d: Likewise.
520 * testsuite/gas/i386/property-10.s: Likewise.
521
b1b11e92
AM
5222020-09-21 Alan Modra <amodra@gmail.com>
523
524 PR 26569
525 * config/tc-riscv.c (append_insn): Don't tie off frags at CALL
526 relocs.
527 (riscv_call): Tie them off after the jalr.
528 (md_apply_fix): Zero fx_size of RELAX fixup.
529
6e25f888
DF
5302020-09-018 David Faust <david.faust@oracle.com>
531
532 * testsuite/gas/bpf/alu-xbpf.d: New file.
533 * testsuite/gas/bpf/alu-xbpf.s: Likewise.
534 * testsuite/gas/bpf/alu32-xbpf.d: Likewise.
535 * testsuite/gas/bpf/alu32-xbpf.d: Likewise.
536 * testuiste/gas/bpf/bpf.exp: Run new tests.
537
5947daaf
NC
5382020-09-18 Tucker <tuckkern+sourceware@gmail.com>
539
540 PR 26556
541 * read.c (bss_alloc): Convert size parameter from octets to
542 bytes.
543
848471ac
AM
5442020-09-17 Alan Modra <amodra@gmail.com>
545
546 * testsuite/gas/i386/i386.exp: Return early if not x86.
547
c1229f84
AM
5482020-09-16 Alan Modra <amodra@gmail.com>
549
550 * config/obj-elf.c (obj_elf_visibility, elf_frob_symbol): Adjust
551 elf_symbol_from invocation.
552 * config/tc-aarch64.c (s_variant_pcs): Likewise.
553 * config/tc-m68hc11.c (s_m68hc11_mark_symbol): Likewise.
554 * config/tc-ppc.c (ppc_elf_localentry, ppc_force_relocation),
555 (ppc_fix_adjustable): Likewise.
556 * config/tc-xgate.c (xgate_frob_symbol): Likewise.
557
ec6653d8
L
5582020-09-15 H.J. Lu <hongjiu.lu@intel.com>
559
560 * testsuite/gas/cfi/reloc-pe-i386.d: Updated.
561 * testsuite/gas/i386/x86-64-w64-pcrel.d: Likewise.
562
7e30b1eb
AM
5632020-09-15 Alan Modra <amodra@gmail.com>
564
565 PR 26610
566 * config/tc-arm.c (move_or_literal_pool): Correct extraction of
567 bignum. Use unsigned "v"
568 (is_double_a_single): Make "v" and "mantissa" unsigned. Formatting.
569 (double_to_single): Likewise.
570
f36eda1f
NC
5712020-09-15 Nick Clifton <nickc@redhat.com>
572
573 * read.c (s_nop): Preserve the input_line_pointer around the call
574 to md_assemble.
575 * config/tc-s12z.c (md_assemble): Revert previous delta.
576
6db99906
DF
5772020-09-15 David Faust <david.faust@oracle.com>
578
579 * config/tc-bpf.h (md_single_noop_insn): Use 'ja 0' for no-op.
580
b1766e7c
NC
5812020-09-14 Nick Clifton <nickc@redhat.com>
582
583 * read.c (s_nop): New function. Handles the .nop directive.
584 (potable): Add entry for "nop".
585 (s_nops): Code tidy.
586 * read.h (s_nop): Add prototype.
587 * config/tc-bpf.h (md_single_noop_insn): Define.
588 * config/tc-mmix.h (md_single_noop_insn): Define.
589 * config/tc-or1k.h (md_single_noop_insn): Define.
2ddc8f01 590 * config/tc-ia64.h (md_single_noop_insn): Define.
b1766e7c
NC
591 * config/tc-s12z.c (md_assemble): Preserve the input line pointer,
592 rather than corrupting it.
593 * write.c (relax_segment): Update error message regarding
594 non-absolute values passed to .fill and .nops.
595 * NEWS: Mention the new directive.
596 * doc/as.texi: Document the new directive.
597 * doc/internals.texi: Document the new internal macros used to
598 implement the new directive.
599 * testsuite/gas/all/nop.s: New test.
600 * testsuite/gas/all/nop.d: New test control file.
601 * testsuite/gas/all/gas.exp: Run the new test.
602 * testsuite/gas/elf/dwarf-5-nop-for-line-table.s: New test.
603 * testsuite/gas/elf/dwarf-5-nop-for-line-table.d: New test
604 control file.
605 * testsuite/gas/elf/elf.exp: Run the new test.
606 * testsuite/gas/i386/space1.l: Adjust expected output.
607
edc7a80a
MW
6082020-09-07 Mark Wielaard <mark@klomp.org>
609
610 * as.texi (-g): Explicitly mention when .debug_info and .debug_line
611 are generated for the DWARF format.
612 (Loc): Add that it is an error to both use a .loc directive and
613 generate a .debug_line yourself.
614 * dwarf2dbg.c (dwarf2_any_loc_directive_seen): New static variable.
615 (dwarf2_directive_loc): Set dwarf2_any_loc_directive_seen to TRUE.
616 (dwarf2_finish): Check dwarf2_any_loc_directive_seen before emitting
617 an error. Only create .debug_line if it is empty (or doesn't exist).
618 * testsuite/gas/i386/i386.exp: Add dwarf2-line-{1,2,3,4} when testing
619 an elf target.
620 * testsuite/gas/i386/dwarf2-line-{1,2,3,4}.{s,d,l}: New test files.
621
89ce8eab
CQ
6222020-09-10 Cooper Qu <cooper.qu@linux.alibaba.com>
623
624 * config/tc-csky.c (md_begin): Enable extend lrw by default for
625 CK802, CK803 and CK860.
626
525a0aa3
CQ
6272020-09-10 Cooper Qu <cooper.qu@linux.alibaba.com>
628
629 * config/tc-csky.c (struct csky_cpu_info): Add new members
630 isa_flag, features and ver.
631 (struct csky_cpu_feature): New.
632 (struct csky_cpu_version): New.
633 (CSKY_FEATURE_MAX): Define.
634 (CSKY_CPU_REVERISON_MAX): Define.
635 (FEATURE_DSP_EXT, FEATURE_DSP, FEATURE_MMU, FEATURE_VDSP,
636 FEATURE_FLOAT, FEATURE_TRUST, FEATURE_JAVA, FEATURE_SHIELD):
637 Define, each standard one collection of instructions.
638 (CSKY_FEATURES_DEF_NULL, CSKY_FEATURES_DEF_e,
639 CSKY_FEATURES_DEF_t, CSKY_FEATURES_DEF_f, CSKY_FEATURES_DEF_v,
640 CSKY_FEATURES_DEF_ef, CSKY_FEATURES_DEF_jt,
641 CSKY_FEATURES_DEF_efht, CSKY_FEATURES_DEF_efv,
642 CSKY_FEATURES_DEF_eft, CSKY_FEATURES_DEF_d,
643 CSKY_FEATURES_DEF_df, CSKY_FEATURES_DEF_ft,
644 CSKY_FEATURES_DEF_tv, CSKY_FEATURES_DEF_fv,
645 CSKY_FEATURES_DEF_dft, CSKY_FEATURES_DEF_dfv,
646 CSKY_FEATURES_DEF_ftv, CSKY_FEATURES_DEF_eftv): Define,
647 the features combination used by cpu.
648 (CSKY_CPU_REVERISON_r0p0, CSKY_CPU_REVERISON_r1p0,
649 CSKY_CPU_REVERISON_r2p0, CSKY_CPU_REVERISON_r3p0,
650 CSKY_CPU_REVERISON_RESERVED, CSKY_CPU_REVERISON_R3):
651 Define, version information used by cpu.
652 (csky_cpus): Refine, and add CK804, CK805 and CK800.
653 (parse_cpu): Refine.
654 (parse_arch): Refine.
655 (md_show_usage): Refine.
656 (md_begin): Refine.
657
15a32af5
AM
6582020-09-09 Alan Modra <amodra@gmail.com>
659
660 * config/tc-ppc.c (md_assemble): Emit prefix insn by parts when
661 valueT is smaller than 64 bits.
662
6a1ed910
CQ
6632020-09-07 Cooper Qu <cooper.qu@linux.alibaba.com>
664
665 * config/tc-csky.c (CSKYV2_ISA_DSP): CSKY_ISA_DSPE60.
666 (CSKY_ISA_860): Likewise.
667
a2061b9f
CQ
6682020-09-07 Cooper Qu <cooper.qu@linux.alibaba.com>
669
670 * config/tc-csky.c (float_abi): New.
671 (md_longopts): Add mfloat-abi.
672 (struct sky_option_value_table): New.
673 (csky_float_abis): New, the possible values for -mfloat-abi.
674 (parse_float_abi): New funtion.
675 (md_show_usage): Show help information for -mfloat-abi.
676 (set_csky_attribute): Store float-abi value.
677
1feede9b
CQ
6782020-09-07 Cooper Qu <cooper.qu@linux.alibaba.com>
679
680 * config/tc-csky.c (float_work_fpuv3_fmovi): New function,
681 helper function to encode fpuv3 fmovi instructions.
682 (float_work_fpuv3_fstore): New function.
683 (struct literal): Add new member 'offset'.
684 (csky_cpus): New cpu CK860f.
685 (enter_literal): Return literal pool pointer instead of offset.
686 (parse_rt): Adjust the change of enter_literal.
687 (parse_rtf): Likewise.
688 (v1_work_lrw): Likewise.
689 (v1_work_jbsr): Likewise.
690 (v2_work_lrw): Likewise.
691 (v2_work_jbsr): Likewise.
692 (v2_work_jsri): Likewise.
693 (vdsp_work_vlrw): Likewise.
694 (is_freglist_legal): Add handler for FPUV3.
695 (parse_type_freg): Likewise.
696 (is_imm_within_range): Set e.X_add_number if it is a signed and
697 negtive number.
698 (get_operand_value): Add handler for OPRND_TYPE_IMM9b,
699 OPRND_TYPE_HFLOAT_FMOVI, OPRND_TYPE_SFLOAT_FMOVI
700 and OPRND_TYPE_DFLOAT_FMOVI.
701 (float_to_half): Convert float number to harf float.
702 * testsuite/gas/csky/case-fpuv3-ck860f/ : New folder containing
703 the test cases for FPUV3, they are divided by instruction
704 operands format and both have legal cases and illegal cases.
705
7d81bc93
JL
7062020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
707 Kuan-Lin Chen <kuanlinchentw@gmail.com>
708
709 * config/tc-msp430.c (msp430_insert_uleb128_fixes): New.
710 (msp430_md_end): Call msp430_insert_uleb128_fixes.
711
f1363b0f
AC
7122020-09-08 Alex Coplan <alex.coplan@arm.com>
713
714 * config/tc-aarch64.c (aarch64_cpus): Add Cortex-R82.
715 * doc/c-aarch64.texi: Document -mcpu=cortex-r82.
716
38cf07a6
AC
7172020-09-08 Alex Coplan <alex.coplan@arm.com>
718
719 * config/tc-aarch64.c (parse_sys_reg): Also pass sysreg name to
720 validation function.
721 (parse_sys_ins_reg): Likewise.
722 (print_operands): Pass CPU features to aarch64_print_operand().
723 * testsuite/gas/aarch64/v8-r-bad-sysregs.d: New test.
724 * testsuite/gas/aarch64/v8-r-bad-sysregs.l: Error output.
725 * testsuite/gas/aarch64/v8-r-bad-sysregs.s: Input.
726 * testsuite/gas/aarch64/v8-r-sysregs-need-arch.d: New test.
727 * testsuite/gas/aarch64/v8-r-sysregs-need-arch.l: Error output.
728 * testsuite/gas/aarch64/v8-r-sysregs.d: New test.
729 * testsuite/gas/aarch64/v8-r-sysregs.s: Input for previous two tests.
730
03fb3142
AC
7312020-09-08 Alex Coplan <alex.coplan@arm.com>
732
733 * testsuite/gas/aarch64/dfb.d: New test.
734 * testsuite/gas/aarch64/dfb.s: Input.
735
95830c98
AC
7362020-09-08 Alex Coplan <alex.coplan@arm.com>
737
738 * config/tc-aarch64.c (aarch64_archs): Add armv8-r.
739 * doc/c-aarch64.texi: Document -march=armv8-r.
740
d2a54558
MW
7412020-09-07 Mark Wielaard <mark@klomp.org>
742
743 * dwarf2dbg.c (add_line_strp): New function.
744 (out_dir_and_file_list): Take line_seg and sizeof_offset as
745 arguments, Use DW_FORM_line_strp for dir and file. Call
746 add_line_strp and set symbol offset for DWARF2_LINE_VERSION 5.
747 (out_debug_line): Call out_dir_and_file_list with line_seg and
748 sizeof_offset.
0be2fe67 749 * testsuite/gas/elf/dwarf-5-file0.d: Expect indirect line
d2a54558
MW
750 strings.
751
bdd3b953
MW
7522020-09-07 Mark Wielaard <mark@klomp.org>
753
754 * dwarf2dbg.c (DWARF2_RNGLISTS_VERSION): New constant.
755 (out_debug_ranges): Add ranges_sym argument and set it.
756 (out_debug_rnglists): New function.
757 (out_debug_info): Change ranges_seg argument to ranges_sym
758 and use it to set DW_AT_ranges value.
759 (dwarf2_finish): Remove ranges_seg, add ranges_sym. For
760 DWARF2_VERSION 5 call out_debug_rnglists.
761
7622020-09-07 Mark Wielaard <mark@klomp.org>
b0b3ea7e
MW
763
764 * dwarf2dbg.c (dwarf2_directive_filename): Initialize with_md5 to
765 FALSE.
0be2fe67 766 * testsuite/gas/elf/dwarf-5-file0.s: Add a random bignum.
b0b3ea7e 767
dd216e07
MW
7682020-09-01 Mark Wielaard <mark@klomp.org>
769
770 * dwarf2dbg.c (out_debug_abbrev): Use DW_FORM_sec_offset for DWARF
771 version 4 or higher.
772
c77a6ef6
AM
7732020-09-02 Alan Modra <amodra@gmail.com>
774
775 * expr.c (add_to_result, subtract_from_result): Use unsigned
776 addition and subtraction.
777
01a6f9da
AM
7782020-09-02 Alan Modra <amodra@gmail.com>
779
780 * config/tc-z80.c (is_overflow): Avoid too large shift.
781
6228e279
AM
7822020-09-02 Alan Modra <amodra@gmail.com>
783
784 * config/tc-sparc.c (in_signed_range): Use an unsigned type for
785 sign mask.
786
1929210d
AM
7872020-09-02 Alan Modra <amodra@gmail.com>
788
789 * config/tc-nios2.c (md_apply_fix): Avoid too large shift.
790
7697028a
AM
7912020-09-02 Alan Modra <amodra@gmail.com>
792
793 * config/tc-mips.c (load_register): Avoid too large shift.
794
602e9f0a
AM
7952020-09-02 Alan Modra <amodra@gmail.com>
796
797 * config/tc-d30v.c (parallel_ok): Use 1UL for left shift expression.
798
17e782e9
AM
7992020-09-02 Alan Modra <amodra@gmail.com>
800
801 * config/rx-parse.y (rx_intop): Avoid too large shifts.
802 (rx_intop, rx_uintop, rx_disp3op, rx_disp5op, displacement),
803 (rtsd_immediate): Use correctly typed unsigned variables.
804
4dda287b
AM
8052020-09-02 Alan Modra <amodra@gmail.com>
806
807 * config/obj-macho.c (obj_mach_o_zerofill): Correct type of
808 constant shifted left.
809
251150ad
AM
8102020-09-02 Alan Modra <amodra@gmail.com>
811
812 * config/bfin-lex.l: Use an unsigned type for "value".
813
f6e6b052
AM
8142020-09-02 Alan Modra <amodra@gmail.com>
815
816 * config/tc-pdp11.c (md_number_to_chars): Condition nbytes=8 code
817 on BFD64.
818
4211a340
CQ
8192020-09-02 Cooper Qu <cooper.qu@linux.alibaba.com>
820
821 * config/tc-csky.c (csky_cpus): Add ck803r3.
822 (CSKY_ISA_803R3): Define.
823 (CSKY_ISA_803R2): Refine, use CSKY_ISA_803R1.
824
8119cc38
CQ
8252020-09-02 Cooper Qu <cooper.qu@linux.alibaba.com>
826
827 * testsuite/gas/csky/cskyv2_dsp.d : Fix Encode of mulsws.
828
e61ef79e
CQ
8292020-09-02 Cooper Qu <cooper.qu@linux.alibaba.com>
830
831 * config/tc-csky.c (struct literal): New member bignum.
832 (dump_literals): Handle big constant.
833 (enter_literal): Likewise.
834 (parse_type_freg): Handle vector register.
835
4c8584be
L
8362020-09-01 H.J. Lu <hongjiu.lu@intel.com>
837
838 * doc/as.texi: Document the .tls_common directive.
839
7af67752
AM
8402020-09-01 Alan Modra <amodra@gmail.com>
841
842 PR 26420
843 PR 26421
844 PR 26425
845 PR 26427
846 * config/tc-arm.c (struct arm_it): Make size, size_req, cond and
847 uncond_value unsigned.
848 (parse_vfp_reg_list): Make setmask unsigned, vpr_str_len size_t.
849 (parse_big_immediate): Cast generic_bignum elements to unsigned.
850 (encode_thumb32_immediate): Shift left 0xffU.
851 (double_to_single): Make sign unsigned. Tidy.
852 (move_or_literal_pool): Cast LITTLE_NUM elements to uint64_t or
853 valueT.
854 (vfp_or_neon_is_neon): Adjust inst.uncond_value expression.
855 (md_assemble): Likewise.
856 (handle_pred_state): Make cond unsigned.
857 (thumb32_negate_data_op): Make variables unsigned.
858 (md_apply_fix): Make value and newval unsigned, adjust uses.
859
06de2e0d
AM
8602020-08-31 Alan Modra <amodra@gmail.com>
861
862 PR 26510
863 * config/tc-z8k.c (buffer): Use unsigned char.
864 (apply_fix): Use unsigned char* pointers.
865 (build_bytes): Likewise and mask nibbles when packing.
866
8e822017
AM
8672020-08-31 Alan Modra <amodra@gmail.com>
868
869 PR 26503
870 * config/tc-v850.c (parse_register_list): Shift 1u left.
871
94f360ea
AM
8722020-08-31 Alan Modra <amodra@gmail.com>
873
874 PR 26502
875 * config/tc-tic6x.c (md_apply_fix): Use unsigned variables.
876
8659fff0
AM
8772020-08-31 Alan Modra <amodra@gmail.com>
878
879 PR 26497
880 * config/tc-sh.c (assemble_ppi): Use unsigned variables.
881
548c8b2b
AM
8822020-08-31 Alan Modra <amodra@gmail.com>
883
884 PR 26495
885 * config/tc-score.c (s3_apply_fix): Use unsigned variables.
886 * config/tc-score7.c (s7_apply_fix): Likewise.
887
51bf29b1
AM
8882020-08-31 Alan Modra <amodra@gmail.com>
889
890 PR 26480
891 * config/tc-nios2.c (nios2_parse_reglist): Shift 1UL left.
892
baeb994f
AM
8932020-08-31 Alan Modra <amodra@gmail.com>
894
895 PR 26479
896 * config/tc-nios2.c (md_chars_to_number): Cast buf[i] before shifting.
897
e0fd91ef
AM
8982020-08-31 Alan Modra <amodra@gmail.com>
899
900 PR 26472
901 PR 26473
902 PR 26474
903 * config/tc-mips.c (operand_reg_mask): Shift 1u left.
904 (load_register): Shift 0xffffU left.
905
46021a61
AM
9062020-08-31 Alan Modra <amodra@gmail.com>
907
908 PR 26471
909 * config/tc-metag.c (md_chars_to_number): Make retval unsigned.
910
7a5dd76f
AM
9112020-08-31 Alan Modra <amodra@gmail.com>
912
913 PR 26468
914 * config/tc-mep.c (md_convert_frag): Use uint32_t for addend and
915 other variables.
916
169ec512
AM
9172020-08-31 Alan Modra <amodra@gmail.com>
918
919 PR 26493
920 * config/tc-riscv.c (riscv_ip): Cast X_add_number passed to
921 VALID_* macros to unsigned.
922
880fc278
AM
9232020-08-31 Alan Modra <amodra@gmail.com>
924
925 * config/tc-crx.c: Formatting.
926 (CRX_PRINT): Wrap params in parentheses. Remove parens from uses
927 throughout file.
928 (reset_vars, get_register, get_copregister, get_optype, get_opbits),
929 (get_opflags, get_number_of_operands, parse_operand, gettrap),
930 (handle_LoadStor, getconstant, check_range, getreg_image),
931 (parse_operands, parse_insn, print_operand, print_constant),
932 (exponent2scale, mask_reg, process_label_constant, set_operand),
933 (assemble_insn, print_insn): Delete unnecessary forward declaration.
934 (print_insn): Make static.
935 (print_constant): Make "constant" unsigned.
936 (assemble_insn): Tidy REVERSE_MATCH index calc.
937 * expr.c (generic_bignum_to_int32): Cast elements to valueT.
938
26e3de8e
AM
9392020-08-31 Alan Modra <amodra@gmail.com>
940
941 PR 26509
942 * config/tc-z80.c (is_overflow): Use 1UL in mask shift expression.
943
737d2190
AM
9442020-08-30 Alan Modra <amodra@gmail.com>
945
946 * config/tc-tic4x.c (tic4x_gen_to_words): Rewrite mantissa
947 overflow test without UB. Avoid other UB shifts by making them
948 unsigned.
949
e2e82b11
CQ
9502020-08-31 Cooper Qu <cooper.qu@linux.alibaba.com>
951
952 * config/tc-csky.c (csky_error_state): New member 'arg_int'.
953 (SET_ERROR_NUMBER): Rename to SET_ERROR_STRING.
954 (SET_ERROR_INTEGER): New.
955 (err_formats): Add error format for ERROR_FREG_OVER_RANGE and
956 ERROR_VREG_OVER_RANGE.
957 (csky_show_error): Pass an integer argument for some error
958 numbers.
959 (parse_exp): Call SET_ERROR_STRING instead of SET_ERROR_NUMBER.
960 (parse_rt): Likewise.
961 (parse_type_ctrlreg): Likewise.
962 (csky_get_reg_val): Likewise.
963 (is_reglist_legal): Likewise.
964 (is_freglist_legal): Likewise.
965 (is_reglist_dash_comma_legal): Likewise.
966 (is_reg_lshift_illegal): Likewise.
967 (is_psr_bit): Likewise.
968 (parse_type_cpreg): Likewise.
969 (parse_type_cpcreg): Likewise.
970 (parse_type_areg): Likewise.
971 (parse_type_freg): Likewise.
972 (parse_ldst_imm): Likewise and call SET_ERROR_INTEGER.
973 (get_operand_value): Likewise.
974 (parse_operands_op): Likewise and call is_imm_within_range,
975 is_imm_within_range_ext and is_oimm_within_range.
976 (md_assemble): Likewise.
977 (is_imm_within_range): New.
978 (is_imm_within_range_ext): Rename from is_imm_over_range.
979 (is_oimm_within_range): Rename from is_oimm_over_range.
980 (v2_work_add_sub): Call SET_ERROR_INTEGER.
981 (csky_rolc): call is_imm_within_range instead of
982 is_imm_over_range.
983
dd221981
CQ
9842020-08-31 Cooper Qu <cooper.qu@linux.alibaba.com>
985
986 * config/tc-csky.c (md_begin): Add warning when -mdsp and
987 -mcpu=ck803ern are both added.
988 (parse_ldst_imm): Fix error message.
989
2781f857
AM
9902020-08-30 Alan Modra <amodra@gmail.com>
991
992 * testsuite/gas/cr16/cbitb_test.d: Update expected output.
993 * testsuite/gas/cr16/cbitw_test.d: Likewise.
994 * testsuite/gas/cr16/sbitb_test.d: Likewise.
995 * testsuite/gas/cr16/sbitw_test.d: Likewise.
996 * testsuite/gas/cr16/storb_test.d: Likewise.
997 * testsuite/gas/cr16/storw_test.d: Likewise.
998 * testsuite/gas/cr16/tbitb_test.d: Likewise.
999 * testsuite/gas/cr16/tbitw_test.d: Likewise.
1000
c9302810
AM
10012020-08-30 Alan Modra <amodra@gmail.com>
1002
d0ed6fdd
AM
1003 PR 26437
1004 PR 26438
c9302810
AM
1005 * config/tc-cr16.c: Include limits.h, formatting.
1006 (CR16_PRINT): Wrap params in parentheses. Remove parens from uses
1007 throughout file.
1008 (getconstant): Handle zero nbits.
1009 (print_operand): Use unsigned variables. Simplify handling of
1010 index regs.
1011 (check_range): Use int32_t variables. Correct range checks.
1012
8a267ea8
AM
10132020-08-29 Alan Modra <amodra@gmail.com>
1014
1015 PR 26481
1016 * config/tc-pj.c (md_assemble): Don't loop past end of
1017 opcode->arg array.
1018
ed2ed4dc
AM
10192020-08-28 Alan Modra <amodra@gmail.com>
1020
1021 PR 26460
1022 * config/tc-ia64.c (parse_operands): Don't access past end of
1023 idesc->operands.
1024
4a5700b6
MW
10252020-08-26 Mark Wielaard <mark@klomp.org>
1026
1027 * as.c (parse_args): Handle bad -gdwarf options.
1028
0861f561
CQ
10292020-08-28 Cooper Qu <cooper.qu@linux.alibaba.com>
1030
0be2fe67 1031 * config/tc-csky.c (md_begin): Set attributes.
0861f561
CQ
1032 (isa_flag): Change type to unsigned 64 bits.
1033 (struct csky_cpu_info): Likewise.
1034 (struct csky_macro_info): Likewise.
1035 (set_csky_attribute): New.
1036 * testsuite/gas/csky/802j.d: Ignore .csky.attributes section.
1037 * testsuite/gas/csky/all.d: Likewise.
1038 * testsuite/gas/csky/bsr1.d: Likewise.
1039 * testsuite/gas/csky/csky_vdsp.d: Likewise.
1040 * testsuite/gas/csky/cskyv2_all.d: Likewise.
1041 * testsuite/gas/csky/cskyv2_ck803r2.d: Likewise.
1042 * testsuite/gas/csky/cskyv2_ck860.d: Likewise.
1043 * testsuite/gas/csky/cskyv2_dsp.d: Likewise.
1044 * testsuite/gas/csky/cskyv2_elrw.d: Likewise.
1045 * testsuite/gas/csky/cskyv2_float.d: Likewise.
1046 * testsuite/gas/csky/enhance_dsp.d: Likewise.
1047 * testsuite/gas/csky/java.d: Likewise.
1048 * testsuite/gas/csky/v1_float.d: Likewise.
1049 * testsuite/gas/csky/v2_float_part1.d: Likewise.
1050 * testsuite/gas/csky/v2_float_part2.d: Likewise.
1051 * testsuite/gas/csky/v2_tls_gd.d: Likewise.
1052 * testsuite/gas/csky/v2_tls_ie.d: Likewise.
1053 * testsuite/gas/csky/v2_tls_ld.d: Likewise.
1054 * testsuite/gas/csky/v2_tls_le.d: Likewise.
1055 * testsuite/gas/elf/elf.exp: Add handler for CSKY.
1056 * testsuite/gas/elf/section2.e-csky: New.
1057
6fbd4a8e
AM
10582020-08-27 Alan Modra <amodra@gmail.com>
1059
1060 PR 26467
1061 * cgen.c (weak_operand_overflow_check): Handle opmask for
1062 operand length zero. Use 1UL constant.
1063
e637b7ba
AM
10642020-08-26 Alan Modra <amodra@gmail.com>
1065
1066 PR 26508
1067 * config/tc-xtensa.c (xg_get_trampoline_chain): Return early
1068 when n_entries is zero.
1069
d8d6da13
AM
10702020-08-26 Alan Modra <amodra@gmail.com>
1071
1072 PR 26448
1073 * symbols.c: Include limits.h.
1074 (resolve_symbol_value <O_left_shift, O_right_shift>): Do an
1075 unsigned shift. Warn if shift count larger than valueT size.
1076
b2f386b9
AM
10772020-08-26 Alan Modra <amodra@gmail.com>
1078
1079 PR 26447
1080 * expr.c (expr <O_left_shift>): Do an unsigned shift.
1081
10822020-08-25 Alan Modra <amodra@gmail.com>
1083
4449c81a
DF
10842020-08-26 David Faust <david.faust@oracle.com>
1085
1086 * config/tc-bpf.c: Add option -mxbpf to select xbpf isa.
1087 * testsuite/gas/bpf/indcall-1.d: New file.
1088 * testsuite/gas/bpf/indcall-1.s: Likewise.
1089 * testsuite/gas/bpf/indcall-bad-1.l: Likewise.
1090 * testsuite/gas/bpf/indcall-bad-1.s: Likewise.
1091 * testsuite/gas/bpf/bpf.exp: Run new tests.
1092
69ff2100
AM
10932020-08-25 Alan Modra <amodra@gmail.com>
1094
b2f386b9 1095 PR 26501
0be2fe67 1096 * config/tc-tic54x.c (tic54x_undefined_symbol): Properly treat
69ff2100
AM
1097 misc_symbol_hash entries without values.
1098
1de153a1
AM
10992020-08-25 Alan Modra <amodra@gmail.com>
1100
1101 PR 26500
0be2fe67
AM
1102 * config/tc-tic4x.c (tic4x_inst_make): Don't die on terminating
1103 insn with name = "".
1de153a1 1104
d3e0badd
AM
11052020-08-25 Alan Modra <amodra@gmail.com>
1106
1107 PR 26441
1108 * config/tc-cr16.c (get_b_cc): Return NULL early if op isn't
1109 two or three chars, and don't bother copying.
1110
250dd99f
AM
11112020-08-25 Alan Modra <amodra@gmail.com>
1112
1113 PR 26426
1114 * config/tc-arm.c (do_neon_mvn, do_neon_swp): Bail out on
1115 NS_NULL shape.
1116
30b940a0
AM
11172020-08-25 Alan Modra <amodra@gmail.com>
1118
1119 PR 26410
1120 * symbols.c (dollar_label_count, dollar_label_max): Make size_t.
1121 (dollar_label_clear): Don't call memset with NULL pointer.
1122
ca159256
AM
11232020-08-25 Alan Modra <amodra@gmail.com>
1124
1125 * config/tc-arc.c (declare_register_set): Avoid false positive
1126 format-overflow warning.
1127 * config/tc-epiphany.c (md_assemble): Likewise.
1128 * config/tc-mips.c (md_begin): Likewise.
1129 * config/tc-mmix.c (mmix_md_begin): Likewise.
1130 * config/tc-nds32.c (nds32_elf_append_relax_relocs): Avoid false
1131 positive "may be used uninitialized" warning.
1132
531c73a3
CQ
11332020-08-24 Cooper Qu <cooper.qu@linux.alibaba.com>
1134
1135 * config/tc-csky.c (csky_archs): Add item for CK860,
1136 change ck810 and ck807's arch_flag.
1137 (csky_cpus): Add item for CK860.
1138 (md_begin): Enable DSP for CK810 and CK807 by default.
1139 (md_apply_fix): Fix CKCORE_TLS_IE32 relocation failure.
0be2fe67
AM
1140 * testsuite/gas/csky/cskyv2_all.d: Change 'sync 0' to 'sync'.
1141 * testsuite/gas/csky/cskyv2_all.s: Likewise.
1142 * testsuite/gas/csky/cskyv2_ck860.d: New.
1143 * testsuite/gas/csky/cskyv2_ck860.s: New.
1144 * testsuite/gas/csky/enhance_dsp.d: Change plsli.u16 to plsli.16.
1145 * testsuite/gas/csky/enhance_dsp.s: Likewise.
531c73a3 1146
12c4b9aa
AM
11472020-08-24 Alan Modra <amodra@gmail.com>
1148
1149 * config/tc-tic54x.c (stag_add_field_symbols): Don't free "name"
1150 in case where it isn't copied.
1151 * config/tc-tic54x.h (LOCAL_LABELS_FB): Undef.
1152 * testsuite/gas/tic54x/field.d: Dump section contents and symbols
1153 rather than disassembling.
1154 * testsuite/gas/tic54x/set.d: Adjust for newer disassembly.
1155
f16c3d4f
AM
11562020-08-24 Alan Modra <amodra@gmail.com>
1157
1158 * config/tc-aarch64.c (md_begin): Don't bother checking for
1159 out of memory failure from str_htab_create.
1160 * config/tc-arc.c (arc_insert_opcode, md_begin): Likewise.
1161 (arc_extcorereg, arc_stralloc): Likewise.
1162 * config/tc-arm.c (md_begin): Likewise.
1163 * config/tc-cr16.c (initialise_reg_hash_table, md_begin): Likewise.
1164 * config/tc-cris.c (md_begin): Likewise.
1165 * config/tc-crx.c (md_begin): Likewise.
1166 * config/tc-pdp11.c (md_begin): Likewise.
1167 * config/tc-score.c (s3_build_reg_hsh, s3_begin): Likewise.
1168 * config/tc-score7.c (s7_build_reg_hsh, s7_begin): Likewise.
1169
f3da8a96
AM
11702020-08-24 Alan Modra <amodra@gmail.com>
1171
1172 * config/tc-arm.c (move_or_literal_pool): Avoid false positive
1173 "may be used uninitialised".
1174 (opcode_lookup): Likewise.
1175
85d14aae
AM
11762020-08-24 Alan Modra <amodra@gmail.com>
1177
1178 PR 26526
1179 * symbols.c (local_symbol_convert): Clear out xtra.
1180
d04aee0f
CQ
11812020-08-21 Cooper Qu <cooper.qu@linux.alibaba.com>
1182
1183 * config/tc-csky.c (CSKY_ISA_803R2): New.
1184 (csky_archs): Add ck803r2 series.
1185 (md_begin): Fix warning about -medsp.
1186 (csky_get_freg_val): Support lowercase of fpu register name.
1187 * testsuite/gas/csky/cskyv2_ck803r2.s: New file.
1188 * testsuite/gas/csky/cskyv2_ck803r2.d: New file.
1189
fe0e921f
AM
11902020-08-23 Alan Modra <amodra@gmail.com>
1191
1192 PR 26513
1193 * hash.h (htab_insert): Update prototype and comment.
1194 (struct string_tuple): Make "value" a const void*.
1195 (string_tuple_alloc): Likewise.
1196 (str_hash_find, str_hash_find_n): Cast returned value.
1197 (str_hash_insert): Add "replace" parameter, and return slot pointer.
1198 Free alloc'd element when not inserted.
1199 * hash.c (htab_insert): Likewise. Return slot when element exists,
1200 otherwise return NULL.
1201 * read.c (pop_insert): Insert into hash table without first searching.
1202 * config/tc-avr.c (md_begin): Likewise.
1203 * config/tc-msp430.c (md_begin): Likewise.
1204 * config/tc-nds32.c (nds32_init_nds32_pseudo_opcodes): Likewise.
1205 * config/tc-v850.c (md_begin): Likewise.
1206 * macro.c (do_formals, define_macro, macro_expand_body): Likewise.
1207 (delete_macro): Delete from hash table.
1208 * config/tc-tic54x.c (subsym_create_or_replace): Correct logic.
1209
1210 * symbols.c (local_symbol_make, symbol_table_insert): Allow
1211 replacement of hash table entries.
1212 * config/obj-coff-seh.c (seh_hash_insert): Likewise.
1213 * config/obj-coff.c (tag_insert): Likewise.
1214 * config/tc-iq2000.c (iq2000_add_macro): Likewise.
1215 * config/tc-m68k.c (md_begin): Likewise for aliases.
1216 * config/tc-tic4x.c (tic4x_asg): Likewise.
1217 * config/tc-tic6x.c (md_begin): Likewise.
1218
1219 * dw2gencfi.c (dwcfi_hash_find_or_make): Disallow replacement of
1220 hash table entries.
1221 * ecoff.c (add_string, get_tag): Likewise.
1222 * macro.c (expand_irp): Likewise.
1223 * config/obj-elf.c (build_additional_section_info): Likewise.
1224 * config/tc-aarch64.c (insert_reg_alias): Likewise.
1225 (checked_hash_insert): Likewise.
1226 * config/tc-alpha.c (get_alpha_reloc_tag, md_begin): Likewise.
1227 * config/tc-arc.c (arc_insert_opcode, declare_register): Likewise.
1228 (declare_addrtype, md_begin, arc_extcorereg): Likewise.
1229 * config/tc-arm.c (insert_reg_alias): Likewise.
1230 (arm_tc_equal_in_insn, md_begin): Likewise.
1231 * config/tc-cr16.c (initialise_reg_hash_table, md_begin): Likewise.
1232 * config/tc-cris.c (md_begin): Likewise.
1233 * config/tc-crx.c (md_begin): Likewise.
1234 * config/tc-csky.c (md_begin): Likewise.
1235 * config/tc-d10v.c (md_begin): Likewise.
1236 * config/tc-dlx.c (md_begin): Likewise.
1237 * config/tc-ft32.c (md_begin): Likewise.
1238 * config/tc-h8300.c (md_begin): Likewise.
1239 * config/tc-hppa.c (md_begin): Likewise.
1240 * config/tc-i386.c (md_begin): Likewise.
1241 * config/tc-ia64.c (dot_rot, dot_entry, declare_register): Likewise.
1242 (md_begin, dot_alias): Likewise.
1243 * config/tc-m68hc11.c (md_begin): Likewise.
1244 * config/tc-m68k.c (md_begin): Likewise.
1245 * config/tc-mcore.c (md_begin): Likewise.
1246 * config/tc-microblaze.c (md_begin): Likewise.
1247 * config/tc-mips.c (md_begin): Likewise.
1248 * config/tc-mmix.c (md_begin): Likewise.
1249 * config/tc-mn10200.c (md_begin): Likewise.
1250 * config/tc-mn10300.c (md_begin): Likewise.
1251 * config/tc-moxie.c (md_begin): Likewise.
1252 * config/tc-nds32.c (nds32_relax_hint, md_begin): Likewise.
1253 * config/tc-nios2.c (md_begin): Likewise.
1254 * config/tc-ns32k.c (md_begin): Likewise.
1255 * config/tc-pdp11.c (md_begin): Likewise.
1256 * config/tc-pj.c (fake_opcode, md_begin): Likewise.
1257 * config/tc-ppc.c (ppc_setup_opcodes): Likewise.
1258 * config/tc-pru.c (md_begin): Likewise.
1259 * config/tc-riscv.c (init_ext_version_hash): Likewise.
1260 (init_opcode_names_hash, hash_reg_name, init_opcode_hash): Likewise.
1261 (riscv_init_csr_hash): Likewise.
1262 * config/tc-s390.c (s390_setup_opcodes, md_begin): Likewise.
1263 * config/tc-score.c (s3_insert_reg): Likewise.
1264 (s3_build_score_ops_hsh, s3_build_dependency_insn_hsh): Likewise.
1265 * config/tc-score7.c (s7_build_score_ops_hsh): Likewise.
1266 (s7_build_dependency_insn_hsh, s7_insert_reg): Likewise.
1267 * config/tc-sh.c (md_begin): Likewise.
1268 * config/tc-sparc.c (md_begin): Likewise.
1269 * config/tc-spu.c (md_begin): Likewise.
1270 * config/tc-tic30.c (md_begin): Likewise.
1271 * config/tc-tic4x.c (tic4x_inst_insert): Likewise.
1272 * config/tc-tic54x.c (stag_add_field_symbols, md_begin): Likewise.
1273 (tic54x_endstruct, tic54x_var, tic54x_macro_info): Likewise.
1274 (subsym_substitute): Likewise.
1275 * config/tc-tilegx.c (md_begin): Likewise.
1276 * config/tc-tilepro.c (md_begin): Likewise.
1277 * config/tc-vax.c (vip_begin): Likewise.
1278 * config/tc-wasm32.c (md_begin): Likewise.
1279 * config/tc-xgate.c (md_begin): Likewise.
1280 * config/tc-z8k.c (md_begin): Likewise.
1281 * testsuite/gas/ppc/dcbt.d,
1282 * testsuite/gas/ppc/dcbt.s: New test.
1283 * testsuite/gas/ppc/ppc.exp: Run it.
1284
1285 * ecoff.c (add_string): Report fatal error on duplicates.
1286 * config/tc-alpha.c (md_begin): Likewise.
1287 * config/tc-arc.c (arc_insert_opcode, declare_register): Likewise.
1288 (declare_addrtype, md_begin, arc_extcorereg): Likewise.
1289 * config/tc-cr16.c (initialise_reg_hash_table, md_begin): Likewise.
1290 * config/tc-cris.c (md_begin): Likewise.
1291 * config/tc-crx.c (md_begin): Likewise.
1292 * config/tc-dlx.c (md_begin): Likewise.
1293 * config/tc-hppa.c (md_begin): Likewise.
1294 * config/tc-i386.c (md_begin): Likewise.
1295 * config/tc-ia64.c (dot_rot, dot_entry, declare_register): Likewise.
1296 (md_begin): Likewise.
1297 * config/tc-m68k.c (md_begin): Likewise.
1298 * config/tc-mips.c (md_begin): Likewise.
1299 * config/tc-nios2.c (md_begin): Likewise.
1300 * config/tc-ns32k.c (md_begin): Likewise.
1301 * config/tc-ppc.c (ppc_setup_opcodes): Likewise.
1302 * config/tc-pru.c (md_begin): Likewise.
1303 * config/tc-riscv.c (init_ext_version_hash): Likewise.
1304 (init_opcode_names_hash, hash_reg_name, init_opcode_hash): Likewise.
1305 * config/tc-s390.c (s390_setup_opcodes, md_begin): Likewise.
1306 * config/tc-sparc.c (md_begin): Likewise.
1307 * config/tc-tic30.c (md_begin): Likewise.
1308 * config/tc-tic4x.c (tic4x_inst_insert): Likewise.
1309 * config/tc-tilegx.c (md_begin): Likewise.
1310 * config/tc-tilepro.c (md_begin): Likewise.
1311 * config/tc-vax.c (vip_begin): Likewise.
1312
1313 * config/tc-alpha.c,
1314 * config/tc-arm.c,
1315 * config/tc-avr.c,
1316 * config/tc-cr16.c,
1317 * config/tc-csky.c,
1318 * config/tc-i386.c,
1319 * config/tc-m68hc11.c,
1320 * config/tc-m68k.c,
1321 * config/tc-microblaze.c,
1322 * config/tc-ns32k.c,
1323 * config/tc-pj.c,
1324 * config/tc-ppc.c,
1325 * config/tc-score.c,
1326 * config/tc-score7.c,
1327 * config/tc-tic4x.c,
1328 * config/tc-tic54x.c,
1329 * config/tc-tilegx.c,
1330 * config/tc-tilepro.c,
1331 * config/tc-xgate.c: Formatting.
1332
5014c2d2
AM
13332020-08-21 Alan Modra <amodra@gmail.com>
1334
1335 * symbols.c (struct local_symbol): Add "hash" entry. Reorder fields.
1336 Delete union. Adjust code throughout file.
1337 (struct symbol): Add "hash", "name" and "x" entries. Reorder fields.
1338 Split off some to..
1339 (struct xsymbol): ..this. New struct. Adjust code throughout file
1340 accessing these fields.
1341 (struct symbol_entry): Delete.
1342 (union symbol_entry): New.
1343 (hash_symbol_entry): Adjust for symbol_entry_t change.
1344 (symbol_entry_find): Likewise.
1345 (eq_symbol_entry): Compare hash values too.
1346 (symbol_entry_alloc): Delete.
1347 (local_symbol_converted_p, local_symbol_mark_converted): Delete.
1348 (local_symbol_get_real_symbol, local_symbol_set_real_symbol): Delete.
1349 (local_hash): Delete.
1350 (abs_symbol_x, dot_symbol_x): New static var.
1351 (symbol_init): New function.
1352 (symbol_create): Rewrite.
1353 (LOCAL_SYMBOL_CHECK): Delete. Replace uses throughout with simple
1354 test of flags.local_symbol.
1355 (local_symbol_make): Adjust for struct local_symbol changes.
1356 (local_symbol_convert): Rewrite. Adjust all callers.
1357 (symbol_table_insert): Simplify.
1358 (symbol_clone): Comment on local sym cloning. Handle split symbol
1359 struct.
1360 (get_real_sym): Delete. Remove all uses.
1361 (symbol_find_exact_noref): Simplify.
1362 (resolve_local_symbol): Don't resolve non-locals.
1363 (S_SET_SEGMENT): Don't special case reg_section.
1364 (S_SET_NAME): Set both name and bsym->name.
1365 (symbol_mark_resolved, symbol_resolved_p): Simplify.
1366 (symbol_symbolS): Update comment.
1367 (symbol_begin): Don't create local_hash. Adjust abs_symbol setup.
1368 (dot_symbol_init): Adjust dot_symbol setup.
1369 (symbol_print_statistics): Delete local_hash stats.
1370
3c0d9d71
AM
13712020-08-21 Alan Modra <amodra@gmail.com>
1372
1373 * symbols.c (struct symbol_flags): Rename sy_volatile to volatil,
1374 and remove sy_ from other field names. Update throughout.
1375 (struct symbol): Remove sy_ from field names. Delete unused
1376 TARGET_SYMBOL_FIELDS. Update throughout file. Move after..
1377 (struct local_symbol): ..here. Remove lsy_ from field names.
1378 Delete unused TC_LOCAL_SYMFIELD_TYPE. Update throughout file.
1379 (local_symbol_resolved_p, local_symbol_mark_resolved): Delete.
1380 Expand uses throughout file.
1381 (local_symbol_get_frag, local_symbol_set_frag): Likewise.
1382 (symbol_new): Move symbol_table_frozen test to..
1383 (symbol_append): ..here, and..
1384 (symbol_insert): ..here.
1385 (resolve_symbol_value, symbol_relc_make_expr): White space fixes.
1386 (HANDLE_XADD_OPT1, HANDLE_XADD_OPT2): Likewise.
1387 * config/obj-coff.h (RESOLVE_SYMBOL_REDEFINITION): Update.
1388
e01e1cee
AM
13892020-08-21 Alan Modra <amodra@gmail.com>
1390
1391 * symbols.h (symbol_new, symbol_create, local_symbol_make),
1392 (symbol_temp_new): Arrange params as section, frag, offset.
1393 * symbols.c: Adjust to suit.
1394 * as.c: Likewise.
1395 * cgen.c: Likewise.
1396 * dwarf2dbg.c: Likewise.
1397 * ecoff.c: Likewise.
1398 * expr.c: Likewise.
1399 * itbl-ops.c: Likewise.
1400 * read.c: Likewise.
1401 * stabs.c: Likewise.
1402 * subsegs.c: Likewise.
1403 * config/obj-coff.c: Likewise.
1404 * config/obj-elf.c: Likewise.
1405 * config/obj-macho.c: Likewise.
1406 * config/tc-aarch64.c: Likewise.
1407 * config/tc-alpha.c: Likewise.
1408 * config/tc-arc.c: Likewise.
1409 * config/tc-arm.c: Likewise.
1410 * config/tc-avr.c: Likewise.
1411 * config/tc-cr16.c: Likewise.
1412 * config/tc-cris.c: Likewise.
1413 * config/tc-csky.c: Likewise.
1414 * config/tc-dlx.c: Likewise.
1415 * config/tc-hppa.c: Likewise.
1416 * config/tc-i386.c: Likewise.
1417 * config/tc-ia64.c: Likewise.
1418 * config/tc-m32r.c: Likewise.
1419 * config/tc-m68k.c: Likewise.
1420 * config/tc-mips.c: Likewise.
1421 * config/tc-mmix.c: Likewise.
1422 * config/tc-mn10200.c: Likewise.
1423 * config/tc-mn10300.c: Likewise.
1424 * config/tc-nds32.c: Likewise.
1425 * config/tc-nios2.c: Likewise.
1426 * config/tc-ppc.c: Likewise.
1427 * config/tc-riscv.c: Likewise.
1428 * config/tc-s390.c: Likewise.
1429 * config/tc-sh.c: Likewise.
1430 * config/tc-tic4x.c: Likewise.
1431 * config/tc-tic54x.c: Likewise.
1432 * config/tc-xtensa.c: Likewise.
1433
d285ba8d
CQ
14342020-08-21 Cooper Qu <cooper.qu@linux.alibaba.com>
1435
1436 * config/tc-csky.c (csky_insn_info): Add member last_isize.
1437 (md_assemble): Assign value to csky_insn.last_isize.
1438 * testsuite/gas/csky/enhance_dsp.d: Test bloop's two operands form.
1439 * testsuite/gas/csky/enhance_dsp.s: Likewise.
1440
a0522545
ML
14412020-08-20 Martin Liska <mliska@suse.cz>
1442
1443 * NEWS: Mention --reduce-memory-overheads and --hash-size arguments
1444 options.
1445 * as.c: Remove the options from help.
1446 * doc/as.texi: Remove options.
1447 * doc/internals.texi: Remove hash from documentation.
1448 * hash.c (struct hash_entry): Remove.
1449 (struct hash_control): Likewise.
1450 (set_gas_hash_table_size): Likewise.
1451 (hash_new_sized): Likewise.
1452 (hash_new): Likewise.
1453 (hash_die): Likewise.
1454 (hash_lookup): Likewise.
1455 (hash_insert): Likewise.
1456 (hash_jam): Likewise.
1457 (hash_replace): Likewise.
1458 (hash_find): Likewise.
1459 (hash_find_n): Likewise.
1460 (hash_delete): Likewise.
1461 (hash_traverse): Likewise.
1462 (hash_print_statistics): Likewise.
1463 (TABLES): Likewise.
1464 (STATBUFSIZE): Likewise.
1465 (main): Likewise.
1466 (what): Likewise.
1467 (destroy): Likewise.
1468 (applicatee): Likewise.
1469 (whattable): Likewise.
1470 * hash.h (struct hash_control): Likewise.
1471 (set_gas_hash_table_size): Likewise.
1472 (hash_new): Likewise.
1473 (hash_new_sized): Likewise.
1474 (hash_die): Likewise.
1475 (hash_insert): Likewise.
1476 (hash_jam): Likewise.
1477 (hash_replace): Likewise.
1478 (hash_find): Likewise.
1479 (hash_find_n): Likewise.
1480 (hash_delete): Likewise.
1481 (hash_traverse): Likewise.
1482 (hash_print_statistics): Likewise.
1483
629310ab
ML
14842020-08-20 Martin Liska <mliska@suse.cz>
1485
1486 * config/obj-coff-seh.c (seh_hash_insert): Port to use new
1487 str_htab type.
1488 (seh_hash_find): Likewise.
1489 (seh_hash_find_or_make): Likewise.
1490 * config/obj-coff.c (tag_init): Likewise.
1491 (tag_insert): Likewise.
1492 (tag_find): Likewise.
1493 * config/obj-elf.c (struct group_list): Likewise.
1494 (build_additional_section_info): Likewise.
1495 (free_section_idx): Likewise.
1496 (elf_adjust_symtab): Likewise.
1497 (elf_frob_file_after_relocs): Likewise.
1498 * config/tc-aarch64.c (INSN_SIZE): Likewise.
1499 (parse_reg): Likewise.
1500 (insert_reg_alias): Likewise.
1501 (create_register_alias): Likewise.
1502 (s_unreq): Likewise.
1503 (parse_shift): Likewise.
1504 (parse_pldop): Likewise.
1505 (parse_barrier): Likewise.
1506 (parse_barrier_psb): Likewise.
1507 (parse_bti_operand): Likewise.
1508 (parse_sys_reg): Likewise.
1509 (parse_sys_ins_reg): Likewise.
1510 (lookup_mnemonic): Likewise.
1511 (opcode_lookup): Likewise.
1512 (parse_operands): Likewise.
1513 (checked_hash_insert): Likewise.
1514 (sysreg_hash_insert): Likewise.
1515 (fill_instruction_hash_table): Likewise.
1516 (md_begin): Likewise.
1517 * config/tc-alpha.c (struct alpha_reloc_tag): Likewise.
1518 (get_alpha_reloc_tag): Likewise.
1519 (assemble_tokens_to_insn): Likewise.
1520 (assemble_tokens): Likewise.
1521 (md_begin): Likewise.
1522 * config/tc-arc.c (arc_find_opcode): Likewise.
1523 (arc_insert_opcode): Likewise.
1524 (find_opcode_match): Likewise.
1525 (declare_register): Likewise.
1526 (declare_addrtype): Likewise.
1527 (md_begin): Likewise.
1528 (arc_parse_name): Likewise.
1529 (tc_arc_regname_to_dw2regnum): Likewise.
1530 (arc_extcorereg): Likewise.
1531 * config/tc-arm.c (MVE_BAD_QREG): Likewise.
1532 (arm_reg_parse_multi): Likewise.
1533 (parse_reloc): Likewise.
1534 (insert_reg_alias): Likewise.
1535 (create_register_alias): Likewise.
1536 (s_unreq): Likewise.
1537 (parse_shift): Likewise.
1538 (parse_psr): Likewise.
1539 (parse_cond): Likewise.
1540 (parse_barrier): Likewise.
1541 (do_vfp_nsyn_opcode): Likewise.
1542 (opcode_lookup): Likewise.
1543 (arm_tc_equal_in_insn): Likewise.
1544 (md_begin): Likewise.
1545 * config/tc-avr.c (md_begin): Likewise.
1546 (avr_ldi_expression): Likewise.
1547 (md_assemble): Likewise.
1548 (avr_update_gccisr): Likewise.
1549 (avr_emit_insn): Likewise.
1550 * config/tc-cr16.c (get_register): Likewise.
1551 (get_register_pair): Likewise.
1552 (get_index_register): Likewise.
1553 (get_index_register_pair): Likewise.
1554 (get_pregister): Likewise.
1555 (get_pregisterp): Likewise.
1556 (initialise_reg_hash_table): Likewise.
1557 (md_begin): Likewise.
1558 (cr16_assemble): Likewise.
1559 (md_assemble): Likewise.
1560 * config/tc-cris.c (cris_insn_first_word_frag): Likewise.
1561 (md_begin): Likewise.
1562 (cris_process_instruction): Likewise.
1563 * config/tc-crx.c (get_register): Likewise.
1564 (get_copregister): Likewise.
1565 (md_begin): Likewise.
1566 (md_assemble): Likewise.
1567 * config/tc-csky.c (md_begin): Likewise.
1568 (parse_opcode): Likewise.
1569 (get_operand_value): Likewise.
1570 (v1_work_jbsr): Likewise.
1571 (v2_work_rotlc): Likewise.
1572 (v2_work_bgeni): Likewise.
1573 (v2_work_not): Likewise.
1574 * config/tc-d10v.c (sizeof): Likewise.
1575 (md_begin): Likewise.
1576 (do_assemble): Likewise.
1577 (md_apply_fix): Likewise.
1578 * config/tc-d30v.c (sizeof): Likewise.
1579 (md_begin): Likewise.
1580 (do_assemble): Likewise.
1581 * config/tc-dlx.c (RELOC_DLX_VTENTRY): Likewise.
1582 (md_begin): Likewise.
1583 (machine_ip): Likewise.
1584 * config/tc-ft32.c (md_begin): Likewise.
1585 (md_assemble): Likewise.
1586 * config/tc-h8300.c (md_begin): Likewise.
1587 (md_assemble): Likewise.
1588 * config/tc-hppa.c (pa_ip): Likewise.
1589 (md_begin): Likewise.
1590 * config/tc-i386.c (md_begin): Likewise.
1591 (i386_print_statistics): Likewise.
1592 (parse_insn): Likewise.
1593 (process_operands): Likewise.
1594 (i386_index_check): Likewise.
1595 (parse_real_register): Likewise.
1596 * config/tc-ia64.c (dot_rot): Likewise.
1597 (dot_entry): Likewise.
1598 (declare_register): Likewise.
1599 (md_begin): Likewise.
1600 (ia64_parse_name): Likewise.
1601 (md_assemble): Likewise.
1602 (dot_alias): Likewise.
1603 (do_alias): Likewise.
1604 (ia64_adjust_symtab): Likewise.
1605 (do_secalias): Likewise.
1606 (ia64_frob_file): Likewise.
1607 * config/tc-m68hc11.c (m68hc11_print_statistics): Likewise.
1608 (md_begin): Likewise.
1609 (print_insn_format): Likewise.
1610 (md_assemble): Likewise.
1611 * config/tc-m68k.c (tc_gen_reloc): Likewise.
1612 (m68k_ip): Likewise.
1613 (md_begin): Likewise.
1614 * config/tc-mcore.c (md_begin): Likewise.
1615 (md_assemble): Likewise.
1616 * config/tc-microblaze.c (md_begin): Likewise.
1617 (md_assemble): Likewise.
1618 (md_apply_fix): Likewise.
1619 * config/tc-mips.c (nopic_need_relax): Likewise.
1620 (md_begin): Likewise.
1621 (macro_build): Likewise.
1622 (mips16_macro_build): Likewise.
1623 (mips_lookup_insn): Likewise.
1624 (mips_ip): Likewise.
1625 (mips16_ip): Likewise.
1626 * config/tc-mmix.c (sizeof): Likewise.
1627 (mmix_md_begin): Likewise.
1628 (md_assemble): Likewise.
1629 * config/tc-mn10200.c (md_begin): Likewise.
1630 (md_assemble): Likewise.
1631 * config/tc-mn10300.c (HAVE_AM30): Likewise.
1632 (md_begin): Likewise.
1633 (md_assemble): Likewise.
1634 * config/tc-moxie.c (md_begin): Likewise.
1635 (md_assemble): Likewise.
1636 * config/tc-msp430.c (md_begin): Likewise.
1637 (msp430_operands): Likewise.
1638 (md_assemble): Likewise.
1639 * config/tc-nds32.c (PV_DONT_CARE): Likewise.
1640 (builtin_isreg): Likewise.
1641 (builtin_regnum): Likewise.
1642 (nds32_init_nds32_pseudo_opcodes): Likewise.
1643 (nds32_lookup_pseudo_opcode): Likewise.
1644 (nds32_relax_hint): Likewise.
1645 (md_begin): Likewise.
1646 (nds32_find_reloc_table): Likewise.
1647 (nds32_elf_append_relax_relocs_traverse): Likewise.
1648 (nds32_relax_branch_instructions): Likewise.
1649 (md_convert_frag): Likewise.
1650 (nds32_elf_analysis_relax_hint): Likewise.
1651 (tc_nds32_regname_to_dw2regnum): Likewise.
1652 * config/tc-nios2.c (nios2_opcode_lookup): Likewise.
1653 (nios2_reg_lookup): Likewise.
1654 (nios2_ps_lookup): Likewise.
1655 (md_begin): Likewise.
1656 * config/tc-ns32k.c (struct hash_control): Likewise.
1657 (parse): Likewise.
1658 (md_begin): Likewise.
1659 * config/tc-pdp11.c (md_begin): Likewise.
1660 (md_assemble): Likewise.
1661 * config/tc-pj.c (fake_opcode): Likewise.
1662 (alias): Likewise.
1663 (md_begin): Likewise.
1664 (md_assemble): Likewise.
1665 * config/tc-ppc.c (ppc_setup_opcodes): Likewise.
1666 (md_assemble): Likewise.
1667 * config/tc-pru.c (pru_opcode_lookup): Likewise.
1668 (pru_reg_lookup): Likewise.
1669 (md_begin): Likewise.
1670 (md_end): Likewise.
1671 * config/tc-riscv.c (init_ext_version_hash): Likewise.
1672 (riscv_get_default_ext_version): Likewise.
1673 (riscv_set_arch): Likewise.
1674 (init_opcode_names_hash): Likewise.
1675 (opcode_name_lookup): Likewise.
1676 (enum reg_class): Likewise.
1677 (hash_reg_name): Likewise.
1678 (riscv_init_csr_hash): Likewise.
1679 (reg_csr_lookup_internal): Likewise.
1680 (reg_lookup_internal): Likewise.
1681 (init_opcode_hash): Likewise.
1682 (md_begin): Likewise.
1683 (DECLARE_CSR): Likewise.
1684 (macro_build): Likewise.
1685 (riscv_ip): Likewise.
1686 * config/tc-s390.c (register_name): Likewise.
1687 (s390_setup_opcodes): Likewise.
1688 (md_begin): Likewise.
1689 (md_assemble): Likewise.
1690 (s390_insn): Likewise.
1691 * config/tc-score.c (struct s3_reg_map): Likewise.
1692 (s3_score_reg_parse): Likewise.
1693 (s3_dependency_type_from_insn): Likewise.
1694 (s3_parse_16_32_inst): Likewise.
1695 (s3_parse_48_inst): Likewise.
1696 (s3_insert_reg): Likewise.
1697 (s3_build_reg_hsh): Likewise.
1698 (s3_build_score_ops_hsh): Likewise.
1699 (s3_build_dependency_insn_hsh): Likewise.
1700 (s3_begin): Likewise.
1701 * config/tc-score7.c (struct s7_reg_map): Likewise.
1702 (s7_score_reg_parse): Likewise.
1703 (s7_dependency_type_from_insn): Likewise.
1704 (s7_parse_16_32_inst): Likewise.
1705 (s7_build_score_ops_hsh): Likewise.
1706 (s7_build_dependency_insn_hsh): Likewise.
1707 (s7_insert_reg): Likewise.
1708 (s7_build_reg_hsh): Likewise.
1709 (s7_begin): Likewise.
1710 * config/tc-sh.c (EMPTY): Likewise.
1711 (md_begin): Likewise.
1712 (find_cooked_opcode): Likewise.
1713 * config/tc-sparc.c (md_begin): Likewise.
1714 (sparc_ip): Likewise.
1715 * config/tc-spu.c (md_begin): Likewise.
1716 (md_assemble): Likewise.
1717 * config/tc-tic30.c (md_begin): Likewise.
1718 (tic30_operand): Likewise.
1719 (tic30_parallel_insn): Likewise.
1720 (md_assemble): Likewise.
1721 * config/tc-tic4x.c (TIC4X_ALT_SYNTAX): Likewise.
1722 (tic4x_asg): Likewise.
1723 (tic4x_inst_insert): Likewise.
1724 (tic4x_inst_add): Likewise.
1725 (md_begin): Likewise.
1726 (tic4x_operand_parse): Likewise.
1727 (md_assemble): Likewise.
1728 * config/tc-tic54x.c (MAX_SUBSYM_HASH): Likewise.
1729 (stag_add_field_symbols): Likewise.
1730 (tic54x_endstruct): Likewise.
1731 (tic54x_tag): Likewise.
1732 (tic54x_remove_local_label): Likewise.
1733 (tic54x_clear_local_labels): Likewise.
1734 (tic54x_var): Likewise.
1735 (tic54x_macro_start): Likewise.
1736 (tic54x_macro_info): Likewise.
1737 (tic54x_macro_end): Likewise.
1738 (subsym_isreg): Likewise.
1739 (subsym_structsz): Likewise.
1740 (md_begin): Likewise.
1741 (is_mmreg): Likewise.
1742 (is_type): Likewise.
1743 (encode_condition): Likewise.
1744 (encode_cc3): Likewise.
1745 (encode_cc2): Likewise.
1746 (encode_operand): Likewise.
1747 (tic54x_parse_insn): Likewise.
1748 (tic54x_parse_parallel_insn_firstline): Likewise.
1749 (subsym_create_or_replace): Likewise.
1750 (subsym_lookup): Likewise.
1751 (subsym_substitute): Likewise.
1752 (tic54x_undefined_symbol): Likewise.
1753 * config/tc-tic6x.c (md_begin): Likewise.
1754 (md_assemble): Likewise.
1755 * config/tc-tilegx.c (O_hw2_last_plt): Likewise.
1756 (INSERT_SPECIAL_OP): Likewise.
1757 (md_begin): Likewise.
1758 (tilegx_parse_name): Likewise.
1759 (parse_reg_expression): Likewise.
1760 (md_assemble): Likewise.
1761 * config/tc-tilepro.c (O_tls_ie_load): Likewise.
1762 (INSERT_SPECIAL_OP): Likewise.
1763 (tilepro_parse_name): Likewise.
1764 (parse_reg_expression): Likewise.
1765 (md_assemble): Likewise.
1766 * config/tc-v850.c (md_begin): Likewise.
1767 (md_assemble): Likewise.
1768 * config/tc-vax.c (md_ri_to_chars): Likewise.
1769 (vip_begin): Likewise.
1770 (vip): Likewise.
1771 (main): Likewise.
1772 (md_begin): Likewise.
1773 * config/tc-wasm32.c (md_begin): Likewise.
1774 (md_assemble): Likewise.
1775 * config/tc-xgate.c (xgate_parse_operand): Likewise.
1776 (md_begin): Likewise.
1777 (md_assemble): Likewise.
1778 * config/tc-z8k.c (md_begin): Likewise.
1779 (md_assemble): Likewise.
1780
494b2fc8
ML
17812020-08-20 Martin Liska <mliska@suse.cz>
1782
1783 * dw2gencfi.c (dwcfi_hash_insert): Use htab_t and str_hash_*
1784 functions.
1785 (dwcfi_hash_find): Likewise.
1786 (dwcfi_hash_find_or_make): Likewise.
1787
f7a5981b
ML
17882020-08-20 Martin Liska <mliska@suse.cz>
1789
1790 * ecoff.c (INIT_VARRAY): Use htab_t.
1791 (add_string): Likewise.
1792 (ecoff_read_begin_hook): Use new str_htab_create.
1793 (get_tag): Use htab_t.
1794 (add_file): Likewise.
1795
8d32ded0
ML
17962020-08-20 Martin Liska <mliska@suse.cz>
1797
1798 * hash.h (struct string_tuple): New.
1799 (hash_string_tuple): Likewise.
1800 (eq_string_tuple): Likewise.
1801 (string_tuple_alloc): Likewise.
1802 (str_hash_find): Likewise.
1803 (str_hash_find_n): Likewise.
1804 (str_hash_delete): Likewise.
1805 (str_hash_insert): Likewise.
1806 (str_htab_create): Likewise.
1807
d3b740ca
ML
18082020-08-20 Martin Liska <mliska@suse.cz>
1809
1810 * symbols.c (struct symbol_entry): New.
1811 (hash_symbol_entry): Likewise.
1812 (eq_symbol_entry): Likewise.
1813 (symbol_entry_alloc): Likewise.
1814 (symbol_entry_find): Likewise.
1815 (local_symbol_make): Use htab hash table.
1816 (local_symbol_convert): Likewise.
1817 (symbol_table_insert): Likewise.
1818 (symbol_find_exact_noref): Likewise.
1819 (resolve_local_symbol): Likewise.
1820 (resolve_local_symbol_values): Likewise.
1821 (symbol_begin): Likewise.
1822 (symbol_print_statistics): Likewise.
1823
32e4c1c2
ML
18242020-08-20 Martin Liska <mliska@suse.cz>
1825
1826 * read.c (struct po_entry): New.
1827 (hash_po_entry): Likewise.
1828 (eq_po_entry): Likewise.
1829 (po_entry_alloc): Likewise.
1830 (po_entry_find): Likewise.
1831 (pop_insert): Likewise.
1832 (pobegin): Use htab hash table.
1833 (read_a_source_file): Likewise.
1834 (s_macro): Likewise.
1835 (read_print_statistics): Likewise.
1836 * config/tc-m68k.c (m68k_conditional_pseudoop): Add const qualifier.
1837 * config/tc-m68k.h (m68k_conditional_pseudoop): Likewise.
1838
2b272f44
ML
18392020-08-20 Martin Liska <mliska@suse.cz>
1840
1841 * config/tc-iq2000.c (iq2000_add_macro): Use htab hash table.
1842 * macro.c (struct hash_control): Use htab.
1843 (macro_init): Likewise.
1844 (do_formals): Likewise.
1845 (free_macro): Likewise.
1846 (define_macro): Likewise.
1847 (sub_actual): Likewise.
1848 (macro_expand_body): Likewise.
1849 (macro_expand): Likewise.
1850 (check_macro): Likewise.
1851 (delete_macro): Likewise.
1852 (expand_irp): Likewise.
1853 * macro.h (struct macro_hash_entry): New struct.
1854 (hash_macro_entry): New.
1855 (eq_macro_entry): Likewise.
1856 (macro_entry_alloc): Likewise.
1857 (macro_entry_find): Likewise.
1858 (struct formal_hash_entry): Likewise.
1859 (hash_formal_entry): Likewise.
1860 (eq_formal_entry): Likewise.
1861 (formal_entry_alloc): Likewise.
1862 (formal_entry_find): Likewise.
1863
abebb03c
ML
18642020-08-20 Martin Liska <mliska@suse.cz>
1865
1866 * as.h: Include hashtab.h.
1867 * hash.c (htab_insert): New.
1868 (htab_print_statistics): Likewise.
1869 * hash.h (htab_insert): Likewise.
1870 (htab_print_statistics): Likewise.
1871
18a8a00e
AM
18722020-08-19 Alan Modra <amodra@gmail.com>
1873
1874 * testsuite/gas/ppc/int128.s: Correct vcmpuq.
1875 * testsuite/gas/ppc/int128.d: Update.
1876 * testsuite/gas/ppc/xvtlsbb.d: Update.
1877
587a4371
PB
18782020-08-18 Peter Bergner <bergner@linux.ibm.com>
1879
1880 * testsuite/gas/ppc/vsx4.s: Update test to use new mnemonic.
1881 * testsuite/gas/ppc/vsx4.d: Likewise.
1882
d4d05d13
AC
18832020-08-17 Alex Coplan <alex.coplan@arm.com>
1884
1885 * config/obj-elf.c (obj_elf_change_section): When repurposing an
1886 existing symbol, ensure that we set sy_value as per other (fresh)
1887 section symbols.
1888 * testsuite/gas/elf/elf.exp: Add new test.
1889 * testsuite/gas/elf/section-symbol-redef.d: New test.
1890 * testsuite/gas/elf/section-symbol-redef.s: Input for test.
1891
8118fd43
NC
18922020-08-13 Nick Clifton <nickc@redhat.com>
1893
1894 PR 26359
1895 * config/obj-som.c (obj_som_init_stab_section): Do nothing if the
1896 $GDB_DEBUG$ section has already been created.
1897
225f1684
JR
18982020-08-12 Joe Ramsay <joe.ramsay@.arm.com>
1899
1900 * config/tc-arm.c (do_neon_cvt_1): Parse vcvtne as vcvt-ne for
1901 NS_FD shape when MVE is present
1902 * testsuite/gas/arm/mve-vcvtne-it-bad.d: New test.
1903 * testsuite/gas/arm/mve-vcvtne-it-bad.l: New test.
1904 * testsuite/gas/arm/mve-vcvtne-it-bad.s: New test.
1905 * testsuite/gas/arm/mve-vcvtne-it.d: New test.
1906 * testsuite/gas/arm/mve-vcvtne-it.s: New test.
1907
2e49fd1e
AC
19082020-08-12 Alex Coplan <alex.coplan@arm.com>
1909
1910 * testsuite/gas/aarch64/mpam-bad.d: New test.
1911 * testsuite/gas/aarch64/mpam-bad.l: Error output.
1912 * testsuite/gas/aarch64/mpam-bad.s: Input.
1913 * testsuite/gas/aarch64/mpam.d: New test.
1914 * testsuite/gas/aarch64/mpam.s: Input.
1915
369afd50
NC
19162020-08-12 Nick Clifton <nickc@redhat.com>
1917
1918 PR 26346
1919 * doc/c-riscv.texi (RISC-V-Options): Fix typo in the description
1920 of the -mno-csr-check option.
1921
79ddc884
NC
19222020-08-12 Nick Clifton <nickc@redhat.com>
1923
1924 * po/ru.po: Updated Russian translation.
1925
fa63795f
AC
19262020-08-10 Alex Coplan <alex.coplan@arm.com>
1927
1928 * config/tc-aarch64.c (parse_sys_reg): Don't assert when parsing
1929 a long system register.
1930 (parse_sys_ins_reg): Likewise.
1931 (sysreg_hash_insert): New.
1932 (md_begin): Use sysreg_hash_insert() to ensure all system
1933 registers are no longer than the maximum length at startup.
1934 * testsuite/gas/aarch64/invalid-sysreg-assert.d: New test.
1935 * testsuite/gas/aarch64/invalid-sysreg-assert.l: Error output.
1936 * testsuite/gas/aarch64/invalid-sysreg-assert.s: Input.
1937
f7cb161e
PW
19382020-08-10 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1939
1940 * config/tc-aarch64.c (parse_sys_reg): Call to
1941 aarch64_sys_ins_reg_supported_p instead of
1942 aarch64_sys_reg_supported_p.
1943 (parse_sys_ins_reg): Add aarch64_sys_reg_deprecated_p check.
1944 * testsuite/gas/aarch64/illegal-sysreg-5.d: New test.
1945 * testsuite/gas/aarch64/illegal-sysreg-5.l: New test.
1946 * testsuite/gas/aarch64/sysreg-5.s: New test.
1947
8b2742a1
AM
19482020-08-10 Alan Modra <amodra@gmail.com>
1949
1950 * testsuite/gas/ppc/power8.d,
1951 * testsuite/gas/ppc/power8.s: Add miso.
1952 * testsuite/gas/ppc/power9.d,
1953 * testsuite/gas/ppc/power8.s: Add exser, msgsndu, msgclru.
1954
5fbec329
AM
19552020-08-10 Alan Modra <amodra@gmail.com>
1956
1957 * testsuite/gas/ppc/power8.d: Update.
1958 * testsuite/gas/ppc/vsx2.d: Update.
1959
86c0f617
AM
19602020-08-10 Alan Modra <amodra@gmail.com>
1961
1962 * config/tc-ppc.c (md_assemble): Error for lmw, stmw, lswi, lswx,
1963 stswi, or stswx in little-endian mode.
1964 * testsuite/gas/ppc/476.d,
1965 * testsuite/gas/ppc/476.s: Delete lmw, stmw, lswi, lswx, stswi, stswx.
1966 * testsuite/gas/ppc/a2.d,
1967 * testsuite/gas/ppc/a2.s: Move lmw, stmw, lswi, lswx, stswi, stswx..
1968 * testsuite/gas/ppc/be.d,
1969 * testsuite/gas/ppc/be.s: ..to here, new big-endian only test.
1970 * testsuite/gas/ppc/le_error.d,
1971 * testsuite/gas/ppc/le_error.l: New little-endian test.
1972 * testsuite/gas/ppc/ppc.exp: Run new tests.
1973
7bb178ec
L
19742020-08-07 H.J. Lu <hongjiu.lu@intel.com>
1975
1976 * read.c (read_a_source_file): Ignore rest of line on overflow
1977 error.
1978
d27aad4e
AC
19792020-08-06 Alex Coplan <alex.coplan@arm.com>
1980
1981 * read.c (read_a_source_file): Use long for local labels, detect
1982 overflow and raise an error for overly-long labels.
1983 * testsuite/gas/all/gas.exp: Add local-label-overflow test.
1984 * testsuite/gas/all/local-label-overflow.d: New test.
1985 * testsuite/gas/all/local-label-overflow.l: Error output.
1986 * testsuite/gas/all/local-label-overflow.s: Input.
1987
563a3225
CG
19882020-08-04 Christian Groessler <chris@groessler.org>
1989
0be2fe67 1990 * testsuite/gas/z8k/inout.d: Adapt to correct encoding of
563a3225
CG
1991 "sout/soutb #imm,reg"
1992
789198ca
L
19932020-08-04 H.J. Lu <hongjiu.lu@intel.com>
1994
1995 * NEWS: Mention {disp16} pseudo prefix.
1996
b0a72f49
L
19972020-08-04 H.J. Lu <hongjiu.lu@intel.com>
1998
1999 * testsuite/gas/i386/x86-64-pseudos.d: Revert an accidental
2000 change.
2001
6b9a135d
MW
20022020-08-04 Mark Wielaard <mark@klomp.org>
2003
2004 * dwarf2dbg.c (out_debug_abbrev): When DWARF2_VERSION >= 4, use
2005 DW_FORM_udata for DW_AT_high_pc.
2006 (out_debug_info): Use emit_leb128_expr for DW_AT_high_pc, when
2007 DWARF2_VERSION >= 4.
2008 * read.c (emit_leb128_exp): No longer static.
2009 * read.h (emit_leb128_exp): Define.
2010
f63d03dd
MW
20112020-08-02 Mark Wielaard <mark@klomp.org>
2012
0be2fe67 2013 * dwarf2dbg.c (out_dir_and_file_list): For DWARF5 emit at
f63d03dd
MW
2014 least one directory if there is at least one file. Use dirs[1]
2015 if dirs[0] is not set, or if there is no dirs[1] the current
2016 working directory. Use files[1] filename, when files[0] filename
2017 isn't set.
2018
a3b3e858
MW
20192020-08-02 Mark Wielaard <mark@klomp.org>
2020
2021 * dwarf2dbg.c (out_debug_info): Emit unit type and abbrev offset
2022 for DWARF5.
0be2fe67
AM
2023 * testsuite/gas/elf/dwarf-4-cu.d: New file.
2024 * testsuite/gas/elf/dwarf-4-cu.s: Likewise.
2025 * testsuite/gas/elf/dwarf-5-cu.d: Likewise.
2026 * testsuite/gas/elf/dwarf-5-cu.s: Likewise.
a3b3e858
MW
2027 * testsuite/gas/elf/elf.exp: Run dwarf-4-cu and dwarf-5-cu.
2028
25b1f10d
MW
20292020-08-02 Mark Wielaard <mark@klomp.org>
2030
2031 * doc/as.texi (--gdwarf-[345]): Fix typo.
2032
e4ae357f
JL
20332020-08-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2034
2035 * config/tc-msp430.c (OPTION_MOVE_DATA): Remove.
2036 (md_parse_option): Remove case for OPTION_MOVE_DATA.
2037 (md_longopts): Remove "md" entry.
2038 (md_show_usage): Likewise.
2039
41eb8e88
L
20402020-07-30 H.J. Lu <hongjiu.lu@intel.com>
2041
2042 PR gas/26305
2043 * config/tc-i386.c (_i386_insn::disp_encoding): Add
2044 disp_encoding_16bit.
2045 (parse_insn): Check Prefix_XXX for pseudo prefixes. Handle
2046 {disp16}.
2047 (build_modrm_byte): Handle {disp16}.
2048 (i386_index_check): Check invalid {disp16} and {disp32} pseudo
2049 prefixes.
2050 * doc/c-i386.texi: Update {disp32} documentation and document
2051 {disp16}.
2052 * testsuite/gas/i386/i386.exp: Run x86-64-inval-pseudo.
2053 * testsuite/gas/i386/inval-pseudo.s: Add {disp32}/{disp16}
2054 tests.
2055 * testsuite/gas/i386/pseudos.s: Add {disp8}/{disp32} vmovaps
2056 tests with 128-byte displacement. Add {disp16} tests.
2057 * testsuite/gas/i386/x86-64-pseudos.s: Add {disp8}/{disp32}
2058 vmovaps test. Add (%r13)/(%r13d) tests.
2059 * testsuite/gas/i386/x86-64-inval-pseudo.l: New file.
2060 * testsuite/gas/i386/x86-64-inval-pseudo.s: Likewise.
2061 * testsuite/gas/i386/inval-pseudo.l: Updated.
2062 * testsuite/gas/i386/pseudos.d: Likewise.
2063 * testsuite/gas/i386/x86-64-pseudos.d: Likewise.
2064
c8693053
RO
20652020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2066
2067 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2068 * Makefile.in, doc/Makefile.in: Regenerate.
2069 * configure: Regenerate.
2070
ac2599c4
L
20712020-07-30 H.J. Lu <hongjiu.lu@intel.com>
2072
2073 * testsuite/gas/elf/dwarf2-3.d:Pass --gdwarf-3 to assembler.
2074 * testsuite/gas/elf/dwarf2-5.d: Likewise.
2075 * testsuite/gas/i386/dw2-compress-3a.d: Likewise.
2076 * testsuite/gas/i386/dw2-compress-3b.d: Likewise.
2077 * testsuite/gas/i386/dw2-compressed-3a.d: Likewise.
2078 * testsuite/gas/i386/dw2-compressed-3b.d: Likewise.
2079
4d8ee860
NC
20802020-07-30 Nick Clifton <nickc@redhat.com>
2081
f291783b 2082 * as.c (dwarf_level): Initialise to 3 in case this is not set on
4d8ee860
NC
2083 the command line.
2084
c77cb2a0
MR
20852020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
2086
2087 * testsuite/gas/mips/global-local-symtab-sort-o32.d: New test.
2088 * testsuite/gas/mips/global-local-symtab-sort-o32t.d: New test.
2089 * testsuite/gas/mips/global-local-symtab-sort-n32.d: New test.
2090 * testsuite/gas/mips/global-local-symtab-sort-n32t.d: New test.
2091 * testsuite/gas/mips/global-local-symtab-sort-n64.d: New test.
2092 * testsuite/gas/mips/global-local-symtab-sort-n64t.d: New test.
2093 * testsuite/gas/mips/mips.exp: Run the new tests.
2094
3f1b17bb
MR
20952020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
2096
2097 * testsuite/gas/mips/global-local-symtab-o32.d: New test.
2098 * testsuite/gas/mips/global-local-symtab-o32t.d: New test.
2099 * testsuite/gas/mips/global-local-symtab-n32.d: New test.
2100 * testsuite/gas/mips/global-local-symtab-n32t.d: New test.
2101 * testsuite/gas/mips/global-local-symtab-n64.d: New test.
2102 * testsuite/gas/mips/global-local-symtab.s: New test source.
2103 * testsuite/gas/mips/mips.exp: Run the new tests.
2104
1a02d6b0
L
21052020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2106
2107 PR gas/26305
2108 * config/tc-i386.c (build_modrm_byte): Use disp32/disp16 on
2109 (%bp)/(%ebp)/(%rbp) for {disp32}.
2110 * doc/c-i386.texi: Update {disp32} documentation.
2111 * testsuite/gas/i386/pseudos.s: Add (%bp)/(%ebp) tests.
2112 * testsuite/gas/i386/x86-64-pseudos.s: Add (%ebp)/(%rbp) tests.
2113 * testsuite/gas/i386/pseudos.d: Updated.
2114 * testsuite/gas/i386/x86-64-pseudos.d: Likewise.
2115
608d61c2
L
21162020-07-27 H.J. Lu <hongjiu.lu@intel.com>
2117
2118 * doc/as.texi: Replace preceeded with preceded.
2119
39fdda07
MR
21202020-07-22 Maciej W. Rozycki <macro@linux-mips.org>
2121
2122 * testsuite/gas/mips/jal-svr4pic-irix.d: New file.
2123 * testsuite/gas/mips/mips1@jal-svr4pic-irix.d: New file.
2124 * testsuite/gas/mips/mipsr6@jal-svr4pic-irix.d: New file.
2125 * testsuite/gas/mips/micromips@jal-svr4pic-irix.d: New file.
2126 * testsuite/gas/mips/r3000@jal-svr4pic-irix.d: New file.
2127 * testsuite/gas/mips/jal-svr4pic-local-irix.d: New file.
2128 * testsuite/gas/mips/mips1@jal-svr4pic-local-irix.d: New file.
2129 * testsuite/gas/mips/micromips@jal-svr4pic-local-irix.d: New
2130 file.
2131 * testsuite/gas/mips/r3000@jal-svr4pic-local-irix.d: New file.
2132 * testsuite/gas/mips/jal-svr4pic-noreorder-irix.d: New file.
2133 * testsuite/gas/mips/mips1@jal-svr4pic-noreorder-irix.d: New
2134 file.
2135 * testsuite/gas/mips/mipsr6@jal-svr4pic-noreorder-irix.d: New
2136 file.
2137 * testsuite/gas/mips/micromips@jal-svr4pic-noreorder-irix.d: New
2138 file.
2139 * testsuite/gas/mips/r3000@jal-svr4pic-noreorder-irix.d: New
2140 file.
2141 * testsuite/gas/mips/jal-xgot-irix.d: New file.
2142 * testsuite/gas/mips/jalr2-irix.d: New file.
2143 * testsuite/gas/mips/micromips-branch-relax-insn32-pic-irix.d:
2144 New file.
2145 * testsuite/gas/mips/micromips-branch-relax-pic-irix.d: New
2146 file.
2147 * testsuite/gas/mips/mips-abi32-pic2-irix.d: New file.
2148 * testsuite/gas/mips/jal-svr4pic-local.d: Don't exclude
2149 `*-*-irix*' targets. Add source file designator.
2150 * testsuite/gas/mips/mips1@jal-svr4pic-local.d: Don't exclude
2151 `*-*-irix*' targets.
2152 * testsuite/gas/mips/r3000@jal-svr4pic-local.d: Likewise.
2153 * testsuite/gas/mips/micromips@jal-svr4pic-local.d: Likewise.
2154 * testsuite/gas/mips/jalr2.d: Add name designator.
2155 * testsuite/gas/mips/mips.exp: Use respective IRIX variants for
2156 tests involving the JALR relocation throughout.
2157
b83d958f
MR
21582020-07-22 Maciej W. Rozycki <macro@linux-mips.org>
2159
2160 * testsuite/gas/mips/mips.exp: Use a helper variable for
2161 IRIX/non-IRIX test selection.
2162
bf4ba07c
JB
21632020-07-21 Jan Beulich <jbeulich@suse.com>
2164
2165 * testsuite/gas/i386/evex-no-scale-64.d,
2166 testsuite/gas/i386/addr32.d,
2167 testsuite/gas/i386/x86-64-addr32-intel.d,
2168 testsuite/gas/i386/x86-64-addr32.d: Adjust expectations.
2169
2b42b041
CQ
21702020-07-21 Cooper Qu <cooper.qu@linux.alibaba.com>
2171
2172 * config/tc-csky.c (md_begin): Fix tests of arch and mach flags.
2173
185a798e
JB
21742020-07-21 Jan Beulich <jbeulich@suse.com>
2175
2176 * testsuite/gas/i386/evex-no-scale-32.d,
2177 testsuite/gas/i386/evex-no-scale-64.d: Add #source and #pass.
2178 * testsuite/gas/i386/evex-no-scale-32.s,
2179 testsuite/gas/i386/evex-no-scale-64.s: Rename / fold into ...
2180 * testsuite/gas/i386/evex-no-scale.s: ... this. Use .struct
2181 instead of .section.
2182 * testsuite/gas/i386/i386.exp: Move above tests out of ELF-
2183 specific section.
2184
ec4fcab0
MR
21852020-07-21 Maciej W. Rozycki <macro@linux-mips.org>
2186
2187 * config/tc-mips.c (prev_reloc_op_frag): Remove variable.
2188 (my_getSmallExpression): Adjust accordingly.
2189
b3983e5f
JB
21902020-07-20 Jan Beulich <jbeulich@suse.com>
2191
2192 PR gas/4572
2193 * config/tc-i386.c (i386_comment_chars): Drop TE_I386AIX from
2194 conditional around it.
2195 (md_begin): Insert backslash into operand_chars[] when slash is
2196 a comment character.
2197 * config/tc-i386-intel.c (i386_operator): Recognize \/, \%, and
2198 \* as operators when / may be a comment character.
2199 * testsuite/gas/i386/svr4.s, testsuite/gas/i386/svr4.d: New.
2200 * testsuite/gas/i386/i386.exp: Run new test.
2201
750e4bf7
JB
22022020-07-20 Jan Beulich <jbeulich@suse.com>
2203
2204 PR gas/4572
2205 * app.c (last_char): Drop TC_ARM conditional around it.
2206 (struct app_save): Drop TC_ARM conditional around last_char.
2207 (app_push, app_pop): Drop TC_ARM conditional from last_char
2208 accesses.
2209 (do_scrub_chars): Likewise. Drop TC_ARM conditional from
2210 backslash-precedes-comment-character check.
2211
48ef937e
JB
22122020-07-20 Jan Beulich <jbeulich@suse.com>
2213
2214 * config/tc-i386.c (frag_opcode_byte): New.
2215 (output_branch): Emit error when in absolute section.
2216 (output_jump, output_insn): Use frag_opcode_byte. Handle being
2217 in absolute section.
2218 (output_interseg_jump, output_disp, output_imm): Handle being in
2219 absolute section.
2220 * testsuite/gas/i386/sizing.s,
2221 testsuite/gas/i386/sizing32.d,
2222 testsuite/gas/i386/sizing64.d: New.
2223 * testsuite/gas/i386/i386.exp: Run new tests.
2224
693bec1e
JB
22252020-07-20 Jan Beulich <jbeulich@suse.com>
2226
2227 * testsuite/gas/i386/i386.exp: Include *-*-vxworks alongside
2228 is_elf_format as applicable; merely exclude iamcu tests.
2229
2585b7a5
L
22302020-07-19 H.J. Lu <hongjiu.lu@intel.com>
2231
2232 PR gas/26263
2233 * config/tc-i386.c (i386_validate_fix): Change PLT32 reloc
2234 against section to PC32 reloc.
2235 * testsuite/gas/i386/relax-5.d: Updated.
2236 * testsuite/gas/i386/x86-64-relax-4.d: Likewise.
2237
04c662e2
L
22382020-07-15 H.J. Lu <hongjiu.lu@intel.com>
2239
2240 PR gas/26237
2241 * testsuite/gas/i386/evex-no-scale-64.d: Updated.
2242 * testsuite/gas/i386/addr32.d: Likewise.
2243 * testsuite/gas/i386/x86-64-addr32-intel.d: Likewise.
2244 * testsuite/gas/i386/x86-64-addr32.d: Likewise.
2245
56c1b507
NC
22462020-07-15 Nick Clifton <nickc@redhat.com>
2247
2248 * write.c (create_note_reloc): Add desc2_size parameter. Zero out
2249 the addend field of REL relocations. Store the full addend into
2250 the note for REL relocations.
2251
e2e018c3
JB
22522020-07-15 Jan Beulich <jbeulich@suse.com>
2253
2254 * testsuite/gas/i386/x86-64-stack.s: Adjust 32-bit push
2255 immediate.
2256 * testsuite/gas/i386/x86-64-stack-intel.d,
2257 testsuite/gas/i386/x86-64-stack-suffix.d,
2258 testsuite/gas/i386/x86-64-stack.d: Adjust expectations.
2259
36938cab
JB
22602020-07-15 Jan Beulich <jbeulich@suse.com>
2261
2262 * testsuite/gas/i386/disassem.d,
2263 testsuite/gas/i386/ilp32/x86-64-branch.d,
2264 testsuite/gas/i386/intel.d, testsuite/gas/i386/jump16.d,
2265 testsuite/gas/i386/lfence-load.d, testsuite/gas/i386/noreg16.d,
2266 testsuite/gas/i386/noreg32.d,
2267 testsuite/gas/i386/noreg64-rex64.d,
2268 testsuite/gas/i386/noreg64.d, testsuite/gas/i386/notrack.d,
2269 testsuite/gas/i386/opcode.d,
2270 testsuite/gas/i386/solaris/x86-64-branch-2.d,
2271 testsuite/gas/i386/solaris/x86-64-jump.d,
2272 testsuite/gas/i386/solaris/x86-64-mpx-branch-1.d,
2273 testsuite/gas/i386/solaris/x86-64-nop-3.d,
2274 testsuite/gas/i386/solaris/x86-64-nop-4.d,
2275 testsuite/gas/i386/solaris/x86-64-nop-5.d,
2276 testsuite/gas/i386/solaris/x86-64-relax-2.d,
2277 testsuite/gas/i386/solaris/x86-64-relax-3.d,
2278 testsuite/gas/i386/x86-64-align-branch-1a.d,
2279 testsuite/gas/i386/x86-64-align-branch-1b.d,
2280 testsuite/gas/i386/x86-64-align-branch-1c.d,
2281 testsuite/gas/i386/x86-64-align-branch-1d.d,
2282 testsuite/gas/i386/x86-64-align-branch-1e.d,
2283 testsuite/gas/i386/x86-64-align-branch-1f.d,
2284 testsuite/gas/i386/x86-64-align-branch-1g.d,
2285 testsuite/gas/i386/x86-64-align-branch-1h.d,
2286 testsuite/gas/i386/x86-64-align-branch-1i.d,
2287 testsuite/gas/i386/x86-64-align-branch-2a.d,
2288 testsuite/gas/i386/x86-64-align-branch-2b.d,
2289 testsuite/gas/i386/x86-64-align-branch-2c.d,
2290 testsuite/gas/i386/x86-64-align-branch-3.d,
2291 testsuite/gas/i386/x86-64-align-branch-4a.d,
2292 testsuite/gas/i386/x86-64-align-branch-4b.d,
2293 testsuite/gas/i386/x86-64-align-branch-5.d,
2294 testsuite/gas/i386/x86-64-align-branch-6.d,
2295 testsuite/gas/i386/x86-64-branch-2.d,
2296 testsuite/gas/i386/x86-64-branch-3.d,
2297 testsuite/gas/i386/x86-64-branch.d,
2298 testsuite/gas/i386/x86-64-disassem.d,
2299 testsuite/gas/i386/x86-64-disp32.d,
2300 testsuite/gas/i386/x86-64-gotpcrel-no-relax.d,
2301 testsuite/gas/i386/x86-64-gotpcrel.d,
2302 testsuite/gas/i386/x86-64-ifunc.d,
2303 testsuite/gas/i386/x86-64-jump.d,
2304 testsuite/gas/i386/x86-64-lfence-byte.d,
2305 testsuite/gas/i386/x86-64-lfence-indbr-a.d,
2306 testsuite/gas/i386/x86-64-lfence-indbr-b.d,
2307 testsuite/gas/i386/x86-64-lfence-indbr-c.d,
2308 testsuite/gas/i386/x86-64-lfence-load.d,
2309 testsuite/gas/i386/x86-64-lfence-ret-a.d,
2310 testsuite/gas/i386/x86-64-lfence-ret-b.d,
2311 testsuite/gas/i386/x86-64-lfence-ret-c.d,
2312 testsuite/gas/i386/x86-64-lfence-ret-d.d,
2313 testsuite/gas/i386/x86-64-lfence-ret-e.d,
2314 testsuite/gas/i386/x86-64-mpx-add-bnd-prefix.d,
2315 testsuite/gas/i386/x86-64-mpx-branch-1.d,
2316 testsuite/gas/i386/x86-64-mpx.d,
2317 testsuite/gas/i386/x86-64-nop-3.d,
2318 testsuite/gas/i386/x86-64-nop-4.d,
2319 testsuite/gas/i386/x86-64-nop-5.d,
2320 testsuite/gas/i386/x86-64-nops-7.d,
2321 testsuite/gas/i386/x86-64-notrack.d,
2322 testsuite/gas/i386/x86-64-opcode.d,
2323 testsuite/gas/i386/x86-64-relax-2.d,
2324 testsuite/gas/i386/x86-64-relax-3.d,
2325 testsuite/gas/i386/x86-64-relax-4.d,
2326 testsuite/gas/i386/x86-64-rtm.d,
2327 testsuite/gas/i386/x86-64-stack.d,
2328 testsuite/gas/i386/x86-64-unique.d,
2329 testsuite/gas/i386/x86_64-intel.d: Adjust expectations.
2330
8e58ef80
L
23312020-07-14 H.J. Lu <hongjiu.lu@intel.com>
2332
2333 PR gas/26237
2334 * testsuite/gas/i386/addr32.s: Add tests for 32-bit wrapped around
2335 address.
2336 * testsuite/gas/i386/x86-64-addr32.s: Likewise.
2337 * testsuite/gas/i386/addr32.d: Updated.
2338 * testsuite/gas/i386/x86-64-addr32-intel.d: Likewise.
2339 * testsuite/gas/i386/x86-64-addr32.d: Likewise.
2340 * testsuite/gas/i386/ilp32/x86-64-addr32-intel.d: Likewise.
2341 * testsuite/gas/i386/ilp32/x86-64-addr32.d: Likewise.
2342
bfbd9438
JB
23432020-07-14 Jan Beulich <jbeulich@suse.com>
2344
2345 * testsuite/gas/i386/intel.s: Use dr<N> instead of db<N>.
2346 * testsuite/gas/i386/intel-intel.d: Disambiguate name.
2347 * testsuite/gas/i386/intel.d,
2348 testsuite/gas/i386/opcode-intel.d: Adjust expectations.
2349
7531c613
JB
23502020-07-14 Jan Beulich <jbeulich@suse.com>
2351
2352 * testsuite/gas/i386/prefix.d: Adjust expectations.
2353
b24d668c
JB
23542020-07-14 Jan Beulich <jbeulich@suse.com>
2355
2356 * testsuite/gas/i386/x86-64-avx-intel.d,
2357 testsuite/gas/i386/x86-64-sse4_2-intel.d: Adjust expectations.
2358
9ab00b61
JB
23592020-07-14 Jan Beulich <jbeulich@suse.com>
2360
2361 * testsuite/gas/i386/movbe-suffix.d,
2362 testsuite/gas/i386/x86-64-movbe-suffix.d: New.
2363 * testsuite/gas/i386/i386.exp: Run new tests.
2364
2875b28a
JB
23652020-07-14 Jan Beulich <jbeulich@suse.com>
2366
2367 * testsuite/gas/i386/crc32-suffix.d,
2368 testsuite/gas/i386/x86-64-crc32-suffix.d: New.
2369 * testsuite/gas/i386/i386.exp: Run new tests.
2370 * testsuite/gas/i386/arch-10-bdver1.d,
2371 testsuite/gas/i386/arch-10-bdver2.d,
2372 testsuite/gas/i386/arch-10-bdver3.d,
2373 testsuite/gas/i386/arch-10-bdver4.d,
2374 testsuite/gas/i386/arch-10-btver1.d,
2375 testsuite/gas/i386/arch-10-btver2.d,
2376 testsuite/gas/i386/arch-10-lzcnt.d,
2377 testsuite/gas/i386/arch-10-prefetchw.d,
2378 testsuite/gas/i386/arch-10.d, testsuite/gas/i386/arch-2.d,
2379 testsuite/gas/i386/arch-3.d, testsuite/gas/i386/arch-5.d,
2380 testsuite/gas/i386/arch-6.d, testsuite/gas/i386/crc32.d,
2381 testsuite/gas/i386/sse-noavx.d, testsuite/gas/i386/sse4_2.d,
2382 testsuite/gas/i386/x86-64-arch-2-bdver1.d,
2383 testsuite/gas/i386/x86-64-arch-2-bdver2.d,
2384 testsuite/gas/i386/x86-64-arch-2-bdver3.d,
2385 testsuite/gas/i386/x86-64-arch-2-bdver4.d,
2386 testsuite/gas/i386/x86-64-arch-2-btver1.d,
2387 testsuite/gas/i386/x86-64-arch-2-btver2.d,
2388 testsuite/gas/i386/x86-64-arch-2-lzcnt.d,
2389 testsuite/gas/i386/x86-64-arch-2-prefetchw.d,
2390 testsuite/gas/i386/x86-64-arch-2.d,
2391 testsuite/gas/i386/x86-64-crc32.d,
2392 testsuite/gas/i386/x86-64-pseudos.d,
2393 testsuite/gas/i386/x86-64-sse-noavx.d,
2394 testsuite/gas/i386/x86-64-sse4_2.d: Adjust expectations.
2395
e184e611
JB
23962020-07-14 Jan Beulich <jbeulich@suse.com>
2397
2398 * testsuite/gas/i386/x86-64-pseudos.s: Add empty-REX tests for
2399 ModR/M-encoded byte register cases.
2400 * testsuite/gas/i386/x86-64-pseudos.d,
2401 testsuite/gas/i386/x86-64-reg-intel.d,
2402 testsuite/gas/i386/x86-64-reg.d: Adjust expectations.
2403
e8b5d5f9
JB
24042020-07-14 Jan Beulich <jbeulich@suse.com>
2405
2406 * testsuite/gas/i386/x86-64-pseudos.s: Add empty-REX tests for
2407 not-ModR/M-encoded byte register cases.
2408 * testsuite/gas/i386/x86-64-pseudos.d: Adjust expectations.
2409
38397794
JB
24102020-07-14 Jan Beulich <jbeulich@suse.com>
2411
2412 * testsuite/gas/i386/ilp32/x86-64-arch-1.d,
2413 testsuite/gas/i386/ilp32/x86-64-arch-2.d,
2414 testsuite/gas/i386/ilp32/x86-64-avx-intel.d,
2415 testsuite/gas/i386/ilp32/x86-64-avx.d,
2416 testsuite/gas/i386/ilp32/x86-64-crc32-intel.d,
2417 testsuite/gas/i386/ilp32/x86-64-crc32.d,
2418 testsuite/gas/i386/ilp32/x86-64-gotpcrel.d,
2419 testsuite/gas/i386/ilp32/x86-64-ifunc.d,
2420 testsuite/gas/i386/ilp32/x86-64-reg-intel.d,
2421 testsuite/gas/i386/ilp32/x86-64-reg.d,
2422 testsuite/gas/i386/ilp32/x86-64-rep-suffix.d,
2423 testsuite/gas/i386/ilp32/x86-64-sse4_2-intel.d,
2424 testsuite/gas/i386/ilp32/x86-64-sse4_2.d,
2425 testsuite/gas/i386/ilp32/x86-64-stack-intel.d,
2426 testsuite/gas/i386/ilp32/x86-64-stack-suffix.d,
2427 testsuite/gas/i386/ilp32/x86-64-stack.d: Reference parent dir
2428 dump expectations.
2429
7a705315
L
24302020-07-13 H.J. Lu <hongjiu.lu@intel.com>
2431
2432 * config/tc-i386.c (offset_in_range): Remove 32-bit sign
2433 extension.
2434
0a5c31d1
NC
24352020-07-13 Nick Clifton <nickc@redhat.com>
2436
2437 * po/fr.po: Updated French translation.
2438
8884c29c
AM
24392020-07-13 Alan Modra <amodra@gmail.com>
2440
2441 * testsuite/gas/elf/dwarf2-7.d: Remove most xfails.
2442 * testsuite/gas/elf/dwarf2-12.d: Likewise.
2443 * testsuite/gas/elf/dwarf2-13.d: Likewise.
2444 * testsuite/gas/elf/dwarf2-14.d: Likewise.
2445
a308b89d
L
24462020-07-11 H.J. Lu <hongjiu.lu@intel.com>
2447
2448 * config/tc-i386.c (output_insn): Check i.xstate to set
2449 GNU_PROPERTY_X86_FEATURE_2_TMM.
2450 * testsuite/gas/i386/i386.exp: Run x86-64-property-7,
2451 x86-64-property-8 and x86-64-property-9.
2452 * testsuite/gas/i386/x86-64-property-7.d: New file.
2453 * testsuite/gas/i386/x86-64-property-7.s: Likewise.
2454 * testsuite/gas/i386/x86-64-property-8.d: Likewise.
2455 * testsuite/gas/i386/x86-64-property-8.s: Likewise.
2456 * testsuite/gas/i386/x86-64-property-9.d: Likewise.
2457 * testsuite/gas/i386/x86-64-property-9.s: Likewise.
2458
921eafea
L
24592020-07-10 H.J. Lu <hongjiu.lu@intel.com>
2460
2461 * config/tc-i386.c (_i386_insn): Remove has_regmmx, has_regxmm,
2462 has_regymm, has_regzmm and has_regtmm. Add xstate.
2463 (md_assemble): Set i.xstate from operand types in instruction
2464 template.
2465 (build_modrm_byte): Updated.
2466 (output_insn): Check i.xstate.
2467 * testsuite/gas/i386/i386.exp: Run property-6 and
2468 x86-64-property-6.
2469 * testsuite/gas/i386/property-6.d: New file.
2470 * testsuite/gas/i386/property-6.s: Updated.
2471 * testsuite/gas/i386/x86-64-property-6.d: Likewise.
2472
d249bf86
L
24732020-07-10 H.J. Lu <hongjiu.lu@intel.com>
2474
2475 * testsuite/gas/i386/property-5.d: Correct test name.
2476
260cd341
LC
24772020-07-10 Lili Cui <lili.cui@intel.com>
2478
2479 * NEWS: Mention support for Intel AMX instructions.
2480 * config/tc-i386.c (i386_error): Add invalid_sib_address.
2481 (cpu_arch): Add .amx_int8, .amx_bf16 and .amx_tile.
2482 (cpu_noarch): Add noamx_int8, noamx_bf16 and noamx_tile.
2483 (match_simd_size): Add tmmword check.
2484 (operand_type_match): Add tmmword.
2485 (type_names): Add rTMM.
2486 (i386_error): Add invalid_tmm_register_set.
2487 (check_VecOperands): Handle invalid_sib_address and
2488 invalid_tmm_register_set.
2489 (match_template): Handle invalid_sib_address.
2490 (build_modrm_byte): Handle non-vector SIB and zmmword.
2491 (i386_index_check): Disallow RegIP for non-vector SIB.
2492 (check_register): Handle zmmword.
2493 * doc/c-i386.texi: Document amx_int8, amx_bf16 and amx_tile.
2494 * testsuite/gas/i386/i386.exp: Add AMX new tests.
2495 * testsuite/gas/i386/intel-regs.d: Add tmm.
2496 * testsuite/gas/i386/intel-regs.s: Add tmm.
2497 * testsuite/gas/i386/x86-64-amx-intel.d: New.
2498 * testsuite/gas/i386/x86-64-amx-inval.l: New.
2499 * testsuite/gas/i386/x86-64-amx-inval.s: New.
2500 * testsuite/gas/i386/x86-64-amx.d: New.
2501 * testsuite/gas/i386/x86-64-amx.s: New.
2502 * testsuite/gas/i386/x86-64-amx-bad.d: New.
2503 * testsuite/gas/i386/x86-64-amx-bad.s: New.
2504
af2b3186
TV
25052020-07-10 Tom de Vries <tdevries@suse.de>
2506
2507 * testsuite/gas/elf/dwarf2-11.d: Update expected output from
2508 readelf's line table decoding.
2509 * testsuite/gas/elf/dwarf2-12.d: Likewise.
2510 * testsuite/gas/elf/dwarf2-13.d: Likewise.
2511 * testsuite/gas/elf/dwarf2-14.d: Likewise.
2512 * testsuite/gas/elf/dwarf2-15.d: Likewise.
2513 * testsuite/gas/elf/dwarf2-16.d: Likewise.
2514 * testsuite/gas/elf/dwarf2-17.d: Likewise.
2515 * testsuite/gas/elf/dwarf2-18.d: Likewise.
2516 * testsuite/gas/elf/dwarf2-19.d: Likewise.
2517 * testsuite/gas/elf/dwarf2-5.d: Likewise.
2518 * testsuite/gas/elf/dwarf2-6.d: Likewise.
2519 * testsuite/gas/elf/dwarf2-7.d: Likewise.
2520
39776b11
L
25212020-07-09 H.J. Lu <hongjiu.lu@intel.com>
2522
2523 * config/tc-i386.c (output_insn): Set YMM/ZMM features for
2524 VEX/EVEX vector instructions.
2525 * testsuite/gas/i386/property-4.d: New file.
2526 * testsuite/gas/i386/property-4.s: Likewise.
2527 * testsuite/gas/i386/property-5.d: Likewise.
2528 * testsuite/gas/i386/property-5.s: Likewise.
2529 * testsuite/gas/i386/x86-64-property-4.d: Likewise.
2530 * testsuite/gas/i386/x86-64-property-5.d: Likewise.
2531
939b95c7
L
25322020-07-09 H.J. Lu <hongjiu.lu@intel.com>
2533
2534 * NEWS: Mention --enable-x86-used-note.
2535 * configure.ac: Configure with --enable-x86-used-note by default
2536 for Linux/x86.
2537 * configure: Regenerated.
2538
fe49679d
AM
25392020-07-09 Alan Modra <amodra@gmail.com>
2540
2541 * config/obj-coff.h: Remove TE_PE support.
2542 * config/tc-ppc.c: Likewise.
2543 * config/tc-ppc.h: Likewise.
2544 * configure.tgt: Remove powerpc PE and powerpc lynxos.
2545 * testsuite/gas/cfi/cfi.exp (cfi-common-6): Remove powerpc PE
2546 condition.
2547 * testsuite/gas/macros/macros.exp: Don't xfail powerpc PE.
2548
6384fd9e
JB
25492020-07-08 Jan Beulich <jbeulich@suse.com>
2550
2551 * testsuite/gas/i386/fma4-lig.d, testsuite/gas/i386/xop-lig.d:
2552 New.
2553 * testsuite/gas/i386/i386.exp: Run new tests.
2554
3128916d
CZ
25552020-07-07 Claudiu Zissulescu <claziss@synopsys.com>
2556
2557 * config/tc-arc.c (find_opcode_match): Add error messages.
2558 * testsuite/gas/arc/add_s-err.s: Update test.
2559 * testsuite/gas/arc/asm-errors.err: Likewise.
2560 * testsuite/gas/arc/cpu-em-err.s: Likewise.
2561 * testsuite/gas/arc/hregs-err.s: Likewise.
2562 * testsuite/gas/arc/warn.s: Likewise.
2563
dbdba9b0
L
25642020-07-07 H.J. Lu <hongjiu.lu@intel.com>
2565
2566 PR gas/26212
2567 * doc/c-i386.texi: Remove an incorrect AVX2 entry.
2568
34e79798
AM
25692020-07-07 Alan Modra <amodra@gmail.com>
2570
2571 * testsuite/gas/all/gas.exp: Use is_xcoff_format.
2572 * testsuite/gas/ppc/ppc.exp: Likewise.
2573 * testsuite/gas/all/weakref1l.d: Likewise.
2574
3c6e74ce
NC
25752020-07-07 Nick Clifton <nickc@redhat.com>
2576
2577 * testsuite/gas/arm/cde-missing-fp.l: Fix spelling mistake in
2578 expected output.
2579
e74d9fa9
JB
25802020-07-06 Jan Beulich <jbeulich@suse.com>
2581
2582 * testsuite/gas/i386/x86-64-avx512bw-wig1.d,
2583 testsuite/gas/i386/x86-64-avx512bw-wig1-intel.d,
2584 testsuite/gas/i386/x86-64-evex-wig1.d,
2585 testsuite/gas/i386/x86-64-evex-wig1-intel.d: Adjust
2586 expectations.
2587
39e0f456
JB
25882020-07-06 Jan Beulich <jbeulich@suse.com>
2589
2590 * testsuite/gas/i386/avx512f-opts.s: Add EVEX movq tests.
2591 * testsuite/gas/i386/x86-64-avx512f-opts.s: Add blank line.
2592 * testsuite/gas/i386/avx512f-opts-intel.d,
2593 testsuite/gas/i386/avx512f-opts.d
2594 testsuite/gas/i386/x86-64-avx512f-opts-intel.d
2595 testsuite/gas/i386/x86-64-avx512f-opts.d: Adjust expectations.
2596
ddc73fa9
NC
25972020-07-06 Yuri Chornoivan <yurchor@ukr.net>
2598
2599 PR 26204
2600 * config/tc-arm.c: Fix spelling mistake.
2601 * config/tc-riscv.c: Likewise.
2602 * config/tc-z80.c: Likewise.
2603 * po/gas.pot: Regenerate.
2604
17550be7
NC
26052020-07-06 Nick Clifton <nickc@redhat.com>
2606
2607 * po/uk.po: Updated Ukranian translation.
2608
b19d852d
NC
26092020-07-04 Nick Clifton <nickc@redhat.com>
2610
2611 * configure: Regenerate.
2612 * po/gas.pot: Regenerate.
2613
26142020-07-04 Nick Clifton <nickc@redhat.com>
2615
2616 * version.m4: Change version number to 2.35.50.
2617 * configure: Regenerate.
2618 * po/bfd.pot: Regenerate.
2619
b115b9fd
NC
26202020-07-04 Nick Clifton <nickc@redhat.com>
2621
2622 Binutils 2.35 branch created.
2623
b657622c
AM
26242020-07-03 Alan Modra <amodra@gmail.com>
2625
2626 PR 26028
2627 * testsuite/gas/ia64/unwind-ilp32.d: Add -T to readelf options.
2628
c2ecccb3
L
26292020-07-02 H.J. Lu <hongjiu.lu@intel.com>
2630
2631 * config/tc-i386.c (build_modrm_byte): Check vexswapsources to
2632 swap two source operands.
2633
f436f38e
NC
26342020-07-02 Nick Clifton <nickc@redhat.com>
2635
2636 * testsuite/gas/all/fill-1.d: Skip for MeP targets.
2637
f405494f
AC
26382020-07-02 Alex Coplan <alex.coplan@arm.com>
2639
2640 * config/tc-aarch64.c (reg_name_p): Fix cast so that we don't
2641 segfault on negative chars.
2642 * testsuite/gas/aarch64/reglike-label-unicode-segv.d: New test.
2643 * testsuite/gas/aarch64/reglike-label-unicode-segv.s: Input.
2644
0942c7ab
NC
26452020-07-02 Nick Clifton <nickc@redhat.com>
2646
2647 PR 26028
2648 * testsuite/gas/ia64/group-2.d: Add -T option to readelf
2649 command line.
2650 * testsuite/gas/ia64/unwind.d: Likewise.
2651 * testsuite/gas/mmix/bspec-1.d: Likewise.
2652 * testsuite/gas/mmix/bspec-2.d: Likewise.
2653 * testsuite/gas/mmix/comment-1.d: Likewise.
2654 * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
2655
3443489c
AM
26562020-07-01 Alan Modra <amodra@gmail.com>
2657
2658 * config/tc-xc16x.c (md_apply_fix): Add FIXME.
2659
054b336d
AM
26602020-07-01 Alan Modra <amodra@gmail.com>
2661
2662 * testsuite/gas/all/eqv-dot.d: xfail targets that set linkrelax
2663 in data sections, and mep.
2664
bbd19b19
L
26652020-06-30 H.J. Lu <hongjiu.lu@intel.com>
2666
2667 * NEWS: Mention x86 NaCl target support removal.
2668 * config/tc-i386.c: Remove x86 NaCl target support.
2669 * config/tc-i386.h: Likewise.
2670 * configure.tgt: Likewise.
2671 * testsuite/gas/i386/i386.exp: Likewise.
2672 * testsuite/gas/i386/iamcu-1.d: Likewise.
2673 * testsuite/gas/i386/iamcu-2.d: Likewise.
2674 * testsuite/gas/i386/iamcu-3.d: Likewise.
2675 * testsuite/gas/i386/iamcu-4.d: Likewise.
2676 * testsuite/gas/i386/iamcu-5.d: Likewise.
2677 * testsuite/gas/i386/k1om.d: Likewise.
2678 * testsuite/gas/i386/l1om.d: Likewise.
2679
08ccfccf
NC
26802020-06-30 Nelson Chu <nelson.chu@sifive.com>
2681
2682 * config/tc-riscv.c (riscv_csr_class_check): Removed. Move the
2683 checking into riscv_csr_address.
2684 (riscv_csr_version_check): Likewise.
2685 (riscv_csr_address): New function. Return the suitable CSR address
2686 after checking the ISA dependency and versions. Issue warnings if
2687 we find any conflict and -mcsr-check is set. CSR_CLASS_F and
2688 CSR_CLASS_DEBUG are unprivileged CSR for now, so don't check the
2689 priv spec versions for them.
2690 (reg_csr_lookup_internal): Call riscv_csr_address to find the
2691 suitable CSR address.
2692 * testsuite/gas/riscv/priv-reg-fail-fext.d: Remove -mpriv-spec=1.11.
2693 * testsuite/gas/riscv/priv-reg-fail-read-only-01.d: Likewise.
2694 * testsuite/gas/riscv/priv-reg-fail-rv32-only.d: Likewise.
2695 * testsuite/gas/riscv/priv-reg-fail-fext.l: We don't care the
2696 priv spec warnings here. These warnings are added by accident.
2697 Remove them and only focus on the ISA dependency warnings.
2698 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
2699 * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
2700 * testsuite/gas/riscv/priv-reg-fail-version-1p9.l: Updated since
2701 dscratch0 and dscratch1 are regarded as the unprivileged CSR rather
2702 than the privileged ones.
2703 * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
2704 * testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
2705 * testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
2706 * testsuite/gas/riscv/priv-reg.s: Likewise. Add missing debug CSR.
2707 * testsuite/gas/riscv/priv-reg-version-1p9.d: Likewise.
2708 * testsuite/gas/riscv/priv-reg-version-1p9p1.d: Likewise.
2709 * testsuite/gas/riscv/priv-reg-version-1p10.d: Likewise.
2710 * testsuite/gas/riscv/priv-reg-version-1p11.d: Likewise.
2711 * testsuite/gas/riscv/csr-dw-regnums.d: Likewise.
2712 * testsuite/gas/riscv/csr-dw-regnums.s: Likewise.
2713
8c190ce0
L
27142020-06-29 H.J. Lu <hongjiu.lu@intel.com>
2715
0be2fe67
AM
2716 * config/tc-i386.c (build_vex_prefix): Support VEX base opcode
2717 length > 1.
8c190ce0
L
2718 (md_assemble): Don't process ImmExt without operands.
2719
b20e7614
HPN
27202020-06-29 Hans-Peter Nilsson <hp@bitrange.com>
2721
2722 PR gas/25331
2723 * config/tc-mmix.c (md_assemble) <fixup for
2724 BFD_RELOC_MMIX_BASE_PLUS_OFFSET>: This fixup affects 1 byte, not 8.
2725 Also, set its fx_no_overflow.
2726 (md_convert_frag) <case ENCODE_RELAX (STATE_PUSHJSTUB, STATE_ZERO)>:
2727 Similarly this fixup affects 4 bytes, not 8 and needs its
2728 fx_no_overflow set.
2729 * config/tc-mmix.h (TC_FX_SIZE_SLACK): Don't define.
4e394b28 2730 * testsuite/gas/mmix/pr25331.d, testsuite/gas/mmix/pr25331.s: New test.
b20e7614 2731
279edac5
AM
27322020-06-29 Alan Modra <amodra@gmail.com>
2733
2734 * config/tc-s12z.c: Use C style comments.
2735 * config/tc-z80.c: Likewise.
2736 * config/tc-xtensa.c (emit_ld_r_n): Remove commented out code.
2737
b6cd5d10
L
27382020-06-26 H.J. Lu <hongjiu.lu@intel.com>
2739
2740 * config/tc-i386.c (md_assemble): Process ImmExt without
2741 operands.
2742
63112cd6
L
27432020-06-26 H.J. Lu <hongjiu.lu@intel.com>
2744
2745 * config/tc-i386.c (check_VecOperands): Replace vecsib with sib.
2746 Replace VecSIB128, VecSIB256 and VecSIB512 with VECSIB128,
2747 VECSIB256 and VECSIB512, respectively.
2748 (build_modrm_byte): Replace vecsib with sib.
2749
2a1bb84c
JB
27502020-06-26 Jan Beulich <jbeulich@suse.com>
2751
2752 * testsuite/gas/i386/nop-1-suffix.d: New.
2753 * testsuite/gas/i386/i386.exp: Run new test.
2754
85f7484a
PB
27552020-06-26 Pat Bernardi <bernardi@adacore.com>
2756
2757 * config/tc-m68k.c (m68k_elf_gnu_attribute): New function.
2758 (md_pseudo_table): Handle "gnu_attribute".
2759 * doc/as.texi: Document GNU attribute for M68K.
2760
b59d128a
NC
27612020-06-25 Nick Clifton <nickc@redhat.com>
2762
2763 PR 26141
2764 * config/tc-arm.c (arm_force_relocation): Force resolution of
2765 BFD_RELOC_THUMB_PCREL_BRANCH12 relocations.
2766 * testsuite/gas/arm/plt-1.d: Adjust expected disassembly.
2767
c423d21a
JB
27682020-06-25 Jan Beulich <jbeulich@suse.com>
2769
2770 * config/tc-i386.c (md_assemble): Move call to process_immext()
2771 ...
2772 (process_operands): ... here.
2773
8bbb3ad8
JB
27742020-06-25 Jan Beulich <jbeulich@suse.com>
2775
2776 * config/tc-i386.c (process_suffix): Skip ambiguous operand size
2777 diagnostic when there is a sizing prefix. Switch to word/dword/
2778 qword encoding when there is a sizing prefix and no (explicit or
2779 derived) suffix.
2780 (update_imm): Handle presence of a sizing prefix.
2781 * testsuite/gas/i386/noreg16-data32.d,
2782 testsuite/gas/i386/noreg32-data16.d,
2783 testsuite/gas/i386/noreg32-data16.e,
2784 testsuite/gas/i386/noreg64-data16.d,
2785 testsuite/gas/i386/noreg64-data16.e,
2786 testsuite/gas/i386/noreg64-rex64.d: New.
2787 * testsuite/gas/i386/i386.exp: Run new tests.
2788 * testsuite/gas/i386/noreg32.s, testsuite/gas/i386/noreg64.s:
2789 Introduce and use pfx* macros.
2790 * testsuite/gas/i386/noreg16.s: Likewise. Replace 32-bit
2791 addressing.
2792 * testsuite/gas/i386/noreg16.d: Adjust expectations.
2793
589958d6
JB
27942020-06-25 Jan Beulich <jbeulich@suse.com>
2795
2796 * testsuite/gas/i386/avx-16bit.d,
2797 testsuite/gas/i386/avx-scalar.d, testsuite/gas/i386/avx.d,
2798 testsuite/gas/i386/avx512f-16bit.d,
2799 testsuite/gas/i386/avx512f.d,
2800 testsuite/gas/i386/evex-lig256.d,
2801 testsuite/gas/i386/evex-lig512.d
2802 testsuite/gas/i386/evex-wig1.d, testsuite/gas/i386/katmai.d,
2803 testsuite/gas/i386/noreg16.d, testsuite/gas/i386/noreg32.d,
2804 testsuite/gas/i386/ptwrite.d, testsuite/gas/i386/simd.d,
2805 testsuite/gas/i386/sse2-16bit.d,
2806 testsuite/gas/i386/sse2.d, testsuite/gas/i386/sse2avx.d: Adjust
2807 expectations.
2808
0b9404fd
JB
28092020-06-25 Jan Beulich <jbeulich@suse.com>
2810
2811 * config/tc-i386.c (md_assemble): Also reject explicit REX
2812 prefixes with VEX and alike encoded insns. Zap consumed bits
2813 from i.rex.
2814 (output_insn): Don't ignore REX prefix for VEX and alike
2815 encodings; abort() instead if encountered.
2816 * testsuite/gas/i386/x86-64-pseudos.s: Move REX-with-VEX cases
2817 ...
2818 * testsuite/gas/i386/x86-64-pseudos-bad.s: ... here.
2819 * testsuite/gas/i386/x86-64-pseudos.d,
2820 testsuite/gas/i386/x86-64-pseudos-bad.l: Adjust expectations.
2821
a5aeccd9
JB
28222020-06-25 Jan Beulich <jbeulich@suse.com>
2823
2824 * config/tc-i386.c (process_operands): Translate explicit REX
2825 prefix into i.rex for SSE2AVX templates.
2826 (set_rex_vrex): New helper.
2827 (build_modrm_byte): Use it.
2828 * testsuite/gas/i386/x86-64-sse2avx.s: Add cases with explict
2829 REX prefixes.
2830 * testsuite/gas/i386/x86-64-sse2avx.d: Adjust expectations.
2831
40d231b4
JB
28322020-06-25 Jan Beulich <jbeulich@suse.com>
2833
2834 * config/tc-i386.c (cpu_flags_match): Only match SSE2AVX
2835 templates when there's no data size prefix.
2836 (md_assemble): Reject data size prefix also for legacy encoded
2837 SIMD templates.
2838 * testsuite/gas/i386/prefix32.s, testsuite/gas/i386/prefix64.s:
2839 Uncomment previously not working line.
2840 * testsuite/gas/i386/sse2avx.s: Add ldmxcsr/stmxcsr cases with
2841 data16 prefix.
2842 * testsuite/gas/i386/prefix32.l, testsuite/gas/i386/prefix64.l,
2843 testsuite/gas/i386/sse2avx.d: Adjust expectations.
2844
11abe426
JB
28452020-06-25 Jan Beulich <jbeulich@suse.com>
2846
2847 * config/tc-i386.c (build_evex_prefix): Drop early setting of
2848 vec_length.
2849
1a79004f
NC
28502020-06-23 Nelson Chu <nelson.chu@sifive.com>
2851
2852 * config/tc-riscv.c (explicit_priv_attr): Rename explicit_csr to
2853 explicit_priv_attr. It used to indicate CSR or priv instructions are
2854 explictly used.
2855 (riscv_is_priv_insn): Return True if it is a privileged instruction.
2856 (riscv_ip): Call riscv_is_priv_insn to check whether the instruction
2857 is privileged or not. If it is, then set explicit_priv_attr to TRUE.
2858 (riscv_write_out_attrs): Clarification of when to generate the elf
2859 priv spec attributes.
2860 * testsuite/gas/riscv/attribute-11.s: Add comments.
2861 * testsuite/gas/riscv/attribute-14.s: New testcase. Use symbol
2862 `priv_insn_<n>` to decide which priv instruction is expected to used.
2863 (<n> is a to e.)
2864 * testsuite/gas/riscv/attribute-14a.d: Likewise.
2865 * testsuite/gas/riscv/attribute-14b.d: Likewise.
2866 * testsuite/gas/riscv/attribute-14c.d: Likewise.
2867 * testsuite/gas/riscv/attribute-14d.d: Likewise.
2868 * testsuite/gas/riscv/attribute-14e.d: Likewise.
2869
39ff0b81
NC
28702020-06-22 Nelson Chu <nelson.chu@sifive.com>
2871
2872 * config/tc-riscv.c (buf_size, buf): Remove the unused variables.
2873 (riscv_set_default_priv_spec): Get the priv spec version from the
2874 priv spec attributes by riscv_get_priv_spec_class_from_numbers.
2875
e2201c2a
AM
28762020-06-20 Alan Modra <amodra@gmail.com>
2877
2878 * configure.tgt: Set bfd_gas for all SH targets.
2879
d27c357a
JB
28802020-06-18 Jan Beulich <jbeulich@suse.com>
2881
2882 * testsuite/gas/i386/arch-13.s: Add alternative VMGEXIT case.
2883 * testsuite/gas/i386/arch-13.d: Extend -march=. Adjust
2884 expectations.
2885
708a2fff
CL
28862020-06-16 Lili Cui <lili.cui@intel.com>
2887
2888 * config/tc-i386.c (cpu_arch): Correct noavx512_vp2intersect
2889 cpu_arch to CPU_ANY_VP2INTERSECT_FLAGS.
2890 * doc/c-i386.texi: Add avx512_vp2intersect.
2891
2106ed9b
JB
28922020-06-16 Jan Beulich <jbeulich@suse.com>
2893
2894 * config/tc-i386.c (md_assemble): Drop SSE4a from SSE check
2895 conditional.
2896 * testsuite/gas/i386/sse-check.s: Adjust comment.
2897 * testsuite/gas/i386/sse-check-error.l,
2898 testsuite/gas/i386/sse-check-warn.e,
2899 testsuite/gas/i386/x86-64-sse-check-error.l: Adjust
2900 expectations.
2901
a435742a
AM
29022020-06-16 Alan Modra <amodra@gmail.com>
2903
2904 * config/tc-tic30.h: Remove OBJ_AOUT support.
2905 * configure.tgt: Delete tic30-*-*aout* entry.
2906
7a77f1ac
MF
29072020-06-15 Max Filippov <jcmvbkbc@gmail.com>
2908
2909 * config/tc-xtensa.c (XTHAL_ABI_WINDOWED, XTHAL_ABI_CALL0): New
2910 macros.
2911 (elf32xtensa_abi): New declaration.
2912 (option_abi_windowed, option_abi_call0): New enum constants.
2913 (md_longopts): Add entries for --abi-windowed and --abi-call0.
2914 (md_parse_option): Add handlers for --abi-windowed and
2915 --abi-call0.
2916 (xtensa_add_config_info): Use xtensa_abi_choice instead of
2917 XSHAL_ABI to format ABI tag.
2918 * doc/as.texi (Target Xtensa options): Add --abi-windowed and
2919 --abi-call0 to the list of options.
2920 * doc/c-xtensa.texi: Add description for options --abi-windowed
2921 and --abi-call0.
2922 * testsuite/gas/xtensa/abi-call0.d: New test definition.
2923 * testsuite/gas/xtensa/abi-windowed.d: New test definition.
2924 * testsuite/gas/xtensa/abi.s: New test source.
2925
efe30057
L
29262020-06-14 H.J. Lu <hongjiu.lu@intel.com>
2927
2928 PR gas/26115
2929 * testsuite/gas/i386/tsxldtrk.d: Replace xsuspldtrk with
2930 xsusldtrk.
2931 * testsuite/gas/i386/tsxldtrk.s: Likewise.
2932 * testsuite/gas/i386/x86-64-tsxldtrk.d: Likewise.
2933 * testsuite/gas/i386/x86-64-tsxldtrk.s: Likewise.
2934
d8af286f
NC
29352020-06-12 Nelson Chu <nelson.chu@sifive.com>
2936
2937 * testsuite/gas/riscv/priv-reg-fail-version-1p9.d: Removed.
2938 * testsuite/gas/riscv/priv-reg-fail-version-1p9.l: Likewise.
2939 * testsuite/gas/riscv/priv-reg-version-1p9.d: Likewise.
2940
18ca16be
SG
29412020-06-09 Seth Girvan <snth@snthhacks.com>
2942
2943 * doc/c-avr.texi: Improve wording.
2944
6778f1c4
JB
29452020-06-09 Jan Beulich <jbeulich@suse.com>
2946
2947 * testsuite/gas/i386/x86-64-pseudos-bad.s,
2948 testsuite/gas/i386/x86-64-pseudos-bad.l: New.
2949
73239888
JB
29502020-06-09 Jan Beulich <jbeulich@suse.com>
2951
2952 * testsuite/gas/i386/prefix.s: Add bogus prefix-with-VEX/EVEX
2953 encoding tests.
2954 * testsuite/gas/i386/prefix.d: Adjust expectations.
2955
bf926894
JB
29562020-06-09 Jan Beulich <jbeulich@suse.com>
2957
2958 * testsuite/gas/i386/prefix.s: Add bogus REP / EVEX.W prefix
2959 with VEX/EVEX encoding tests.
2960 * testsuite/gas/i386/prefix.d: Adjust expectations.
2961
828c2a25
JB
29622020-06-09 Jan Beulich <jbeulich@suse.com>
2963
2964 * config/tc-i386.c (process_suffix): Restrict defaulting to 'q'
2965 suffix.
2966 * testsuite/gas/i386/noreg64.s: Add lcall/ljmp cases.
2967 * testsuite/gas/i386/noreg64.d: Adjust expectations.
2968 * testsuite/gas/i386/noreg-intel64.d,
2969 testsuite/gas/i386/noreg-intel64.l,
2970 testsuite/gas/i386/noreg-intel64.s: New.
2971 * testsuite/gas/i386/i386.exp: Run new tests.
2972
da4977e0
JB
29732020-06-09 Jan Beulich <jbeulich@suse.com>
2974
2975 * config/tc-i386.c (vex_encoding_error): New enumerator.
2976 (VEX_check_operands): Rename to VEX_check_encoding. Check
2977 for vex_encoding_error. Move Imm4 handling ...
2978 (check_VecOperands): ... here.
2979 (match_template): Call VEX_check_encoding when there are no
2980 operands. Split construct calling check_VecOperands and
2981 VEX_check_encoding (when there are operands).
2982 (check_register): Don't blindly set vex_encoding_evex.
2983 * testsuite/gas/i386/pseudos-bad.s,
2984 testsuite/gas/i386/pseudos-bad.l: New.
2985 * testsuite/gas/i386/i386.exp: Run new test.
2986 * testsuite/gas/i386/xmmhi64.s: Drop {vex2}.
2987
26417f19
AC
29882020-06-08 Alex Coplan <alex.coplan@arm.com>
2989
2990 * config/tc-arm.c (insns): Add dfb.
2991 * testsuite/gas/arm/dfb.d: New test.
2992 * testsuite/gas/arm/dfb.s: Input for test.
2993
9f3e7dbc
NC
29942020-06-08 Nick Clifton <nickc@redhat.com>
2995
2996 * testsuite/gas/cfi/cfi-i386-2.d: Skip for PE based targets.
2997
dd6b8a0b
JB
29982020-06-08 Jan Beulich <jbeulich@suse.com>
2999
3000 * config/tc-i386.c (pi): Add checks for RegMask and RegBND.
3001
73c76375
JB
30022020-06-08 Jan Beulich <jbeulich@suse.com>
3003
3004 * config/tc-i386.c (check_byte_reg): Drop dead conditional
3005 around as_bad().
3006
22e00a3f
JB
30072020-06-08 Jan Beulich <jbeulich@suse.com>
3008
3009 * config/tc-i386.c (check_register): Split RegTR handling, to
3010 fail recognition also in 64-bit mode as well as with i586 or
3011 i686 explicitly enabled.
3012 * testsuite/gas/i386/x86_64.s: Add insns referencing tr<N>.
3013 * testsuite/gas/i386/x86_64-intel.d,
3014 testsuite/gas/i386/x86_64.d: Adjust expectations.
3015
1ab84e02
JB
30162020-06-08 Jan Beulich <jbeulich@suse.com>
3017
3018 * testsuite/gas/cfi/cfi-i386-2.d: Adjust expectations.
3019 * testsuite/gas/cfi/cfi.exp: Run this test.
3020
af32b722
JB
30212020-06-08 Jan Beulich <jbeulich@suse.com>
3022
3023 * config/tc-i386.c (parse_real_register): Add allow_pseudo_reg
3024 check to %st(N) parsing logic.
3025 * testsuite/gas/cfi/cfi-i386.s: Set "generic32" arch.
3026
8a6fb3f9
JB
30272020-06-08 Jan Beulich <jbeulich@suse.com>
3028
3029 * config/tc-i386.c (bad_reg): New.
3030 (check_VecOperations, i386_att_operand, i386_parse_name): Check
3031 for it.
3032 (check_register): New, broken out from ...
3033 (parse_real_register): ... here. Call it.
3034 (parse_register): Call it, and error upon failure.
3035 * testsuite/gas/i386/equ-bad.s, testsuite/gas/i386/equ-bad.l,
3036 testsuite/gas/i386/x86-64-equ-bad.s,
3037 testsuite/gas/i386/x86-64-equ-bad.l: New.
3038 * testsuite/gas/i386/i386.exp: Run new tests.
3039
1424c35d
AM
30402020-06-06 Alan Modra <amodra@gmail.com>
3041
3042 * config/tc-ppc.c (md_show_usage): Mention -mpower10 and -mpwr10.
3043 * doc/c-ppc.texi: Likewise.
3044
87c69f97
AM
30452020-06-06 Alan Modra <amodra@gmail.com>
3046
3047 * config/tc-ppc.c: Update throughout for reloc renaming.
3048
f1919c56
JM
30492020-06-05 Jose E. Marchesi <jose.marchesi@oracle.com>
3050
3051 * config/tc-bpf.c (md_apply_fix): Avoid GCC 10 warning
3052 stringop-overflow.
3053
3fc6c3dc
NC
30542020-06-05 Nelson Chu <nelson.chu@sifive.com>
3055
3056 * config/tc-riscv.c (explicit_csr): New static boolean.
3057 Used to indicate CSR are explictly used.
3058 (riscv_ip): Set explicit_csr to TRUE if any CSR is used.
3059 (riscv_write_out_attrs): If we already have set elf priv
3060 attributes, then generate them. Otherwise, don't generate
3061 them when no CSR are used.
3062 * testsuite/gas/riscv/attribute-01.d: Remove the priv attributes.
3063 * testsuite/gas/riscv/attribute-02.d: Likewise.
3064 * testsuite/gas/riscv/attribute-03.d: Likewise.
3065 * testsuite/gas/riscv/attribute-04.d: Likewise.
3066 * testsuite/gas/riscv/attribute-05.d: Likewise.
3067 * testsuite/gas/riscv/attribute-06.d: Likewise.
3068 * testsuite/gas/riscv/attribute-07.d: Likewise.
3069 * testsuite/gas/riscv/attribute-08.d: Likewise.
3070 * testsuite/gas/riscv/attribute-09.d: Likewise.
3071 * testsuite/gas/riscv/attribute-10.d: Likewise.
3072 * testsuite/gas/riscv/attribute-unknown.d: Likewise.
3073 * testsuite/gas/riscv/attribute-11.s: New testcase.
3074 * testsuite/gas/riscv/attribute-11.d: New testcase. The CSR is
3075 used, so we should output the ELF priv attributes.
3076 * testsuite/gas/riscv/attribute-12.d: New testcase. The CSR is
3077 used, so output the priv attributes according to the -mpriv-spec.
3078 * testsuite/gas/riscv/attribute-13.d: New testcase. The CSR isn't
3079 used, so ignore the -mpriv-spec setting.
3080
d413a623
L
30812020-06-04 H.J. Lu <hongjiu.lu@intel.com>
3082
3083 * config/tc-ip2k. (ip2k_apply_fix): Pass endianness to
3084 cgen_get_insn_value.
3085 * config/tc-xstormy16.c (xstormy16_md_apply_fix): Pass
3086 endianness to cgen_get_insn_value and cgen_put_insn_value.
3087
7d8b91fd
JM
30882020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3089
3090 * config/tc-bpf.c (md_apply_fix): Simplify and avoid using
3091 cgen_put_insn_value.
3092
d8740be1
JM
30932020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3094
3095 * config/tc-bpf.c (md_begin): Pass CGEN_CPU_OPEN_INSN_ENDIAN to
3096 bpf_cgen_cpu_open.
3097 (md_assemble): Remove no longer needed hack.
3098
e9bffec9
JM
30992020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3100
3101 * cgen.c (gas_cgen_finish_insn): Pass the endianness to
3102 cgen_put_insn_value.
3103 (gas_cgen_md_apply_fix): Likewise.
3104 (gas_cgen_md_apply_fix): Likewise.
3105 * config/tc-bpf.c (md_apply_fix): Pass data endianness to
3106 cgen_put_insn_value.
3107 * config/tc-mep.c (mep_check_ivc2_scheduling): Pass endianness to
3108 cgen_put_insn_value.
3109
1cf67587
AM
31102020-06-04 Alan Modra <amodra@gmail.com>
3111
3112 * testsuite/config/default.exp: Remove global directive outside
3113 proc body.
3114 * testsuite/gas/mep/complex-relocs.exp: Likewise.
3115 * testsuite/gas/microblaze/relax_size.exp: Likewise.
3116 * testsuite/gas/microblaze/reloc_sym.exp: Likewise.
3117 * testsuite/gas/mt/relocs.exp: Likewise.
3118 * testsuite/gas/rx/rx.exp: Likewise.
3119
338d56a8
SC
31202020-06-03 Stephen Casner <casner@acm.org>
3121
3122 * doc/c-riscv.texi (RISC-V-Options): Fix non-ASCII apostrophe.
3123
bb7322c6
JW
31242020-06-02 Frédéric Pétrot <frederic.petrot@univ-grenoble-alpes.fr>
3125 Jim Wilson <jimw@sifive.com>
3126
3127 PR 26051
3128 * doc/c-riscv.texi (RISC-V-Formats): Add missing I format using
3129 simm12(rs1). Correct S format to use simm12(rs1). Drop SB and B
3130 formats using simm12(rs1). Correct SB and B to use rs1 and rs2.
3131 Move B before SB. Move J before UJ.
3132
c39c821c
AC
31332020-06-01 Alex Coplan <alex.coplan@arm.com>
3134
3135 * write.c (relax_segment): Fix handling of negative offset when
3136 relaxing an rs_org frag.
3137 * testsuite/gas/aarch64/org-neg.d: New test.
3138 * testsuite/gas/aarch64/org-neg.l: Error output for test.
3139 * testsuite/gas/aarch64/org-neg.s: Input for test.
3140 * testsuite/gas/arm/org-neg.d: New test.
3141 * testsuite/gas/arm/org-neg.l: Error output for test.
3142 * testsuite/gas/arm/org-neg.s: Input for test.
3143
66e3eb08
SC
31442020-05-28 Stephen Casner <casner@acm.org>
3145
3146 Fix unexpected failures in gas testsuite for pdp11-aout target.
3147 These are caused by the PDP11's mix of little-endian octets in
3148 shorts but shorts in big endian order for long or quad.
3149
3150 * config/tc-pdp11.c (md_number_to_chars): Implement .quad
3151 * testsuite/gas/all/gas.exp: Select alternate test scripts for
3152 pdp11, skip octa test completely.
3153 * testsuite/gas/all/eqv-dot-pdp11.s: Identical to eqv-dot.s
3154 * testsuite/gas/all/eqv-dot-pdp11.d: Match different octet order.
3155 * testsuite/gas/all/cond-pdp11.l: Match different octet order.
3156
9e85f042
NC
31572020-05-28 Alex Coplan <alex.coplan@arm.com>
3158
3159 * frags.c (frag_grow): Fix comment.
3160
1c912705
SC
31612020-05-27 Stephen Casner <casner@acm.org>
3162
3163 PR gas/26001
3164 * config/tc-pdp11.c (parse_reg): Distinguish register names from
3165 symbols that begin with a register name.
3166 * testsuite/gas/pdp11/pdp11.exp: Add test of such symbols.
3167 * testsuite/gas/pdp11/pr26001.s: Likewise.
3168 * testsuite/gas/pdp11/pr26001.d: Likewise.
3169
5c505568
SC
31702020-05-27 Simon Cook <simon.cook@embecosm.com>
3171
0be2fe67
AM
3172 * config/tc-riscv.c (riscv_init_csr_hash): NULL initilize next
3173 pointer when creating struct riscv_csr_extra.
5c505568 3174
3c730740
L
31752020-05-26 H.J. Lu <hongjiu.lu@intel.com>
3176
3177 * testsuite/gas/i386/align-branch-9.d: Updated for PECOFF.
3178 * testsuite/gas/i386/inval-avx512f.s: Add .p2align for PECOFF.
3179 * testsuite/gas/i386/inval-avx512f.l: Updated.
3180
57b17940
SSF
31812020-05-26 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
3182
3183 * testsuite/gas/s390/zarch-z13.d: Add regexp checks for vector
3184 load/store instruction variants with alignment hints.
3185 * testsuite/gas/s390/zarch-z13.s: Emit new vector load/store
3186 instruction variants with alignment hints.
3187
e3fed0f2
L
31882020-05-26 H.J. Lu <hongjiu.lu@intel.com>
3189
3190 PR gas/26044
3191 * config/tc-xgate.c (md_apply_fix): Check BFD_RELOC_XGATE_PCREL_X
3192 instead of R_XGATE_PCREL_X.
3193 (xgate_parse_operand): Replace R_XGATE_PCREL_X with
3194 BFD_RELOC_XGATE_PCREL_X.
3195
8bbc5da5
L
31962020-05-26 H.J. Lu <hongjiu.lu@intel.com>
3197
3198 PR gas/26044
3199 * config/tc-visium.c (md_convert_frag): Replace fragP->fr_literal
3200 with &fragP->fr_literal[0].
3201
c4612b92
L
32022020-05-26 H.J. Lu <hongjiu.lu@intel.com>
3203
3204 PR gas/26044
3205 * config/tc-vax.c (md_estimate_size_before_relax): Replace
3206 fragP->fr_literal with &fragP->fr_literal[0].
3207 (md_convert_frag): Likewise.
3208
70b1b570
L
32092020-05-26 H.J. Lu <hongjiu.lu@intel.com>
3210
3211 PR gas/26044
3212 * config/tc-v850.c (md_convert_frag): Replace fragP->fr_literal
3213 with &fragP->fr_literal[0].
3214
e67e940f
L
32152020-05-26 H.J. Lu <hongjiu.lu@intel.com>
3216
3217 PR gas/26044
3218 * config/tc-crx.c (getreg_image): Change argument type to int.
3219 (md_convert_frag): Replace fragP->fr_literal with
3220 &fragP->fr_literal[0].
3221
a05e3e20
L
32222020-05-26 H.J. Lu <hongjiu.lu@intel.com>
3223
3224 PR gas/26044
3225 * onfig/tc-score.c (s3_do_macro_bcmp): Replace overlapping
3226 sprintf with memmove.
3227
c6412eee
L
32282020-05-25 H.J. Lu <hongjiu.lu@intel.com>
3229
3230 * config/tc-mcore.c (md_convert_frag): Replace fragP->fr_literal
3231 with &fragP->fr_literal[0].
3232
9fcc3457
L
32332020-05-25 H.J. Lu <hongjiu.lu@intel.com>
3234
3235 PR gas/26041
3236 * config/tc-cr16.c (md_assemble): Use memmove to concatenate
3237 2 overlapping strings.
3238
6c115e16
L
32392020-05-25 H.J. Lu <hongjiu.lu@intel.com>
3240
3241 * config/tc-cr16.c (md_convert_frag): Replace fragP->fr_literal
3242 with &fragP->fr_literal[0].
3243
a39d29cd
L
32442020-05-25 H.J. Lu <hongjiu.lu@intel.com>
3245
3246 * config/tc-csky.c (md_convert_frag): Replace fragp->fr_literal
3247 with &fragp->fr_literal[0].
3248 * config/tc-microblaze.c (md_apply_fix): Likewise.
3249 * config/tc-sh.c (md_convert_frag): Likewise.
3250
72393fd1
JW
32512020-05-24 Jim Wilson <jimw@sifive.com>
3252
3253 PR 26025
3254 * config/tc-riscv.c (riscv_pre_output_hook): Change s type from const
3255 asection to segT. New locals seg and subseg. Call subseg_set before
3256 fix_new_exp. Call subseg_set after loop to restore original values.
3257
9fbb53c7
AM
32582020-05-21 Alan Modra <amodra@gmail.com>
3259
3260 * atof-generic.c: Replace "if (x) free (x)" with "free (x)"
3261 throughout.
3262 * config/obj-elf.c: Likewise.
3263 * config/tc-aarch64.c: Likewise.
3264 * config/tc-arm.c: Likewise.
3265 * config/tc-m68k.c: Likewise.
3266 * config/tc-nios2.c: Likewise.
3267 * config/tc-tic30.c: Likewise.
3268 * ecoff.c: Likewise.
3269 * read.c: Likewise.
3270 * stabs.c: Likewise.
3271 * symbols.c: Likewise.
3272 * testsuite/gas/all/test-gen.c: Likewise.
3273
8f595e9b
NC
32742020-05-20 Nelson Chu <nelson.chu@sifive.com>
3275
3276 * testsuite/gas/riscv/priv-reg-fail-read-only-01.s: Updated.
3277 * config/tc-riscv.c (default_arch_with_ext, default_isa_spec):
3278 Static variables which are used to set the ISA extensions. You can
3279 use -march (or ELF build attributes) and -misa-spec to set them,
3280 respectively.
3281 (ext_version_hash): The hash table used to handle the extensions
3282 with versions.
3283 (init_ext_version_hash): Initialize the ext_version_hash according
3284 to riscv_ext_version_table.
3285 (riscv_get_default_ext_version): The callback function of
3286 riscv_parse_subset_t. According to the choosed ISA spec,
3287 get the default version for the specific extension.
3288 (riscv_set_arch): Set the callback function.
3289 (enum options, struct option md_longopts): Add new option -misa-spec.
3290 (md_parse_option): Do not call riscv_set_arch for -march. We will
3291 call it later in riscv_after_parse_args. Call riscv_get_isa_spec_class
3292 to set default_isa_spec class.
3293 (riscv_after_parse_args): Call init_ext_version_hash to initialize the
3294 ext_version_hash, and then call riscv_set_arch to set the architecture
3295 with versions according to default_arch_with_ext.
3296 * testsuite/gas/riscv/attribute-02.d: Set 0p0 as default version for
3297 x extensions.
3298 * testsuite/gas/riscv/attribute-03.d: Likewise.
3299 * testsuite/gas/riscv/attribute-09.d: New testcase. For i-ext, we
3300 already set it's version to 2p1 by march, so no need to use the default
3301 2p2 version. For m-ext, we do not set the version by -march and ELF arch
3302 attribute, so set the default 2p0 to it. For zicsr, it is not defined in
3303 ISA spec 2p2, so set 0p0 to it.
3304 * testsuite/gas/riscv/attribute-10.d: New testcase. The version of
3305 zicsr is 2p0 according to ISA spec 20191213.
3306 * config/tc-riscv.c (DEFAULT_RISCV_ARCH_WITH_EXT)
3307 (DEFAULT_RISCV_ISA_SPEC): Default configure option settings.
3308 You can set them by configure options --with-arch and
3309 --with-isa-spec, respectively.
3310 (riscv_set_default_isa_spec): New function used to set the
3311 default ISA spec.
3312 (md_parse_option): Call riscv_set_default_isa_spec rather than
3313 call riscv_get_isa_spec_class directly.
3314 (riscv_after_parse_args): If the -isa-spec is not set, then we
3315 set the default ISA spec according to DEFAULT_RISCV_ISA_SPEC by
3316 calling riscv_set_default_isa_spec.
3317 * testsuite/gas/riscv/attribute-01.d: Add -misa-spec=2.2, since
3318 the --with-isa-spec may be set to different ISA spec.
3319 * testsuite/gas/riscv/attribute-02.d: Likewise.
3320 * testsuite/gas/riscv/attribute-03.d: Likewise.
3321 * testsuite/gas/riscv/attribute-04.d: Likewise.
3322 * testsuite/gas/riscv/attribute-05.d: Likewise.
3323 * testsuite/gas/riscv/attribute-06.d: Likewise.
3324 * testsuite/gas/riscv/attribute-07.d: Likewise.
3325 * configure.ac: Add configure options, --with-arch and
3326 --with-isa-spec.
3327 * configure: Regenerated.
3328 * config.in: Regenerated.
3329 * config/tc-riscv.c (default_priv_spec): Static variable which is
3330 used to check if the CSR is valid for the chosen privilege spec. You
3331 can use -mpriv-spec to set it.
3332 (enum reg_class): We now get the CSR address from csr_extra_hash rather
3333 than reg_names_hash. Therefore, move RCLASS_CSR behind RCLASS_MAX.
3334 (riscv_init_csr_hashes): Only need to initialize one hash table
3335 csr_extra_hash.
3336 (riscv_csr_class_check): Change the return type to void. Don't check
3337 the ISA dependency if -mcsr-check isn't set.
3338 (riscv_csr_version_check): New function. Check and find the CSR address
3339 from csr_extra_hash, according to default_priv_spec. Report warning
3340 for the invalid CSR if -mcsr-check is set.
3341 (reg_csr_lookup_internal): Updated.
3342 (reg_lookup_internal): Likewise.
3343 (md_begin): Updated since DECLARE_CSR and DECLARE_CSR_ALIAS are changed.
3344 (enum options, struct option md_longopts): Add new GAS option -mpriv-spec.
3345 (md_parse_option): Call riscv_set_default_priv_version to set
3346 default_priv_spec.
3347 (riscv_after_parse_args): If -mpriv-spec isn't set, then set the default
3348 privilege spec to the newest one.
3349 (enum riscv_csr_class, struct riscv_csr_extra): Move them to
3350 include/opcode/riscv.h.
3351 * testsuite/gas/riscv/priv-reg-fail-fext.d: This test case just want
3352 to check the ISA dependency for CSR, so fix the spec version by adding
3353 -mpriv-spec=1.11.
3354 * testsuite/gas/riscv/priv-reg-fail-fext.l: Likewise. There are some
3355 version warnings for the test case.
0be2fe67
AM
3356 * testsuite/gas/riscv/priv-reg-fail-read-only-01.d: Likewise.
3357 * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
3358 * testsuite/gas/riscv/priv-reg-fail-read-only-02.d: Likewise.
3359 * testsuite/gas/riscv/priv-reg-fail-rv32-only.d: Likewise.
3360 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
3361 * testsuite/gas/riscv/priv-reg-fail-version-1p9.d: New test case.
8f595e9b 3362 Check whether the CSR is valid when privilege version 1.9 is choosed.
0be2fe67
AM
3363 * testsuite/gas/riscv/priv-reg-fail-version-1p9.l: Likewise.
3364 * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.d: New test case.
8f595e9b 3365 Check whether the CSR is valid when privilege version 1.9.1 is choosed.
0be2fe67
AM
3366 * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
3367 * testsuite/gas/riscv/priv-reg-fail-version-1p10.d: New test case.
8f595e9b 3368 Check whether the CSR is valid when privilege version 1.10 is choosed.
0be2fe67
AM
3369 * testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
3370 * testsuite/gas/riscv/priv-reg-fail-version-1p11.d: New test case.
8f595e9b 3371 Check whether the CSR is valid when privilege version 1.11 is choosed.
0be2fe67 3372 * testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
8f595e9b
NC
3373 * config/tc-riscv.c (DEFAULT_RISCV_ISA_SPEC): Default configure option
3374 setting. You can set it by configure option --with-priv-spec.
3375 (riscv_set_default_priv_spec): New function used to set the default
3376 privilege spec.
3377 (md_parse_option): Call riscv_set_default_priv_spec rather than
3378 call riscv_get_priv_spec_class directly.
3379 (riscv_after_parse_args): If -mpriv-spec isn't set, then we set the
3380 default privilege spec according to DEFAULT_RISCV_PRIV_SPEC by
3381 calling riscv_set_default_priv_spec.
3382 * testsuite/gas/riscv/csr-dw-regnums.d: Add -mpriv-spec=1.11, since
3383 the --with-priv-spec may be set to different privilege spec.
3384 * testsuite/gas/riscv/priv-reg.d: Likewise.
3385 * configure.ac: Add configure option --with-priv-spec.
3386 * configure: Regenerated.
3387 * config.in: Regenerated.
3388 * config/tc-riscv.c (explicit_attr): Rename explicit_arch_attr to
3389 explicit_attr. Set it to TRUE if any ELF attribute is found.
3390 (riscv_set_default_priv_spec): Try to set the default_priv_spec if
3391 the priv attributes are set.
3392 (md_assemble): Set the default_priv_spec according to the priv
3393 attributes when we start to assemble instruction.
3394 (riscv_write_out_attrs): Rename riscv_write_out_arch_attr to
3395 riscv_write_out_attrs. Update the arch and priv attributes. If we
3396 don't set the corresponding ELF attributes, then try to output the
3397 default ones.
3398 (riscv_set_public_attributes): If any ELF attribute or -march-attr
3399 options is set (explicit_attr is TRUE), then call riscv_write_out_attrs
3400 to update the arch and priv attributes.
3401 (s_riscv_attribute): Make sure all arch and priv attributes are set
3402 before any instruction.
3403 * testsuite/gas/riscv/attribute-01.d: Update the priv attributes if any
3404 ELF attribute or -march-attr is set. If the priv attributes are not
3405 set, then try to update them by the default setting (-mpriv-spec or
3406 --with-priv-spec).
3407 * testsuite/gas/riscv/attribute-02.d: Likewise.
3408 * testsuite/gas/riscv/attribute-03.d: Likewise.
3409 * testsuite/gas/riscv/attribute-04.d: Likewise.
3410 * testsuite/gas/riscv/attribute-06.d: Likewise.
3411 * testsuite/gas/riscv/attribute-07.d: Likewise.
3412 * testsuite/gas/riscv/attribute-08.d: Likewise.
3413 * testsuite/gas/riscv/attribute-09.d: Likewise.
3414 * testsuite/gas/riscv/attribute-10.d: Likewise.
3415 * testsuite/gas/riscv/attribute-unknown.d: Likewise.
3416 * testsuite/gas/riscv/attribute-05.d: Likewise. Also, the priv spec
3417 set by priv attributes must be supported.
3418 * testsuite/gas/riscv/attribute-05.s: Likewise.
3419 * testsuite/gas/riscv/priv-reg-fail-version-1p9.d: Likewise. Updated
3420 priv attributes according to the -mpriv-spec option.
3421 * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.d: Likewise.
3422 * testsuite/gas/riscv/priv-reg-fail-version-1p10.d: Likewise.
3423 * testsuite/gas/riscv/priv-reg-fail-version-1p11.d: Likewise.
3424 * testsuite/gas/riscv/priv-reg.d: Removed.
3425 * testsuite/gas/riscv/priv-reg-version-1p9.d: New test case. Dump the
3426 CSR according to the priv spec 1.9.
3427 * testsuite/gas/riscv/priv-reg-version-1p9p1.d: New test case. Dump the
3428 CSR according to the priv spec 1.9.1.
3429 * testsuite/gas/riscv/priv-reg-version-1p10.d: New test case. Dump the
3430 CSR according to the priv spec 1.10.
3431 * testsuite/gas/riscv/priv-reg-version-1p11.d: New test case. Dump the
3432 CSR according to the priv spec 1.11.
3433 * config/tc-riscv.c (md_show_usage): Add descriptions about
3434 the new GAS options.
3435 * doc/c-riscv.texi: Likewise.
3436
3d205eb4
PB
34372020-05-19 Peter Bergner <bergner@linux.ibm.com>
3438
3439 * testsuite/gas/ppc/power9.s <dcbf, dcbfl, dcbflp>: Add tests.
3440 * testsuite/gas/ppc/power9.d: Likewise.
3441 * testsuite/gas/ppc/power10.s <dcbf, dcbfps, dcbstps, hwsync, lwsync,
3442 pause_short, phwsync, plwsync, ptesync, stcisync, stncisync, stsync,
3443 sync, wait, waitrsv>: Add tests.
3444 * testsuite/gas/ppc/power10.d: Likewise.
3445
164446e0
AF
34462020-05-19 Alexander Fedotov <alfedotov@gmail.com>
3447
3448 PR 25992
3449 * config/tc-arm.c : Add arm_ext_v8r feature.
3450 (it_fsm_post_encode): Check arm_ext_v8r feature.
3451 (get_aeabi_cpu_arch_from_fset): Check arm_ext_v8r feature.
3452
69f57659
AM
34532020-05-19 Alan Modra <amodra@gmail.com>
3454
3455 * write.c (write_contents): Use bfd_get_filename rather than
3456 accessing bfd->filename directly. Use bfd_section_name rather
3457 than accessing section->name directly.
3458
0e1d094e
AM
34592020-05-19 Alan Modra <amodra@gmail.com>
3460
3461 * symbols.c (local_symbol_make): Init all of lsy_flags.
3462
d402189f
AM
34632020-05-18 Alan Modra <amodra@gmail.com>
3464
3465 * symbols.c (resolve_symbol_value): Invoke LOCAL_SYMBOL_CHECK
3466 before looking at add_symbol->sy_flags.
3467
503648e4 34682020-05-18 Hongtao Liu <hongtao.liu@intel.com>
3469
3470 * config/tc-i386.c: Not handle lret/iret.
3471 * testsuite/gas/i386/lfence-ret-a.d: Adjust testcase.
3472 * testsuite/gas/i386/lfence-ret-b.d: Ditto.
3473 * testsuite/gas/i386/lfence-ret-c.d: Ditto.
3474 * testsuite/gas/i386/lfence-ret-d.d: Ditto.
3475 * testsuite/gas/i386/lfence-ret.s: Ditto.
3476 * testsuite/gas/i386/x86-64-lfence-ret-a.d: Ditto.
3477 * testsuite/gas/i386/x86-64-lfence-ret-b.d: Ditto.
3478 * testsuite/gas/i386/x86-64-lfence-ret-c.d: Ditto.
3479 * testsuite/gas/i386/x86-64-lfence-ret-d.d: Ditto.
3480 * testsuite/gas/i386/x86-64-lfence-ret-e.d: Ditto.
3481 * testsuite/gas/i386/x86-64-lfence-ret.s: Ditto.
3482 * testsuite/gas/i386/x86-64-lfence-ret.e: Deleted.
3483
2a50b401
AM
34842020-05-15 Alan Modra <amodra@gmail.com>
3485 Alex Coplan <alex.coplan@arm.com>
3486
3487 * symbols.c (struct local_symbol): Update comment.
3488 (resolve_symbol_value): For resolved symbols equated to other
3489 symbols, verify that the referenced symbol is not a local_symbol
3490 before accessing sy_value. Don't leave symbol loops during
3491 finalize_syms resolution.
3492 * testsuite/gas/all/assign-bad-recursive.d: New test.
3493 * testsuite/gas/all/assign-bad-recursive.l: Error output for test.
3494 * testsuite/gas/all/assign-bad-recursive.s: Assembly for test.
3495 * testsuite/gas/all/gas.exp: Run it.
3496
9d95b8e9
NC
34972020-05-14 Nick Clifton <nickc@redhat.com>
3498
3499 * po/sv.po: Updated Swedish translation.
3500
3b646889
AM
35012020-05-11 Alan Modra <amodra@gmail.com>
3502
3503 * testsuite/gas/ppc/scalarquad.d,
3504 * testsuite/gas/ppc/scalarquad.s: New test.
3505 * testsuite/gas/ppc/ppc.exp: Run it.
3506
9cc4ce88
AM
35072020-05-11 Alan Modra <amodra@gmail.com>
3508
3509 * testsuite/gas/ppc/rightmost.d,
3510 * testsuite/gas/ppc/rightmost.s: New test.
3511 * testsuite/gas/ppc/ppc.exp: Run it.
3512
5d57bc3f
AM
35132020-05-11 Alan Modra <amodra@gmail.com>
3514
3515 * testsuite/gas/ppc/xvtlsbb.d,
3516 * testsuite/gas/ppc/xvtlsbb.s: New test.
3517 * testsuite/gas/ppc/ppc.exp: Run it.
3518
66ef5847
AM
35192020-05-11 Alan Modra <amodra@gmail.com>
3520
3521 * testsuite/gas/ppc/stringop.d,
3522 * testsuite/gas/ppc/stringop.s: New test.
3523 * testsuite/gas/ppc/ppc.exp: Run it.
3524
4f3e9537
PB
35252020-05-11 Peter Bergner <bergner@linux.ibm.com>
3526
3527 * testsuite/gas/ppc/set_bool.d,
3528 * testsuite/gas/ppc/set_bool.s: New test.
3529 * testsuite/gas/ppc/ppc.exp: Run it.
3530
ec40e91c
AM
35312020-05-11 Alan Modra <amodra@gmail.com>
3532
3533 * testsuite/gas/ppc/bitmanip.d,
3534 * testsuite/gas/ppc/bitmanip.s: New test.
3535 * testsuite/gas/ppc/ppc.exp: Run it.
3536
d7e97a76
AM
35372020-05-11 Alan Modra <amodra@gmail.com>
3538
3539 * testsuite/gas/ppc/genpcv.d,
3540 * testsuite/gas/ppc/genpcv.s: New test.
3541 * testsuite/gas/ppc/ppc.exp: Run it.
3542
fdefed7c
AM
35432020-05-11 Alan Modra <amodra@gmail.com>
3544
3545 * testsuite/gas/ppc/maskmanip.d,
3546 * testsuite/gas/ppc/maskmanip.s: New test.
3547 * testsuite/gas/ppc/ppc.exp: Run it.
3548
aa3c112f
AM
35492020-05-11 Alan Modra <amodra@gmail.com>
3550 Peter Bergner <bergner@linux.ibm.com>
3551
3552 * config/tc-ppc.c (pre_defined_registers): Add accumulators.
3553 (md_assemble): Check acc specified in correct operand.
3554 * testsuite/gas/ppc/outerprod.d,
3555 * testsuite/gas/ppc/outerprod.s,
3556 * testsuite/gas/ppc/vsx4.d,
3557 * testsuite/gas/ppc/vsx4.s: New tests.
3558 * testsuite/gas/ppc/ppc.exp: Run them.
3559
6edbfd3b
AM
35602020-05-11 Alan Modra <amodra@gmail.com>
3561
3562 * testsuite/gas/ppc/simd_perm.d,
3563 * testsuite/gas/ppc/simd_perm.s: New test.
3564 * testsuite/gas/ppc/ppc.exp: Run it.
3565
c7d7aea2
AM
35662020-05-11 Alan Modra <amodra@gmail.com>
3567
3568 * testsuite/gas/ppc/int128.d,
3569 * testsuite/gas/ppc/int128.s: New test.
3570 * testsuite/gas/ppc/ppc.exp: Run it.
3571
94ba9882
AM
35722020-05-11 Alan Modra <amodra@gmail.com>
3573
3574 * testsuite/gas/ppc/vsx_32byte.d,
3575 * testsuite/gas/ppc/vsx_32byte.s: New test.
3576 * testsuite/gas/ppc/ppc.exp: Run it.
3577
f4791f1a
AM
35782020-05-11 Alan Modra <amodra@gmail.com>
3579
3580 * testsuite/gas/ppc/vec_mul.s,
3581 * testsuite/gas/ppc/vec_mul.d: New test.
3582 * testsuite/gas/ppc/ppc.exp: Run it.
3583
3ff0a5ba
PB
35842020-05-11 Peter Bergner <bergner@linux.ibm.com>
3585
3586 * testsuite/gas/ppc/byte_rev.d,
3587 * testsuite/gas/ppc/byte_rev.s: New test.
3588 * testsuite/gas/ppc/ppc.exp: Run it.
3589
afef4fe9
PB
35902020-05-11 Peter Bergner <bergner@linux.ibm.com>
3591
3592 * testsuite/gas/ppc/power10.d: Add paste. tests.
3593 * testsuite/gas/ppc/power10.s: Likewise.
3594
1224c05d
PB
35952020-05-11 Peter Bergner <bergner@linux.ibm.com>
3596
3597 * testsuite/gas/ppc/power10.s: New test.
3598 * testsuite/gas/ppc/power10.d: Likewise.
3599 * testsuite/gas/ppc/ppc.exp: Run it.
3600
7c1f4227
AM
36012020-05-11 Alan Modra <amodra@gmail.com>
3602
3603 * config/tc-ppc.c (md_assemble): Update for PPC_OPCODE_POWER10
3604 renaming.
3605 * testsuite/gas/ppc/prefix-align.d: Use -mpower10/-Mpower10 in
3606 place of -mfuture/-Mfuture.
3607 * testsuite/gas/ppc/prefix-pcrel.d: Likewise.
3608 * testsuite/gas/ppc/prefix-reloc.d: Likewise.
3609
bfeaed38
NC
36102020-05-06 Nick Clifton <nickc@redhat.com>
3611
3612 * po/sv.po: Updated Swedish translation.
3613
6ef719c0
NC
36142020-05-06 Nick Clifton <nickc@redhat.com>
3615
3616 PR 25927
3617 * doc/as.texi (Preprocessing): Replace cross reference to not
3618 existant document with a URL to the equivalent page in the GCC
3619 manual.
3620
546cb2d8
NC
36212020-05-05 Nick Clifton <nickc@redhat.com>
3622
3623 * dwarf2dbg.c (out_dir_and_file_list): Add comments describing the
3624 construction of a DWARF-5 directory name table.
3625 * testsuite/gas/elf/pr25917.d: Update expected output.
3626
7d0bd487
GN
36272020-05-05 Gunther Nikl <gnikl@justmail.de>
3628
3629 * config/tc-rx.c (elf_flags): Initialize for non-linux targets.
3630 (md_parse_option): Remove initialization of elf_flags.
070b775f 3631
fe05f369
ASDV
36322020-05-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
3633
3634 PR gas/25863
3635 * config/tc-arm.c (do_mve_vmull): Fix scalar and NEON parsing of vmul.
3636 * testsuite/gas/arm/mve-scalar-vmult-it.d: New test.
3637 * testsuite/gas/arm/mve-scalar-vmult-it.s: New test.
3638
4706679d
NC
36392020-05-04 Nick Clifton <nickc@redhat.com>
3640
3641 PR 25917
3642 * dwarf2dbg.c (out_dir_and_file_list): Check for the directory
3643 table's existence before looking at its entries.
070b775f
NC
3644 Also do not emit a default directory entry if there are no
3645 directories in use.
3646
4706679d
NC
3647 * testsuite/gas/elf/pr25917.s: New test source file.
3648 * testsuite/gas/elf/pr25917.d: New test driver.
3649 * testsuite/gas/elf/elf.exp (run_elf_list_test): Run the new test.
3650
09c1e68a
AC
36512020-04-30 Alex Coplan <alex.coplan@arm.com>
3652
3653 * config/tc-aarch64.c (fix_insn): Implement for
3654 AARCH64_OPND_UNDEFINED.
3655 (parse_operands): Implement for AARCH64_OPND_UNDEFINED.
3656 * testsuite/gas/aarch64/udf.s: New.
3657 * testsuite/gas/aarch64/udf.d: New.
3658 * testsuite/gas/aarch64/udf-invalid.s: New.
3659 * testsuite/gas/aarch64/udf-invalid.l: New.
3660 * testsuite/gas/aarch64/udf-invalid.d: New.
3661
c578f16e
YS
36622020-04-30 Yoshinori Sato <ysato@users.sourceforge.jp>
3663
3664 * config/tc-rx.c (elf_flags): Reset default value.
3665 (md_parse_option): For rx-elf Initialize elf_flags with RX_ABI.
3666
935f1f4b
MF
36672020-04-29 Max Filippov <jcmvbkbc@gmail.com>
3668
3669 * config/tc-xtensa.c (XTENSA_MARCH_EARLIEST): Define macro as 0
3670 if it's not defined.
3671 (microarch_earliest): New static variable.
3672 (xg_translate_idioms): Translate "simcall" to "simcall 0" when
3673 simcall opcode has mandatory parameter.
3674 (xg_init_global_config): Initialize microarch_earliest.
3675
5c936ef5
NC
36762020-04-29 Nick Clifton <nickc@redhat.com>
3677
3678 PR 22699
3679 * config/tc-sh.c (build_Mytes): Change operand type IMM0_8 to
3680 IMM0_8S and add support for IMM0_8U.
3681 * testsuite/gas/sh/sh4a.s: Add test of a logical insn using an
3682 unsigned 8-bit immediate.
3683 * testsuite/gas/sh/sh4a.d: Extended expected disassembly.
241e541d 3684 * testsuite/gas/sh/sh4al-dsp.d: Update expected disassembly.
5c936ef5 3685
251dae91
TC
36862020-04-27 Tamar Christina <tamar.christina@arm.com>
3687
3688 * NEWS: Add news entry for big-obj.
3689 * config/tc-i386.c (i386_target_format): Support new format.
3690 * doc/c-i386.texi: Add i386 support.
3691 * testsuite/gas/pe/big-obj.d: Rename test to not be x64 specific.
3692 * testsuite/gas/pe/pe.exp (big-obj): Make test run on i386 as well.
3693
714e6c96
NC
36942020-04-27 Nick Clifton <nickc@redhat.com>
3695
3696 PR 25878
3697 * dwarf2dbg.c (struct file_entry): Add auto_assigned field.
3698 (assign_file_to_slot): New function. Fills in an entry in the
3699 files table.
3700 (allocate_filenum): Use new function.
3701 (allocate_filename_to_slot): Use new function. If the specified
3702 slot entry is already in use, but was chosen automatically then
3703 reassign the automatic entry.
3704
a09f656b 37052020-04-26 Hongtao Liu <hongtao.liu@intel.com
3706
3707 * config/tc-i386.c (lfence_before_ret_shl): New member.
3708 (load_insn_p): implict load for POP/POPA/POPF/XLATB, no load
3709 for Anysize insns.
3710 (insert_after_load): Issue warning for REP CMPS/SCAS.
3711 (insert_before_before): Handle iret, Handle
3712 -mlfence-before-ret=shl, Adjust operand size of or/not/shl to ret's,
3713 (md_parse_option): Change -mlfence-before-ret=[none|not|or] to
3714 -mlfence-before-ret=[none/not/or/shl/yes].
3715 Enable -mlfence-before-ret=shl when
3716 -mlfence-beofre-indirect-branch=all and no explict -mlfence-before-ret option.
3717 (md_show_usage): Ditto.
3718 * doc/c-i386.texi: Ditto.
3719 * testsuite/gas/i386/i386.exp: Add new testcases.
3720 * testsuite/gas/i386/lfence-load-b.d: New.
3721 * testsuite/gas/i386/lfence-load-b.e: New.
3722 * testsuite/gas/i386/lfence-load.d: Modified.
3723 * testsuite/gas/i386/lfence-load.e: New.
3724 * testsuite/gas/i386/lfence-load.s: Modified.
3725 * testsuite/gas/i386/lfence-ret-a.d: Modified.
3726 * testsuite/gas/i386/lfence-ret-b.d: Modified.
3727 * testsuite/gas/i386/lfence-ret-c.d: New.
3728 * testsuite/gas/i386/lfence-ret-d.d: New.
3729 * testsuite/gas/i386/lfence-ret.s: Modified.
3730 * testsuite/gas/i386/x86-64-lfence-load-b.d: New.
3731 * testsuite/gas/i386/x86-64-lfence-load.d: Modified.
3732 * testsuite/gas/i386/x86-64-lfence-load.s: Modified.
3733 * testsuite/gas/i386/x86-64-lfence-ret-a.d: Modified.
3734 * testsuite/gas/i386/x86-64-lfence-ret-b.d: Modified.
3735 * testsuite/gas/i386/x86-64-lfence-ret-c.d: New.
3736 * testsuite/gas/i386/x86-64-lfence-ret-d.d: New
3737 * testsuite/gas/i386/x86-64-lfence-ret-e.d: New.
3738 * testsuite/gas/i386/x86-64-lfence-ret.e: New.
3739 * testsuite/gas/i386/x86-64-lfence-ret.s: New.
3740
30ce8e47
MF
37412020-04-22 Max Filippov <jcmvbkbc@gmail.com>
3742
3743 PR ld/25861
3744 * config/tc-xtensa.c (md_apply_fix): Replace
3745 BFD_RELOC_XTENSA_DIFF{8,16,32} generation with
3746 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
3747 BFD_RELOC_XTENSA_NDIFF{8,16,32} generation.
3748 * testsuite/gas/xtensa/loc.d: Replace BFD_RELOC_XTENSA_DIFF16
3749 with BFD_RELOC_XTENSA_PDIFF16 in the expected output.
3750
31c89d60
AM
37512020-04-22 Alan Modra <amodra@gmail.com>
3752
3753 * config/obj-elf.c (elf_frob_symbol): Unconditionally remove
3754 symbol for ".symver .. remove".
3755 * doc/as.texi (.symver): Update.
3756 * testsuite/gas/symver/symver11.s: Make foo weak.
3757 * testsuite/gas/symver/symver11.d: Expect an error.
3758 * testsuite/gas/symver/symver7.d: Allow other random symbols.
3759
1d3eb556
L
37602020-04-21 H.J. Lu <hongjiu.lu@intel.com>
3761
3762 * testsuite/gas/symver/symver11.s: Add ".balign 8".
3763
bb2a1453
AS
37642020-04-21 Andreas Schwab <schwab@linux-m68k.org>
3765
3766 PR 25848
3767 * testsuite/gas/m68k/operands.s: Add tests for cmpi.
3768 * testsuite/gas/m68k/operands.d: Update.
3769 * testsuite/gas/m68k/op68000.d: Update for new error messages.
3770
c36876fe
TC
37712020-04-21 Tamar Christina <tamar.christina@arm.com>
3772
3773 PR binutils/24753
3774 * testsuite/gas/arm/pr24753.d: New test.
3775 * testsuite/gas/arm/pr24753.s: New test.
3776
6914be53
L
37772020-04-21 H.J. Lu <hongjiu.lu@intel.com>
3778
3779 PR gas/23840
3780 PR gas/25295
3781 * NEWS: Mention .symver extension.
3782 * config/obj-elf.c (obj_elf_find_and_add_versioned_name): New
3783 function.
3784 (obj_elf_symver): Call obj_elf_find_and_add_versioned_name to
3785 add a version name. Add local, hidden and remove visibility
3786 support.
3787 (elf_frob_symbol): Handle the list of version names. Update the
3788 original symbol to local, hidden or remove it from the symbol
3789 table.
3790 (elf_frob_file_before_adjust): Handle the list of version names.
3791 * config/obj-elf.h (elf_visibility): New.
3792 (elf_versioned_name_list): Likewise.
3793 (elf_obj_sy): Change local to bitfield. Add rename, bad_version
3794 and visibility. Change versioned_name pointer to struct
3795 elf_versioned_name_list.
3796 * doc/as.texi: Update .symver directive.
3797 * testsuite/gas/symver/symver.exp: Run all *.d tests. Add more
3798 error checking tests.
3799 * testsuite/gas/symver/symver6.d: New file.
3800 * testsuite/gas/symver/symver7.d: Likewise.
3801 * testsuite/gas/symver/symver7.s: Likewise.
3802 * testsuite/gas/symver/symver8.d: Likewise.
3803 * testsuite/gas/symver/symver8.s: Likewise.
3804 * testsuite/gas/symver/symver9.s: Likewise.
3805 * testsuite/gas/symver/symver9a.d: Likewise.
3806 * testsuite/gas/symver/symver9b.d: Likewise.
3807 * testsuite/gas/symver/symver10.s: Likewise.
3808 * testsuite/gas/symver/symver10a.d: Likewise.
3809 * testsuite/gas/symver/symver10b.d: Likewise.
3810 * testsuite/gas/symver/symver11.d: Likewise.
3811 * testsuite/gas/symver/symver11.s: Likewise.
3812 * testsuite/gas/symver/symver12.d: Likewise.
3813 * testsuite/gas/symver/symver12.s: Likewise.
3814 * testsuite/gas/symver/symver13.d: Likewise.
3815 * testsuite/gas/symver/symver13.s: Likewise.
3816 * testsuite/gas/symver/symver14.d: Likewise.
3817 * testsuite/gas/symver/symver14.l: Likewise.
3818 * testsuite/gas/symver/symver15.d: Likewise.
3819 * testsuite/gas/symver/symver15.l: Likewise.
3820 * testsuite/gas/symver/symver6.l: Removed.
3821 * testsuite/gas/symver/symver6.s: Updated.
3822
c2e5c986
SD
38232020-04-20 Sudakshina Das <sudi.das@arm.com>
3824
3825 * config/tc-aarch64.c (parse_barrier_psb): Update error messages
3826 to include TSB.
3827 * testsuite/gas/aarch64/system-2.d: Update -march and new tsb tests.
3828 * testsuite/gas/aarch64/system-2.s: Add new tsb tests.
3829 * testsuite/gas/aarch64/system.d: Update.
3830
8a6e1d1d
SD
38312020-04-20 Sudakshina Das <sudi.das@arm.com>
3832
3833 * testsuite/gas/aarch64/bti.d: Update -march option.
3834 * testsuite/gas/aarch64/illegal-bti.d: Remove.
3835 * testsuite/gas/aarch64/illegal-bti.l: Remove.
3836 * testsuite/gas/aarch64/illegal-ras-1.l: Remove esb.
3837 * testsuite/gas/aarch64/illegal-ras-1.s: Remove esb.
3838
49af2f5c
AM
38392020-04-17 Alan Modra <amodra@gmail.com>
3840
3841 * config/tc-bfin.h (TC_EQUAL_IN_INSN): Allow assignment to dot.
3842
8e4979ac
NC
38432020-04-16 Gagan Singh Sidhu <broly@mac.com>
3844 Nick Clifton <nickc@redhat.com>
3845
3846 PR 25803
3847 * config/obj-elf.c (obj_elf_type): Reject ifunc symbols on MIPS
3848 targets.
3849 * testsuite/gas/elf/elf.exp: Add MIPS targets to the list to skip
3850 for the type-2 test.
3851 * testsuite/gas/elf/type-noifunc.e: Update to allow for MIPS
3852 targets running this test.
3853
c54a9b56
DF
38542020-02-16 David Faust <david.faust@oracle.com>
3855
3856 * testsuite/gas/bpf/bpf.exp: Run jump32 tests.
3857 * testsuite/gas/bpf/jump32.s: New file.
3858 * testsuite/gas/bpf/jump32.d: Likewise.
3859
3071b197
L
38602020-04-08 H.J. Lu <hongjiu.lu@intel.com>
3861
3862 * doc/c-i386.texi: Correct -mlfence-before-indirect-branch=
3863 documentation.
3864
6a3ab923
GN
38652020-04-08 Gunther Nikl <gnikl@justmail.de>
3866
3867 * config/tc-moxie.h (MD_PCREL_FROM_SECTION): Delete define.
3868 (md_pcrel_from): Remove prototytpe.
d9f19885
GN
3869 * config/tc-m32c.h (MD_PCREL_FROM_SECTION): Delete duplicate
3870 define.
3871 (md_pcrel_from_section): Remove duplicate prototype.
9ad4cfa8
GN
3872 * tc.h (md_pcrel_from_section): Add prototype.
3873 * config/tc-aarch64.h (md_pcrel_from_section): Remove prototype.
3874 * config/tc-arc.h (md_pcrel_from_section): Likewise.
3875 * config/tc-arm.h (md_pcrel_from_section): Likewise.
3876 * config/tc-avr.h (md_pcrel_from_section): Likewise.
3877 * config/tc-bfin.h (md_pcrel_from_section): Likewise.
3878 * config/tc-bpf.h (md_pcrel_from_section): Likewise.
3879 * config/tc-csky.h (md_pcrel_from_section): Likewise.
3880 * config/tc-d10v.h (md_pcrel_from_section): Likewise.
3881 * config/tc-d30v.h (md_pcrel_from_section): Likewise.
3882 * config/tc-epiphany.h (md_pcrel_from_section): Likewise.
3883 * config/tc-fr30.h (md_pcrel_from_section): Likewise.
3884 * config/tc-frv.h (md_pcrel_from_section): Likewise.
3885 * config/tc-iq2000.h (md_pcrel_from_section): Likewise.
3886 * config/tc-lm32.h (md_pcrel_from_section): Likewise.
3887 * config/tc-m32c.h (md_pcrel_from_section): Likewise.
3888 * config/tc-m32r.h (md_pcrel_from_section): Likewise.
3889 * config/tc-mcore.h (md_pcrel_from_section): Likewise.
3890 * config/tc-mep.h (md_pcrel_from_section): Likewise.
3891 * config/tc-metag.h (md_pcrel_from_section): Likewise.
3892 * config/tc-microblaze.h (md_pcrel_from_section): Likewise.
3893 * config/tc-mmix.h (md_pcrel_from_section): Likewise.
3894 * config/tc-moxie.h (md_pcrel_from_section): Likewise.
3895 * config/tc-msp430.h (md_pcrel_from_section): Likewise.
3896 * config/tc-mt.h (md_pcrel_from_section): Likewise.
3897 * config/tc-or1k.h (md_pcrel_from_section): Likewise.
3898 * config/tc-ppc.h (md_pcrel_from_section): Likewise.
3899 * config/tc-rl78.h (md_pcrel_from_section): Likewise.
3900 * config/tc-rx.h (md_pcrel_from_section): Likewise.
3901 * config/tc-s390.h (md_pcrel_from_section): Likewise.
3902 * config/tc-sh.h (md_pcrel_from_section): Likewise.
3903 * config/tc-xc16x.h (md_pcrel_from_section): Likewise.
3904 * config/tc-xstormy16.h (md_pcrel_from_section): Likewise.
4c09b8c4
GN
3905 * config/tc-microblaze.h (md_begin, md_assemble, md_undefined_symbol,
3906 md_show_usage, md_convert_frag, md_operand, md_number_to_chars,
3907 md_estimate_size_before_relax, md_section_align, tc_gen_reloc,
3908 md_apply_fix3): Delete prototypes.
6a3ab923 3909
6e0e8b45
L
39102020-04-07 H.J. Lu <hongjiu.lu@intel.com>
3911
3912 * NEWS: Mention support for Intel SERIALIZE and TSXLDTRK
3913 instructions.
3914
266803a2
L
39152020-04-07 H.J. Lu <hongjiu.lu@intel.com>
3916
3917 * doc/c-z80.texi: Fix @xref warnings.
3918
bb651e8b
CL
39192020-04-07 Lili Cui <lili.cui@intel.com>
3920
3921 * config/tc-i386.c (cpu_arch): Add .TSXLDTRK.
3922 (cpu_noarch): Likewise.
3923 * doc/c-i386.texi: Document TSXLDTRK.
3924 * testsuite/gas/i386/i386.exp: Run TSXLDTRK tests.
3925 * testsuite/gas/i386/tsxldtrk.d: Likewise.
3926 * testsuite/gas/i386/tsxldtrk.s: Likewise.
3927 * testsuite/gas/i386/x86-64-tsxldtrk.d: Likewise.
3928
4b27d27c
L
39292020-04-02 Lili Cui <lili.cui@intel.com>
3930
3931 * config/tc-i386.c (cpu_arch): Add .serialize.
3932 (cpu_noarch): Likewise.
3933 * doc/c-i386.texi: Document serialize.
3934 * testsuite/gas/i386/i386.exp: Run serialize tests
3935 * testsuite/gas/i386/serialize.d: Likewise.
3936 * testsuite/gas/i386/x86-64-serialize.d: Likewise.
3937 * testsuite/gas/i386/serialize.s: Likewise.
3938
bb897477
RO
39392020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3940
3941 * testsuite/gas/elf/section12a.d: Use notarget instead of xfail.
3942 * testsuite/gas/elf/section12b.d: Likewise.
3943 * testsuite/gas/elf/section16a.d: Likewise.
3944 * testsuite/gas/elf/section16b.d: Likewise.
3945
59e28a97
GN
39462020-04-02 Gunther Nikl <gnikl@justmail.de>
3947
3948 * config/tc-m68k.c (m68k_ip): Fix range check for index register
3949 with a suppressed address register.
3950
efc3a950
L
39512020-04-01 H.J. Lu <hongjiu.lu@intel.com>
3952
3953 PR gas/25756
3954 * config/tc-i386.h (TC_FORCE_RELOCATION_ABS): New.
3955 * testsuite/gas/i386/localpic.s: Add a test for relocation
3956 against local absolute symbol.
3957 * testsuite/gas/i386/x86-64-localpic.s: Likewise.
3958 * testsuite/gas/i386/localpic.d: Updated.
3959 * testsuite/gas/i386/x86-64-localpic.d: Likewise.
3960 * testsuite/gas/i386/ilp32/x86-64-localpic.d: Likewise.
3961
15d47c3a
RO
39622020-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3963
3964 PR gas/25732
3965 * testsuite/gas/i386/solaris/x86-64-branch-2.d: New file.
3966 * testsuite/gas/i386/solaris/x86-64-branch-3.d: New file.
3967 * testsuite/gas/i386/solaris/x86-64-jump.d: Incorporate changes to
3968 testsuite/gas/i386/x86-64-jump.d.
0be2fe67 3969 * testsuite/gas/i386/solaris/x86-64-mpx-branch-1.d:
15d47c3a
RO
3970 Incorporate changes to
3971 gas/testsuite/gas/i386/x86-64-mpx-branch-1.d.
3972 * testsuite/gas/i386/solaris/x86-64-mpx-branch-2.d : Incorporate
3973 changes to testsuite/gas/i386/x86-64-mpx-branch-2.d.
3974 * testsuite/gas/i386/x86-64-branch-2.d: Skip on *-*-solaris*.
3975 * testsuite/gas/i386/x86-64-branch-3.d: Likewise.
3976
876678f0
MR
39772020-03-31 Maciej W. Rozycki <macro@linux-mips.org>
3978
3979 PR 25611
3980 PR 25614
3981 * dwarf2dbg.c: Do not include "bignum.h".
3982
d1a89da5
NC
39832020-03-30 Nelson Chu <nelson.chu@sifive.com>
3984
3985 * testsuite/gas/riscv/alias-csr.d: Move this to priv-reg-pseudo.
3986 * testsuite/gas/riscv/alias-csr.s: Likewise.
3987 * testsuite/gas/riscv/no-aliases-csr.d: Move this
3988 to priv-reg-pseudo-noalias.
3989 * testsuite/gas/riscv/bad-csr.d: Rename to priv-reg-fail-nonexistent.
3990 * testsuite/gas/riscv/bad-csr.l: Likewise.
3991 * testsuite/gas/riscv/bad-csr.s: Likewise.
3992 * testsuite/gas/riscv/satp.d: Removed. Already included in priv-reg.
3993 * testsuite/gas/riscv/satp.s: Likewise.
3994 * testsuite/gas/riscv/priv-reg-pseudo.d: New testcase for all pseudo
3995 csr instruction, including alias-csr testcase.
3996 * testsuite/gas/riscv/priv-reg-pseudo.s: Likewise.
3997 * testsuite/gas/riscv/priv-reg-pseudo-noalias.d: New testcase for all
3998 pseudo instruction with objdump -Mno-aliases.
3999 * testsuite/gas/riscv/priv-reg-fail-nonexistent.d: New testcase.
4000 * testsuite/gas/riscv/priv-reg-fail-nonexistent.l: Likewise.
4001 * testsuite/gas/riscv/priv-reg-fail-nonexistent.s: Likewise.
4002 * testsuite/gas/riscv/priv-reg.d: Update CSR to 1.11.
4003 * testsuite/gas/riscv/priv-reg.s: Likewise.
4004 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
4005 * testsuite/gas/riscv/csr-dw-regnums.d: Likewise.
4006 * testsuite/gas/riscv/csr-dw-regnums.s: Likewise.
4007
b7780957
J
40082020-03-25 J.W. Jagersma <jwjagersma@gmail.com>
4009
4010 * config/obj-coff.c (obj_coff_section): Set the bss flag on
4011 sections with the "b" attribute.
4012
d1023b5d
AM
40132020-03-22 Alan Modra <amodra@gmail.com>
4014
4015 * testsuite/gas/s12z/truncated.d: Update expected output.
4016
0d832e7f
SB
40172020-03-17 Sergey Belyashov <sergey.belyashov@gmail.com>
4018
4019 PR 25690
4020 * config/tc-z80.c (md_pseudo_table): Add xdef anf xref pseudo ops.
4021 * doc/c-z80.texi: Update documentation.
4022
327ef784
NC
40232020-03-17 Sergey Belyashov <sergey.belyashov@gmail.com>
4024
4025 PR 25641
4026 PR 25668
4027 PR 25633
4028 Fix disassembling ED+A4/AC/B4/BC opcodes.
4029 Fix assembling lines containing colonless label and instruction
4030 with first operand inside parentheses.
4031 Fix registration of unsupported by target CPU registers.
4032 * config/tc-z80.c: See above.
4033 * config/tc-z80.h: See above.
4034 * testsuite/gas/z80/colonless.d: Update test.
4035 * testsuite/gas/z80/colonless.s: Likewise.
4036 * testsuite/gas/z80/ez80_adl_all.d: Likewise.
4037 * testsuite/gas/z80/ez80_unsup_regs.d: Likewise.
4038 * testsuite/gas/z80/ez80_z80_all.d: Likewise.
4039 * testsuite/gas/z80/gbz80_unsup_regs.d: Likewise.
4040 * testsuite/gas/z80/r800_unsup_regs.d: Likewise.
4041 * testsuite/gas/z80/unsup_regs.s: Likewise.
4042 * testsuite/gas/z80/z180_unsup_regs.d: Likewise.
4043 * testsuite/gas/z80/z80.exp: Likewise.
4044 * testsuite/gas/z80/z80_strict_unsup_regs.d: Likewise.
4045 * testsuite/gas/z80/z80_unsup_regs.d: Likewise.
4046 * testsuite/gas/z80/z80n_unsup_regs.d: Likewise.
4047
66d1f7cc
AV
40482020-03-13 Andre Vieira <andre.simoesdiasvieira@arm.com>
4049
4050 PR 25660
4051 * config/tc-arm.c (operand_parse_code): Add OP_RNSDMQR and OP_oRNSDMQ.
4052 (parse_operands): Handle new operand codes.
4053 (do_neon_dyadic_long): Make shape check accept the scalar variants.
4054 (asm_opcode_insns): Fix operand codes for vaddl and vsubl.
4055 * testsuite/gas/arm/mve-vaddsub-it.s: New test.
4056 * testsuite/gas/arm/mve-vaddsub-it.d: New test.
4057 * testsuite/gas/arm/mve-vaddsub-it-bad.s: New test.
4058 * testsuite/gas/arm/mve-vaddsub-it-bad.l: New test.
4059 * testsuite/gas/arm/mve-vaddsub-it-bad.d: New test.
4060 * testsuite/gas/arm/nomve-vaddsub-it.d: New test.
4061
9e8f1c90
L
40622020-03-11 H.J. Lu <hongjiu.lu@intel.com>
4063
4064 * NEWS: Mention x86 assembler options for CVE-2020-0551.
4065
97b4a8f7
L
40662020-03-11 H.J. Lu <hongjiu.lu@intel.com>
4067
4068 * testsuite/gas/i386/i386.exp: Run new tests.
4069 * testsuite/gas/i386/lfence-byte.d: New file.
4070 * testsuite/gas/i386/lfence-byte.e: Likewise.
4071 * testsuite/gas/i386/lfence-byte.s: Likewise.
4072 * testsuite/gas/i386/lfence-indbr-a.d: Likewise.
4073 * testsuite/gas/i386/lfence-indbr-b.d: Likewise.
4074 * testsuite/gas/i386/lfence-indbr-c.d: Likewise.
4075 * testsuite/gas/i386/lfence-indbr.e: Likewise.
4076 * testsuite/gas/i386/lfence-indbr.s: Likewise.
4077 * testsuite/gas/i386/lfence-load.d: Likewise.
4078 * testsuite/gas/i386/lfence-load.s: Likewise.
4079 * testsuite/gas/i386/lfence-ret-a.d: Likewise.
4080 * testsuite/gas/i386/lfence-ret-b.d: Likewise.
4081 * testsuite/gas/i386/lfence-ret.s: Likewise.
4082 * testsuite/gas/i386/x86-64-lfence-byte.d: Likewise.
4083 * testsuite/gas/i386/x86-64-lfence-byte.e: Likewise.
4084 * testsuite/gas/i386/x86-64-lfence-byte.s: Likewise.
4085 * testsuite/gas/i386/x86-64-lfence-indbr-a.d: Likewise.
4086 * testsuite/gas/i386/x86-64-lfence-indbr-b.d: Likewise.
4087 * testsuite/gas/i386/x86-64-lfence-indbr-c.d: Likewise.
4088 * testsuite/gas/i386/x86-64-lfence-indbr.e: Likewise.
4089 * testsuite/gas/i386/x86-64-lfence-indbr.s: Likewise.
4090 * testsuite/gas/i386/x86-64-lfence-load.d: Likewise.
4091 * testsuite/gas/i386/x86-64-lfence-load.s: Likewise.
4092 * testsuite/gas/i386/x86-64-lfence-ret-a.d: Likewise.
4093 * testsuite/gas/i386/x86-64-lfence-ret-b.d: Likewise.
4094
ae531041
L
40952020-03-11 H.J. Lu <hongjiu.lu@intel.com>
4096
4097 * config/tc-i386.c (lfence_after_load): New.
4098 (lfence_before_indirect_branch_kind): New.
4099 (lfence_before_indirect_branch): New.
4100 (lfence_before_ret_kind): New.
4101 (lfence_before_ret): New.
4102 (last_insn): New.
4103 (load_insn_p): New.
4104 (insert_lfence_after): New.
4105 (insert_lfence_before): New.
4106 (md_assemble): Call insert_lfence_before and insert_lfence_after.
4107 Set last_insn.
4108 (OPTION_MLFENCE_AFTER_LOAD): New.
4109 (OPTION_MLFENCE_BEFORE_INDIRECT_BRANCH): New.
4110 (OPTION_MLFENCE_BEFORE_RET): New.
4111 (md_longopts): Add -mlfence-after-load=,
4112 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
4113 (md_parse_option): Handle -mlfence-after-load=,
4114 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
4115 (md_show_usage): Display -mlfence-after-load=,
4116 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
4117 (i386_cons_align): New.
4118 * config/tc-i386.h (i386_cons_align): New.
4119 (md_cons_align): New.
4120 * doc/c-i386.texi: Document -mlfence-after-load=,
4121 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
4122
5496f3c6
NC
41232020-03-11 Nick Clifton <nickc@redhat.com>
4124
4125 PR 25611
4126 PR 25614
4127 * dwarf2dbg.c (DWARF2_FILE_TIME_NAME): Default to -1.
4128 (DWARF2_FILE_SIZE_NAME): Default to -1.
4129 (DWARF2_LINE_VERSION): Default to the current dwarf level or 3,
4130 whichever is higher.
4131 (DWARF2_LINE_MAX_OPS_PER_INSN): Provide a default value of 1.
4132 (NUM_MD5_BYTES): Define.
4133 (struct file entry): Add md5 field.
4134 (get_filenum): Delete and replace with...
4135 (get_basename): New function.
4136 (get_directory_table_entry): New function.
4137 (allocate_filenum): New function.
4138 (allocate_filename_to_slot): New function.
4139 (dwarf2_where): Use new functions.
4140 (dwarf2_directive_filename): Add support for extended .file
4141 pseudo-op.
4142 (dwarf2_directive_loc): Allow the use of file number zero with
4143 DWARF 5 or higher.
4144 (out_file_list): Rename to...
4145 (out_dir_and_file_list): Add DWARF 5 support.
4146 (out_debug_line): Emit extra values into the section header for
4147 DWARF 5.
4148 (out_debug_str): Allow for file 0 to be used with DWARF 5.
4149 * doc/as.texi (.file): Update the description of this pseudo-op.
4150 * testsuite/gas/elf-dwarf-5-file0.s: Add more lines.
4151 * testsuite/gas/elf-dwarf-5-file0.d: Update expected dump output.
4152 * testsuite/gas/lns/lns-diag-1.l: Update expected error message.
4153 * NEWS: Mention the new feature.
4154
a6a1f5e0
AM
41552020-03-10 Alan Modra <amodra@gmail.com>
4156
4157 * config/tc-csky.c (get_operand_value): Rewrite 1 << 31 expressions
4158 to avoid signed overflow.
4159 * config/tc-mcore.c (md_assemble): Likewise.
4160 * config/tc-mips.c (gpr_read_mask, gpr_write_mask): Likewise.
4161 * config/tc-nds32.c (SET_ADDEND): Likewise.
4162 * config/tc-nios2.c (nios2_assemble_arg_R): Likewise.
4163
3fabc179
JB
41642020-03-09 Jan Beulich <jbeulich@suse.com>
4165
4166 * testsuite/gas/i386/avx.s: Add long-form VCMP[PS][SD] pseudos.
4167 * testsuite/gas/i386/avx.d, testsuite/gas/i386/avx-16bit.d,
4168 testsuite/gas/i386/avx-intel.d: Adjust expectations.
4169
190e5fc8
AM
41702020-03-07 Alan Modra <amodra@gmail.com>
4171
4172 * testsuite/gas/elf/dwarf-5-file0.s: Don't start directives in
4173 first column.
4174
84d9ab33
NC
41752020-03-06 Nick Clifton <nickc@redhat.com>
4176
4177 PR 25614
4178 * dwarf2dbg.c (dwarf2_directive_filename): Allow a file number of
4179 0 if the dwarf_level is 5 or more. Complain if a filename follows
4180 a file 0.
4181 * testsuite/gas/elf/dwarf-5-file0.s: New test.
4182 * testsuite/gas/elf/dwarf-5-file0.d: New test driver.
4183 * testsuite/gas/elf/elf.exp: Run the new test.
4184
4185 PR 25612
4186 * config/tc-ia64.h (DWARF2_VERISION): Fix typo.
4187 * doc/as.texi: Fix another typo.
4188
31bf1864
NC
41892020-03-06 Nick Clifton <nickc@redhat.com>
4190
4191 PR 25612
4192 * as.c (dwarf_level): Define.
4193 (show_usage): Add --gdwarf-3, --gdwarf-4 and --gdwarf-5.
4194 (parse_args): Add support for the new options.
4195 as.h (dwarf_level): Prototype.
4196 * dwarf2dbg.c (DWARF2_VERSION): Use dwarf_level as default version
4197 value.
4198 * config/tc-ia64.h (DWARF2_VERISION): Update definition.
4199 (DWARF2_LINE_VERSION): Remove definition.
4200 * doc/as.texi: Document the new options.
4201
3c968de5
NC
42022020-03-06 Nick Clifton <nickc@redhat.com>
4203
4204 PR 25572
4205 * as.c (main): Allow matching input and outputs when they are
4206 not regular files.
4207
bc49bfd8
JB
42082020-03-06 Jan Beulich <jbeulich@suse.com>
4209
4210 * config/tc-i386.c (match_mem_size): Generalize broadcast special
4211 casing.
4212 (check_VecOperands): Zap xmmword/ymmword/zmmword when more than
4213 one of byte/word/dword/qword is set alongside a SIMD register in
4214 a template's operand.
4215
4873e243
JB
42162020-03-06 Jan Beulich <jbeulich@suse.com>
4217
4218 * config/tc-i386.c (match_template): Extend code in logic
4219 rejecting certain suffixes in certain modes to also cover mask
4220 register use and VecSIB. Drop special casing of broadcast. Skip
4221 immediates in the check.
4222
e365e234
JB
42232020-03-06 Jan Beulich <jbeulich@suse.com>
4224
4225 * config/tc-i386.c (match_template): Fold duplicate code in
4226 logic rejecting certain suffixes in certain modes. Drop
4227 pointless "else".
4228
4ed21b58
JB
42292020-03-06 Jan Beulich <jbeulich@suse.com>
4230
4231 * config/tc-i386.c (process_suffix): Exlucde !vexw insns
4232 alongside !norex64 ones.
4233 * testsuite/gas/i386/x86-64-avx512bw.s: Test VPEXTR* and VPINSR*
4234 with both 32- and 64-bit GPR operands.
4235 * testsuite/gas/i386/x86-64-avx512f.s: Test VEXTRACTPS with both
4236 32- and 64-bit GPR operands.
4237 * testsuite/gas/i386/x86-64-avx512bw-intel.d,
4238 testsuite/gas/i386/x86-64-avx512bw.d,
4239 testsuite/gas/i386/x86-64-avx512f-intel.d,
4240 testsuite/gas/i386/x86-64-avx512f.d: Adjust expectations.
4241
643bb870
JB
42422020-03-06 Jan Beulich <jbeulich@suse.com>
4243
4244 * config/tc-i386.c (md_assemble): Drop use of rex64.
4245 (process_suffix): For REX.W for 64-bit CRC32.
4246
a23b33b3
JB
42472020-03-06 Jan Beulich <jbeulich@suse.com>
4248
4249 * config/tc-i386.c (i386_addressing_mode): For 32-bit
4250 addressing for MPX insns without base/index.
4251 * testsuite/gas/i386/mpx-16bit.s,
4252 * testsuite/gas/i386/mpx-16bit.d: New.
4253 * testsuite/gas/i386/i386.exp: Run new test.
4254
a0497384
JB
42552020-03-06 Jan Beulich <jbeulich@suse.com>
4256
4257 * testsuite/gas/i386/adx.s, testsuite/gas/i386/cet.s,
4258 testsuite/gas/i386/ept.s, testsuite/gas/i386/fsgs.s,
4259 testsuite/gas/i386/invpcid.s, testsuite/gas/i386/movdir.s,
4260 testsuite/gas/i386/ptwrite.s, testsuite/gas/i386/vmx.s,
4261 * testsuite/gas/i386/code16.s: Add CR, DR, and TR access cases
4262 as well as a BSWAP one.
4263 * testsuite/gas/i386/rdpid.s: Add 16-bit case.
4264 * testsuite/gas/i386/sse2-16bit.s: Cover more insns.
4265 * testsuite/gas/i386/adx-intel.d, testsuite/gas/i386/adx.d,
4266 testsuite/gas/i386/cet-intel.d, testsuite/gas/i386/cet.d,
4267 testsuite/gas/i386/code16.d, testsuite/gas/i386/ept-intel.d,
4268 testsuite/gas/i386/ept.d, testsuite/gas/i386/fsgs-intel.d,
4269 testsuite/gas/i386/fsgs.d, testsuite/gas/i386/invpcid-intel.d,
4270 testsuite/gas/i386/invpcid.d, testsuite/gas/i386/movdir-intel.d,
4271 testsuite/gas/i386/movdir.d, testsuite/gas/i386/ptwrite-intel.d,
4272 testsuite/gas/i386/ptwrite.d, testsuite/gas/i386/rdpid-intel.d,
4273 testsuite/gas/i386/rdpid.d, testsuite/gas/i386/sse2-16bit.d,
4274 testsuite/gas/i386/vmx.d: Adjust expectations.
4275
b630c145
JB
42762020-03-06 Jan Beulich <jbeulich@suse.com>
4277
4278 * config/tc-i386.c (md_assemble): Also exclude tpause and umwait
4279 from having their operands swapped.
4280 * testsuite/gas/i386/waitpkg.s,
4281 testsuite/gas/i386/x86-64-waitpkg.s: Add tpause and umwait
4282 3-operand cases as well as testing of 16-bit code generation.
4283 * testsuite/gas/i386/waitpkg.d,
4284 testsuite/gas/i386/waitpkg-intel.d,
4285 testsuite/gas/i386/x86-64-waitpkg.d,
4286 testsuite/gas/i386/x86-64-waitpkg-intel.d: Adjust expectations.
4287
de48783e
NC
42882020-03-04 Nelson Chu <nelson.chu@sifive.com>
4289
dee35d02
NC
4290 * config/tc-riscv.c (percent_op_utype): Support the modifier
4291 %got_pcrel_hi.
4292 * doc/c-riscv.texi: Add documentation.
4293 * testsuite/gas/riscv/no-relax-reloc.d: Add test case for the new
4294 modifier %got_pcrel_hi.
4295 * testsuite/gas/riscv/no-relax-reloc.s: Likewise.
4296 * testsuite/gas/riscv/relax-reloc.d: Likewise.
4297 * testsuite/gas/riscv/relax-reloc.s: Likewise.
4298
de48783e
NC
4299 * doc/c-riscv.texi (relocation modifiers): Add documentation.
4300 (RISC-V-Formats): Update the section name from "Instruction Formats"
4301 to "RISC-V Instruction Formats".
4302
749479c8
AO
43032020-03-04 Alexandre Oliva <oliva@adacore.com>
4304
4305 * config/tc-arm.c (md_apply_fix): Warn if a PC-relative load is
4306 detected in a section which does not have at least 4 byte
4307 alignment.
4308 * testsuite/gas/arm/armv8-ar-it-bad.s: Add alignment directive.
4309 * testsuite/gas/arm/ldr-t.s: Likewise.
4310 * testsuite/gas/arm/sp-pc-usage-t.s: Likewise.
4311 * testsuite/gas/arm/sp-pc-usage-t.d: Finish test at end of
4312 disassembly, ignoring any NOPs that may have been inserted because
4313 of section alignment.
4314 * testsuite/gas/arm/ldr-t.d: Likewise.
4315
a847e322
JB
43162020-03-04 Jan Beulich <jbeulich@suse.com>
4317
4318 * config/tc-i386.c (cpu_arch): Add .sev_es entry.
4319 * doc/c-i386.texi: Mention sev_es.
4320 * testsuite/gas/i386/arch-13.s: Add SEV-ES case.
4321 * testsuite/gas/i386/arch-13.d: Extend -march=. Adjust
4322 expectations.
4323 * testsuite/gas/i386/arch-13-znver1.d,
4324 testsuite/gas/i386/arch-13-znver2.d: Extend -march=.
4325
3cd7f3e3
L
43262020-03-03 H.J. Lu <hongjiu.lu@intel.com>
4327
4328 * config/tc-i386.c (match_template): Replace ignoresize and
4329 defaultsize with mnemonicsize.
4330 (process_suffix): Likewise.
4331
b8ba1385
SB
43322020-03-03 Sergey Belyashov <sergey.belyashov@gmail.com>
4333
4334 PR 25627
4335 * config/tc-z80.c (emit_ld_rr_m): Fix invalid compilation of
4336 instruction LD IY,(HL).
4337 * testsuite/gas/z80/ez80_adl_all.d: Update expected disassembly.
4338 * testsuite/gas/z80/ez80_adl_all.s: Add tests of the instruction.
4339 * testsuite/gas/z80/ez80_z80_all.d: Update expected disassembly.
4340 * testsuite/gas/z80/ez80_z80_all.s: Add tests of the instruction.
4341
10d97a0f
L
43422020-03-03 H.J. Lu <hongjiu.lu@intel.com>
4343
4344 PR gas/25622
4345 * testsuite/gas/i386/i386.exp: Run x86-64-default-suffix and
4346 x86-64-default-suffix-avx.
4347 * testsuite/gas/i386/noreg64.s: Remove cvtsi2sd, cvtsi2ss,
4348 vcvtsi2sd, vcvtsi2ss, vcvtusi2sd and vcvtusi2ss entries.
4349 * testsuite/gas/i386/noreg64.d: Updated.
4350 * testsuite/gas/i386/noreg64.l: Likewise.
4351 * testsuite/gas/i386/x86-64-default-suffix-avx.d: New file.
4352 * testsuite/gas/i386/x86-64-default-suffix.d: Likewise.
4353 * testsuite/gas/i386/x86-64-default-suffix.s: Likewise.
4354
8326546e
SB
43552020-03-03 Sergey Belyashov <sergey.belyashov@gmail.com>
4356
4357 PR 25604
4358 * config/tc-z80.c (contains_register): Prevent an illegal memory
4359 access when checking an expression for a register name.
4360
e3e896e6
AM
43612020-03-03 Alan Modra <amodra@gmail.com>
4362
4363 * config/obj-coff.h: Remove vestiges of coff-m68k and pe-mips
4364 support.
4365
a4dd6c97
AM
43662020-03-02 Alan Modra <amodra@gmail.com>
4367
4368 * config/tc-m32r.c (md_begin): Set SEC_SMALL_DATA on .scommon section.
4369 * config/tc-mips.c (s_change_sec): Set SEC_SMALL_DATA for .sdata
4370 and .sbss sections.
4371 * config/tc-score.c: Delete !BFD_ASSEMBLER code throughout.
4372 (s3_s_change_sec): Set SEC_SMALL_DATA for .sbss section.
4373 (s3_s_score_lcomm): Likewise.
4374 * config/tc-score7.c: Similarly.
4375 * read.c (bss_alloc): Set SEC_SMALL_DATA for .sbss section.
4376
dec7b24b
YS
43772020-02-28 YunQiang Su <syq@debian.org>
4378
4379 PR gas/25539
4380 * config/tc-mips.c (fix_loongson3_llsc): Compare label value
4381 to handle multi-labels.
4382 (has_label_name): New.
4383
cceb53b8
MM
43842020-02-26 Matthew Malcomson <matthew.malcomson@arm.com>
4385
4386 * config/tc-arm.c (enum pred_instruction_type): Remove
4387 NEUTRAL_IT_NO_VPT_INSN predication type.
4388 (cxn_handle_predication): Modify to require condition suffixes.
4389 (handle_pred_state): Remove NEUTRAL_IT_NO_VPT_INSN cases.
4390 * testsuite/gas/arm/cde-scalar.s: Update test.
4391 * testsuite/gas/arm/cde-warnings.l: Update test.
4392 * testsuite/gas/arm/cde-warnings.s: Update test.
4393
da3ec71f
AM
43942020-02-26 Alan Modra <amodra@gmail.com>
4395
4396 * config/tc-arm.c (reg_expected_msgs[REG_TYPE_RNB]): Don't use
4397 N_() on empty string.
4398
42135cad
AM
43992020-02-26 Alan Modra <amodra@gmail.com>
4400
4401 * read.c (read_a_source_file): Call strncpy with length one
4402 less than size of original_case_string.
4403
dc1e8a47
AM
44042020-02-26 Alan Modra <amodra@gmail.com>
4405
4406 * config/obj-elf.c: Indent labels correctly.
4407 * config/obj-macho.c: Likewise.
4408 * config/tc-aarch64.c: Likewise.
4409 * config/tc-alpha.c: Likewise.
4410 * config/tc-arm.c: Likewise.
4411 * config/tc-cr16.c: Likewise.
4412 * config/tc-crx.c: Likewise.
4413 * config/tc-frv.c: Likewise.
4414 * config/tc-i386-intel.c: Likewise.
4415 * config/tc-i386.c: Likewise.
4416 * config/tc-ia64.c: Likewise.
4417 * config/tc-mn10200.c: Likewise.
4418 * config/tc-mn10300.c: Likewise.
4419 * config/tc-nds32.c: Likewise.
4420 * config/tc-riscv.c: Likewise.
4421 * config/tc-s12z.c: Likewise.
4422 * config/tc-xtensa.c: Likewise.
4423 * config/tc-z80.c: Likewise.
4424 * read.c: Likewise.
4425 * symbols.c: Likewise.
4426 * write.c: Likewise.
4427
bd0cf5a6
NC
44282020-02-20 Nelson Chu <nelson.chu@sifive.com>
4429
54b2aec1
NC
4430 * config/tc-riscv.c (riscv_ip): New boolean insn_with_csr to indicate
4431 we are assembling instruction with CSR. Call riscv_csr_read_only_check
4432 after parsing all arguments.
4433 (enum csr_insn_type): New enum is used to classify the CSR instruction.
4434 (riscv_csr_insn_type, riscv_csr_read_only_check): New functions. These
4435 are used to check if we write a read-only CSR by the CSR instruction.
4436 * testsuite/gas/riscv/priv-reg-fail-read-only-01.s: New testcase. Test
4437 all CSR for the read-only CSR checking.
4438 * testsuite/gas/riscv/priv-reg-fail-read-only-01.d: Likewise.
4439 * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
4440 * testsuite/gas/riscv/priv-reg-fail-read-only-02.s: New testcase. Test
4441 all CSR instructions for the read-only CSR checking.
4442 * testsuite/gas/riscv/priv-reg-fail-read-only-02.d: Likewise.
4443 * testsuite/gas/riscv/priv-reg-fail-read-only-02.l: Likewise.
4444
2ca89224
NC
4445 * config/tc-riscv.c (struct riscv_set_options): New field csr_check.
4446 (riscv_opts): Initialize it.
4447 (reg_lookup_internal): Check the `riscv_opts.csr_check`
4448 before doing the CSR checking.
4449 (enum options): Add OPTION_CSR_CHECK and OPTION_NO_CSR_CHECK.
4450 (md_longopts): Add mcsr-check and mno-csr-check.
4451 (md_parse_option): Handle new enum option values.
4452 (s_riscv_option): Handle new long options.
4453 * doc/c-riscv.texi: Add description for the new .option and assembler
4454 options.
4455 * testsuite/gas/riscv/priv-reg-fail-fext.d: Add `-mcsr-check` to enable
4456 the CSR checking.
4457 * testsuite/gas/riscv/priv-reg-fail-rv32-only.d: Likewise.
4458
bd0cf5a6
NC
4459 * config/tc-riscv.c (csr_extra_hash): New.
4460 (enum riscv_csr_class): New enum. Used to decide
4461 whether or not this CSR is legal in the current ISA string.
4462 (struct riscv_csr_extra): New structure to hold all extra information
4463 of CSR.
4464 (riscv_init_csr_hashes): New. According to the DECLARE_CSR and
4465 DECLARE_CSR_ALIAS, insert CSR extra information into csr_extra_hash.
4466 Call hash_reg_name to insert CSR address into reg_names_hash.
4467 (reg_csr_lookup_internal, riscv_csr_class_check): New functions.
4468 Decide whether the CSR is valid according to the csr_extra_hash.
4469 (reg_lookup_internal): Call reg_csr_lookup_internal for CSRs.
4470 (init_opcode_hash): Update 'if (hash_error != NULL)' as hash_error is
4471 not a boolean. This is same as riscv_init_csr_hash, so keep the
4472 consistent usage.
4473 (md_begin): Call riscv_init_csr_hashes for each DECLARE_CSR.
4474 * testsuite/gas/riscv/csr-dw-regnums.d: Add -march=rv32if option.
4475 * testsuite/gas/riscv/priv-reg.d: Add f-ext by -march option.
4476 * testsuite/gas/riscv/priv-reg-fail-fext.d: New testcase. The source
4477 file is `priv-reg.s`, and the ISA is rv32i without f-ext, so the
4478 f-ext CSR are not allowed.
4479 * testsuite/gas/riscv/priv-reg-fail-fext.l: Likewise.
4480 * testsuite/gas/riscv/priv-reg-fail-rv32-only.d: New testcase. The
4481 source file is `priv-reg.s`, and the ISA is rv64if, so the
4482 rv32-only CSR are not allowed.
4483 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
4484
10a95fcc
AM
44852020-02-21 Alan Modra <amodra@gmail.com>
4486
4487 * config/tc-pdp11.c (md_apply_fix): Handle BFD_RELOC_32.
4488 (tc_gen_reloc): Only give a BAD_CASE assertion on pcrel relocs.
4489
dda2980f
AM
44902020-02-21 Alan Modra <amodra@gmail.com>
4491
4492 PR 25569
4493 * config/obj-aout.c (obj_aout_frob_file_before_fix): Don't loop
4494 on section size adjustment, instead perform another write if
4495 exec header size is larger than section size.
4496
bd3380bc
NC
44972020-02-19 Nelson Chu <nelson.chu@sifive.com>
4498
4499 * doc/c-riscv.texi: Add the doc entries for -march-attr/
4500 -mno-arch-attr command line options.
4501
fa164239
JW
45022020-02-19 Nelson Chu <nelson.chu@sifive.com>
4503
4504 * testsuite/gas/riscv/c-add-addi.d: New testcase.
4505 * testsuite/gas/riscv/c-add-addi.s: Likewise.
4506
fcaaac0a
SB
45072020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
4508
4509 PR 25576
4510 * config/tc-z80.c (md_parse_option): Do not use an underscore
4511 prefix for local labels in SDCC compatability mode.
4512 (z80_start_line_hook): Remove SDCC dollar label support.
4513 * testsuite/gas/z80/sdcc.d: Update expected disassembly.
4514 * testsuite/gas/z80/sdcc.s: Likewise.
4515
45162020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
4517
4518 PR 25517
4519 * config/tc-z80.c: Add -march option.
4520 * doc/as.texi: Update Z80 documentation.
4521 * doc/c-z80.texi: Likewise.
4522 * testsuite/gas/z80/ez80_adl_all.d: Update command line.
4523 * testsuite/gas/z80/ez80_adl_suf.d: Likewise.
4524 * testsuite/gas/z80/ez80_pref_dis.d: Likewise.
4525 * testsuite/gas/z80/ez80_z80_all.d: Likewise.
4526 * testsuite/gas/z80/ez80_z80_suf.d: Likewise.
4527 * testsuite/gas/z80/gbz80_all.d: Likewise.
4528 * testsuite/gas/z80/r800_extra.d: Likewise.
4529 * testsuite/gas/z80/r800_ii8.d: Likewise.
4530 * testsuite/gas/z80/r800_z80_doc.d: Likewise.
4531 * testsuite/gas/z80/sdcc.d: Likewise.
4532 * testsuite/gas/z80/z180.d: Likewise.
4533 * testsuite/gas/z80/z180_z80_doc.d: Likewise.
4534 * testsuite/gas/z80/z80_doc.d: Likewise.
4535 * testsuite/gas/z80/z80_ii8.d: Likewise.
4536 * testsuite/gas/z80/z80_in_f_c.d: Likewise.
4537 * testsuite/gas/z80/z80_op_ii_ld.d: Likewise.
4538 * testsuite/gas/z80/z80_out_c_0.d: Likewise.
4539 * testsuite/gas/z80/z80_sli.d: Likewise.
4540 * testsuite/gas/z80/z80n_all.d: Likewise.
4541 * testsuite/gas/z80/z80n_reloc.d: Likewise.
4542
a7e12755
L
45432020-02-19 H.J. Lu <hongjiu.lu@intel.com>
4544
4545 * config/tc-i386.c (output_insn): Mark cvtpi2ps and cvtpi2pd
4546 with GNU_PROPERTY_X86_FEATURE_2_MMX.
4547 * testsuite/gas/i386/i386.exp: Run property-3 and
4548 x86-64-property-3.
4549 * testsuite/gas/i386/property-3.d: New file.
4550 * testsuite/gas/i386/property-3.s: Likewise.
4551 * testsuite/gas/i386/x86-64-property-3.d: Likewise.
4552
272a84b1
L
45532020-02-17 H.J. Lu <hongjiu.lu@intel.com>
4554
4555 * config/tc-i386.c (cpu_arch): Add .popcnt.
4556 * doc/c-i386.texi: Remove abm and .abm. Add popcnt and .popcnt.
4557 Add a tab before @samp{.sse4a}.
4558
c8f8eebc
JB
45592020-02-17 Jan Beulich <jbeulich@suse.com>
4560
4561 * config/tc-i386.c (process_suffix): Don't try to guess a suffix
4562 for AddrPrefixOpReg templates. Combine the two pieces of
4563 addrprefixopreg handling. Reject 16-bit address reg in 64-bit
4564 mode.
4565
eedb0f2c
JB
45662020-02-17 Jan Beulich <jbeulich@suse.com>
4567
4568 PR gas/14439
4569 * config/tc-i386.c (md_assemble): Also suppress operand
4570 swapping for MONITOR{,X} and MWAIT{,X}.
4571 * testsuite/gas/i386/sse3.s, testsuite/gas/i386/x86-64-sse3.s:
4572 Add Intel syntax monitor/mwait tests.
4573 * testsuite/gas/i386/sse3.d, testsuite/gas/i386/x86-64-sse3.d:
4574 Adjust expectations.
4575 *testsuite/gas/i386/sse3-intel.d,
4576 testsuite/gas/i386/x86-64-sse3-intel.d: New.
4577 * testsuite/gas/i386/i386.exp: Run new tests.
4578
b9915cbc
JB
45792020-02-17 Jan Beulich <jbeulich@suse.com>
4580
4581 PR gas/6518
4582 * config/tc-i386.c (process_suffix): Re-work Intel-syntax
4583 [XYZ]MMWord memory operand ambiguity recognition logic (largely
4584 re-indentation).
4585 * testsuite/gas/i386/avx512dq-inval.s: Add vcvtqq2ps/vcvtuqq2ps
4586 cases.
4587 * testsuite/gas/i386/inval-avx512f.s: Also test vcvtneps2bf16.
4588 * testsuite/gas/i386/avx512dq-inval.l,
4589 testsuite/gas/i386/inval-avx.l,
4590 testsuite/gas/i386/inval-avx512f.l: Adjust expectations.
4591 * testsuite/gas/i386/avx512vl-ambig.s,
4592 testsuite/gas/i386/avx512vl-ambig.l: New.
4593 * testsuite/gas/i386/i386.exp: Run new test.
4594
af5c13b0
L
45952020-02-16 H.J. Lu <hongjiu.lu@intel.com>
4596
4597 * config/tc-i386.c (cpu_arch): Add .sse4a and nosse4a. Restore
4598 nosse4.
4599 * doc/c-i386.texi: Document sse4a and nosse4a.
4600
07d98387
L
46012020-02-14 H.J. Lu <hongjiu.lu@intel.com>
4602
4603 * doc/c-i386.texi: Remove the old movsx and movzx documentation
4604 for AT&T syntax.
4605
65fca059
JB
46062020-02-14 Jan Beulich <jbeulich@suse.com>
4607
4608 PR gas/25438
4609 * config/tc-i386.c (md_assemble): Move movsx/movzx special
4610 casing ...
4611 (process_suffix): ... here. Consider just the first operand
4612 initially.
4613 (check_long_reg): Drop opcode 0x63 special case again.
4614 * testsuite/gas/i386/i386.s, testsuite/gas/i386/iamcu-1.s,
4615 testsuite/gas/i386/ilp32/x86-64.s, testsuite/gas/i386/x86_64.s:
4616 Move ambiguous operand size tests ...
4617 * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
4618 testsuite/gas/i386/noreg64.s: ... here.
4619 * testsuite/gas/i386/i386.d, testsuite/gas/i386/i386-intel.d
4620 testsuite/gas/i386/iamcu-1.d, testsuite/gas/i386/ilp32/x86-64.d,
4621 testsuite/gas/i386/k1om.d, testsuite/gas/i386/l1om.d,
4622 testsuite/gas/i386/movx16.l, testsuite/gas/i386/movx32.l,
4623 testsuite/gas/i386/movx64.l, testsuite/gas/i386/noreg16.d,
4624 testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg64.d,
4625 testsuite/gas/i386/x86-64-movsxd.d,
4626 testsuite/gas/i386/x86-64-movsxd-intel.d,
4627 testsuite/gas/i386/x86_64.d, testsuite/gas/i386/x86_64-intel.d:
4628 Adjust expectations.
4629 * testsuite/gas/i386/movx16.s, testsuite/gas/i386/movx16.l,
4630 testsuite/gas/i386/movx32.s, testsuite/gas/i386/movx32.l,
4631 testsuite/gas/i386/movx64.s, testsuite/gas/i386/movx64.l: New.
4632 * testsuite/gas/i386/i386.exp: Run new tests.
4633
b6773884
JB
46342020-02-14 Jan Beulich <jbeulich@suse.com>
4635
4636 * config/tc-i386.c (process_operands): Also skip segment
4637 override prefix emission if it matches an already present one.
4638 * testsuite/gas/i386/prefix32.s: Add double segment override
4639 cases.
4640 * testsuite/gas/i386/prefix32.l: Adjust expectations.
4641
92334ad2
JB
46422020-02-14 Jan Beulich <jbeulich@suse.com>
4643
4644 * config/tc-i386.c (process_operands): Drop ineffectual segment
4645 overrides when optimizing.
4646 * testsuite/gas/i386/lea-optimize.d: New.
4647 * testsuite/gas/i386/i386.exp: Run new test.
4648
46492020-02-14 Jan Beulich <jbeulich@suse.com>
514a8bb0
JB
4650
4651 * config/tc-i386.c (process_operands): Also check insn prefix
4652 for ineffectual segment override warning. Don't cover possible
4653 VEX/EVEX encoded insns there.
4654 * testsuite/gas/i386/lea.s, testsuite/gas/i386/lea.d,
4655 testsuite/gas/i386/lea.e: New.
4656 * testsuite/gas/i386/i386.exp: Run new test.
4657
0e6724de
L
46582020-02-14 H.J. Lu <hongjiu.lu@intel.com>
4659
4660 PR gas/25438
4661 * doc/c-i386.texi: Document movsx, movsxd and movzx for AT&T
4662 syntax.
4663
292676c1
L
46642020-02-13 Fangrui Song <maskray@google.com>
4665 H.J. Lu <hongjiu.lu@intel.com>
4666
4667 PR gas/25551
4668 * config/tc-i386.c (tc_i386_fix_adjustable): Don't check
4669 BFD_RELOC_386_PLT32 nor BFD_RELOC_X86_64_PLT32.
4670 * testsuite/gas/i386/i386.exp: Run relax-5 and x86-64-relax-4.
4671 * testsuite/gas/i386/relax-5.d: New file.
4672 * testsuite/gas/i386/relax-5.s: Likewise.
4673 * testsuite/gas/i386/x86-64-relax-4.d: Likewise.
4674 * testsuite/gas/i386/x86-64-relax-4.s: Likewise.
4675
7deea9aa
JB
46762020-02-13 Jan Beulich <jbeulich@suse.com>
4677
4678 * config/tc-i386.c (cpu_noarch): Use CPU_ANY_SSE4_FLAGS in
4679 "nosse4" entry.
4680
6c0946d0
JB
46812020-02-12 Jan Beulich <jbeulich@suse.com>
4682
4683 * config/tc-i386.c (avx512): New (at file scope), moved from
4684 (check_VecOperands): ... here.
4685 (process_suffix): Add [XYZ]MMword operand size handling.
4686 * testsuite/gas/i386/avx512dq-inval.s: Add VFPCLASS tests.
4687 * testsuite/gas/i386/noavx512-2.s: Add Intel syntax VFPCLASS
4688 tests.
4689 * testsuite/gas/i386/avx512dq-inval.l,
4690 testsuite/gas/i386/noavx512-2.l: Adjust expectations.
4691
5990e377
JB
46922020-02-12 Jan Beulich <jbeulich@suse.com>
4693
4694 PR gas/24546
4695 * config/tc-i386.c (match_template): Apply AMD64 check to 64-bit
4696 code only.
4697 * config/tc-i386-intel.c (i386_intel_operand): Also handle
4698 CALL/JMP in O_tbyte_ptr case.
4699 * doc/c-i386.texi: Mention far call and full pointer load ISA
4700 differences.
4701 * testsuite/gas/i386/x86-64-branch-3.s,
4702 testsuite/gas/i386/x86-64-intel64.s: Add 64-bit far call cases.
4703 * testsuite/gas/i386/x86-64-branch-3.d,
4704 testsuite/gas/i386/x86-64-intel64.d: Adjust expectations.
4705 * testsuite/gas/i386/x86-64-branch-5.l,
4706 testsuite/gas/i386/x86-64-branch-5.s: New.
4707 * testsuite/gas/i386/i386.exp: Run new test.
4708
9706160a
JB
47092020-02-12 Jan Beulich <jbeulich@suse.com>
4710
4711 PR gas/25438
4712 * config/tc-i386.c (REGISTER_WARNINGS): Delete.
4713 (check_byte_reg): Skip only source operand of CRC32. Drop Non-
4714 64-bit-only warning.
4715 (check_word_reg): Consistently error on mismatching register
4716 size and suffix.
4717 * testsuite/gas/i386/general.s: Replace dword GPR with word one
4718 for movw. Replace suffix / GPR for orb.
4719 * testsuite/gas/i386/inval.s: Add tests for movw with dword and
4720 byte GPRs as well as ones for inb/outb with a word accumulator.
4721 * testsuite/gas/i386/general.l, testsuite/gas/i386/intelbad.l,
4722 testsuite/gas/i386/inval.l: Adjust expectations.
4723
5de4d9ef
JB
47242020-02-12 Jan Beulich <jbeulich@suse.com>
4725
4726 * config/tc-i386.c (operand_type_register_match): Also fall
4727 through initial two if()-s when the template allows for a GPR
4728 operand. Adjust comment.
4729
50128d0c
JB
47302020-02-11 Jan Beulich <jbeulich@suse.com>
4731
4732 (struct _i386_insn): New field "short_form".
4733 (optimize_encoding): Drop setting of shortform field.
4734 (process_suffix): Set i.short_form. Replace shortform use.
4735 (process_operands): Replace shortform use.
4736
1ed818b4
MM
47372020-02-11 Matthew Malcomson <matthew.malcomson@arm.com>
4738
4739 * config/tc-arm.c (vcx_handle_register_arguments): Remove `for`
4740 loop initial declaration.
4741
5aae9ae9
MM
47422020-02-10 Matthew Malcomson <matthew.malcomson@arm.com>
4743
4744 * config/tc-arm.c (NEON_MAX_TYPE_ELS): Increment to account for
4745 instructions that can have 5 arguments.
4746 (enum operand_parse_code): Add new operands.
4747 (parse_operands): Account for new operands.
4748 (S5): New macro.
4749 (enum neon_shape_el): Introduce P suffixes for coprocessor.
4750 (neon_select_shape): Account for P suffix.
4751 (LOW1): Move macro to global position.
4752 (HI4): Move macro to global position.
4753 (vcx_assign_vec_d): New.
4754 (vcx_assign_vec_m): New.
4755 (vcx_assign_vec_n): New.
4756 (enum vcx_reg_type): New.
4757 (vcx_get_reg_type): New.
4758 (vcx_size_pos): New.
4759 (vcx_vec_pos): New.
4760 (vcx_handle_shape): New.
4761 (vcx_ensure_register_in_range): New.
4762 (vcx_handle_register_arguments): New.
4763 (vcx_handle_insn_block): New.
4764 (vcx_handle_common_checks): New.
4765 (do_vcx1): New.
4766 (do_vcx2): New.
4767 (do_vcx3): New.
4768 * testsuite/gas/arm/cde-missing-fp.d: New test.
4769 * testsuite/gas/arm/cde-missing-fp.l: New test.
4770 * testsuite/gas/arm/cde-missing-mve.d: New test.
4771 * testsuite/gas/arm/cde-missing-mve.l: New test.
4772 * testsuite/gas/arm/cde-mve-or-neon.d: New test.
4773 * testsuite/gas/arm/cde-mve-or-neon.s: New test.
4774 * testsuite/gas/arm/cde-mve.s: New test.
4775 * testsuite/gas/arm/cde-warnings.l:
4776 * testsuite/gas/arm/cde-warnings.s:
4777 * testsuite/gas/arm/cde.d:
4778 * testsuite/gas/arm/cde.s:
4779
4934a27c
MM
47802020-02-10 Stam Markianos-Wright <stam.markianos-wright@arm.com>
4781 Matthew Malcomson <matthew.malcomson@arm.com>
4782
4783 * config/tc-arm.c (arm_ext_cde*): New feature sets for each
4784 CDE coprocessor that can be enabled.
4785 (enum pred_instruction_type): New pred type.
4786 (BAD_NO_VPT): New error message.
4787 (BAD_CDE): New error message.
4788 (BAD_CDE_COPROC): New error message.
4789 (enum operand_parse_code): Add new immediate operands.
4790 (parse_operands): Account for new immediate operands.
4791 (check_cde_operand): New.
4792 (cde_coproc_enabled): New.
4793 (cde_coproc_pos): New.
4794 (cde_handle_coproc): New.
4795 (cxn_handle_predication): New.
4796 (do_custom_instruction_1): New.
4797 (do_custom_instruction_2): New.
4798 (do_custom_instruction_3): New.
4799 (do_cx1): New.
4800 (do_cx1a): New.
4801 (do_cx1d): New.
4802 (do_cx1da): New.
4803 (do_cx2): New.
4804 (do_cx2a): New.
4805 (do_cx2d): New.
4806 (do_cx2da): New.
4807 (do_cx3): New.
4808 (do_cx3a): New.
4809 (do_cx3d): New.
4810 (do_cx3da): New.
4811 (handle_pred_state): Define new IT block behaviour.
4812 (insns): Add newn CX*{,d}{,a} instructions.
4813 (CDE_EXTENSIONS,armv8m_main_ext_table,armv8_1m_main_ext_table):
4814 Define new cdecp extension strings.
4815 * doc/c-arm.texi: Document new cdecp extension arguments.
4816 * testsuite/gas/arm/cde-scalar.d: New test.
4817 * testsuite/gas/arm/cde-scalar.s: New test.
4818 * testsuite/gas/arm/cde-warnings.d: New test.
4819 * testsuite/gas/arm/cde-warnings.l: New test.
4820 * testsuite/gas/arm/cde-warnings.s: New test.
4821 * testsuite/gas/arm/cde.d: New test.
4822 * testsuite/gas/arm/cde.s: New test.
4823
4b5aaf5f
L
48242020-02-10 H.J. Lu <hongjiu.lu@intel.com>
4825
4826 PR gas/25516
4827 * config/tc-i386.c (intel64): Renamed to ...
4828 (isa64): This.
4829 (match_template): Accept Intel64 only instruction by default.
4830 (i386_displacement): Updated.
4831 (md_parse_option): Updated.
4832 * c-i386.texi: Update -mamd64/-mintel64 documentation.
4833 * testsuite/gas/i386/i386.exp: Run x86-64-sysenter. Pass
4834 -mamd64 to x86-64-sysenter-amd.
4835 * testsuite/gas/i386/x86-64-sysenter.d: New file.
4836
33176d91
AM
48372020-02-10 Alan Modra <amodra@gmail.com>
4838
4839 * config/obj-elf.c (obj_elf_change_section): Error for section
4840 type, attr or entsize changes in assembly.
4841 * testsuite/gas/elf/elf.exp: Pass -Z to gas for section5 test.
4842 * testsuite/gas/elf/section5.l: Update.
4843
82194874
AM
48442020-02-10 Alan Modra <amodra@gmail.com>
4845
4846 * output-file.c (output_file_close): Do a normal close when
4847 flag_always_generate_output.
4848 * write.c (write_object_file): Don't stop output when
4849 flag_always_generate_output.
4850
9fc0b501
SB
48512020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
4852
4853 PR 25469
4854 * config/tc-z80.c: Add -gbz80 command line option to generate code
4855 for the GameBoy Z80. Add support for generating DWARF.
4856 * config/tc-z80.h: Add support for DWARF debug information
4857 generation.
4858 * doc/c-z80.texi: Document new command line option.
4859 * testsuite/gas/z80/gbz80_all.d: New file.
4860 * testsuite/gas/z80/gbz80_all.s: New file.
4861 * testsuite/gas/z80/z80.exp: Run the new tests.
4862 * testsuite/gas/z80/z80n_all.d: New file.
4863 * testsuite/gas/z80/z80n_all.s: New file.
4864 * testsuite/gas/z80/z80n_reloc.d: New file.
4865
b7d07216
L
48662020-02-06 H.J. Lu <hongjiu.lu@intel.com>
4867
4868 PR gas/25381
4869 * config/obj-elf.c (get_section): Also check
4870 linked_to_symbol_name.
4871 (obj_elf_change_section): Also set map_head.linked_to_symbol_name.
4872 (obj_elf_parse_section_letters): Handle the 'o' flag.
4873 (build_group_lists): Renamed to ...
4874 (build_additional_section_info): This. Set elf_linked_to_section
4875 from map_head.linked_to_symbol_name.
4876 (elf_adjust_symtab): Updated.
4877 * config/obj-elf.h (elf_section_match): Add linked_to_symbol_name.
4878 * doc/as.texi: Document the 'o' flag.
4879 * testsuite/gas/elf/elf.exp: Run PR gas/25381 tests.
4880 * testsuite/gas/elf/section18.d: New file.
4881 * testsuite/gas/elf/section18.s: Likewise.
4882 * testsuite/gas/elf/section19.d: Likewise.
4883 * testsuite/gas/elf/section19.s: Likewise.
4884 * testsuite/gas/elf/section20.d: Likewise.
4885 * testsuite/gas/elf/section20.s: Likewise.
4886 * testsuite/gas/elf/section21.d: Likewise.
4887 * testsuite/gas/elf/section21.l: Likewise.
4888 * testsuite/gas/elf/section21.s: Likewise.
4889
5eb617a7
L
48902020-02-06 H.J. Lu <hongjiu.lu@intel.com>
4891
4892 * NEWS: Mention x86 assembler options to align branches for
4893 binutils 2.34.
4894
986ac314
L
48952020-02-06 H.J. Lu <hongjiu.lu@intel.com>
4896
4897 * testsuite/gas/i386/i386.exp: Run unique and x86-64-unique
4898 only for ELF targets.
4899 * testsuite/gas/i386/unique.d: Don't xfail.
4900 * testsuite/gas/i386/x86-64-unique.d: Likewise.
4901
19234a6d
AM
49022020-02-06 Alan Modra <amodra@gmail.com>
4903
4904 * testsuite/gas/i386/unique.d: xfail for non-elf targets.
4905 * testsuite/gas/i386/x86-64-unique.d: Likewise.
4906
02e0be69
AM
49072020-02-06 Alan Modra <amodra@gmail.com>
4908
4909 * testsuite/gas/elf/section12a.d: Use supports_gnu_osabi in
4910 xfail, and rename test.
4911 * testsuite/gas/elf/section12b.d: Likewise.
4912 * testsuite/gas/elf/section16a.d: Likewise.
4913 * testsuite/gas/elf/section16b.d: Likewise.
4914
a8c4d40b
L
49152020-02-02 H.J. Lu <hongjiu.lu@intel.com>
4916
4917 PR gas/25380
4918 * config/obj-elf.c (section_match): Removed.
4919 (get_section): Also match SEC_ASSEMBLER_SECTION_ID and
4920 section_id.
4921 (obj_elf_change_section): Replace info and group_name arguments
4922 with match_p. Also update the section ID and flags from match_p.
4923 (obj_elf_section): Handle "unique,N". Update call to
4924 obj_elf_change_section.
4925 * config/obj-elf.h (elf_section_match): New.
4926 (obj_elf_change_section): Updated.
4927 * config/tc-arm.c (start_unwind_section): Update call to
4928 obj_elf_change_section.
4929 * config/tc-ia64.c (obj_elf_vms_common): Likewise.
4930 * config/tc-microblaze.c (microblaze_s_data): Likewise.
4931 (microblaze_s_sdata): Likewise.
4932 (microblaze_s_rdata): Likewise.
4933 (microblaze_s_bss): Likewise.
4934 * config/tc-mips.c (s_change_section): Likewise.
4935 * config/tc-msp430.c (msp430_profiler): Likewise.
4936 * config/tc-rx.c (parse_rx_section): Likewise.
4937 * config/tc-tic6x.c (tic6x_start_unwind_section): Likewise.
4938 * doc/as.texi: Document "unique,N" in .section directive.
4939 * testsuite/gas/elf/elf.exp: Run "unique,N" tests.
4940 * testsuite/gas/elf/section15.d: New file.
4941 * testsuite/gas/elf/section15.s: Likewise.
4942 * testsuite/gas/elf/section16.s: Likewise.
4943 * testsuite/gas/elf/section16a.d: Likewise.
4944 * testsuite/gas/elf/section16b.d: Likewise.
4945 * testsuite/gas/elf/section17.d: Likewise.
4946 * testsuite/gas/elf/section17.l: Likewise.
4947 * testsuite/gas/elf/section17.s: Likewise.
4948 * testsuite/gas/i386/unique.d: Likewise.
4949 * testsuite/gas/i386/unique.s: Likewise.
4950 * testsuite/gas/i386/x86-64-unique.d: Likewise.
4951 * testsuite/gas/i386/i386.exp: Run unique and x86-64-unique.
4952
575d37ae
L
49532020-02-02 H.J. Lu <hongjiu.lu@intel.com>
4954
4955 * testsuite/gas/elf/section13.s: Replace @nobits with %nobits.
4956
2384096c
G
49572020-02-01 Anthony Green <green@moxielogic.com>
4958
0be2fe67 4959 * config/tc-moxie.c (md_begin): Don't force big-endian mode.
2384096c 4960
95441c43
SL
49612020-01-31 Sandra Loosemore <sandra@codesourcery.com>
4962
4963 * config/tc-nios2.c (nios2_cons): Handle %gotoff as well as
4964 %tls_ldo.
4965
d465d695
AV
49662020-01-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
4967
4968 PR gas/25472
4969 * config/tc-arm.c (armv8m_main_ext_table): Refactored +dsp adding.
4970 (armv8_1m_main_ext_table): Refactored +dsp adding and enabled dsp for
4971 +mve.
4972 * testsuite/gas/arm/mve_dsp.d: New test.
4973
d26cc8a9
NC
49742020-01-31 Nick Clifton <nickc@redhat.com>
4975
4976 * config/tc-s390.c (s390_elf_suffix): Return ELF_SUFFIX_NONE
4977 rather than BFD_RELOC_NONE.
4978
90e9955a
SP
49792020-01-31 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4980
4981 * config/tc-arm.c (fldmias): Moved inside "THUMB_VARIANT & arm_ext_v6t2"
4982 to support VLDMIA instruction for MVE.
4983 (fldmdbs): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VLDMDB
4984 instruction for MVE.
4985 (fstmias): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VSTMIA
4986 instruction for MVE.
4987 (fstmdbs): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VSTMDB
4988 instruction for MVE.
4989 * testsuite/gas/arm/mve-ldst.d: New test.
4990 * testsuite/gas/arm/mve-ldst.s: Likewise.
4991
53943f32
NC
49922020-01-31 Nick Clifton <nickc@redhat.com>
4993
4994 * po/fr.po: Updated French translation.
4995 * po/ru.po: Updated Russian translation.
4996
c3036ed0
RS
49972020-01-31 Richard Sandiford <richard.sandiford@arm.com>
4998
4999 * testsuite/gas/aarch64/sve-bfloat-movprfx.s: Use .h rather than
5000 .s for the movprfx.
5001 * testsuite/gas/aarch64/sve-bfloat-movprfx.d: Update accordingly.
5002 * testsuite/gas/aarch64/sve-movprfx_28.d,
5003 * testsuite/gas/aarch64/sve-movprfx_28.l,
5004 * testsuite/gas/aarch64/sve-movprfx_28.s: New test.
5005
2ae4c703
JB
50062020-01-30 Jan Beulich <jbeulich@suse.com>
5007
5008 * config/tc-i386.c (output_disp): Tighten base_opcode check.
5009 * testsuite/gas/i386/got.s: Add LSL, MOVLPS, and BNDCN cases.
5010 * testsuite/gas/i386/got-no-relax.d, testsuite/gas/i386/got.d:
5011 Adjust expectations.
5012
bd434cc4
JM
50132020-01-30 Jose E. Marchesi <jose.marchesi@oracle.com>
5014
5015 * testsuite/gas/bpf/alu.d: Update expected opcode for `neg'.
5016 * testsuite/gas/bpf/alu-be.d: Likewise.
5017 * testsuite/gas/bpf/alu32.d: Likewise for `neg32'.
5018 * testsuite/gas/bpf/alu32-be.d: Likewise.
5019
aeab2b26
JB
50202020-01-30 Jan Beulich <jbeulich@suse.com>
5021
5022 * testsuite/gas/i386/x86-64-branch-2.s,
5023 testsuite/gas/i386/x86-64-branch-4.s,
5024 testsuite/gas/i386/x86-64-branch.s: Add RETW cases.
5025 * testsuite/gas/i386/ilp32/x86-64-branch.d,
5026 testsuite/gas/i386/x86-64-branch-2.d,
5027 testsuite/gas/i386/x86-64-branch-4.l,
5028 testsuite/gas/i386/x86-64-branch.d: Adjust expectations.
5029
873494c8
JB
50302020-01-30 Jan Beulich <jbeulich@suse.com>
5031
5032 * config/tc-i386.c (process_suffix): .
5033 testsuite/gas/i386/noreg64.s: Add IRET and LRET cases.
5034 testsuite/gas/i386/x86-64-opcode.s: Add suffix to IRET and LRET.
5035 Add LRETQ case.
5036 testsuite/gas/i386/x86-64-suffix.s: Drop IRET case without
5037 suffix.
5038 testsuite/gas/i386/x86_64.s: Add RETF cases.
5039 * testsuite/gas/i386/k1om.d, testsuite/gas/i386/l1om.d,
5040 testsuite/gas/i386/noreg64.d, testsuite/gas/i386/noreg64.l,
5041 testsuite/gas/i386/x86-64-opcode.d,
5042 testsuite/gas/i386/x86-64-suffix-intel.d,
5043 testsuite/gas/i386/x86-64-suffix.d,
5044 testsuite/gas/i386/x86_64-intel.d
5045 testsuite/gas/i386/x86_64.d: Adjust expectations.
5046 * testsuite/gas/i386/x86-64-suffix.e,
5047 testsuite/gas/i386/x86_64.e: New.
5048
62b3f548
JB
50492020-01-30 Jan Beulich <jbeulich@suse.com>
5050
5051 * config/tc-i386.c (process_suffix): Redo and move FLDENV et al
5052 special case.
5053
bc31405e
L
50542020-01-27 H.J. Lu <hongjiu.lu@intel.com>
5055
5056 PR binutils/25445
5057 * config/tc-i386.c (check_long_reg): Also convert to QWORD for
5058 movsxd.
5059 * doc/c-i386.texi: Add a node for AMD64 vs. Intel64 ISA
5060 differences. Document movslq and movsxd.
5061 * testsuite/gas/i386/i386.exp: Run PR binutils/25445 tests.
5062 * testsuite/gas/i386/x86-64-movsxd-intel.d: New file.
5063 * testsuite/gas/i386/x86-64-movsxd-intel64-intel.d: Likewise.
5064 * testsuite/gas/i386/x86-64-movsxd-intel64-inval.l: Likewise.
5065 * testsuite/gas/i386/x86-64-movsxd-intel64-inval.s: Likewise.
5066 * testsuite/gas/i386/x86-64-movsxd-intel64.d: Likewise.
5067 * testsuite/gas/i386/x86-64-movsxd-intel64.s: Likewise.
5068 * testsuite/gas/i386/x86-64-movsxd-inval.l: Likewise.
5069 * testsuite/gas/i386/x86-64-movsxd-inval.s: Likewise.
5070 * testsuite/gas/i386/x86-64-movsxd.d: Likewise.
5071 * testsuite/gas/i386/x86-64-movsxd.s: Likewise.
5072
e3696f67
AM
50732020-01-27 Alan Modra <amodra@gmail.com>
5074
5075 * testsuite/gas/all/gas.exp: Replace case statements with switch
5076 statements.
5077 * testsuite/gas/elf/elf.exp: Likewise.
5078 * testsuite/gas/macros/macros.exp: Likewise.
5079 * testsuite/lib/gas-defs.exp: Likewise.
5080
7568c93b
TC
50812020-01-27 Tamar Christina <tamar.christina@arm.com>
5082
5083 PR 25403
5084 * testsuite/gas/aarch64/armv8_4-a.d: Add cfinv.
5085 * testsuite/gas/aarch64/armv8_4-a.s: Likewise.
5086
403d1bd9
JW
50872020-01-22 Maxim Blinov <maxim.blinov@embecosm.com>
5088
5089 * testsuite/gas/riscv/march-ok-s.d: sx is no longer valid and
5090 s exts must be known, so rename *ok* to *fail*.
5091 * testsuite/gas/riscv/march-ok-sx.d: Likewise.
5092 * testsuite/gas/riscv/march-ok-s-with-version: Likewise.
5093 * testsuite/gas/riscv/march-fail-s.l: Expected error messages for
5094 above change.
5095 * testsuite/gas/riscv/march-fail-sx.l: Likewise.
5096 * testsuite/gas/riscv/march-fail-sx-with-version.l: Likewise.
5097
be4c5e58
L
50982020-01-22 H.J. Lu <hongjiu.lu@intel.com>
5099
5100 PR gas/25438
5101 * config/tc-i386.c (check_long_reg): Always disallow double word
5102 suffix in mnemonic with word general register.
5103 * testsuite/gas/i386/general.s: Replace word general register
5104 with double word general register for movl.
5105 * testsuite/gas/i386/inval.s: Add tests for movl with word general
5106 register.
5107 * testsuite/gas/i386/general.l: Updated.
5108 * testsuite/gas/i386/inval.l: Likewise.
5109
9e7028aa
AM
51102020-01-22 Alan Modra <amodra@gmail.com>
5111
5112 * config/tc-ppc.c (parse_tls_arg): Handle tls arg for
5113 __tls_get_addr_desc and __tls_get_addr_opt.
5114
e3ed17f3
JB
51152020-01-21 Jan Beulich <jbeulich@suse.com>
5116
5117 * testsuite/gas/i386/inval-crc32.s,
5118 testsuite/gas/i386/x86-64-inval-crc32.s: Add alignment directive.
5119 * testsuite/gas/i386/inval-crc32.l,
5120 testsuite/gas/i386/x86-64-inval-crc32.l: Adjust expectations.
5121
1a035124
JB
51222020-01-21 Jan Beulich <jbeulich@suse.com>
5123
5124 * config/tc-i386.c (process_suffix): Merge CRC32 handling into
5125 generic code path. Deal with No_lSuf being set in a template.
5126 * testsuite/gas/i386/inval-crc32.l,
5127 testsuite/gas/i386/x86-64-inval-crc32.l: Expect warning(s)
5128 instead of error(s) when operand size is ambiguous.
5129 * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
5130 testsuite/gas/i386/noreg64.s: Add CRC32 tests.
5131 * testsuite/gas/i386/noreg16.d, testsuite/gas/i386/noreg16.l,
5132 testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg32.l,
5133 testsuite/gas/i386/noreg64.d, testsuite/gas/i386/noreg64.l:
5134 Adjust expectations.
5135
c006a730
JB
51362020-01-21 Jan Beulich <jbeulich@suse.com>
5137
5138 * config/tc-i386.c (process_suffix): Drop SYSRET special case
5139 and an intel_syntax check. Re-write lack-of-suffix processing
5140 logic.
5141 * doc/c-i386.texi: Document operand size defaults for suffix-
5142 less AT&T syntax insns.
5143 * testsuite/gas/i386/bundle.s, testsuite/gas/i386/lock-1.s,
5144 testsuite/gas/i386/opcode.s, testsuite/gas/i386/sse3.s,
5145 testsuite/gas/i386/x86-64-avx-scalar.s,
5146 testsuite/gas/i386/x86-64-avx.s,
5147 testsuite/gas/i386/x86-64-bundle.s,
5148 testsuite/gas/i386/x86-64-intel64.s,
5149 testsuite/gas/i386/x86-64-lock-1.s,
5150 testsuite/gas/i386/x86-64-opcode.s,
5151 testsuite/gas/i386/x86-64-sse2avx.s,
5152 testsuite/gas/i386/x86-64-sse3.s: Add missing suffixes.
5153 * testsuite/gas/i386/nops.s, testsuite/gas/i386/sse-noavx.s,
5154 testsuite/gas/i386/x86-64-nops.s,
5155 testsuite/gas/i386/x86-64-ptwrite.s,
5156 testsuite/gas/i386/x86-64-simd.s,
5157 testsuite/gas/i386/x86-64-sse-noavx.s,
5158 testsuite/gas/i386/x86-64-suffix.s: Drop bogus suffix-less
5159 insns.
5160 * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
5161 testsuite/gas/i386/noreg64.s: Add further tests.
5162 * testsuite/gas/i386/ilp32/x86-64-nops.d,
5163 testsuite/gas/i386/nops.d, testsuite/gas/i386/noreg16.d,
5164 testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg64.d,
5165 testsuite/gas/i386/sse-noavx.d,
5166 testsuite/gas/i386/x86-64-intel64.d,
5167 testsuite/gas/i386/x86-64-nops.d,
5168 testsuite/gas/i386/x86-64-opcode.d,
5169 testsuite/gas/i386/x86-64-ptwrite-intel.d,
5170 testsuite/gas/i386/x86-64-ptwrite.d,
5171 testsuite/gas/i386/x86-64-simd-intel.d,
5172 testsuite/gas/i386/x86-64-simd-suffix.d,
5173 testsuite/gas/i386/x86-64-simd.d,
5174 testsuite/gas/i386/x86-64-sse-noavx.d
5175 testsuite/gas/i386/x86-64-suffix.d,
5176 testsuite/gas/i386/x86-64-suffix-intel.d: Adjust expectations.
5177 * testsuite/gas/i386/noreg16.l, testsuite/gas/i386/noreg32.l,
5178 testsuite/gas/i386/noreg64.l: New.
5179 * testsuite/gas/i386/i386.exp: Run new tests.
5180
c906a69a
JB
51812020-01-21 Jan Beulich <jbeulich@suse.com>
5182
5183 * testsuite/gas/i386/avx512_bf16_vl.s,
5184 testsuite/gas/i386/x86-64-avx512_bf16_vl.s: Add broadcast forms
5185 of VCVTNEPS2BF16{X,Y}. Add operand-size less Intel syntax
5186 broadcast forms of VCVTNEPS2BF16.
5187 * testsuite/gas/i386/avx512_bf16_vl.d,
5188 testsuite/gas/i386/x86-64-avx512_bf16_vl.d: Adjust expectations.
5189
26916852
NC
51902020-01-20 Nick Clifton <nickc@redhat.com>
5191
5192 * po/uk.po: Updated Ukranian translation.
5193
14470f07
L
51942020-01-20 H.J. Lu <hongjiu.lu@intel.com>
5195
5196 PR ld/25416
5197 * config/tc-i386.c (output_insn): Add a dummy REX_OPCODE prefix
5198 for lea with R_X86_64_GOTPC32_TLSDESC relocation when generating
5199 x32 object.
5200 * testsuite/gas/i386/ilp32/x32-tls.d: Updated.
5201 * testsuite/gas/i386/ilp32/x32-tls.s: Add tests for lea with
5202 R_X86_64_GOTPC32_TLSDESC relocation.
5203
1b1bb2c6
NC
52042020-01-18 Nick Clifton <nickc@redhat.com>
5205
5206 * configure: Regenerate.
5207 * po/gas.pot: Regenerate.
5208
ae774686
NC
52092020-01-18 Nick Clifton <nickc@redhat.com>
5210
5211 Binutils 2.34 branch created.
5212
42e04b36
L
52132020-01-17 H.J. Lu <hongjiu.lu@intel.com>
5214
5215 * config/tc-i386.c (_i386_insn): Replace vex_encoding_vex2
5216 with vex_encoding_vex.
5217 (parse_insn): Likewise.
5218 * doc/c-i386.texi: Replace {vex2} with {vex}. Update {vex}
5219 and {vex3} documentation.
5220 * testsuite/gas/i386/pseudos.s: Replace 3 {vex2} tests with
5221 {vex}.
5222 * testsuite/gas/i386/x86-64-pseudos.s: Likewise.
5223
2da2eaf4
AV
52242020-01-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
5225
5226 PR 25376
5227 * config/tc-arm.c (mve_ext, mve_fp_ext): Use CORE_HIGH.
5228 (armv8_1m_main_ext_table): Use CORE_HIGH for mve.
5229 * testsuite/arm/armv8_1-m-fpu-mve-1.s: New.
5230 * testsuite/arm/armv8_1-m-fpu-mve-1.d: New.
5231 * testsuite/arm/armv8_1-m-fpu-mve-2.s: New.
5232 * testsuite/arm/armv8_1-m-fpu-mve-2.d: New.
5233
45a4bb20
JB
52342020-01-16 Jan Beulich <jbeulich@suse.com>
5235
5236 * config/tc-i386.c (match_template): Drop found_cpu_match local
5237 variable.
5238
4814632e
JB
52392020-01-16 Jan Beulich <jbeulich@suse.com>
5240
5241 * testsuite/gas/i386/avx512dq-inval.l,
5242 testsuite/gas/i386/avx512dq-inval.s: New.
5243 * testsuite/gas/i386/i386.exp: Run new test.
5244
131cb553
JL
52452020-01-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5246
5247 * config/tc-msp430.c (CHECK_RELOC_MSP430): Always generate 430X
5248 relocations when the target is 430X, except when extracting part of an
5249 expression.
5250 (msp430_srcoperand): Adjust comment.
5251 Initialize the expp member of the msp430_operand_s struct as
5252 appropriate.
5253 (msp430_dstoperand): Likewise.
5254 * testsuite/gas/msp430/msp430.exp: Run new test.
5255 * testsuite/gas/msp430/reloc-lo-430x.d: New test.
5256 * testsuite/gas/msp430/reloc-lo-430x.s: New test.
5257
c24d0e8d
AM
52582020-01-15 Alan Modra <amodra@gmail.com>
5259
5260 * configure.tgt: Add sparc-*-freebsd case.
5261
e44925ae
LC
52622020-01-14 Lili Cui <lili.cui@intel.com>
5263
5264 * testsuite/gas/i386/align-branch-1a.d: Updated for Darwin.
5265 * testsuite/gas/i386/align-branch-1b.d: Likewise.
5266 * testsuite/gas/i386/align-branch-1c.d: Likewise.
5267 * testsuite/gas/i386/align-branch-1d.d: Likewise.
5268 * testsuite/gas/i386/align-branch-1e.d: Likewise.
5269 * testsuite/gas/i386/align-branch-1f.d: Likewise.
5270 * testsuite/gas/i386/align-branch-1g.d: Likewise.
5271 * testsuite/gas/i386/align-branch-1h.d: Likewise.
5272 * testsuite/gas/i386/align-branch-1i.d: Likewise.
5273 * testsuite/gas/i386/align-branch-5.d: Likewise.
5274 * testsuite/gas/i386/x86-64-align-branch-1a.d: Likewise.
5275 * testsuite/gas/i386/x86-64-align-branch-1b.d: Likewise.
5276 * testsuite/gas/i386/x86-64-align-branch-1c.d: Likewise.
5277 * testsuite/gas/i386/x86-64-align-branch-1d.d: Likewise.
5278 * testsuite/gas/i386/x86-64-align-branch-1e.d: Likewise.
5279 * testsuite/gas/i386/x86-64-align-branch-1f.d: Likewise.
5280 * testsuite/gas/i386/x86-64-align-branch-1g.d: Likewise.
5281 * testsuite/gas/i386/x86-64-align-branch-1h.d: Likewise.
5282 * testsuite/gas/i386/x86-64-align-branch-1i.d: Likewise.
5283 * testsuite/gas/i386/x86-64-align-branch-5.d: Likewise.
5284 * testsuite/gas/i386/i386.exp: Skip x86-64-align-branch-2a,
5285 x86-64-align-branch-2b and x86-64-align-branch-2c on Darwin.
5286
7a6bf3be
SB
52872020-01-14 Sergey Belyashov <sergey.belyashov@gmail.com>
5288
5289 PR 25377
5290 * config/tc-z80.c: Add support for half precision, single
5291 precision and double precision floating point values.
5292 * config/tc-z80.h b/gas/config/tc-z80.h: Disable string escapes.
5293 * doc/as.texi: Add new z80 command line options.
5294 * doc/c-z80.texi: Document new z80 command line options.
5295 * testsuite/gas/z80/ez80_pref_dis.s: New test.
5296 * testsuite/gas/z80/ez80_pref_dis.d: New test driver.
5297 * testsuite/gas/z80/z80.exp: Run the new test.
5298 * testsuite/gas/z80/fp_math48.d: Use correct command line option.
5299 * testsuite/gas/z80/fp_zeda32.d: Likewise.
5300 * testsuite/gas/z80/strings.d: Update expected output.
5301
82e9597c
MM
53022020-01-13 Matthew Malcomson <matthew.malcomson@arm.com>
5303
5304 * config/tc-aarch64.c (f64mm, f32mm): Add sve as a feature
5305 dependency.
5306
5e4f7e05
CZ
53072020-01-13 Claudiu Zissulescu <claziss@gmail.com>
5308
5309 * config/tc-arc.c (arc_select_cpu): Re-init the bfd if we change
5310 the CPU.
5311 * config/tc-arc.h: Add header if/defs.
5312 * testsuite/gas/arc/pseudos.d: Improve matching pattern.
5313
febda64f
AM
53142020-01-13 Alan Modra <amodra@gmail.com>
5315
5316 * testsuite/gas/wasm32/allinsn.d: Update expected output.
5317
5496abe1
AM
53182020-01-13 Alan Modra <amodra@gmail.com>
5319
5320 * config/tc-tic4x.c (tic4x_operands_match): Correct tic3x trap
5321 insertion.
5322
ec4181f2
AM
53232020-01-10 Alan Modra <amodra@gmail.com>
5324
5325 * testsuite/gas/elf/pr14891.s: Don't start directives in first column.
5326 * testsuite/gas/elf/pr21661.d: Don't run on hpux.
5327
40c75bc8
SB
53282020-01-03 Sergey Belyashov <sergey.belyashov@gmail.com>
5329
5330 PR 25224
5331 * config/tc-z80.c (emit_ld_m_rr): Use integer types when checking
5332 opcode byte values.
5333 (emit_ld_r_r): Likewise.
5334 (emit_ld_rr_m): Likewise.
5335 (emit_ld_rr_nn): Likewise.
5336
72aea328
JB
53372020-01-09 Jan Beulich <jbeulich@suse.com>
5338
5339 * config/tc-i386.c (optimize_encoding): Add
5340 is_any_vex_encoding() invocations. Drop respective
5341 i.tm.extension_opcode == None checks.
5342
3f93af61
JB
53432020-01-09 Jan Beulich <jbeulich@suse.com>
5344
5345 * config/tc-i386.c (md_assemble): Check RegRex is clear during
5346 REX transformations. Correct comment indentation.
5347
7697afb6
JB
53482020-01-09 Jan Beulich <jbeulich@suse.com>
5349
5350 * config/tc-i386.c (optimize_encoding): Generalize register
5351 transformation for TEST optimization.
5352
d835a58b
JB
53532020-01-09 Jan Beulich <jbeulich@suse.com>
5354
5355 * testsuite/gas/i386/x86-64-sysenter-amd.s,
5356 testsuite/gas/i386/x86-64-sysenter-amd.d,
5357 testsuite/gas/i386/x86-64-sysenter-amd.l,
5358 testsuite/gas/i386/x86-64-sysenter-intel.d,
5359 testsuite/gas/i386/x86-64-sysenter-mixed.d: New.
5360 * testsuite/gas/i386/i386.exp: Run new tests.
5361
915808f6
NC
53622020-01-08 Nick Clifton <nickc@redhat.com>
5363
5364 PR 25284
5365 * doc/as.texi (Align): Document the fact that all arguments can be
5366 omitted.
5367 (Balign): Likewise.
5368 (P2align): Likewise.
5369
f1f28025
NC
53702020-01-08 Nick Clifton <nickc@redhat.com>
5371
5372 PR 14891
5373 * config/obj-elf.c (obj_elf_section): Fail if the section name is
5374 already defined as a different symbol type.
5375 * testsuite/gas/elf/pr14891.s: New test source file.
5376 * testsuite/gas/elf/pr14891.d: New test driver.
5377 * testsuite/gas/elf/pr14891.s: New test expected error output.
5378 * testsuite/gas/elf/elf.exp: Run the new test.
5379
030a2e78
AM
53802020-01-08 Alan Modra <amodra@gmail.com>
5381
5382 * config/tc-z8k.c (md_begin): Make idx unsigned.
5383 (get_specific): Likewise for this_index.
5384
2a1ebfb2
CZ
53852020-01-07 Claudiu Zissulescu <claziss@synopsys.com>
5386
5387 * onfig/tc-arc.c (parse_reloc_symbol): New function.
5388 (tokenize_arguments): Clean up, use parse_reloc_symbol function.
5389 (md_operand): Set X_md to absent.
5390 (arc_parse_name): Check for X_md.
5391
16d87673
SB
53922020-01-03 Sergey Belyashov <sergey.belyashov@gmail.com>
5393
5394 PR 25311
5395 * as.h (TC_STRING_ESCAPES): Provide a default definition.
5396 * app.c (do_scrub_chars): Use TC_STRING_ESCAPES instead of
5397 NO_STRING_ESCAPES.
5398 * read.c (next_char_of_string): Likewise.
5399 * config/tc-ppc.h (TC_STRING_ESCAPES): Define.
5400 * config/tc-z80.h (TC_STRING_ESCAPES): Define.
5401
a2322019
NC
54022020-01-03 Nick Clifton <nickc@redhat.com>
5403
5404 * po/sv.po: Updated Swedish translation.
5405
5437a02a
JB
54062020-01-03 Jan Beulich <jbeulich@suse.com>
5407
5408 * testsuite/gas/aarch64/f64mm.s: Scale index of LD1RO{H,W,D}.
5409 * testsuite/gas/aarch64/f64mm.d: Adjust expectations.
5410
567dfba2
JB
54112020-01-03 Jan Beulich <jbeulich@suse.com>
5412
5413 * testsuite/gas/aarch64/i8mm.s: Add 128-bit form tests for
5414 by-element usdot. Add 64-bit form tests for by-element sudot.
5415 * testsuite/gas/aarch64/i8mm.d: Adjust expectations.
5416
8c45011a
JB
54172020-01-03 Jan Beulich <jbeulich@suse.com>
5418
5419 * testsuite/gas/aarch64/f64mm.s: Drop 'i' from uzip<n>.
5420 * testsuite/gas/aarch64/f64mm.d: Adjust expectations.
5421
f4950f76
JB
54222020-01-03 Jan Beulich <jbeulich@suse.com>
5423
5424 * testsuite/gas/aarch64/f64mm.d,
5425 testsuite/gas/aarch64/sve-movprfx-mm.d: Adjust expectations.
5426
6655dba2
SB
54272020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
5428
5429 * config/tc-z80.c: Add new architectures: Z180 and eZ80. Add
5430 support for assembler code generated by SDCC. Add new relocation
5431 types. Add z80-elf target support.
5432 * config/tc-z80.h: Add z80-elf target support. Enable dollar local
5433 labels. Local labels starts from ".L".
5434 * NEWS: Mention the new support.
5435 * testsuite/gas/all/fwdexp.d: Fix failure due to symbol conflict.
5436 * testsuite/gas/all/fwdexp.s: Likewise.
5437 * testsuite/gas/all/cond.l: Likewise.
5438 * testsuite/gas/all/cond.s: Likewise.
5439 * testsuite/gas/all/fwdexp.d: Likewise.
5440 * testsuite/gas/all/fwdexp.s: Likewise.
5441 * testsuite/gas/elf/section2.e-mips: Likewise.
5442 * testsuite/gas/elf/section2.l: Likewise.
5443 * testsuite/gas/elf/section2.s: Likewise.
5444 * testsuite/gas/macros/app1.d: Likewise.
5445 * testsuite/gas/macros/app1.s: Likewise.
5446 * testsuite/gas/macros/app2.d: Likewise.
5447 * testsuite/gas/macros/app2.s: Likewise.
5448 * testsuite/gas/macros/app3.d: Likewise.
5449 * testsuite/gas/macros/app3.s: Likewise.
5450 * testsuite/gas/macros/app4.d: Likewise.
5451 * testsuite/gas/macros/app4.s: Likewise.
5452 * testsuite/gas/macros/app4b.s: Likewise.
5453 * testsuite/gas/z80/suffix.d: Fix failure on ELF target.
5454 * testsuite/gas/z80/z80.exp: Add new tests
5455 * testsuite/gas/z80/dollar.d: New file.
5456 * testsuite/gas/z80/dollar.s: New file.
5457 * testsuite/gas/z80/ez80_adl_all.d: New file.
5458 * testsuite/gas/z80/ez80_adl_all.s: New file.
5459 * testsuite/gas/z80/ez80_adl_suf.d: New file.
5460 * testsuite/gas/z80/ez80_isuf.s: New file.
5461 * testsuite/gas/z80/ez80_z80_all.d: New file.
5462 * testsuite/gas/z80/ez80_z80_all.s: New file.
5463 * testsuite/gas/z80/ez80_z80_suf.d: New file.
5464 * testsuite/gas/z80/r800_extra.d: New file.
5465 * testsuite/gas/z80/r800_extra.s: New file.
5466 * testsuite/gas/z80/r800_ii8.d: New file.
5467 * testsuite/gas/z80/r800_z80_doc.d: New file.
5468 * testsuite/gas/z80/z180.d: New file.
5469 * testsuite/gas/z80/z180.s: New file.
5470 * testsuite/gas/z80/z180_z80_doc.d: New file.
5471 * testsuite/gas/z80/z80_doc.d: New file.
5472 * testsuite/gas/z80/z80_doc.s: New file.
5473 * testsuite/gas/z80/z80_ii8.d: New file.
5474 * testsuite/gas/z80/z80_ii8.s: New file.
5475 * testsuite/gas/z80/z80_in_f_c.d: New file.
5476 * testsuite/gas/z80/z80_in_f_c.s: New file.
5477 * testsuite/gas/z80/z80_op_ii_ld.d: New file.
5478 * testsuite/gas/z80/z80_op_ii_ld.s: New file.
5479 * testsuite/gas/z80/z80_out_c_0.d: New file.
5480 * testsuite/gas/z80/z80_out_c_0.s: New file.
5481 * testsuite/gas/z80/z80_reloc.d: New file.
5482 * testsuite/gas/z80/z80_reloc.s: New file.
5483 * testsuite/gas/z80/z80_sli.d: New file.
5484 * testsuite/gas/z80/z80_sli.s: New file.
5485
a65b5de6
SN
54862020-01-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
5487
5488 * config/tc-arm.c (parse_reg_list): Use REG_TYPE_RN instead of
5489 REGLIST_RN.
5490
b14ce8bf
AM
54912020-01-01 Alan Modra <amodra@gmail.com>
5492
5493 Update year range in copyright notice of all files.
5494
0b114740 5495For older changes see ChangeLog-2019
3499769a 5496\f
0b114740 5497Copyright (C) 2020 Free Software Foundation, Inc.
3499769a
AM
5498
5499Copying and distribution of this file, with or without modification,
5500are permitted in any medium without royalty provided the copyright
5501notice and this notice are preserved.
5502
5503Local Variables:
5504mode: change-log
5505left-margin: 8
5506fill-column: 74
5507version-control: never
5508End: