]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gas/ChangeLog
Clear all local_symbol.lsy_flags
[thirdparty/binutils-gdb.git] / gas / ChangeLog
1 2020-05-19 Alan Modra <amodra@gmail.com>
2
3 * symbols.c (local_symbol_make): Init all of lsy_flags.
4
5 2020-05-18 Alan Modra <amodra@gmail.com>
6
7 * symbols.c (resolve_symbol_value): Invoke LOCAL_SYMBOL_CHECK
8 before looking at add_symbol->sy_flags.
9
10 2020-05-18 Hongtao Liu <hongtao.liu@intel.com>
11
12 * config/tc-i386.c: Not handle lret/iret.
13 * testsuite/gas/i386/lfence-ret-a.d: Adjust testcase.
14 * testsuite/gas/i386/lfence-ret-b.d: Ditto.
15 * testsuite/gas/i386/lfence-ret-c.d: Ditto.
16 * testsuite/gas/i386/lfence-ret-d.d: Ditto.
17 * testsuite/gas/i386/lfence-ret.s: Ditto.
18 * testsuite/gas/i386/x86-64-lfence-ret-a.d: Ditto.
19 * testsuite/gas/i386/x86-64-lfence-ret-b.d: Ditto.
20 * testsuite/gas/i386/x86-64-lfence-ret-c.d: Ditto.
21 * testsuite/gas/i386/x86-64-lfence-ret-d.d: Ditto.
22 * testsuite/gas/i386/x86-64-lfence-ret-e.d: Ditto.
23 * testsuite/gas/i386/x86-64-lfence-ret.s: Ditto.
24 * testsuite/gas/i386/x86-64-lfence-ret.e: Deleted.
25
26 2020-05-15 Alan Modra <amodra@gmail.com>
27 Alex Coplan <alex.coplan@arm.com>
28
29 * symbols.c (struct local_symbol): Update comment.
30 (resolve_symbol_value): For resolved symbols equated to other
31 symbols, verify that the referenced symbol is not a local_symbol
32 before accessing sy_value. Don't leave symbol loops during
33 finalize_syms resolution.
34 * testsuite/gas/all/assign-bad-recursive.d: New test.
35 * testsuite/gas/all/assign-bad-recursive.l: Error output for test.
36 * testsuite/gas/all/assign-bad-recursive.s: Assembly for test.
37 * testsuite/gas/all/gas.exp: Run it.
38
39 2020-05-14 Nick Clifton <nickc@redhat.com>
40
41 * po/sv.po: Updated Swedish translation.
42
43 2020-05-11 Alan Modra <amodra@gmail.com>
44
45 * testsuite/gas/ppc/scalarquad.d,
46 * testsuite/gas/ppc/scalarquad.s: New test.
47 * testsuite/gas/ppc/ppc.exp: Run it.
48
49 2020-05-11 Alan Modra <amodra@gmail.com>
50
51 * testsuite/gas/ppc/rightmost.d,
52 * testsuite/gas/ppc/rightmost.s: New test.
53 * testsuite/gas/ppc/ppc.exp: Run it.
54
55 2020-05-11 Alan Modra <amodra@gmail.com>
56
57 * testsuite/gas/ppc/xvtlsbb.d,
58 * testsuite/gas/ppc/xvtlsbb.s: New test.
59 * testsuite/gas/ppc/ppc.exp: Run it.
60
61 2020-05-11 Alan Modra <amodra@gmail.com>
62
63 * testsuite/gas/ppc/stringop.d,
64 * testsuite/gas/ppc/stringop.s: New test.
65 * testsuite/gas/ppc/ppc.exp: Run it.
66
67 2020-05-11 Peter Bergner <bergner@linux.ibm.com>
68
69 * testsuite/gas/ppc/set_bool.d,
70 * testsuite/gas/ppc/set_bool.s: New test.
71 * testsuite/gas/ppc/ppc.exp: Run it.
72
73 2020-05-11 Alan Modra <amodra@gmail.com>
74
75 * testsuite/gas/ppc/bitmanip.d,
76 * testsuite/gas/ppc/bitmanip.s: New test.
77 * testsuite/gas/ppc/ppc.exp: Run it.
78
79 2020-05-11 Alan Modra <amodra@gmail.com>
80
81 * testsuite/gas/ppc/genpcv.d,
82 * testsuite/gas/ppc/genpcv.s: New test.
83 * testsuite/gas/ppc/ppc.exp: Run it.
84
85 2020-05-11 Alan Modra <amodra@gmail.com>
86
87 * testsuite/gas/ppc/maskmanip.d,
88 * testsuite/gas/ppc/maskmanip.s: New test.
89 * testsuite/gas/ppc/ppc.exp: Run it.
90
91 2020-05-11 Alan Modra <amodra@gmail.com>
92 Peter Bergner <bergner@linux.ibm.com>
93
94 * config/tc-ppc.c (pre_defined_registers): Add accumulators.
95 (md_assemble): Check acc specified in correct operand.
96 * testsuite/gas/ppc/outerprod.d,
97 * testsuite/gas/ppc/outerprod.s,
98 * testsuite/gas/ppc/vsx4.d,
99 * testsuite/gas/ppc/vsx4.s: New tests.
100 * testsuite/gas/ppc/ppc.exp: Run them.
101
102 2020-05-11 Alan Modra <amodra@gmail.com>
103
104 * testsuite/gas/ppc/simd_perm.d,
105 * testsuite/gas/ppc/simd_perm.s: New test.
106 * testsuite/gas/ppc/ppc.exp: Run it.
107
108 2020-05-11 Alan Modra <amodra@gmail.com>
109
110 * testsuite/gas/ppc/int128.d,
111 * testsuite/gas/ppc/int128.s: New test.
112 * testsuite/gas/ppc/ppc.exp: Run it.
113
114 2020-05-11 Alan Modra <amodra@gmail.com>
115
116 * testsuite/gas/ppc/vsx_32byte.d,
117 * testsuite/gas/ppc/vsx_32byte.s: New test.
118 * testsuite/gas/ppc/ppc.exp: Run it.
119
120 2020-05-11 Alan Modra <amodra@gmail.com>
121
122 * testsuite/gas/ppc/vec_mul.s,
123 * testsuite/gas/ppc/vec_mul.d: New test.
124 * testsuite/gas/ppc/ppc.exp: Run it.
125
126 2020-05-11 Peter Bergner <bergner@linux.ibm.com>
127
128 * testsuite/gas/ppc/byte_rev.d,
129 * testsuite/gas/ppc/byte_rev.s: New test.
130 * testsuite/gas/ppc/ppc.exp: Run it.
131
132 2020-05-11 Peter Bergner <bergner@linux.ibm.com>
133
134 * testsuite/gas/ppc/power10.d: Add paste. tests.
135 * testsuite/gas/ppc/power10.s: Likewise.
136
137 2020-05-11 Peter Bergner <bergner@linux.ibm.com>
138
139 * testsuite/gas/ppc/power10.s: New test.
140 * testsuite/gas/ppc/power10.d: Likewise.
141 * testsuite/gas/ppc/ppc.exp: Run it.
142
143 2020-05-11 Alan Modra <amodra@gmail.com>
144
145 * config/tc-ppc.c (md_assemble): Update for PPC_OPCODE_POWER10
146 renaming.
147 * testsuite/gas/ppc/prefix-align.d: Use -mpower10/-Mpower10 in
148 place of -mfuture/-Mfuture.
149 * testsuite/gas/ppc/prefix-pcrel.d: Likewise.
150 * testsuite/gas/ppc/prefix-reloc.d: Likewise.
151
152 2020-05-06 Nick Clifton <nickc@redhat.com>
153
154 * po/sv.po: Updated Swedish translation.
155
156 2020-05-06 Nick Clifton <nickc@redhat.com>
157
158 PR 25927
159 * doc/as.texi (Preprocessing): Replace cross reference to not
160 existant document with a URL to the equivalent page in the GCC
161 manual.
162
163 2020-05-05 Nick Clifton <nickc@redhat.com>
164
165 * dwarf2dbg.c (out_dir_and_file_list): Add comments describing the
166 construction of a DWARF-5 directory name table.
167 * testsuite/gas/elf/pr25917.d: Update expected output.
168
169 2020-05-05 Gunther Nikl <gnikl@justmail.de>
170
171 * config/tc-rx.c (elf_flags): Initialize for non-linux targets.
172 (md_parse_option): Remove initialization of elf_flags.
173
174 2020-05-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
175
176 PR gas/25863
177 * config/tc-arm.c (do_mve_vmull): Fix scalar and NEON parsing of vmul.
178 * testsuite/gas/arm/mve-scalar-vmult-it.d: New test.
179 * testsuite/gas/arm/mve-scalar-vmult-it.s: New test.
180
181 2020-05-04 Nick Clifton <nickc@redhat.com>
182
183 PR 25917
184 * dwarf2dbg.c (out_dir_and_file_list): Check for the directory
185 table's existence before looking at its entries.
186 Also do not emit a default directory entry if there are no
187 directories in use.
188
189 * testsuite/gas/elf/pr25917.s: New test source file.
190 * testsuite/gas/elf/pr25917.d: New test driver.
191 * testsuite/gas/elf/elf.exp (run_elf_list_test): Run the new test.
192
193 2020-04-30 Alex Coplan <alex.coplan@arm.com>
194
195 * config/tc-aarch64.c (fix_insn): Implement for
196 AARCH64_OPND_UNDEFINED.
197 (parse_operands): Implement for AARCH64_OPND_UNDEFINED.
198 * testsuite/gas/aarch64/udf.s: New.
199 * testsuite/gas/aarch64/udf.d: New.
200 * testsuite/gas/aarch64/udf-invalid.s: New.
201 * testsuite/gas/aarch64/udf-invalid.l: New.
202 * testsuite/gas/aarch64/udf-invalid.d: New.
203
204 2020-04-30 Yoshinori Sato <ysato@users.sourceforge.jp>
205
206 * config/tc-rx.c (elf_flags): Reset default value.
207 (md_parse_option): For rx-elf Initialize elf_flags with RX_ABI.
208
209 2020-04-29 Max Filippov <jcmvbkbc@gmail.com>
210
211 * config/tc-xtensa.c (XTENSA_MARCH_EARLIEST): Define macro as 0
212 if it's not defined.
213 (microarch_earliest): New static variable.
214 (xg_translate_idioms): Translate "simcall" to "simcall 0" when
215 simcall opcode has mandatory parameter.
216 (xg_init_global_config): Initialize microarch_earliest.
217
218 2020-04-29 Nick Clifton <nickc@redhat.com>
219
220 PR 22699
221 * config/tc-sh.c (build_Mytes): Change operand type IMM0_8 to
222 IMM0_8S and add support for IMM0_8U.
223 * testsuite/gas/sh/sh4a.s: Add test of a logical insn using an
224 unsigned 8-bit immediate.
225 * testsuite/gas/sh/sh4a.d: Extended expected disassembly.
226 * testsuite/gas/sh/sh4al-dsp.d: Update expected disassembly.
227
228 2020-04-27 Tamar Christina <tamar.christina@arm.com>
229
230 * NEWS: Add news entry for big-obj.
231 * config/tc-i386.c (i386_target_format): Support new format.
232 * doc/c-i386.texi: Add i386 support.
233 * testsuite/gas/pe/big-obj.d: Rename test to not be x64 specific.
234 * testsuite/gas/pe/pe.exp (big-obj): Make test run on i386 as well.
235
236 2020-04-27 Nick Clifton <nickc@redhat.com>
237
238 PR 25878
239 * dwarf2dbg.c (struct file_entry): Add auto_assigned field.
240 (assign_file_to_slot): New function. Fills in an entry in the
241 files table.
242 (allocate_filenum): Use new function.
243 (allocate_filename_to_slot): Use new function. If the specified
244 slot entry is already in use, but was chosen automatically then
245 reassign the automatic entry.
246
247 2020-04-26 Hongtao Liu <hongtao.liu@intel.com
248
249 * config/tc-i386.c (lfence_before_ret_shl): New member.
250 (load_insn_p): implict load for POP/POPA/POPF/XLATB, no load
251 for Anysize insns.
252 (insert_after_load): Issue warning for REP CMPS/SCAS.
253 (insert_before_before): Handle iret, Handle
254 -mlfence-before-ret=shl, Adjust operand size of or/not/shl to ret's,
255 (md_parse_option): Change -mlfence-before-ret=[none|not|or] to
256 -mlfence-before-ret=[none/not/or/shl/yes].
257 Enable -mlfence-before-ret=shl when
258 -mlfence-beofre-indirect-branch=all and no explict -mlfence-before-ret option.
259 (md_show_usage): Ditto.
260 * doc/c-i386.texi: Ditto.
261 * testsuite/gas/i386/i386.exp: Add new testcases.
262 * testsuite/gas/i386/lfence-load-b.d: New.
263 * testsuite/gas/i386/lfence-load-b.e: New.
264 * testsuite/gas/i386/lfence-load.d: Modified.
265 * testsuite/gas/i386/lfence-load.e: New.
266 * testsuite/gas/i386/lfence-load.s: Modified.
267 * testsuite/gas/i386/lfence-ret-a.d: Modified.
268 * testsuite/gas/i386/lfence-ret-b.d: Modified.
269 * testsuite/gas/i386/lfence-ret-c.d: New.
270 * testsuite/gas/i386/lfence-ret-d.d: New.
271 * testsuite/gas/i386/lfence-ret.s: Modified.
272 * testsuite/gas/i386/x86-64-lfence-load-b.d: New.
273 * testsuite/gas/i386/x86-64-lfence-load.d: Modified.
274 * testsuite/gas/i386/x86-64-lfence-load.s: Modified.
275 * testsuite/gas/i386/x86-64-lfence-ret-a.d: Modified.
276 * testsuite/gas/i386/x86-64-lfence-ret-b.d: Modified.
277 * testsuite/gas/i386/x86-64-lfence-ret-c.d: New.
278 * testsuite/gas/i386/x86-64-lfence-ret-d.d: New
279 * testsuite/gas/i386/x86-64-lfence-ret-e.d: New.
280 * testsuite/gas/i386/x86-64-lfence-ret.e: New.
281 * testsuite/gas/i386/x86-64-lfence-ret.s: New.
282
283 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
284
285 PR ld/25861
286 * config/tc-xtensa.c (md_apply_fix): Replace
287 BFD_RELOC_XTENSA_DIFF{8,16,32} generation with
288 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
289 BFD_RELOC_XTENSA_NDIFF{8,16,32} generation.
290 * testsuite/gas/xtensa/loc.d: Replace BFD_RELOC_XTENSA_DIFF16
291 with BFD_RELOC_XTENSA_PDIFF16 in the expected output.
292
293 2020-04-22 Alan Modra <amodra@gmail.com>
294
295 * config/obj-elf.c (elf_frob_symbol): Unconditionally remove
296 symbol for ".symver .. remove".
297 * doc/as.texi (.symver): Update.
298 * testsuite/gas/symver/symver11.s: Make foo weak.
299 * testsuite/gas/symver/symver11.d: Expect an error.
300 * testsuite/gas/symver/symver7.d: Allow other random symbols.
301
302 2020-04-21 H.J. Lu <hongjiu.lu@intel.com>
303
304 * testsuite/gas/symver/symver11.s: Add ".balign 8".
305
306 2020-04-21 Andreas Schwab <schwab@linux-m68k.org>
307
308 PR 25848
309 * testsuite/gas/m68k/operands.s: Add tests for cmpi.
310 * testsuite/gas/m68k/operands.d: Update.
311 * testsuite/gas/m68k/op68000.d: Update for new error messages.
312
313 2020-04-21 Tamar Christina <tamar.christina@arm.com>
314
315 PR binutils/24753
316 * testsuite/gas/arm/pr24753.d: New test.
317 * testsuite/gas/arm/pr24753.s: New test.
318
319 2020-04-21 H.J. Lu <hongjiu.lu@intel.com>
320
321 PR gas/23840
322 PR gas/25295
323 * NEWS: Mention .symver extension.
324 * config/obj-elf.c (obj_elf_find_and_add_versioned_name): New
325 function.
326 (obj_elf_symver): Call obj_elf_find_and_add_versioned_name to
327 add a version name. Add local, hidden and remove visibility
328 support.
329 (elf_frob_symbol): Handle the list of version names. Update the
330 original symbol to local, hidden or remove it from the symbol
331 table.
332 (elf_frob_file_before_adjust): Handle the list of version names.
333 * config/obj-elf.h (elf_visibility): New.
334 (elf_versioned_name_list): Likewise.
335 (elf_obj_sy): Change local to bitfield. Add rename, bad_version
336 and visibility. Change versioned_name pointer to struct
337 elf_versioned_name_list.
338 * doc/as.texi: Update .symver directive.
339 * testsuite/gas/symver/symver.exp: Run all *.d tests. Add more
340 error checking tests.
341 * testsuite/gas/symver/symver6.d: New file.
342 * testsuite/gas/symver/symver7.d: Likewise.
343 * testsuite/gas/symver/symver7.s: Likewise.
344 * testsuite/gas/symver/symver8.d: Likewise.
345 * testsuite/gas/symver/symver8.s: Likewise.
346 * testsuite/gas/symver/symver9.s: Likewise.
347 * testsuite/gas/symver/symver9a.d: Likewise.
348 * testsuite/gas/symver/symver9b.d: Likewise.
349 * testsuite/gas/symver/symver10.s: Likewise.
350 * testsuite/gas/symver/symver10a.d: Likewise.
351 * testsuite/gas/symver/symver10b.d: Likewise.
352 * testsuite/gas/symver/symver11.d: Likewise.
353 * testsuite/gas/symver/symver11.s: Likewise.
354 * testsuite/gas/symver/symver12.d: Likewise.
355 * testsuite/gas/symver/symver12.s: Likewise.
356 * testsuite/gas/symver/symver13.d: Likewise.
357 * testsuite/gas/symver/symver13.s: Likewise.
358 * testsuite/gas/symver/symver14.d: Likewise.
359 * testsuite/gas/symver/symver14.l: Likewise.
360 * testsuite/gas/symver/symver15.d: Likewise.
361 * testsuite/gas/symver/symver15.l: Likewise.
362 * testsuite/gas/symver/symver6.l: Removed.
363 * testsuite/gas/symver/symver6.s: Updated.
364
365 2020-04-20 Sudakshina Das <sudi.das@arm.com>
366
367 * config/tc-aarch64.c (parse_barrier_psb): Update error messages
368 to include TSB.
369 * testsuite/gas/aarch64/system-2.d: Update -march and new tsb tests.
370 * testsuite/gas/aarch64/system-2.s: Add new tsb tests.
371 * testsuite/gas/aarch64/system.d: Update.
372
373 2020-04-20 Sudakshina Das <sudi.das@arm.com>
374
375 * testsuite/gas/aarch64/bti.d: Update -march option.
376 * testsuite/gas/aarch64/illegal-bti.d: Remove.
377 * testsuite/gas/aarch64/illegal-bti.l: Remove.
378 * testsuite/gas/aarch64/illegal-ras-1.l: Remove esb.
379 * testsuite/gas/aarch64/illegal-ras-1.s: Remove esb.
380
381 2020-04-17 Alan Modra <amodra@gmail.com>
382
383 * config/tc-bfin.h (TC_EQUAL_IN_INSN): Allow assignment to dot.
384
385 2020-04-16 Gagan Singh Sidhu <broly@mac.com>
386 Nick Clifton <nickc@redhat.com>
387
388 PR 25803
389 * config/obj-elf.c (obj_elf_type): Reject ifunc symbols on MIPS
390 targets.
391 * testsuite/gas/elf/elf.exp: Add MIPS targets to the list to skip
392 for the type-2 test.
393 * testsuite/gas/elf/type-noifunc.e: Update to allow for MIPS
394 targets running this test.
395
396 2020-02-16 David Faust <david.faust@oracle.com>
397
398 * testsuite/gas/bpf/bpf.exp: Run jump32 tests.
399 * testsuite/gas/bpf/jump32.s: New file.
400 * testsuite/gas/bpf/jump32.d: Likewise.
401
402 2020-04-08 H.J. Lu <hongjiu.lu@intel.com>
403
404 * doc/c-i386.texi: Correct -mlfence-before-indirect-branch=
405 documentation.
406
407 2020-04-08 Gunther Nikl <gnikl@justmail.de>
408
409 * config/tc-moxie.h (MD_PCREL_FROM_SECTION): Delete define.
410 (md_pcrel_from): Remove prototytpe.
411 * config/tc-m32c.h (MD_PCREL_FROM_SECTION): Delete duplicate
412 define.
413 (md_pcrel_from_section): Remove duplicate prototype.
414 * tc.h (md_pcrel_from_section): Add prototype.
415 * config/tc-aarch64.h (md_pcrel_from_section): Remove prototype.
416 * config/tc-arc.h (md_pcrel_from_section): Likewise.
417 * config/tc-arm.h (md_pcrel_from_section): Likewise.
418 * config/tc-avr.h (md_pcrel_from_section): Likewise.
419 * config/tc-bfin.h (md_pcrel_from_section): Likewise.
420 * config/tc-bpf.h (md_pcrel_from_section): Likewise.
421 * config/tc-csky.h (md_pcrel_from_section): Likewise.
422 * config/tc-d10v.h (md_pcrel_from_section): Likewise.
423 * config/tc-d30v.h (md_pcrel_from_section): Likewise.
424 * config/tc-epiphany.h (md_pcrel_from_section): Likewise.
425 * config/tc-fr30.h (md_pcrel_from_section): Likewise.
426 * config/tc-frv.h (md_pcrel_from_section): Likewise.
427 * config/tc-iq2000.h (md_pcrel_from_section): Likewise.
428 * config/tc-lm32.h (md_pcrel_from_section): Likewise.
429 * config/tc-m32c.h (md_pcrel_from_section): Likewise.
430 * config/tc-m32r.h (md_pcrel_from_section): Likewise.
431 * config/tc-mcore.h (md_pcrel_from_section): Likewise.
432 * config/tc-mep.h (md_pcrel_from_section): Likewise.
433 * config/tc-metag.h (md_pcrel_from_section): Likewise.
434 * config/tc-microblaze.h (md_pcrel_from_section): Likewise.
435 * config/tc-mmix.h (md_pcrel_from_section): Likewise.
436 * config/tc-moxie.h (md_pcrel_from_section): Likewise.
437 * config/tc-msp430.h (md_pcrel_from_section): Likewise.
438 * config/tc-mt.h (md_pcrel_from_section): Likewise.
439 * config/tc-or1k.h (md_pcrel_from_section): Likewise.
440 * config/tc-ppc.h (md_pcrel_from_section): Likewise.
441 * config/tc-rl78.h (md_pcrel_from_section): Likewise.
442 * config/tc-rx.h (md_pcrel_from_section): Likewise.
443 * config/tc-s390.h (md_pcrel_from_section): Likewise.
444 * config/tc-sh.h (md_pcrel_from_section): Likewise.
445 * config/tc-xc16x.h (md_pcrel_from_section): Likewise.
446 * config/tc-xstormy16.h (md_pcrel_from_section): Likewise.
447 * config/tc-microblaze.h (md_begin, md_assemble, md_undefined_symbol,
448 md_show_usage, md_convert_frag, md_operand, md_number_to_chars,
449 md_estimate_size_before_relax, md_section_align, tc_gen_reloc,
450 md_apply_fix3): Delete prototypes.
451
452 2020-04-07 H.J. Lu <hongjiu.lu@intel.com>
453
454 * NEWS: Mention support for Intel SERIALIZE and TSXLDTRK
455 instructions.
456
457 2020-04-07 H.J. Lu <hongjiu.lu@intel.com>
458
459 * doc/c-z80.texi: Fix @xref warnings.
460
461 2020-04-07 Lili Cui <lili.cui@intel.com>
462
463 * config/tc-i386.c (cpu_arch): Add .TSXLDTRK.
464 (cpu_noarch): Likewise.
465 * doc/c-i386.texi: Document TSXLDTRK.
466 * testsuite/gas/i386/i386.exp: Run TSXLDTRK tests.
467 * testsuite/gas/i386/tsxldtrk.d: Likewise.
468 * testsuite/gas/i386/tsxldtrk.s: Likewise.
469 * testsuite/gas/i386/x86-64-tsxldtrk.d: Likewise.
470
471 2020-04-02 Lili Cui <lili.cui@intel.com>
472
473 * config/tc-i386.c (cpu_arch): Add .serialize.
474 (cpu_noarch): Likewise.
475 * doc/c-i386.texi: Document serialize.
476 * testsuite/gas/i386/i386.exp: Run serialize tests
477 * testsuite/gas/i386/serialize.d: Likewise.
478 * testsuite/gas/i386/x86-64-serialize.d: Likewise.
479 * testsuite/gas/i386/serialize.s: Likewise.
480
481 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
482
483 * testsuite/gas/elf/section12a.d: Use notarget instead of xfail.
484 * testsuite/gas/elf/section12b.d: Likewise.
485 * testsuite/gas/elf/section16a.d: Likewise.
486 * testsuite/gas/elf/section16b.d: Likewise.
487
488 2020-04-02 Gunther Nikl <gnikl@justmail.de>
489
490 * config/tc-m68k.c (m68k_ip): Fix range check for index register
491 with a suppressed address register.
492
493 2020-04-01 H.J. Lu <hongjiu.lu@intel.com>
494
495 PR gas/25756
496 * config/tc-i386.h (TC_FORCE_RELOCATION_ABS): New.
497 * testsuite/gas/i386/localpic.s: Add a test for relocation
498 against local absolute symbol.
499 * testsuite/gas/i386/x86-64-localpic.s: Likewise.
500 * testsuite/gas/i386/localpic.d: Updated.
501 * testsuite/gas/i386/x86-64-localpic.d: Likewise.
502 * testsuite/gas/i386/ilp32/x86-64-localpic.d: Likewise.
503
504 2020-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
505
506 PR gas/25732
507 * testsuite/gas/i386/solaris/x86-64-branch-2.d: New file.
508 * testsuite/gas/i386/solaris/x86-64-branch-3.d: New file.
509 * testsuite/gas/i386/solaris/x86-64-jump.d: Incorporate changes to
510 testsuite/gas/i386/x86-64-jump.d.
511 * gas/testsuite/gas/i386/solaris/x86-64-mpx-branch-1.d:
512 Incorporate changes to
513 gas/testsuite/gas/i386/x86-64-mpx-branch-1.d.
514 * testsuite/gas/i386/solaris/x86-64-mpx-branch-2.d : Incorporate
515 changes to testsuite/gas/i386/x86-64-mpx-branch-2.d.
516 * testsuite/gas/i386/x86-64-branch-2.d: Skip on *-*-solaris*.
517 * testsuite/gas/i386/x86-64-branch-3.d: Likewise.
518
519 2020-03-31 Maciej W. Rozycki <macro@linux-mips.org>
520
521 PR 25611
522 PR 25614
523 * dwarf2dbg.c: Do not include "bignum.h".
524
525 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
526
527 * testsuite/gas/riscv/alias-csr.d: Move this to priv-reg-pseudo.
528 * testsuite/gas/riscv/alias-csr.s: Likewise.
529 * testsuite/gas/riscv/no-aliases-csr.d: Move this
530 to priv-reg-pseudo-noalias.
531 * testsuite/gas/riscv/bad-csr.d: Rename to priv-reg-fail-nonexistent.
532 * testsuite/gas/riscv/bad-csr.l: Likewise.
533 * testsuite/gas/riscv/bad-csr.s: Likewise.
534 * testsuite/gas/riscv/satp.d: Removed. Already included in priv-reg.
535 * testsuite/gas/riscv/satp.s: Likewise.
536 * testsuite/gas/riscv/priv-reg-pseudo.d: New testcase for all pseudo
537 csr instruction, including alias-csr testcase.
538 * testsuite/gas/riscv/priv-reg-pseudo.s: Likewise.
539 * testsuite/gas/riscv/priv-reg-pseudo-noalias.d: New testcase for all
540 pseudo instruction with objdump -Mno-aliases.
541 * testsuite/gas/riscv/priv-reg-fail-nonexistent.d: New testcase.
542 * testsuite/gas/riscv/priv-reg-fail-nonexistent.l: Likewise.
543 * testsuite/gas/riscv/priv-reg-fail-nonexistent.s: Likewise.
544 * testsuite/gas/riscv/priv-reg.d: Update CSR to 1.11.
545 * testsuite/gas/riscv/priv-reg.s: Likewise.
546 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
547 * testsuite/gas/riscv/csr-dw-regnums.d: Likewise.
548 * testsuite/gas/riscv/csr-dw-regnums.s: Likewise.
549
550 2020-03-25 J.W. Jagersma <jwjagersma@gmail.com>
551
552 * config/obj-coff.c (obj_coff_section): Set the bss flag on
553 sections with the "b" attribute.
554
555 2020-03-22 Alan Modra <amodra@gmail.com>
556
557 * testsuite/gas/s12z/truncated.d: Update expected output.
558
559 2020-03-17 Sergey Belyashov <sergey.belyashov@gmail.com>
560
561 PR 25690
562 * config/tc-z80.c (md_pseudo_table): Add xdef anf xref pseudo ops.
563 * doc/c-z80.texi: Update documentation.
564
565 2020-03-17 Sergey Belyashov <sergey.belyashov@gmail.com>
566
567 PR 25641
568 PR 25668
569 PR 25633
570 Fix disassembling ED+A4/AC/B4/BC opcodes.
571 Fix assembling lines containing colonless label and instruction
572 with first operand inside parentheses.
573 Fix registration of unsupported by target CPU registers.
574 * config/tc-z80.c: See above.
575 * config/tc-z80.h: See above.
576 * testsuite/gas/z80/colonless.d: Update test.
577 * testsuite/gas/z80/colonless.s: Likewise.
578 * testsuite/gas/z80/ez80_adl_all.d: Likewise.
579 * testsuite/gas/z80/ez80_unsup_regs.d: Likewise.
580 * testsuite/gas/z80/ez80_z80_all.d: Likewise.
581 * testsuite/gas/z80/gbz80_unsup_regs.d: Likewise.
582 * testsuite/gas/z80/r800_unsup_regs.d: Likewise.
583 * testsuite/gas/z80/unsup_regs.s: Likewise.
584 * testsuite/gas/z80/z180_unsup_regs.d: Likewise.
585 * testsuite/gas/z80/z80.exp: Likewise.
586 * testsuite/gas/z80/z80_strict_unsup_regs.d: Likewise.
587 * testsuite/gas/z80/z80_unsup_regs.d: Likewise.
588 * testsuite/gas/z80/z80n_unsup_regs.d: Likewise.
589
590 2020-03-13 Andre Vieira <andre.simoesdiasvieira@arm.com>
591
592 PR 25660
593 * config/tc-arm.c (operand_parse_code): Add OP_RNSDMQR and OP_oRNSDMQ.
594 (parse_operands): Handle new operand codes.
595 (do_neon_dyadic_long): Make shape check accept the scalar variants.
596 (asm_opcode_insns): Fix operand codes for vaddl and vsubl.
597 * testsuite/gas/arm/mve-vaddsub-it.s: New test.
598 * testsuite/gas/arm/mve-vaddsub-it.d: New test.
599 * testsuite/gas/arm/mve-vaddsub-it-bad.s: New test.
600 * testsuite/gas/arm/mve-vaddsub-it-bad.l: New test.
601 * testsuite/gas/arm/mve-vaddsub-it-bad.d: New test.
602 * testsuite/gas/arm/nomve-vaddsub-it.d: New test.
603
604 2020-03-11 H.J. Lu <hongjiu.lu@intel.com>
605
606 * NEWS: Mention x86 assembler options for CVE-2020-0551.
607
608 2020-03-11 H.J. Lu <hongjiu.lu@intel.com>
609
610 * testsuite/gas/i386/i386.exp: Run new tests.
611 * testsuite/gas/i386/lfence-byte.d: New file.
612 * testsuite/gas/i386/lfence-byte.e: Likewise.
613 * testsuite/gas/i386/lfence-byte.s: Likewise.
614 * testsuite/gas/i386/lfence-indbr-a.d: Likewise.
615 * testsuite/gas/i386/lfence-indbr-b.d: Likewise.
616 * testsuite/gas/i386/lfence-indbr-c.d: Likewise.
617 * testsuite/gas/i386/lfence-indbr.e: Likewise.
618 * testsuite/gas/i386/lfence-indbr.s: Likewise.
619 * testsuite/gas/i386/lfence-load.d: Likewise.
620 * testsuite/gas/i386/lfence-load.s: Likewise.
621 * testsuite/gas/i386/lfence-ret-a.d: Likewise.
622 * testsuite/gas/i386/lfence-ret-b.d: Likewise.
623 * testsuite/gas/i386/lfence-ret.s: Likewise.
624 * testsuite/gas/i386/x86-64-lfence-byte.d: Likewise.
625 * testsuite/gas/i386/x86-64-lfence-byte.e: Likewise.
626 * testsuite/gas/i386/x86-64-lfence-byte.s: Likewise.
627 * testsuite/gas/i386/x86-64-lfence-indbr-a.d: Likewise.
628 * testsuite/gas/i386/x86-64-lfence-indbr-b.d: Likewise.
629 * testsuite/gas/i386/x86-64-lfence-indbr-c.d: Likewise.
630 * testsuite/gas/i386/x86-64-lfence-indbr.e: Likewise.
631 * testsuite/gas/i386/x86-64-lfence-indbr.s: Likewise.
632 * testsuite/gas/i386/x86-64-lfence-load.d: Likewise.
633 * testsuite/gas/i386/x86-64-lfence-load.s: Likewise.
634 * testsuite/gas/i386/x86-64-lfence-ret-a.d: Likewise.
635 * testsuite/gas/i386/x86-64-lfence-ret-b.d: Likewise.
636
637 2020-03-11 H.J. Lu <hongjiu.lu@intel.com>
638
639 * config/tc-i386.c (lfence_after_load): New.
640 (lfence_before_indirect_branch_kind): New.
641 (lfence_before_indirect_branch): New.
642 (lfence_before_ret_kind): New.
643 (lfence_before_ret): New.
644 (last_insn): New.
645 (load_insn_p): New.
646 (insert_lfence_after): New.
647 (insert_lfence_before): New.
648 (md_assemble): Call insert_lfence_before and insert_lfence_after.
649 Set last_insn.
650 (OPTION_MLFENCE_AFTER_LOAD): New.
651 (OPTION_MLFENCE_BEFORE_INDIRECT_BRANCH): New.
652 (OPTION_MLFENCE_BEFORE_RET): New.
653 (md_longopts): Add -mlfence-after-load=,
654 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
655 (md_parse_option): Handle -mlfence-after-load=,
656 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
657 (md_show_usage): Display -mlfence-after-load=,
658 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
659 (i386_cons_align): New.
660 * config/tc-i386.h (i386_cons_align): New.
661 (md_cons_align): New.
662 * doc/c-i386.texi: Document -mlfence-after-load=,
663 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
664
665 2020-03-11 Nick Clifton <nickc@redhat.com>
666
667 PR 25611
668 PR 25614
669 * dwarf2dbg.c (DWARF2_FILE_TIME_NAME): Default to -1.
670 (DWARF2_FILE_SIZE_NAME): Default to -1.
671 (DWARF2_LINE_VERSION): Default to the current dwarf level or 3,
672 whichever is higher.
673 (DWARF2_LINE_MAX_OPS_PER_INSN): Provide a default value of 1.
674 (NUM_MD5_BYTES): Define.
675 (struct file entry): Add md5 field.
676 (get_filenum): Delete and replace with...
677 (get_basename): New function.
678 (get_directory_table_entry): New function.
679 (allocate_filenum): New function.
680 (allocate_filename_to_slot): New function.
681 (dwarf2_where): Use new functions.
682 (dwarf2_directive_filename): Add support for extended .file
683 pseudo-op.
684 (dwarf2_directive_loc): Allow the use of file number zero with
685 DWARF 5 or higher.
686 (out_file_list): Rename to...
687 (out_dir_and_file_list): Add DWARF 5 support.
688 (out_debug_line): Emit extra values into the section header for
689 DWARF 5.
690 (out_debug_str): Allow for file 0 to be used with DWARF 5.
691 * doc/as.texi (.file): Update the description of this pseudo-op.
692 * testsuite/gas/elf-dwarf-5-file0.s: Add more lines.
693 * testsuite/gas/elf-dwarf-5-file0.d: Update expected dump output.
694 * testsuite/gas/lns/lns-diag-1.l: Update expected error message.
695 * NEWS: Mention the new feature.
696
697 2020-03-10 Alan Modra <amodra@gmail.com>
698
699 * config/tc-csky.c (get_operand_value): Rewrite 1 << 31 expressions
700 to avoid signed overflow.
701 * config/tc-mcore.c (md_assemble): Likewise.
702 * config/tc-mips.c (gpr_read_mask, gpr_write_mask): Likewise.
703 * config/tc-nds32.c (SET_ADDEND): Likewise.
704 * config/tc-nios2.c (nios2_assemble_arg_R): Likewise.
705
706 2020-03-09 Jan Beulich <jbeulich@suse.com>
707
708 * testsuite/gas/i386/avx.s: Add long-form VCMP[PS][SD] pseudos.
709 * testsuite/gas/i386/avx.d, testsuite/gas/i386/avx-16bit.d,
710 testsuite/gas/i386/avx-intel.d: Adjust expectations.
711
712 2020-03-07 Alan Modra <amodra@gmail.com>
713
714 * testsuite/gas/elf/dwarf-5-file0.s: Don't start directives in
715 first column.
716
717 2020-03-06 Nick Clifton <nickc@redhat.com>
718
719 PR 25614
720 * dwarf2dbg.c (dwarf2_directive_filename): Allow a file number of
721 0 if the dwarf_level is 5 or more. Complain if a filename follows
722 a file 0.
723 * testsuite/gas/elf/dwarf-5-file0.s: New test.
724 * testsuite/gas/elf/dwarf-5-file0.d: New test driver.
725 * testsuite/gas/elf/elf.exp: Run the new test.
726
727 PR 25612
728 * config/tc-ia64.h (DWARF2_VERISION): Fix typo.
729 * doc/as.texi: Fix another typo.
730
731 2020-03-06 Nick Clifton <nickc@redhat.com>
732
733 PR 25612
734 * as.c (dwarf_level): Define.
735 (show_usage): Add --gdwarf-3, --gdwarf-4 and --gdwarf-5.
736 (parse_args): Add support for the new options.
737 as.h (dwarf_level): Prototype.
738 * dwarf2dbg.c (DWARF2_VERSION): Use dwarf_level as default version
739 value.
740 * config/tc-ia64.h (DWARF2_VERISION): Update definition.
741 (DWARF2_LINE_VERSION): Remove definition.
742 * doc/as.texi: Document the new options.
743
744 2020-03-06 Nick Clifton <nickc@redhat.com>
745
746 PR 25572
747 * as.c (main): Allow matching input and outputs when they are
748 not regular files.
749
750 2020-03-06 Jan Beulich <jbeulich@suse.com>
751
752 * config/tc-i386.c (match_mem_size): Generalize broadcast special
753 casing.
754 (check_VecOperands): Zap xmmword/ymmword/zmmword when more than
755 one of byte/word/dword/qword is set alongside a SIMD register in
756 a template's operand.
757
758 2020-03-06 Jan Beulich <jbeulich@suse.com>
759
760 * config/tc-i386.c (match_template): Extend code in logic
761 rejecting certain suffixes in certain modes to also cover mask
762 register use and VecSIB. Drop special casing of broadcast. Skip
763 immediates in the check.
764
765 2020-03-06 Jan Beulich <jbeulich@suse.com>
766
767 * config/tc-i386.c (match_template): Fold duplicate code in
768 logic rejecting certain suffixes in certain modes. Drop
769 pointless "else".
770
771 2020-03-06 Jan Beulich <jbeulich@suse.com>
772
773 * config/tc-i386.c (process_suffix): Exlucde !vexw insns
774 alongside !norex64 ones.
775 * testsuite/gas/i386/x86-64-avx512bw.s: Test VPEXTR* and VPINSR*
776 with both 32- and 64-bit GPR operands.
777 * testsuite/gas/i386/x86-64-avx512f.s: Test VEXTRACTPS with both
778 32- and 64-bit GPR operands.
779 * testsuite/gas/i386/x86-64-avx512bw-intel.d,
780 testsuite/gas/i386/x86-64-avx512bw.d,
781 testsuite/gas/i386/x86-64-avx512f-intel.d,
782 testsuite/gas/i386/x86-64-avx512f.d: Adjust expectations.
783
784 2020-03-06 Jan Beulich <jbeulich@suse.com>
785
786 * config/tc-i386.c (md_assemble): Drop use of rex64.
787 (process_suffix): For REX.W for 64-bit CRC32.
788
789 2020-03-06 Jan Beulich <jbeulich@suse.com>
790
791 * config/tc-i386.c (i386_addressing_mode): For 32-bit
792 addressing for MPX insns without base/index.
793 * testsuite/gas/i386/mpx-16bit.s,
794 * testsuite/gas/i386/mpx-16bit.d: New.
795 * testsuite/gas/i386/i386.exp: Run new test.
796
797 2020-03-06 Jan Beulich <jbeulich@suse.com>
798
799 * testsuite/gas/i386/adx.s, testsuite/gas/i386/cet.s,
800 testsuite/gas/i386/ept.s, testsuite/gas/i386/fsgs.s,
801 testsuite/gas/i386/invpcid.s, testsuite/gas/i386/movdir.s,
802 testsuite/gas/i386/ptwrite.s, testsuite/gas/i386/vmx.s,
803 * testsuite/gas/i386/code16.s: Add CR, DR, and TR access cases
804 as well as a BSWAP one.
805 * testsuite/gas/i386/rdpid.s: Add 16-bit case.
806 * testsuite/gas/i386/sse2-16bit.s: Cover more insns.
807 * testsuite/gas/i386/adx-intel.d, testsuite/gas/i386/adx.d,
808 testsuite/gas/i386/cet-intel.d, testsuite/gas/i386/cet.d,
809 testsuite/gas/i386/code16.d, testsuite/gas/i386/ept-intel.d,
810 testsuite/gas/i386/ept.d, testsuite/gas/i386/fsgs-intel.d,
811 testsuite/gas/i386/fsgs.d, testsuite/gas/i386/invpcid-intel.d,
812 testsuite/gas/i386/invpcid.d, testsuite/gas/i386/movdir-intel.d,
813 testsuite/gas/i386/movdir.d, testsuite/gas/i386/ptwrite-intel.d,
814 testsuite/gas/i386/ptwrite.d, testsuite/gas/i386/rdpid-intel.d,
815 testsuite/gas/i386/rdpid.d, testsuite/gas/i386/sse2-16bit.d,
816 testsuite/gas/i386/vmx.d: Adjust expectations.
817
818 2020-03-06 Jan Beulich <jbeulich@suse.com>
819
820 * config/tc-i386.c (md_assemble): Also exclude tpause and umwait
821 from having their operands swapped.
822 * testsuite/gas/i386/waitpkg.s,
823 testsuite/gas/i386/x86-64-waitpkg.s: Add tpause and umwait
824 3-operand cases as well as testing of 16-bit code generation.
825 * testsuite/gas/i386/waitpkg.d,
826 testsuite/gas/i386/waitpkg-intel.d,
827 testsuite/gas/i386/x86-64-waitpkg.d,
828 testsuite/gas/i386/x86-64-waitpkg-intel.d: Adjust expectations.
829
830 2020-03-04 Nelson Chu <nelson.chu@sifive.com>
831
832 * config/tc-riscv.c (percent_op_utype): Support the modifier
833 %got_pcrel_hi.
834 * doc/c-riscv.texi: Add documentation.
835 * testsuite/gas/riscv/no-relax-reloc.d: Add test case for the new
836 modifier %got_pcrel_hi.
837 * testsuite/gas/riscv/no-relax-reloc.s: Likewise.
838 * testsuite/gas/riscv/relax-reloc.d: Likewise.
839 * testsuite/gas/riscv/relax-reloc.s: Likewise.
840
841 * doc/c-riscv.texi (relocation modifiers): Add documentation.
842 (RISC-V-Formats): Update the section name from "Instruction Formats"
843 to "RISC-V Instruction Formats".
844
845 2020-03-04 Alexandre Oliva <oliva@adacore.com>
846
847 * config/tc-arm.c (md_apply_fix): Warn if a PC-relative load is
848 detected in a section which does not have at least 4 byte
849 alignment.
850 * testsuite/gas/arm/armv8-ar-it-bad.s: Add alignment directive.
851 * testsuite/gas/arm/ldr-t.s: Likewise.
852 * testsuite/gas/arm/sp-pc-usage-t.s: Likewise.
853 * testsuite/gas/arm/sp-pc-usage-t.d: Finish test at end of
854 disassembly, ignoring any NOPs that may have been inserted because
855 of section alignment.
856 * testsuite/gas/arm/ldr-t.d: Likewise.
857
858 2020-03-04 Jan Beulich <jbeulich@suse.com>
859
860 * config/tc-i386.c (cpu_arch): Add .sev_es entry.
861 * doc/c-i386.texi: Mention sev_es.
862 * testsuite/gas/i386/arch-13.s: Add SEV-ES case.
863 * testsuite/gas/i386/arch-13.d: Extend -march=. Adjust
864 expectations.
865 * testsuite/gas/i386/arch-13-znver1.d,
866 testsuite/gas/i386/arch-13-znver2.d: Extend -march=.
867
868 2020-03-03 H.J. Lu <hongjiu.lu@intel.com>
869
870 * config/tc-i386.c (match_template): Replace ignoresize and
871 defaultsize with mnemonicsize.
872 (process_suffix): Likewise.
873
874 2020-03-03 Sergey Belyashov <sergey.belyashov@gmail.com>
875
876 PR 25627
877 * config/tc-z80.c (emit_ld_rr_m): Fix invalid compilation of
878 instruction LD IY,(HL).
879 * testsuite/gas/z80/ez80_adl_all.d: Update expected disassembly.
880 * testsuite/gas/z80/ez80_adl_all.s: Add tests of the instruction.
881 * testsuite/gas/z80/ez80_z80_all.d: Update expected disassembly.
882 * testsuite/gas/z80/ez80_z80_all.s: Add tests of the instruction.
883
884 2020-03-03 H.J. Lu <hongjiu.lu@intel.com>
885
886 PR gas/25622
887 * testsuite/gas/i386/i386.exp: Run x86-64-default-suffix and
888 x86-64-default-suffix-avx.
889 * testsuite/gas/i386/noreg64.s: Remove cvtsi2sd, cvtsi2ss,
890 vcvtsi2sd, vcvtsi2ss, vcvtusi2sd and vcvtusi2ss entries.
891 * testsuite/gas/i386/noreg64.d: Updated.
892 * testsuite/gas/i386/noreg64.l: Likewise.
893 * testsuite/gas/i386/x86-64-default-suffix-avx.d: New file.
894 * testsuite/gas/i386/x86-64-default-suffix.d: Likewise.
895 * testsuite/gas/i386/x86-64-default-suffix.s: Likewise.
896
897 2020-03-03 Sergey Belyashov <sergey.belyashov@gmail.com>
898
899 PR 25604
900 * config/tc-z80.c (contains_register): Prevent an illegal memory
901 access when checking an expression for a register name.
902
903 2020-03-03 Alan Modra <amodra@gmail.com>
904
905 * config/obj-coff.h: Remove vestiges of coff-m68k and pe-mips
906 support.
907
908 2020-03-02 Alan Modra <amodra@gmail.com>
909
910 * config/tc-m32r.c (md_begin): Set SEC_SMALL_DATA on .scommon section.
911 * config/tc-mips.c (s_change_sec): Set SEC_SMALL_DATA for .sdata
912 and .sbss sections.
913 * config/tc-score.c: Delete !BFD_ASSEMBLER code throughout.
914 (s3_s_change_sec): Set SEC_SMALL_DATA for .sbss section.
915 (s3_s_score_lcomm): Likewise.
916 * config/tc-score7.c: Similarly.
917 * read.c (bss_alloc): Set SEC_SMALL_DATA for .sbss section.
918
919 2020-02-28 YunQiang Su <syq@debian.org>
920
921 PR gas/25539
922 * config/tc-mips.c (fix_loongson3_llsc): Compare label value
923 to handle multi-labels.
924 (has_label_name): New.
925
926 2020-02-26 Matthew Malcomson <matthew.malcomson@arm.com>
927
928 * config/tc-arm.c (enum pred_instruction_type): Remove
929 NEUTRAL_IT_NO_VPT_INSN predication type.
930 (cxn_handle_predication): Modify to require condition suffixes.
931 (handle_pred_state): Remove NEUTRAL_IT_NO_VPT_INSN cases.
932 * testsuite/gas/arm/cde-scalar.s: Update test.
933 * testsuite/gas/arm/cde-warnings.l: Update test.
934 * testsuite/gas/arm/cde-warnings.s: Update test.
935
936 2020-02-26 Alan Modra <amodra@gmail.com>
937
938 * config/tc-arm.c (reg_expected_msgs[REG_TYPE_RNB]): Don't use
939 N_() on empty string.
940
941 2020-02-26 Alan Modra <amodra@gmail.com>
942
943 * read.c (read_a_source_file): Call strncpy with length one
944 less than size of original_case_string.
945
946 2020-02-26 Alan Modra <amodra@gmail.com>
947
948 * config/obj-elf.c: Indent labels correctly.
949 * config/obj-macho.c: Likewise.
950 * config/tc-aarch64.c: Likewise.
951 * config/tc-alpha.c: Likewise.
952 * config/tc-arm.c: Likewise.
953 * config/tc-cr16.c: Likewise.
954 * config/tc-crx.c: Likewise.
955 * config/tc-frv.c: Likewise.
956 * config/tc-i386-intel.c: Likewise.
957 * config/tc-i386.c: Likewise.
958 * config/tc-ia64.c: Likewise.
959 * config/tc-mn10200.c: Likewise.
960 * config/tc-mn10300.c: Likewise.
961 * config/tc-nds32.c: Likewise.
962 * config/tc-riscv.c: Likewise.
963 * config/tc-s12z.c: Likewise.
964 * config/tc-xtensa.c: Likewise.
965 * config/tc-z80.c: Likewise.
966 * read.c: Likewise.
967 * symbols.c: Likewise.
968 * write.c: Likewise.
969
970 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
971
972 * config/tc-riscv.c (riscv_ip): New boolean insn_with_csr to indicate
973 we are assembling instruction with CSR. Call riscv_csr_read_only_check
974 after parsing all arguments.
975 (enum csr_insn_type): New enum is used to classify the CSR instruction.
976 (riscv_csr_insn_type, riscv_csr_read_only_check): New functions. These
977 are used to check if we write a read-only CSR by the CSR instruction.
978 * testsuite/gas/riscv/priv-reg-fail-read-only-01.s: New testcase. Test
979 all CSR for the read-only CSR checking.
980 * testsuite/gas/riscv/priv-reg-fail-read-only-01.d: Likewise.
981 * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
982 * testsuite/gas/riscv/priv-reg-fail-read-only-02.s: New testcase. Test
983 all CSR instructions for the read-only CSR checking.
984 * testsuite/gas/riscv/priv-reg-fail-read-only-02.d: Likewise.
985 * testsuite/gas/riscv/priv-reg-fail-read-only-02.l: Likewise.
986
987 * config/tc-riscv.c (struct riscv_set_options): New field csr_check.
988 (riscv_opts): Initialize it.
989 (reg_lookup_internal): Check the `riscv_opts.csr_check`
990 before doing the CSR checking.
991 (enum options): Add OPTION_CSR_CHECK and OPTION_NO_CSR_CHECK.
992 (md_longopts): Add mcsr-check and mno-csr-check.
993 (md_parse_option): Handle new enum option values.
994 (s_riscv_option): Handle new long options.
995 * doc/c-riscv.texi: Add description for the new .option and assembler
996 options.
997 * testsuite/gas/riscv/priv-reg-fail-fext.d: Add `-mcsr-check` to enable
998 the CSR checking.
999 * testsuite/gas/riscv/priv-reg-fail-rv32-only.d: Likewise.
1000
1001 * config/tc-riscv.c (csr_extra_hash): New.
1002 (enum riscv_csr_class): New enum. Used to decide
1003 whether or not this CSR is legal in the current ISA string.
1004 (struct riscv_csr_extra): New structure to hold all extra information
1005 of CSR.
1006 (riscv_init_csr_hashes): New. According to the DECLARE_CSR and
1007 DECLARE_CSR_ALIAS, insert CSR extra information into csr_extra_hash.
1008 Call hash_reg_name to insert CSR address into reg_names_hash.
1009 (reg_csr_lookup_internal, riscv_csr_class_check): New functions.
1010 Decide whether the CSR is valid according to the csr_extra_hash.
1011 (reg_lookup_internal): Call reg_csr_lookup_internal for CSRs.
1012 (init_opcode_hash): Update 'if (hash_error != NULL)' as hash_error is
1013 not a boolean. This is same as riscv_init_csr_hash, so keep the
1014 consistent usage.
1015 (md_begin): Call riscv_init_csr_hashes for each DECLARE_CSR.
1016 * testsuite/gas/riscv/csr-dw-regnums.d: Add -march=rv32if option.
1017 * testsuite/gas/riscv/priv-reg.d: Add f-ext by -march option.
1018 * testsuite/gas/riscv/priv-reg-fail-fext.d: New testcase. The source
1019 file is `priv-reg.s`, and the ISA is rv32i without f-ext, so the
1020 f-ext CSR are not allowed.
1021 * testsuite/gas/riscv/priv-reg-fail-fext.l: Likewise.
1022 * testsuite/gas/riscv/priv-reg-fail-rv32-only.d: New testcase. The
1023 source file is `priv-reg.s`, and the ISA is rv64if, so the
1024 rv32-only CSR are not allowed.
1025 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
1026
1027 2020-02-21 Alan Modra <amodra@gmail.com>
1028
1029 * config/tc-pdp11.c (md_apply_fix): Handle BFD_RELOC_32.
1030 (tc_gen_reloc): Only give a BAD_CASE assertion on pcrel relocs.
1031
1032 2020-02-21 Alan Modra <amodra@gmail.com>
1033
1034 PR 25569
1035 * config/obj-aout.c (obj_aout_frob_file_before_fix): Don't loop
1036 on section size adjustment, instead perform another write if
1037 exec header size is larger than section size.
1038
1039 2020-02-19 Nelson Chu <nelson.chu@sifive.com>
1040
1041 * doc/c-riscv.texi: Add the doc entries for -march-attr/
1042 -mno-arch-attr command line options.
1043
1044 2020-02-19 Nelson Chu <nelson.chu@sifive.com>
1045
1046 * testsuite/gas/riscv/c-add-addi.d: New testcase.
1047 * testsuite/gas/riscv/c-add-addi.s: Likewise.
1048
1049 2020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
1050
1051 PR 25576
1052 * config/tc-z80.c (md_parse_option): Do not use an underscore
1053 prefix for local labels in SDCC compatability mode.
1054 (z80_start_line_hook): Remove SDCC dollar label support.
1055 * testsuite/gas/z80/sdcc.d: Update expected disassembly.
1056 * testsuite/gas/z80/sdcc.s: Likewise.
1057
1058 2020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
1059
1060 PR 25517
1061 * config/tc-z80.c: Add -march option.
1062 * doc/as.texi: Update Z80 documentation.
1063 * doc/c-z80.texi: Likewise.
1064 * testsuite/gas/z80/ez80_adl_all.d: Update command line.
1065 * testsuite/gas/z80/ez80_adl_suf.d: Likewise.
1066 * testsuite/gas/z80/ez80_pref_dis.d: Likewise.
1067 * testsuite/gas/z80/ez80_z80_all.d: Likewise.
1068 * testsuite/gas/z80/ez80_z80_suf.d: Likewise.
1069 * testsuite/gas/z80/gbz80_all.d: Likewise.
1070 * testsuite/gas/z80/r800_extra.d: Likewise.
1071 * testsuite/gas/z80/r800_ii8.d: Likewise.
1072 * testsuite/gas/z80/r800_z80_doc.d: Likewise.
1073 * testsuite/gas/z80/sdcc.d: Likewise.
1074 * testsuite/gas/z80/z180.d: Likewise.
1075 * testsuite/gas/z80/z180_z80_doc.d: Likewise.
1076 * testsuite/gas/z80/z80_doc.d: Likewise.
1077 * testsuite/gas/z80/z80_ii8.d: Likewise.
1078 * testsuite/gas/z80/z80_in_f_c.d: Likewise.
1079 * testsuite/gas/z80/z80_op_ii_ld.d: Likewise.
1080 * testsuite/gas/z80/z80_out_c_0.d: Likewise.
1081 * testsuite/gas/z80/z80_sli.d: Likewise.
1082 * testsuite/gas/z80/z80n_all.d: Likewise.
1083 * testsuite/gas/z80/z80n_reloc.d: Likewise.
1084
1085 2020-02-19 H.J. Lu <hongjiu.lu@intel.com>
1086
1087 * config/tc-i386.c (output_insn): Mark cvtpi2ps and cvtpi2pd
1088 with GNU_PROPERTY_X86_FEATURE_2_MMX.
1089 * testsuite/gas/i386/i386.exp: Run property-3 and
1090 x86-64-property-3.
1091 * testsuite/gas/i386/property-3.d: New file.
1092 * testsuite/gas/i386/property-3.s: Likewise.
1093 * testsuite/gas/i386/x86-64-property-3.d: Likewise.
1094
1095 2020-02-17 H.J. Lu <hongjiu.lu@intel.com>
1096
1097 * config/tc-i386.c (cpu_arch): Add .popcnt.
1098 * doc/c-i386.texi: Remove abm and .abm. Add popcnt and .popcnt.
1099 Add a tab before @samp{.sse4a}.
1100
1101 2020-02-17 Jan Beulich <jbeulich@suse.com>
1102
1103 * config/tc-i386.c (process_suffix): Don't try to guess a suffix
1104 for AddrPrefixOpReg templates. Combine the two pieces of
1105 addrprefixopreg handling. Reject 16-bit address reg in 64-bit
1106 mode.
1107
1108 2020-02-17 Jan Beulich <jbeulich@suse.com>
1109
1110 PR gas/14439
1111 * config/tc-i386.c (md_assemble): Also suppress operand
1112 swapping for MONITOR{,X} and MWAIT{,X}.
1113 * testsuite/gas/i386/sse3.s, testsuite/gas/i386/x86-64-sse3.s:
1114 Add Intel syntax monitor/mwait tests.
1115 * testsuite/gas/i386/sse3.d, testsuite/gas/i386/x86-64-sse3.d:
1116 Adjust expectations.
1117 *testsuite/gas/i386/sse3-intel.d,
1118 testsuite/gas/i386/x86-64-sse3-intel.d: New.
1119 * testsuite/gas/i386/i386.exp: Run new tests.
1120
1121 2020-02-17 Jan Beulich <jbeulich@suse.com>
1122
1123 PR gas/6518
1124 * config/tc-i386.c (process_suffix): Re-work Intel-syntax
1125 [XYZ]MMWord memory operand ambiguity recognition logic (largely
1126 re-indentation).
1127 * testsuite/gas/i386/avx512dq-inval.s: Add vcvtqq2ps/vcvtuqq2ps
1128 cases.
1129 * testsuite/gas/i386/inval-avx512f.s: Also test vcvtneps2bf16.
1130 * testsuite/gas/i386/avx512dq-inval.l,
1131 testsuite/gas/i386/inval-avx.l,
1132 testsuite/gas/i386/inval-avx512f.l: Adjust expectations.
1133 * testsuite/gas/i386/avx512vl-ambig.s,
1134 testsuite/gas/i386/avx512vl-ambig.l: New.
1135 * testsuite/gas/i386/i386.exp: Run new test.
1136
1137 2020-02-16 H.J. Lu <hongjiu.lu@intel.com>
1138
1139 * config/tc-i386.c (cpu_arch): Add .sse4a and nosse4a. Restore
1140 nosse4.
1141 * doc/c-i386.texi: Document sse4a and nosse4a.
1142
1143 2020-02-14 H.J. Lu <hongjiu.lu@intel.com>
1144
1145 * doc/c-i386.texi: Remove the old movsx and movzx documentation
1146 for AT&T syntax.
1147
1148 2020-02-14 Jan Beulich <jbeulich@suse.com>
1149
1150 PR gas/25438
1151 * config/tc-i386.c (md_assemble): Move movsx/movzx special
1152 casing ...
1153 (process_suffix): ... here. Consider just the first operand
1154 initially.
1155 (check_long_reg): Drop opcode 0x63 special case again.
1156 * testsuite/gas/i386/i386.s, testsuite/gas/i386/iamcu-1.s,
1157 testsuite/gas/i386/ilp32/x86-64.s, testsuite/gas/i386/x86_64.s:
1158 Move ambiguous operand size tests ...
1159 * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
1160 testsuite/gas/i386/noreg64.s: ... here.
1161 * testsuite/gas/i386/i386.d, testsuite/gas/i386/i386-intel.d
1162 testsuite/gas/i386/iamcu-1.d, testsuite/gas/i386/ilp32/x86-64.d,
1163 testsuite/gas/i386/k1om.d, testsuite/gas/i386/l1om.d,
1164 testsuite/gas/i386/movx16.l, testsuite/gas/i386/movx32.l,
1165 testsuite/gas/i386/movx64.l, testsuite/gas/i386/noreg16.d,
1166 testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg64.d,
1167 testsuite/gas/i386/x86-64-movsxd.d,
1168 testsuite/gas/i386/x86-64-movsxd-intel.d,
1169 testsuite/gas/i386/x86_64.d, testsuite/gas/i386/x86_64-intel.d:
1170 Adjust expectations.
1171 * testsuite/gas/i386/movx16.s, testsuite/gas/i386/movx16.l,
1172 testsuite/gas/i386/movx32.s, testsuite/gas/i386/movx32.l,
1173 testsuite/gas/i386/movx64.s, testsuite/gas/i386/movx64.l: New.
1174 * testsuite/gas/i386/i386.exp: Run new tests.
1175
1176 2020-02-14 Jan Beulich <jbeulich@suse.com>
1177
1178 * config/tc-i386.c (process_operands): Also skip segment
1179 override prefix emission if it matches an already present one.
1180 * testsuite/gas/i386/prefix32.s: Add double segment override
1181 cases.
1182 * testsuite/gas/i386/prefix32.l: Adjust expectations.
1183
1184 2020-02-14 Jan Beulich <jbeulich@suse.com>
1185
1186 * config/tc-i386.c (process_operands): Drop ineffectual segment
1187 overrides when optimizing.
1188 * testsuite/gas/i386/lea-optimize.d: New.
1189 * testsuite/gas/i386/i386.exp: Run new test.
1190
1191 2020-02-14 Jan Beulich <jbeulich@suse.com>
1192
1193 * config/tc-i386.c (process_operands): Also check insn prefix
1194 for ineffectual segment override warning. Don't cover possible
1195 VEX/EVEX encoded insns there.
1196 * testsuite/gas/i386/lea.s, testsuite/gas/i386/lea.d,
1197 testsuite/gas/i386/lea.e: New.
1198 * testsuite/gas/i386/i386.exp: Run new test.
1199
1200 2020-02-14 H.J. Lu <hongjiu.lu@intel.com>
1201
1202 PR gas/25438
1203 * doc/c-i386.texi: Document movsx, movsxd and movzx for AT&T
1204 syntax.
1205
1206 2020-02-13 Fangrui Song <maskray@google.com>
1207 H.J. Lu <hongjiu.lu@intel.com>
1208
1209 PR gas/25551
1210 * config/tc-i386.c (tc_i386_fix_adjustable): Don't check
1211 BFD_RELOC_386_PLT32 nor BFD_RELOC_X86_64_PLT32.
1212 * testsuite/gas/i386/i386.exp: Run relax-5 and x86-64-relax-4.
1213 * testsuite/gas/i386/relax-5.d: New file.
1214 * testsuite/gas/i386/relax-5.s: Likewise.
1215 * testsuite/gas/i386/x86-64-relax-4.d: Likewise.
1216 * testsuite/gas/i386/x86-64-relax-4.s: Likewise.
1217
1218 2020-02-13 Jan Beulich <jbeulich@suse.com>
1219
1220 * config/tc-i386.c (cpu_noarch): Use CPU_ANY_SSE4_FLAGS in
1221 "nosse4" entry.
1222
1223 2020-02-12 Jan Beulich <jbeulich@suse.com>
1224
1225 * config/tc-i386.c (avx512): New (at file scope), moved from
1226 (check_VecOperands): ... here.
1227 (process_suffix): Add [XYZ]MMword operand size handling.
1228 * testsuite/gas/i386/avx512dq-inval.s: Add VFPCLASS tests.
1229 * testsuite/gas/i386/noavx512-2.s: Add Intel syntax VFPCLASS
1230 tests.
1231 * testsuite/gas/i386/avx512dq-inval.l,
1232 testsuite/gas/i386/noavx512-2.l: Adjust expectations.
1233
1234 2020-02-12 Jan Beulich <jbeulich@suse.com>
1235
1236 PR gas/24546
1237 * config/tc-i386.c (match_template): Apply AMD64 check to 64-bit
1238 code only.
1239 * config/tc-i386-intel.c (i386_intel_operand): Also handle
1240 CALL/JMP in O_tbyte_ptr case.
1241 * doc/c-i386.texi: Mention far call and full pointer load ISA
1242 differences.
1243 * testsuite/gas/i386/x86-64-branch-3.s,
1244 testsuite/gas/i386/x86-64-intel64.s: Add 64-bit far call cases.
1245 * testsuite/gas/i386/x86-64-branch-3.d,
1246 testsuite/gas/i386/x86-64-intel64.d: Adjust expectations.
1247 * testsuite/gas/i386/x86-64-branch-5.l,
1248 testsuite/gas/i386/x86-64-branch-5.s: New.
1249 * testsuite/gas/i386/i386.exp: Run new test.
1250
1251 2020-02-12 Jan Beulich <jbeulich@suse.com>
1252
1253 PR gas/25438
1254 * config/tc-i386.c (REGISTER_WARNINGS): Delete.
1255 (check_byte_reg): Skip only source operand of CRC32. Drop Non-
1256 64-bit-only warning.
1257 (check_word_reg): Consistently error on mismatching register
1258 size and suffix.
1259 * testsuite/gas/i386/general.s: Replace dword GPR with word one
1260 for movw. Replace suffix / GPR for orb.
1261 * testsuite/gas/i386/inval.s: Add tests for movw with dword and
1262 byte GPRs as well as ones for inb/outb with a word accumulator.
1263 * testsuite/gas/i386/general.l, testsuite/gas/i386/intelbad.l,
1264 testsuite/gas/i386/inval.l: Adjust expectations.
1265
1266 2020-02-12 Jan Beulich <jbeulich@suse.com>
1267
1268 * config/tc-i386.c (operand_type_register_match): Also fall
1269 through initial two if()-s when the template allows for a GPR
1270 operand. Adjust comment.
1271
1272 2020-02-11 Jan Beulich <jbeulich@suse.com>
1273
1274 (struct _i386_insn): New field "short_form".
1275 (optimize_encoding): Drop setting of shortform field.
1276 (process_suffix): Set i.short_form. Replace shortform use.
1277 (process_operands): Replace shortform use.
1278
1279 2020-02-11 Matthew Malcomson <matthew.malcomson@arm.com>
1280
1281 * config/tc-arm.c (vcx_handle_register_arguments): Remove `for`
1282 loop initial declaration.
1283
1284 2020-02-10 Matthew Malcomson <matthew.malcomson@arm.com>
1285
1286 * config/tc-arm.c (NEON_MAX_TYPE_ELS): Increment to account for
1287 instructions that can have 5 arguments.
1288 (enum operand_parse_code): Add new operands.
1289 (parse_operands): Account for new operands.
1290 (S5): New macro.
1291 (enum neon_shape_el): Introduce P suffixes for coprocessor.
1292 (neon_select_shape): Account for P suffix.
1293 (LOW1): Move macro to global position.
1294 (HI4): Move macro to global position.
1295 (vcx_assign_vec_d): New.
1296 (vcx_assign_vec_m): New.
1297 (vcx_assign_vec_n): New.
1298 (enum vcx_reg_type): New.
1299 (vcx_get_reg_type): New.
1300 (vcx_size_pos): New.
1301 (vcx_vec_pos): New.
1302 (vcx_handle_shape): New.
1303 (vcx_ensure_register_in_range): New.
1304 (vcx_handle_register_arguments): New.
1305 (vcx_handle_insn_block): New.
1306 (vcx_handle_common_checks): New.
1307 (do_vcx1): New.
1308 (do_vcx2): New.
1309 (do_vcx3): New.
1310 * testsuite/gas/arm/cde-missing-fp.d: New test.
1311 * testsuite/gas/arm/cde-missing-fp.l: New test.
1312 * testsuite/gas/arm/cde-missing-mve.d: New test.
1313 * testsuite/gas/arm/cde-missing-mve.l: New test.
1314 * testsuite/gas/arm/cde-mve-or-neon.d: New test.
1315 * testsuite/gas/arm/cde-mve-or-neon.s: New test.
1316 * testsuite/gas/arm/cde-mve.s: New test.
1317 * testsuite/gas/arm/cde-warnings.l:
1318 * testsuite/gas/arm/cde-warnings.s:
1319 * testsuite/gas/arm/cde.d:
1320 * testsuite/gas/arm/cde.s:
1321
1322 2020-02-10 Stam Markianos-Wright <stam.markianos-wright@arm.com>
1323 Matthew Malcomson <matthew.malcomson@arm.com>
1324
1325 * config/tc-arm.c (arm_ext_cde*): New feature sets for each
1326 CDE coprocessor that can be enabled.
1327 (enum pred_instruction_type): New pred type.
1328 (BAD_NO_VPT): New error message.
1329 (BAD_CDE): New error message.
1330 (BAD_CDE_COPROC): New error message.
1331 (enum operand_parse_code): Add new immediate operands.
1332 (parse_operands): Account for new immediate operands.
1333 (check_cde_operand): New.
1334 (cde_coproc_enabled): New.
1335 (cde_coproc_pos): New.
1336 (cde_handle_coproc): New.
1337 (cxn_handle_predication): New.
1338 (do_custom_instruction_1): New.
1339 (do_custom_instruction_2): New.
1340 (do_custom_instruction_3): New.
1341 (do_cx1): New.
1342 (do_cx1a): New.
1343 (do_cx1d): New.
1344 (do_cx1da): New.
1345 (do_cx2): New.
1346 (do_cx2a): New.
1347 (do_cx2d): New.
1348 (do_cx2da): New.
1349 (do_cx3): New.
1350 (do_cx3a): New.
1351 (do_cx3d): New.
1352 (do_cx3da): New.
1353 (handle_pred_state): Define new IT block behaviour.
1354 (insns): Add newn CX*{,d}{,a} instructions.
1355 (CDE_EXTENSIONS,armv8m_main_ext_table,armv8_1m_main_ext_table):
1356 Define new cdecp extension strings.
1357 * doc/c-arm.texi: Document new cdecp extension arguments.
1358 * testsuite/gas/arm/cde-scalar.d: New test.
1359 * testsuite/gas/arm/cde-scalar.s: New test.
1360 * testsuite/gas/arm/cde-warnings.d: New test.
1361 * testsuite/gas/arm/cde-warnings.l: New test.
1362 * testsuite/gas/arm/cde-warnings.s: New test.
1363 * testsuite/gas/arm/cde.d: New test.
1364 * testsuite/gas/arm/cde.s: New test.
1365
1366 2020-02-10 H.J. Lu <hongjiu.lu@intel.com>
1367
1368 PR gas/25516
1369 * config/tc-i386.c (intel64): Renamed to ...
1370 (isa64): This.
1371 (match_template): Accept Intel64 only instruction by default.
1372 (i386_displacement): Updated.
1373 (md_parse_option): Updated.
1374 * c-i386.texi: Update -mamd64/-mintel64 documentation.
1375 * testsuite/gas/i386/i386.exp: Run x86-64-sysenter. Pass
1376 -mamd64 to x86-64-sysenter-amd.
1377 * testsuite/gas/i386/x86-64-sysenter.d: New file.
1378
1379 2020-02-10 Alan Modra <amodra@gmail.com>
1380
1381 * config/obj-elf.c (obj_elf_change_section): Error for section
1382 type, attr or entsize changes in assembly.
1383 * testsuite/gas/elf/elf.exp: Pass -Z to gas for section5 test.
1384 * testsuite/gas/elf/section5.l: Update.
1385
1386 2020-02-10 Alan Modra <amodra@gmail.com>
1387
1388 * output-file.c (output_file_close): Do a normal close when
1389 flag_always_generate_output.
1390 * write.c (write_object_file): Don't stop output when
1391 flag_always_generate_output.
1392
1393 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
1394
1395 PR 25469
1396 * config/tc-z80.c: Add -gbz80 command line option to generate code
1397 for the GameBoy Z80. Add support for generating DWARF.
1398 * config/tc-z80.h: Add support for DWARF debug information
1399 generation.
1400 * doc/c-z80.texi: Document new command line option.
1401 * testsuite/gas/z80/gbz80_all.d: New file.
1402 * testsuite/gas/z80/gbz80_all.s: New file.
1403 * testsuite/gas/z80/z80.exp: Run the new tests.
1404 * testsuite/gas/z80/z80n_all.d: New file.
1405 * testsuite/gas/z80/z80n_all.s: New file.
1406 * testsuite/gas/z80/z80n_reloc.d: New file.
1407
1408 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
1409
1410 PR gas/25381
1411 * config/obj-elf.c (get_section): Also check
1412 linked_to_symbol_name.
1413 (obj_elf_change_section): Also set map_head.linked_to_symbol_name.
1414 (obj_elf_parse_section_letters): Handle the 'o' flag.
1415 (build_group_lists): Renamed to ...
1416 (build_additional_section_info): This. Set elf_linked_to_section
1417 from map_head.linked_to_symbol_name.
1418 (elf_adjust_symtab): Updated.
1419 * config/obj-elf.h (elf_section_match): Add linked_to_symbol_name.
1420 * doc/as.texi: Document the 'o' flag.
1421 * testsuite/gas/elf/elf.exp: Run PR gas/25381 tests.
1422 * testsuite/gas/elf/section18.d: New file.
1423 * testsuite/gas/elf/section18.s: Likewise.
1424 * testsuite/gas/elf/section19.d: Likewise.
1425 * testsuite/gas/elf/section19.s: Likewise.
1426 * testsuite/gas/elf/section20.d: Likewise.
1427 * testsuite/gas/elf/section20.s: Likewise.
1428 * testsuite/gas/elf/section21.d: Likewise.
1429 * testsuite/gas/elf/section21.l: Likewise.
1430 * testsuite/gas/elf/section21.s: Likewise.
1431
1432 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
1433
1434 * NEWS: Mention x86 assembler options to align branches for
1435 binutils 2.34.
1436
1437 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
1438
1439 * testsuite/gas/i386/i386.exp: Run unique and x86-64-unique
1440 only for ELF targets.
1441 * testsuite/gas/i386/unique.d: Don't xfail.
1442 * testsuite/gas/i386/x86-64-unique.d: Likewise.
1443
1444 2020-02-06 Alan Modra <amodra@gmail.com>
1445
1446 * testsuite/gas/i386/unique.d: xfail for non-elf targets.
1447 * testsuite/gas/i386/x86-64-unique.d: Likewise.
1448
1449 2020-02-06 Alan Modra <amodra@gmail.com>
1450
1451 * testsuite/gas/elf/section12a.d: Use supports_gnu_osabi in
1452 xfail, and rename test.
1453 * testsuite/gas/elf/section12b.d: Likewise.
1454 * testsuite/gas/elf/section16a.d: Likewise.
1455 * testsuite/gas/elf/section16b.d: Likewise.
1456
1457 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
1458
1459 PR gas/25380
1460 * config/obj-elf.c (section_match): Removed.
1461 (get_section): Also match SEC_ASSEMBLER_SECTION_ID and
1462 section_id.
1463 (obj_elf_change_section): Replace info and group_name arguments
1464 with match_p. Also update the section ID and flags from match_p.
1465 (obj_elf_section): Handle "unique,N". Update call to
1466 obj_elf_change_section.
1467 * config/obj-elf.h (elf_section_match): New.
1468 (obj_elf_change_section): Updated.
1469 * config/tc-arm.c (start_unwind_section): Update call to
1470 obj_elf_change_section.
1471 * config/tc-ia64.c (obj_elf_vms_common): Likewise.
1472 * config/tc-microblaze.c (microblaze_s_data): Likewise.
1473 (microblaze_s_sdata): Likewise.
1474 (microblaze_s_rdata): Likewise.
1475 (microblaze_s_bss): Likewise.
1476 * config/tc-mips.c (s_change_section): Likewise.
1477 * config/tc-msp430.c (msp430_profiler): Likewise.
1478 * config/tc-rx.c (parse_rx_section): Likewise.
1479 * config/tc-tic6x.c (tic6x_start_unwind_section): Likewise.
1480 * doc/as.texi: Document "unique,N" in .section directive.
1481 * testsuite/gas/elf/elf.exp: Run "unique,N" tests.
1482 * testsuite/gas/elf/section15.d: New file.
1483 * testsuite/gas/elf/section15.s: Likewise.
1484 * testsuite/gas/elf/section16.s: Likewise.
1485 * testsuite/gas/elf/section16a.d: Likewise.
1486 * testsuite/gas/elf/section16b.d: Likewise.
1487 * testsuite/gas/elf/section17.d: Likewise.
1488 * testsuite/gas/elf/section17.l: Likewise.
1489 * testsuite/gas/elf/section17.s: Likewise.
1490 * testsuite/gas/i386/unique.d: Likewise.
1491 * testsuite/gas/i386/unique.s: Likewise.
1492 * testsuite/gas/i386/x86-64-unique.d: Likewise.
1493 * testsuite/gas/i386/i386.exp: Run unique and x86-64-unique.
1494
1495 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
1496
1497 * testsuite/gas/elf/section13.s: Replace @nobits with %nobits.
1498
1499 2020-02-01 Anthony Green <green@moxielogic.com>
1500
1501 * config/tc-moxie.c (md_begin): Don't force big-endian mode.
1502
1503 2020-01-31 Sandra Loosemore <sandra@codesourcery.com>
1504
1505 * config/tc-nios2.c (nios2_cons): Handle %gotoff as well as
1506 %tls_ldo.
1507
1508 2020-01-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
1509
1510 PR gas/25472
1511 * config/tc-arm.c (armv8m_main_ext_table): Refactored +dsp adding.
1512 (armv8_1m_main_ext_table): Refactored +dsp adding and enabled dsp for
1513 +mve.
1514 * testsuite/gas/arm/mve_dsp.d: New test.
1515
1516 2020-01-31 Nick Clifton <nickc@redhat.com>
1517
1518 * config/tc-s390.c (s390_elf_suffix): Return ELF_SUFFIX_NONE
1519 rather than BFD_RELOC_NONE.
1520
1521 2020-01-31 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
1522
1523 * config/tc-arm.c (fldmias): Moved inside "THUMB_VARIANT & arm_ext_v6t2"
1524 to support VLDMIA instruction for MVE.
1525 (fldmdbs): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VLDMDB
1526 instruction for MVE.
1527 (fstmias): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VSTMIA
1528 instruction for MVE.
1529 (fstmdbs): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VSTMDB
1530 instruction for MVE.
1531 * testsuite/gas/arm/mve-ldst.d: New test.
1532 * testsuite/gas/arm/mve-ldst.s: Likewise.
1533
1534 2020-01-31 Nick Clifton <nickc@redhat.com>
1535
1536 * po/fr.po: Updated French translation.
1537 * po/ru.po: Updated Russian translation.
1538
1539 2020-01-31 Richard Sandiford <richard.sandiford@arm.com>
1540
1541 * testsuite/gas/aarch64/sve-bfloat-movprfx.s: Use .h rather than
1542 .s for the movprfx.
1543 * testsuite/gas/aarch64/sve-bfloat-movprfx.d: Update accordingly.
1544 * testsuite/gas/aarch64/sve-movprfx_28.d,
1545 * testsuite/gas/aarch64/sve-movprfx_28.l,
1546 * testsuite/gas/aarch64/sve-movprfx_28.s: New test.
1547
1548 2020-01-30 Jan Beulich <jbeulich@suse.com>
1549
1550 * config/tc-i386.c (output_disp): Tighten base_opcode check.
1551 * testsuite/gas/i386/got.s: Add LSL, MOVLPS, and BNDCN cases.
1552 * testsuite/gas/i386/got-no-relax.d, testsuite/gas/i386/got.d:
1553 Adjust expectations.
1554
1555 2020-01-30 Jose E. Marchesi <jose.marchesi@oracle.com>
1556
1557 * testsuite/gas/bpf/alu.d: Update expected opcode for `neg'.
1558 * testsuite/gas/bpf/alu-be.d: Likewise.
1559 * testsuite/gas/bpf/alu32.d: Likewise for `neg32'.
1560 * testsuite/gas/bpf/alu32-be.d: Likewise.
1561
1562 2020-01-30 Jan Beulich <jbeulich@suse.com>
1563
1564 * testsuite/gas/i386/x86-64-branch-2.s,
1565 testsuite/gas/i386/x86-64-branch-4.s,
1566 testsuite/gas/i386/x86-64-branch.s: Add RETW cases.
1567 * testsuite/gas/i386/ilp32/x86-64-branch.d,
1568 testsuite/gas/i386/x86-64-branch-2.d,
1569 testsuite/gas/i386/x86-64-branch-4.l,
1570 testsuite/gas/i386/x86-64-branch.d: Adjust expectations.
1571
1572 2020-01-30 Jan Beulich <jbeulich@suse.com>
1573
1574 * config/tc-i386.c (process_suffix): .
1575 testsuite/gas/i386/noreg64.s: Add IRET and LRET cases.
1576 testsuite/gas/i386/x86-64-opcode.s: Add suffix to IRET and LRET.
1577 Add LRETQ case.
1578 testsuite/gas/i386/x86-64-suffix.s: Drop IRET case without
1579 suffix.
1580 testsuite/gas/i386/x86_64.s: Add RETF cases.
1581 * testsuite/gas/i386/k1om.d, testsuite/gas/i386/l1om.d,
1582 testsuite/gas/i386/noreg64.d, testsuite/gas/i386/noreg64.l,
1583 testsuite/gas/i386/x86-64-opcode.d,
1584 testsuite/gas/i386/x86-64-suffix-intel.d,
1585 testsuite/gas/i386/x86-64-suffix.d,
1586 testsuite/gas/i386/x86_64-intel.d
1587 testsuite/gas/i386/x86_64.d: Adjust expectations.
1588 * testsuite/gas/i386/x86-64-suffix.e,
1589 testsuite/gas/i386/x86_64.e: New.
1590
1591 2020-01-30 Jan Beulich <jbeulich@suse.com>
1592
1593 * config/tc-i386.c (process_suffix): Redo and move FLDENV et al
1594 special case.
1595
1596 2020-01-27 H.J. Lu <hongjiu.lu@intel.com>
1597
1598 PR binutils/25445
1599 * config/tc-i386.c (check_long_reg): Also convert to QWORD for
1600 movsxd.
1601 * doc/c-i386.texi: Add a node for AMD64 vs. Intel64 ISA
1602 differences. Document movslq and movsxd.
1603 * testsuite/gas/i386/i386.exp: Run PR binutils/25445 tests.
1604 * testsuite/gas/i386/x86-64-movsxd-intel.d: New file.
1605 * testsuite/gas/i386/x86-64-movsxd-intel64-intel.d: Likewise.
1606 * testsuite/gas/i386/x86-64-movsxd-intel64-inval.l: Likewise.
1607 * testsuite/gas/i386/x86-64-movsxd-intel64-inval.s: Likewise.
1608 * testsuite/gas/i386/x86-64-movsxd-intel64.d: Likewise.
1609 * testsuite/gas/i386/x86-64-movsxd-intel64.s: Likewise.
1610 * testsuite/gas/i386/x86-64-movsxd-inval.l: Likewise.
1611 * testsuite/gas/i386/x86-64-movsxd-inval.s: Likewise.
1612 * testsuite/gas/i386/x86-64-movsxd.d: Likewise.
1613 * testsuite/gas/i386/x86-64-movsxd.s: Likewise.
1614
1615 2020-01-27 Alan Modra <amodra@gmail.com>
1616
1617 * testsuite/gas/all/gas.exp: Replace case statements with switch
1618 statements.
1619 * testsuite/gas/elf/elf.exp: Likewise.
1620 * testsuite/gas/macros/macros.exp: Likewise.
1621 * testsuite/lib/gas-defs.exp: Likewise.
1622
1623 2020-01-27 Tamar Christina <tamar.christina@arm.com>
1624
1625 PR 25403
1626 * testsuite/gas/aarch64/armv8_4-a.d: Add cfinv.
1627 * testsuite/gas/aarch64/armv8_4-a.s: Likewise.
1628
1629 2020-01-22 Maxim Blinov <maxim.blinov@embecosm.com>
1630
1631 * testsuite/gas/riscv/march-ok-s.d: sx is no longer valid and
1632 s exts must be known, so rename *ok* to *fail*.
1633 * testsuite/gas/riscv/march-ok-sx.d: Likewise.
1634 * testsuite/gas/riscv/march-ok-s-with-version: Likewise.
1635 * testsuite/gas/riscv/march-fail-s.l: Expected error messages for
1636 above change.
1637 * testsuite/gas/riscv/march-fail-sx.l: Likewise.
1638 * testsuite/gas/riscv/march-fail-sx-with-version.l: Likewise.
1639
1640 2020-01-22 H.J. Lu <hongjiu.lu@intel.com>
1641
1642 PR gas/25438
1643 * config/tc-i386.c (check_long_reg): Always disallow double word
1644 suffix in mnemonic with word general register.
1645 * testsuite/gas/i386/general.s: Replace word general register
1646 with double word general register for movl.
1647 * testsuite/gas/i386/inval.s: Add tests for movl with word general
1648 register.
1649 * testsuite/gas/i386/general.l: Updated.
1650 * testsuite/gas/i386/inval.l: Likewise.
1651
1652 2020-01-22 Alan Modra <amodra@gmail.com>
1653
1654 * config/tc-ppc.c (parse_tls_arg): Handle tls arg for
1655 __tls_get_addr_desc and __tls_get_addr_opt.
1656
1657 2020-01-21 Jan Beulich <jbeulich@suse.com>
1658
1659 * testsuite/gas/i386/inval-crc32.s,
1660 testsuite/gas/i386/x86-64-inval-crc32.s: Add alignment directive.
1661 * testsuite/gas/i386/inval-crc32.l,
1662 testsuite/gas/i386/x86-64-inval-crc32.l: Adjust expectations.
1663
1664 2020-01-21 Jan Beulich <jbeulich@suse.com>
1665
1666 * config/tc-i386.c (process_suffix): Merge CRC32 handling into
1667 generic code path. Deal with No_lSuf being set in a template.
1668 * testsuite/gas/i386/inval-crc32.l,
1669 testsuite/gas/i386/x86-64-inval-crc32.l: Expect warning(s)
1670 instead of error(s) when operand size is ambiguous.
1671 * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
1672 testsuite/gas/i386/noreg64.s: Add CRC32 tests.
1673 * testsuite/gas/i386/noreg16.d, testsuite/gas/i386/noreg16.l,
1674 testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg32.l,
1675 testsuite/gas/i386/noreg64.d, testsuite/gas/i386/noreg64.l:
1676 Adjust expectations.
1677
1678 2020-01-21 Jan Beulich <jbeulich@suse.com>
1679
1680 * config/tc-i386.c (process_suffix): Drop SYSRET special case
1681 and an intel_syntax check. Re-write lack-of-suffix processing
1682 logic.
1683 * doc/c-i386.texi: Document operand size defaults for suffix-
1684 less AT&T syntax insns.
1685 * testsuite/gas/i386/bundle.s, testsuite/gas/i386/lock-1.s,
1686 testsuite/gas/i386/opcode.s, testsuite/gas/i386/sse3.s,
1687 testsuite/gas/i386/x86-64-avx-scalar.s,
1688 testsuite/gas/i386/x86-64-avx.s,
1689 testsuite/gas/i386/x86-64-bundle.s,
1690 testsuite/gas/i386/x86-64-intel64.s,
1691 testsuite/gas/i386/x86-64-lock-1.s,
1692 testsuite/gas/i386/x86-64-opcode.s,
1693 testsuite/gas/i386/x86-64-sse2avx.s,
1694 testsuite/gas/i386/x86-64-sse3.s: Add missing suffixes.
1695 * testsuite/gas/i386/nops.s, testsuite/gas/i386/sse-noavx.s,
1696 testsuite/gas/i386/x86-64-nops.s,
1697 testsuite/gas/i386/x86-64-ptwrite.s,
1698 testsuite/gas/i386/x86-64-simd.s,
1699 testsuite/gas/i386/x86-64-sse-noavx.s,
1700 testsuite/gas/i386/x86-64-suffix.s: Drop bogus suffix-less
1701 insns.
1702 * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
1703 testsuite/gas/i386/noreg64.s: Add further tests.
1704 * testsuite/gas/i386/ilp32/x86-64-nops.d,
1705 testsuite/gas/i386/nops.d, testsuite/gas/i386/noreg16.d,
1706 testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg64.d,
1707 testsuite/gas/i386/sse-noavx.d,
1708 testsuite/gas/i386/x86-64-intel64.d,
1709 testsuite/gas/i386/x86-64-nops.d,
1710 testsuite/gas/i386/x86-64-opcode.d,
1711 testsuite/gas/i386/x86-64-ptwrite-intel.d,
1712 testsuite/gas/i386/x86-64-ptwrite.d,
1713 testsuite/gas/i386/x86-64-simd-intel.d,
1714 testsuite/gas/i386/x86-64-simd-suffix.d,
1715 testsuite/gas/i386/x86-64-simd.d,
1716 testsuite/gas/i386/x86-64-sse-noavx.d
1717 testsuite/gas/i386/x86-64-suffix.d,
1718 testsuite/gas/i386/x86-64-suffix-intel.d: Adjust expectations.
1719 * testsuite/gas/i386/noreg16.l, testsuite/gas/i386/noreg32.l,
1720 testsuite/gas/i386/noreg64.l: New.
1721 * testsuite/gas/i386/i386.exp: Run new tests.
1722
1723 2020-01-21 Jan Beulich <jbeulich@suse.com>
1724
1725 * testsuite/gas/i386/avx512_bf16_vl.s,
1726 testsuite/gas/i386/x86-64-avx512_bf16_vl.s: Add broadcast forms
1727 of VCVTNEPS2BF16{X,Y}. Add operand-size less Intel syntax
1728 broadcast forms of VCVTNEPS2BF16.
1729 * testsuite/gas/i386/avx512_bf16_vl.d,
1730 testsuite/gas/i386/x86-64-avx512_bf16_vl.d: Adjust expectations.
1731
1732 2020-01-20 Nick Clifton <nickc@redhat.com>
1733
1734 * po/uk.po: Updated Ukranian translation.
1735
1736 2020-01-20 H.J. Lu <hongjiu.lu@intel.com>
1737
1738 PR ld/25416
1739 * config/tc-i386.c (output_insn): Add a dummy REX_OPCODE prefix
1740 for lea with R_X86_64_GOTPC32_TLSDESC relocation when generating
1741 x32 object.
1742 * testsuite/gas/i386/ilp32/x32-tls.d: Updated.
1743 * testsuite/gas/i386/ilp32/x32-tls.s: Add tests for lea with
1744 R_X86_64_GOTPC32_TLSDESC relocation.
1745
1746 2020-01-18 Nick Clifton <nickc@redhat.com>
1747
1748 * configure: Regenerate.
1749 * po/gas.pot: Regenerate.
1750
1751 2020-01-18 Nick Clifton <nickc@redhat.com>
1752
1753 Binutils 2.34 branch created.
1754
1755 2020-01-17 H.J. Lu <hongjiu.lu@intel.com>
1756
1757 * config/tc-i386.c (_i386_insn): Replace vex_encoding_vex2
1758 with vex_encoding_vex.
1759 (parse_insn): Likewise.
1760 * doc/c-i386.texi: Replace {vex2} with {vex}. Update {vex}
1761 and {vex3} documentation.
1762 * testsuite/gas/i386/pseudos.s: Replace 3 {vex2} tests with
1763 {vex}.
1764 * testsuite/gas/i386/x86-64-pseudos.s: Likewise.
1765
1766 2020-01-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
1767
1768 PR 25376
1769 * config/tc-arm.c (mve_ext, mve_fp_ext): Use CORE_HIGH.
1770 (armv8_1m_main_ext_table): Use CORE_HIGH for mve.
1771 * testsuite/arm/armv8_1-m-fpu-mve-1.s: New.
1772 * testsuite/arm/armv8_1-m-fpu-mve-1.d: New.
1773 * testsuite/arm/armv8_1-m-fpu-mve-2.s: New.
1774 * testsuite/arm/armv8_1-m-fpu-mve-2.d: New.
1775
1776 2020-01-16 Jan Beulich <jbeulich@suse.com>
1777
1778 * config/tc-i386.c (match_template): Drop found_cpu_match local
1779 variable.
1780
1781 2020-01-16 Jan Beulich <jbeulich@suse.com>
1782
1783 * testsuite/gas/i386/avx512dq-inval.l,
1784 testsuite/gas/i386/avx512dq-inval.s: New.
1785 * testsuite/gas/i386/i386.exp: Run new test.
1786
1787 2020-01-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1788
1789 * config/tc-msp430.c (CHECK_RELOC_MSP430): Always generate 430X
1790 relocations when the target is 430X, except when extracting part of an
1791 expression.
1792 (msp430_srcoperand): Adjust comment.
1793 Initialize the expp member of the msp430_operand_s struct as
1794 appropriate.
1795 (msp430_dstoperand): Likewise.
1796 * testsuite/gas/msp430/msp430.exp: Run new test.
1797 * testsuite/gas/msp430/reloc-lo-430x.d: New test.
1798 * testsuite/gas/msp430/reloc-lo-430x.s: New test.
1799
1800 2020-01-15 Alan Modra <amodra@gmail.com>
1801
1802 * configure.tgt: Add sparc-*-freebsd case.
1803
1804 2020-01-14 Lili Cui <lili.cui@intel.com>
1805
1806 * testsuite/gas/i386/align-branch-1a.d: Updated for Darwin.
1807 * testsuite/gas/i386/align-branch-1b.d: Likewise.
1808 * testsuite/gas/i386/align-branch-1c.d: Likewise.
1809 * testsuite/gas/i386/align-branch-1d.d: Likewise.
1810 * testsuite/gas/i386/align-branch-1e.d: Likewise.
1811 * testsuite/gas/i386/align-branch-1f.d: Likewise.
1812 * testsuite/gas/i386/align-branch-1g.d: Likewise.
1813 * testsuite/gas/i386/align-branch-1h.d: Likewise.
1814 * testsuite/gas/i386/align-branch-1i.d: Likewise.
1815 * testsuite/gas/i386/align-branch-5.d: Likewise.
1816 * testsuite/gas/i386/x86-64-align-branch-1a.d: Likewise.
1817 * testsuite/gas/i386/x86-64-align-branch-1b.d: Likewise.
1818 * testsuite/gas/i386/x86-64-align-branch-1c.d: Likewise.
1819 * testsuite/gas/i386/x86-64-align-branch-1d.d: Likewise.
1820 * testsuite/gas/i386/x86-64-align-branch-1e.d: Likewise.
1821 * testsuite/gas/i386/x86-64-align-branch-1f.d: Likewise.
1822 * testsuite/gas/i386/x86-64-align-branch-1g.d: Likewise.
1823 * testsuite/gas/i386/x86-64-align-branch-1h.d: Likewise.
1824 * testsuite/gas/i386/x86-64-align-branch-1i.d: Likewise.
1825 * testsuite/gas/i386/x86-64-align-branch-5.d: Likewise.
1826 * testsuite/gas/i386/i386.exp: Skip x86-64-align-branch-2a,
1827 x86-64-align-branch-2b and x86-64-align-branch-2c on Darwin.
1828
1829 2020-01-14 Sergey Belyashov <sergey.belyashov@gmail.com>
1830
1831 PR 25377
1832 * config/tc-z80.c: Add support for half precision, single
1833 precision and double precision floating point values.
1834 * config/tc-z80.h b/gas/config/tc-z80.h: Disable string escapes.
1835 * doc/as.texi: Add new z80 command line options.
1836 * doc/c-z80.texi: Document new z80 command line options.
1837 * testsuite/gas/z80/ez80_pref_dis.s: New test.
1838 * testsuite/gas/z80/ez80_pref_dis.d: New test driver.
1839 * testsuite/gas/z80/z80.exp: Run the new test.
1840 * testsuite/gas/z80/fp_math48.d: Use correct command line option.
1841 * testsuite/gas/z80/fp_zeda32.d: Likewise.
1842 * testsuite/gas/z80/strings.d: Update expected output.
1843
1844 2020-01-13 Matthew Malcomson <matthew.malcomson@arm.com>
1845
1846 * config/tc-aarch64.c (f64mm, f32mm): Add sve as a feature
1847 dependency.
1848
1849 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
1850
1851 * config/tc-arc.c (arc_select_cpu): Re-init the bfd if we change
1852 the CPU.
1853 * config/tc-arc.h: Add header if/defs.
1854 * testsuite/gas/arc/pseudos.d: Improve matching pattern.
1855
1856 2020-01-13 Alan Modra <amodra@gmail.com>
1857
1858 * testsuite/gas/wasm32/allinsn.d: Update expected output.
1859
1860 2020-01-13 Alan Modra <amodra@gmail.com>
1861
1862 * config/tc-tic4x.c (tic4x_operands_match): Correct tic3x trap
1863 insertion.
1864
1865 2020-01-10 Alan Modra <amodra@gmail.com>
1866
1867 * testsuite/gas/elf/pr14891.s: Don't start directives in first column.
1868 * testsuite/gas/elf/pr21661.d: Don't run on hpux.
1869
1870 2020-01-03 Sergey Belyashov <sergey.belyashov@gmail.com>
1871
1872 PR 25224
1873 * config/tc-z80.c (emit_ld_m_rr): Use integer types when checking
1874 opcode byte values.
1875 (emit_ld_r_r): Likewise.
1876 (emit_ld_rr_m): Likewise.
1877 (emit_ld_rr_nn): Likewise.
1878
1879 2020-01-09 Jan Beulich <jbeulich@suse.com>
1880
1881 * config/tc-i386.c (optimize_encoding): Add
1882 is_any_vex_encoding() invocations. Drop respective
1883 i.tm.extension_opcode == None checks.
1884
1885 2020-01-09 Jan Beulich <jbeulich@suse.com>
1886
1887 * config/tc-i386.c (md_assemble): Check RegRex is clear during
1888 REX transformations. Correct comment indentation.
1889
1890 2020-01-09 Jan Beulich <jbeulich@suse.com>
1891
1892 * config/tc-i386.c (optimize_encoding): Generalize register
1893 transformation for TEST optimization.
1894
1895 2020-01-09 Jan Beulich <jbeulich@suse.com>
1896
1897 * testsuite/gas/i386/x86-64-sysenter-amd.s,
1898 testsuite/gas/i386/x86-64-sysenter-amd.d,
1899 testsuite/gas/i386/x86-64-sysenter-amd.l,
1900 testsuite/gas/i386/x86-64-sysenter-intel.d,
1901 testsuite/gas/i386/x86-64-sysenter-mixed.d: New.
1902 * testsuite/gas/i386/i386.exp: Run new tests.
1903
1904 2020-01-08 Nick Clifton <nickc@redhat.com>
1905
1906 PR 25284
1907 * doc/as.texi (Align): Document the fact that all arguments can be
1908 omitted.
1909 (Balign): Likewise.
1910 (P2align): Likewise.
1911
1912 2020-01-08 Nick Clifton <nickc@redhat.com>
1913
1914 PR 14891
1915 * config/obj-elf.c (obj_elf_section): Fail if the section name is
1916 already defined as a different symbol type.
1917 * testsuite/gas/elf/pr14891.s: New test source file.
1918 * testsuite/gas/elf/pr14891.d: New test driver.
1919 * testsuite/gas/elf/pr14891.s: New test expected error output.
1920 * testsuite/gas/elf/elf.exp: Run the new test.
1921
1922 2020-01-08 Alan Modra <amodra@gmail.com>
1923
1924 * config/tc-z8k.c (md_begin): Make idx unsigned.
1925 (get_specific): Likewise for this_index.
1926
1927 2020-01-07 Claudiu Zissulescu <claziss@synopsys.com>
1928
1929 * onfig/tc-arc.c (parse_reloc_symbol): New function.
1930 (tokenize_arguments): Clean up, use parse_reloc_symbol function.
1931 (md_operand): Set X_md to absent.
1932 (arc_parse_name): Check for X_md.
1933
1934 2020-01-03 Sergey Belyashov <sergey.belyashov@gmail.com>
1935
1936 PR 25311
1937 * as.h (TC_STRING_ESCAPES): Provide a default definition.
1938 * app.c (do_scrub_chars): Use TC_STRING_ESCAPES instead of
1939 NO_STRING_ESCAPES.
1940 * read.c (next_char_of_string): Likewise.
1941 * config/tc-ppc.h (TC_STRING_ESCAPES): Define.
1942 * config/tc-z80.h (TC_STRING_ESCAPES): Define.
1943
1944 2020-01-03 Nick Clifton <nickc@redhat.com>
1945
1946 * po/sv.po: Updated Swedish translation.
1947
1948 2020-01-03 Jan Beulich <jbeulich@suse.com>
1949
1950 * testsuite/gas/aarch64/f64mm.s: Scale index of LD1RO{H,W,D}.
1951 * testsuite/gas/aarch64/f64mm.d: Adjust expectations.
1952
1953 2020-01-03 Jan Beulich <jbeulich@suse.com>
1954
1955 * testsuite/gas/aarch64/i8mm.s: Add 128-bit form tests for
1956 by-element usdot. Add 64-bit form tests for by-element sudot.
1957 * testsuite/gas/aarch64/i8mm.d: Adjust expectations.
1958
1959 2020-01-03 Jan Beulich <jbeulich@suse.com>
1960
1961 * testsuite/gas/aarch64/f64mm.s: Drop 'i' from uzip<n>.
1962 * testsuite/gas/aarch64/f64mm.d: Adjust expectations.
1963
1964 2020-01-03 Jan Beulich <jbeulich@suse.com>
1965
1966 * testsuite/gas/aarch64/f64mm.d,
1967 testsuite/gas/aarch64/sve-movprfx-mm.d: Adjust expectations.
1968
1969 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
1970
1971 * config/tc-z80.c: Add new architectures: Z180 and eZ80. Add
1972 support for assembler code generated by SDCC. Add new relocation
1973 types. Add z80-elf target support.
1974 * config/tc-z80.h: Add z80-elf target support. Enable dollar local
1975 labels. Local labels starts from ".L".
1976 * NEWS: Mention the new support.
1977 * testsuite/gas/all/fwdexp.d: Fix failure due to symbol conflict.
1978 * testsuite/gas/all/fwdexp.s: Likewise.
1979 * testsuite/gas/all/cond.l: Likewise.
1980 * testsuite/gas/all/cond.s: Likewise.
1981 * testsuite/gas/all/fwdexp.d: Likewise.
1982 * testsuite/gas/all/fwdexp.s: Likewise.
1983 * testsuite/gas/elf/section2.e-mips: Likewise.
1984 * testsuite/gas/elf/section2.l: Likewise.
1985 * testsuite/gas/elf/section2.s: Likewise.
1986 * testsuite/gas/macros/app1.d: Likewise.
1987 * testsuite/gas/macros/app1.s: Likewise.
1988 * testsuite/gas/macros/app2.d: Likewise.
1989 * testsuite/gas/macros/app2.s: Likewise.
1990 * testsuite/gas/macros/app3.d: Likewise.
1991 * testsuite/gas/macros/app3.s: Likewise.
1992 * testsuite/gas/macros/app4.d: Likewise.
1993 * testsuite/gas/macros/app4.s: Likewise.
1994 * testsuite/gas/macros/app4b.s: Likewise.
1995 * testsuite/gas/z80/suffix.d: Fix failure on ELF target.
1996 * testsuite/gas/z80/z80.exp: Add new tests
1997 * testsuite/gas/z80/dollar.d: New file.
1998 * testsuite/gas/z80/dollar.s: New file.
1999 * testsuite/gas/z80/ez80_adl_all.d: New file.
2000 * testsuite/gas/z80/ez80_adl_all.s: New file.
2001 * testsuite/gas/z80/ez80_adl_suf.d: New file.
2002 * testsuite/gas/z80/ez80_isuf.s: New file.
2003 * testsuite/gas/z80/ez80_z80_all.d: New file.
2004 * testsuite/gas/z80/ez80_z80_all.s: New file.
2005 * testsuite/gas/z80/ez80_z80_suf.d: New file.
2006 * testsuite/gas/z80/r800_extra.d: New file.
2007 * testsuite/gas/z80/r800_extra.s: New file.
2008 * testsuite/gas/z80/r800_ii8.d: New file.
2009 * testsuite/gas/z80/r800_z80_doc.d: New file.
2010 * testsuite/gas/z80/z180.d: New file.
2011 * testsuite/gas/z80/z180.s: New file.
2012 * testsuite/gas/z80/z180_z80_doc.d: New file.
2013 * testsuite/gas/z80/z80_doc.d: New file.
2014 * testsuite/gas/z80/z80_doc.s: New file.
2015 * testsuite/gas/z80/z80_ii8.d: New file.
2016 * testsuite/gas/z80/z80_ii8.s: New file.
2017 * testsuite/gas/z80/z80_in_f_c.d: New file.
2018 * testsuite/gas/z80/z80_in_f_c.s: New file.
2019 * testsuite/gas/z80/z80_op_ii_ld.d: New file.
2020 * testsuite/gas/z80/z80_op_ii_ld.s: New file.
2021 * testsuite/gas/z80/z80_out_c_0.d: New file.
2022 * testsuite/gas/z80/z80_out_c_0.s: New file.
2023 * testsuite/gas/z80/z80_reloc.d: New file.
2024 * testsuite/gas/z80/z80_reloc.s: New file.
2025 * testsuite/gas/z80/z80_sli.d: New file.
2026 * testsuite/gas/z80/z80_sli.s: New file.
2027
2028 2020-01-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
2029
2030 * config/tc-arm.c (parse_reg_list): Use REG_TYPE_RN instead of
2031 REGLIST_RN.
2032
2033 2020-01-01 Alan Modra <amodra@gmail.com>
2034
2035 Update year range in copyright notice of all files.
2036
2037 For older changes see ChangeLog-2019
2038 \f
2039 Copyright (C) 2020 Free Software Foundation, Inc.
2040
2041 Copying and distribution of this file, with or without modification,
2042 are permitted in any medium without royalty provided the copyright
2043 notice and this notice are preserved.
2044
2045 Local Variables:
2046 mode: change-log
2047 left-margin: 8
2048 fill-column: 74
2049 version-control: never
2050 End: