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