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