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