]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gas/ChangeLog
baa788f4fed06339923ed0b8b9dab6e9efef9b79
[thirdparty/binutils-gdb.git] / gas / ChangeLog
1 2020-08-12 Joe Ramsay <joe.ramsay@.arm.com>
2
3 * config/tc-arm.c (do_neon_cvt_1): Parse vcvtne as vcvt-ne for
4 NS_FD shape when MVE is present
5 * testsuite/gas/arm/mve-vcvtne-it-bad.d: New test.
6 * testsuite/gas/arm/mve-vcvtne-it-bad.l: New test.
7 * testsuite/gas/arm/mve-vcvtne-it-bad.s: New test.
8 * testsuite/gas/arm/mve-vcvtne-it.d: New test.
9 * testsuite/gas/arm/mve-vcvtne-it.s: New test.
10
11 2020-08-12 Alex Coplan <alex.coplan@arm.com>
12
13 * testsuite/gas/aarch64/mpam-bad.d: New test.
14 * testsuite/gas/aarch64/mpam-bad.l: Error output.
15 * testsuite/gas/aarch64/mpam-bad.s: Input.
16 * testsuite/gas/aarch64/mpam.d: New test.
17 * testsuite/gas/aarch64/mpam.s: Input.
18
19 2020-08-12 Nick Clifton <nickc@redhat.com>
20
21 PR 26346
22 * doc/c-riscv.texi (RISC-V-Options): Fix typo in the description
23 of the -mno-csr-check option.
24
25 2020-08-12 Nick Clifton <nickc@redhat.com>
26
27 * po/ru.po: Updated Russian translation.
28
29 2020-08-10 Alex Coplan <alex.coplan@arm.com>
30
31 * config/tc-aarch64.c (parse_sys_reg): Don't assert when parsing
32 a long system register.
33 (parse_sys_ins_reg): Likewise.
34 (sysreg_hash_insert): New.
35 (md_begin): Use sysreg_hash_insert() to ensure all system
36 registers are no longer than the maximum length at startup.
37 * testsuite/gas/aarch64/invalid-sysreg-assert.d: New test.
38 * testsuite/gas/aarch64/invalid-sysreg-assert.l: Error output.
39 * testsuite/gas/aarch64/invalid-sysreg-assert.s: Input.
40
41 2020-08-10 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
42
43 * config/tc-aarch64.c (parse_sys_reg): Call to
44 aarch64_sys_ins_reg_supported_p instead of
45 aarch64_sys_reg_supported_p.
46 (parse_sys_ins_reg): Add aarch64_sys_reg_deprecated_p check.
47 * testsuite/gas/aarch64/illegal-sysreg-5.d: New test.
48 * testsuite/gas/aarch64/illegal-sysreg-5.l: New test.
49 * testsuite/gas/aarch64/sysreg-5.s: New test.
50
51 2020-08-10 Alan Modra <amodra@gmail.com>
52
53 * testsuite/gas/ppc/power8.d,
54 * testsuite/gas/ppc/power8.s: Add miso.
55 * testsuite/gas/ppc/power9.d,
56 * testsuite/gas/ppc/power8.s: Add exser, msgsndu, msgclru.
57
58 2020-08-10 Alan Modra <amodra@gmail.com>
59
60 * testsuite/gas/ppc/power8.d: Update.
61 * testsuite/gas/ppc/vsx2.d: Update.
62
63 2020-08-10 Alan Modra <amodra@gmail.com>
64
65 * config/tc-ppc.c (md_assemble): Error for lmw, stmw, lswi, lswx,
66 stswi, or stswx in little-endian mode.
67 * testsuite/gas/ppc/476.d,
68 * testsuite/gas/ppc/476.s: Delete lmw, stmw, lswi, lswx, stswi, stswx.
69 * testsuite/gas/ppc/a2.d,
70 * testsuite/gas/ppc/a2.s: Move lmw, stmw, lswi, lswx, stswi, stswx..
71 * testsuite/gas/ppc/be.d,
72 * testsuite/gas/ppc/be.s: ..to here, new big-endian only test.
73 * testsuite/gas/ppc/le_error.d,
74 * testsuite/gas/ppc/le_error.l: New little-endian test.
75 * testsuite/gas/ppc/ppc.exp: Run new tests.
76
77 2020-08-07 H.J. Lu <hongjiu.lu@intel.com>
78
79 * read.c (read_a_source_file): Ignore rest of line on overflow
80 error.
81
82 2020-08-06 Alex Coplan <alex.coplan@arm.com>
83
84 * read.c (read_a_source_file): Use long for local labels, detect
85 overflow and raise an error for overly-long labels.
86 * testsuite/gas/all/gas.exp: Add local-label-overflow test.
87 * testsuite/gas/all/local-label-overflow.d: New test.
88 * testsuite/gas/all/local-label-overflow.l: Error output.
89 * testsuite/gas/all/local-label-overflow.s: Input.
90
91 2020-08-04 Christian Groessler <chris@groessler.org>
92
93 * gas/testsuite/gas/z8k/inout.d: Adapt to correct encoding of
94 "sout/soutb #imm,reg"
95
96 2020-08-04 H.J. Lu <hongjiu.lu@intel.com>
97
98 * NEWS: Mention {disp16} pseudo prefix.
99
100 2020-08-04 H.J. Lu <hongjiu.lu@intel.com>
101
102 * testsuite/gas/i386/x86-64-pseudos.d: Revert an accidental
103 change.
104
105 2020-08-04 Mark Wielaard <mark@klomp.org>
106
107 * dwarf2dbg.c (out_debug_abbrev): When DWARF2_VERSION >= 4, use
108 DW_FORM_udata for DW_AT_high_pc.
109 (out_debug_info): Use emit_leb128_expr for DW_AT_high_pc, when
110 DWARF2_VERSION >= 4.
111 * read.c (emit_leb128_exp): No longer static.
112 * read.h (emit_leb128_exp): Define.
113
114 2020-08-02 Mark Wielaard <mark@klomp.org>
115
116 * gas/dwarf2dbg.c (out_dir_and_file_list): For DWARF5 emit at
117 least one directory if there is at least one file. Use dirs[1]
118 if dirs[0] is not set, or if there is no dirs[1] the current
119 working directory. Use files[1] filename, when files[0] filename
120 isn't set.
121
122 2020-08-02 Mark Wielaard <mark@klomp.org>
123
124 * dwarf2dbg.c (out_debug_info): Emit unit type and abbrev offset
125 for DWARF5.
126 * gas/testsuite/gas/elf/dwarf-4-cu.d: New file.
127 * gas/testsuite/gas/elf/dwarf-4-cu.s: Likewise.
128 * gas/testsuite/gas/elf/dwarf-5-cu.d: Likewise.
129 * gas/testsuite/gas/elf/dwarf-5-cu.s: Likewise.
130 * testsuite/gas/elf/elf.exp: Run dwarf-4-cu and dwarf-5-cu.
131
132 2020-08-02 Mark Wielaard <mark@klomp.org>
133
134 * doc/as.texi (--gdwarf-[345]): Fix typo.
135
136 2020-08-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
137
138 * config/tc-msp430.c (OPTION_MOVE_DATA): Remove.
139 (md_parse_option): Remove case for OPTION_MOVE_DATA.
140 (md_longopts): Remove "md" entry.
141 (md_show_usage): Likewise.
142
143 2020-07-30 H.J. Lu <hongjiu.lu@intel.com>
144
145 PR gas/26305
146 * config/tc-i386.c (_i386_insn::disp_encoding): Add
147 disp_encoding_16bit.
148 (parse_insn): Check Prefix_XXX for pseudo prefixes. Handle
149 {disp16}.
150 (build_modrm_byte): Handle {disp16}.
151 (i386_index_check): Check invalid {disp16} and {disp32} pseudo
152 prefixes.
153 * doc/c-i386.texi: Update {disp32} documentation and document
154 {disp16}.
155 * testsuite/gas/i386/i386.exp: Run x86-64-inval-pseudo.
156 * testsuite/gas/i386/inval-pseudo.s: Add {disp32}/{disp16}
157 tests.
158 * testsuite/gas/i386/pseudos.s: Add {disp8}/{disp32} vmovaps
159 tests with 128-byte displacement. Add {disp16} tests.
160 * testsuite/gas/i386/x86-64-pseudos.s: Add {disp8}/{disp32}
161 vmovaps test. Add (%r13)/(%r13d) tests.
162 * testsuite/gas/i386/x86-64-inval-pseudo.l: New file.
163 * testsuite/gas/i386/x86-64-inval-pseudo.s: Likewise.
164 * testsuite/gas/i386/inval-pseudo.l: Updated.
165 * testsuite/gas/i386/pseudos.d: Likewise.
166 * testsuite/gas/i386/x86-64-pseudos.d: Likewise.
167
168 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
169
170 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
171 * Makefile.in, doc/Makefile.in: Regenerate.
172 * configure: Regenerate.
173
174 2020-07-30 H.J. Lu <hongjiu.lu@intel.com>
175
176 * testsuite/gas/elf/dwarf2-3.d:Pass --gdwarf-3 to assembler.
177 * testsuite/gas/elf/dwarf2-5.d: Likewise.
178 * testsuite/gas/i386/dw2-compress-3a.d: Likewise.
179 * testsuite/gas/i386/dw2-compress-3b.d: Likewise.
180 * testsuite/gas/i386/dw2-compressed-3a.d: Likewise.
181 * testsuite/gas/i386/dw2-compressed-3b.d: Likewise.
182
183 2020-07-30 Nick Clifton <nickc@redhat.com>
184
185 * as.c (dwarf_level): Initialise to 3 in case this is not set on
186 the command line.
187
188 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
189
190 * testsuite/gas/mips/global-local-symtab-sort-o32.d: New test.
191 * testsuite/gas/mips/global-local-symtab-sort-o32t.d: New test.
192 * testsuite/gas/mips/global-local-symtab-sort-n32.d: New test.
193 * testsuite/gas/mips/global-local-symtab-sort-n32t.d: New test.
194 * testsuite/gas/mips/global-local-symtab-sort-n64.d: New test.
195 * testsuite/gas/mips/global-local-symtab-sort-n64t.d: New test.
196 * testsuite/gas/mips/mips.exp: Run the new tests.
197
198 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
199
200 * testsuite/gas/mips/global-local-symtab-o32.d: New test.
201 * testsuite/gas/mips/global-local-symtab-o32t.d: New test.
202 * testsuite/gas/mips/global-local-symtab-n32.d: New test.
203 * testsuite/gas/mips/global-local-symtab-n32t.d: New test.
204 * testsuite/gas/mips/global-local-symtab-n64.d: New test.
205 * testsuite/gas/mips/global-local-symtab.s: New test source.
206 * testsuite/gas/mips/mips.exp: Run the new tests.
207
208 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
209
210 PR gas/26305
211 * config/tc-i386.c (build_modrm_byte): Use disp32/disp16 on
212 (%bp)/(%ebp)/(%rbp) for {disp32}.
213 * doc/c-i386.texi: Update {disp32} documentation.
214 * testsuite/gas/i386/pseudos.s: Add (%bp)/(%ebp) tests.
215 * testsuite/gas/i386/x86-64-pseudos.s: Add (%ebp)/(%rbp) tests.
216 * testsuite/gas/i386/pseudos.d: Updated.
217 * testsuite/gas/i386/x86-64-pseudos.d: Likewise.
218
219 2020-07-27 H.J. Lu <hongjiu.lu@intel.com>
220
221 * doc/as.texi: Replace preceeded with preceded.
222
223 2020-07-22 Maciej W. Rozycki <macro@linux-mips.org>
224
225 * testsuite/gas/mips/jal-svr4pic-irix.d: New file.
226 * testsuite/gas/mips/mips1@jal-svr4pic-irix.d: New file.
227 * testsuite/gas/mips/mipsr6@jal-svr4pic-irix.d: New file.
228 * testsuite/gas/mips/micromips@jal-svr4pic-irix.d: New file.
229 * testsuite/gas/mips/r3000@jal-svr4pic-irix.d: New file.
230 * testsuite/gas/mips/jal-svr4pic-local-irix.d: New file.
231 * testsuite/gas/mips/mips1@jal-svr4pic-local-irix.d: New file.
232 * testsuite/gas/mips/micromips@jal-svr4pic-local-irix.d: New
233 file.
234 * testsuite/gas/mips/r3000@jal-svr4pic-local-irix.d: New file.
235 * testsuite/gas/mips/jal-svr4pic-noreorder-irix.d: New file.
236 * testsuite/gas/mips/mips1@jal-svr4pic-noreorder-irix.d: New
237 file.
238 * testsuite/gas/mips/mipsr6@jal-svr4pic-noreorder-irix.d: New
239 file.
240 * testsuite/gas/mips/micromips@jal-svr4pic-noreorder-irix.d: New
241 file.
242 * testsuite/gas/mips/r3000@jal-svr4pic-noreorder-irix.d: New
243 file.
244 * testsuite/gas/mips/jal-xgot-irix.d: New file.
245 * testsuite/gas/mips/jalr2-irix.d: New file.
246 * testsuite/gas/mips/micromips-branch-relax-insn32-pic-irix.d:
247 New file.
248 * testsuite/gas/mips/micromips-branch-relax-pic-irix.d: New
249 file.
250 * testsuite/gas/mips/mips-abi32-pic2-irix.d: New file.
251 * testsuite/gas/mips/jal-svr4pic-local.d: Don't exclude
252 `*-*-irix*' targets. Add source file designator.
253 * testsuite/gas/mips/mips1@jal-svr4pic-local.d: Don't exclude
254 `*-*-irix*' targets.
255 * testsuite/gas/mips/r3000@jal-svr4pic-local.d: Likewise.
256 * testsuite/gas/mips/micromips@jal-svr4pic-local.d: Likewise.
257 * testsuite/gas/mips/jalr2.d: Add name designator.
258 * testsuite/gas/mips/mips.exp: Use respective IRIX variants for
259 tests involving the JALR relocation throughout.
260
261 2020-07-22 Maciej W. Rozycki <macro@linux-mips.org>
262
263 * testsuite/gas/mips/mips.exp: Use a helper variable for
264 IRIX/non-IRIX test selection.
265
266 2020-07-21 Jan Beulich <jbeulich@suse.com>
267
268 * testsuite/gas/i386/evex-no-scale-64.d,
269 testsuite/gas/i386/addr32.d,
270 testsuite/gas/i386/x86-64-addr32-intel.d,
271 testsuite/gas/i386/x86-64-addr32.d: Adjust expectations.
272
273 2020-07-21 Cooper Qu <cooper.qu@linux.alibaba.com>
274
275 * config/tc-csky.c (md_begin): Fix tests of arch and mach flags.
276
277 2020-07-21 Jan Beulich <jbeulich@suse.com>
278
279 * testsuite/gas/i386/evex-no-scale-32.d,
280 testsuite/gas/i386/evex-no-scale-64.d: Add #source and #pass.
281 * testsuite/gas/i386/evex-no-scale-32.s,
282 testsuite/gas/i386/evex-no-scale-64.s: Rename / fold into ...
283 * testsuite/gas/i386/evex-no-scale.s: ... this. Use .struct
284 instead of .section.
285 * testsuite/gas/i386/i386.exp: Move above tests out of ELF-
286 specific section.
287
288 2020-07-21 Maciej W. Rozycki <macro@linux-mips.org>
289
290 * config/tc-mips.c (prev_reloc_op_frag): Remove variable.
291 (my_getSmallExpression): Adjust accordingly.
292
293 2020-07-20 Jan Beulich <jbeulich@suse.com>
294
295 PR gas/4572
296 * config/tc-i386.c (i386_comment_chars): Drop TE_I386AIX from
297 conditional around it.
298 (md_begin): Insert backslash into operand_chars[] when slash is
299 a comment character.
300 * config/tc-i386-intel.c (i386_operator): Recognize \/, \%, and
301 \* as operators when / may be a comment character.
302 * testsuite/gas/i386/svr4.s, testsuite/gas/i386/svr4.d: New.
303 * testsuite/gas/i386/i386.exp: Run new test.
304
305 2020-07-20 Jan Beulich <jbeulich@suse.com>
306
307 PR gas/4572
308 * app.c (last_char): Drop TC_ARM conditional around it.
309 (struct app_save): Drop TC_ARM conditional around last_char.
310 (app_push, app_pop): Drop TC_ARM conditional from last_char
311 accesses.
312 (do_scrub_chars): Likewise. Drop TC_ARM conditional from
313 backslash-precedes-comment-character check.
314
315 2020-07-20 Jan Beulich <jbeulich@suse.com>
316
317 * config/tc-i386.c (frag_opcode_byte): New.
318 (output_branch): Emit error when in absolute section.
319 (output_jump, output_insn): Use frag_opcode_byte. Handle being
320 in absolute section.
321 (output_interseg_jump, output_disp, output_imm): Handle being in
322 absolute section.
323 * testsuite/gas/i386/sizing.s,
324 testsuite/gas/i386/sizing32.d,
325 testsuite/gas/i386/sizing64.d: New.
326 * testsuite/gas/i386/i386.exp: Run new tests.
327
328 2020-07-20 Jan Beulich <jbeulich@suse.com>
329
330 * testsuite/gas/i386/i386.exp: Include *-*-vxworks alongside
331 is_elf_format as applicable; merely exclude iamcu tests.
332
333 2020-07-19 H.J. Lu <hongjiu.lu@intel.com>
334
335 PR gas/26263
336 * config/tc-i386.c (i386_validate_fix): Change PLT32 reloc
337 against section to PC32 reloc.
338 * testsuite/gas/i386/relax-5.d: Updated.
339 * testsuite/gas/i386/x86-64-relax-4.d: Likewise.
340
341 2020-07-15 H.J. Lu <hongjiu.lu@intel.com>
342
343 PR gas/26237
344 * testsuite/gas/i386/evex-no-scale-64.d: Updated.
345 * testsuite/gas/i386/addr32.d: Likewise.
346 * testsuite/gas/i386/x86-64-addr32-intel.d: Likewise.
347 * testsuite/gas/i386/x86-64-addr32.d: Likewise.
348
349 2020-07-15 Nick Clifton <nickc@redhat.com>
350
351 * write.c (create_note_reloc): Add desc2_size parameter. Zero out
352 the addend field of REL relocations. Store the full addend into
353 the note for REL relocations.
354
355 2020-07-15 Jan Beulich <jbeulich@suse.com>
356
357 * testsuite/gas/i386/x86-64-stack.s: Adjust 32-bit push
358 immediate.
359 * testsuite/gas/i386/x86-64-stack-intel.d,
360 testsuite/gas/i386/x86-64-stack-suffix.d,
361 testsuite/gas/i386/x86-64-stack.d: Adjust expectations.
362
363 2020-07-15 Jan Beulich <jbeulich@suse.com>
364
365 * testsuite/gas/i386/disassem.d,
366 testsuite/gas/i386/ilp32/x86-64-branch.d,
367 testsuite/gas/i386/intel.d, testsuite/gas/i386/jump16.d,
368 testsuite/gas/i386/lfence-load.d, testsuite/gas/i386/noreg16.d,
369 testsuite/gas/i386/noreg32.d,
370 testsuite/gas/i386/noreg64-rex64.d,
371 testsuite/gas/i386/noreg64.d, testsuite/gas/i386/notrack.d,
372 testsuite/gas/i386/opcode.d,
373 testsuite/gas/i386/solaris/x86-64-branch-2.d,
374 testsuite/gas/i386/solaris/x86-64-jump.d,
375 testsuite/gas/i386/solaris/x86-64-mpx-branch-1.d,
376 testsuite/gas/i386/solaris/x86-64-nop-3.d,
377 testsuite/gas/i386/solaris/x86-64-nop-4.d,
378 testsuite/gas/i386/solaris/x86-64-nop-5.d,
379 testsuite/gas/i386/solaris/x86-64-relax-2.d,
380 testsuite/gas/i386/solaris/x86-64-relax-3.d,
381 testsuite/gas/i386/x86-64-align-branch-1a.d,
382 testsuite/gas/i386/x86-64-align-branch-1b.d,
383 testsuite/gas/i386/x86-64-align-branch-1c.d,
384 testsuite/gas/i386/x86-64-align-branch-1d.d,
385 testsuite/gas/i386/x86-64-align-branch-1e.d,
386 testsuite/gas/i386/x86-64-align-branch-1f.d,
387 testsuite/gas/i386/x86-64-align-branch-1g.d,
388 testsuite/gas/i386/x86-64-align-branch-1h.d,
389 testsuite/gas/i386/x86-64-align-branch-1i.d,
390 testsuite/gas/i386/x86-64-align-branch-2a.d,
391 testsuite/gas/i386/x86-64-align-branch-2b.d,
392 testsuite/gas/i386/x86-64-align-branch-2c.d,
393 testsuite/gas/i386/x86-64-align-branch-3.d,
394 testsuite/gas/i386/x86-64-align-branch-4a.d,
395 testsuite/gas/i386/x86-64-align-branch-4b.d,
396 testsuite/gas/i386/x86-64-align-branch-5.d,
397 testsuite/gas/i386/x86-64-align-branch-6.d,
398 testsuite/gas/i386/x86-64-branch-2.d,
399 testsuite/gas/i386/x86-64-branch-3.d,
400 testsuite/gas/i386/x86-64-branch.d,
401 testsuite/gas/i386/x86-64-disassem.d,
402 testsuite/gas/i386/x86-64-disp32.d,
403 testsuite/gas/i386/x86-64-gotpcrel-no-relax.d,
404 testsuite/gas/i386/x86-64-gotpcrel.d,
405 testsuite/gas/i386/x86-64-ifunc.d,
406 testsuite/gas/i386/x86-64-jump.d,
407 testsuite/gas/i386/x86-64-lfence-byte.d,
408 testsuite/gas/i386/x86-64-lfence-indbr-a.d,
409 testsuite/gas/i386/x86-64-lfence-indbr-b.d,
410 testsuite/gas/i386/x86-64-lfence-indbr-c.d,
411 testsuite/gas/i386/x86-64-lfence-load.d,
412 testsuite/gas/i386/x86-64-lfence-ret-a.d,
413 testsuite/gas/i386/x86-64-lfence-ret-b.d,
414 testsuite/gas/i386/x86-64-lfence-ret-c.d,
415 testsuite/gas/i386/x86-64-lfence-ret-d.d,
416 testsuite/gas/i386/x86-64-lfence-ret-e.d,
417 testsuite/gas/i386/x86-64-mpx-add-bnd-prefix.d,
418 testsuite/gas/i386/x86-64-mpx-branch-1.d,
419 testsuite/gas/i386/x86-64-mpx.d,
420 testsuite/gas/i386/x86-64-nop-3.d,
421 testsuite/gas/i386/x86-64-nop-4.d,
422 testsuite/gas/i386/x86-64-nop-5.d,
423 testsuite/gas/i386/x86-64-nops-7.d,
424 testsuite/gas/i386/x86-64-notrack.d,
425 testsuite/gas/i386/x86-64-opcode.d,
426 testsuite/gas/i386/x86-64-relax-2.d,
427 testsuite/gas/i386/x86-64-relax-3.d,
428 testsuite/gas/i386/x86-64-relax-4.d,
429 testsuite/gas/i386/x86-64-rtm.d,
430 testsuite/gas/i386/x86-64-stack.d,
431 testsuite/gas/i386/x86-64-unique.d,
432 testsuite/gas/i386/x86_64-intel.d: Adjust expectations.
433
434 2020-07-14 H.J. Lu <hongjiu.lu@intel.com>
435
436 PR gas/26237
437 * testsuite/gas/i386/addr32.s: Add tests for 32-bit wrapped around
438 address.
439 * testsuite/gas/i386/x86-64-addr32.s: Likewise.
440 * testsuite/gas/i386/addr32.d: Updated.
441 * testsuite/gas/i386/x86-64-addr32-intel.d: Likewise.
442 * testsuite/gas/i386/x86-64-addr32.d: Likewise.
443 * testsuite/gas/i386/ilp32/x86-64-addr32-intel.d: Likewise.
444 * testsuite/gas/i386/ilp32/x86-64-addr32.d: Likewise.
445
446 2020-07-14 Jan Beulich <jbeulich@suse.com>
447
448 * testsuite/gas/i386/intel.s: Use dr<N> instead of db<N>.
449 * testsuite/gas/i386/intel-intel.d: Disambiguate name.
450 * testsuite/gas/i386/intel.d,
451 testsuite/gas/i386/opcode-intel.d: Adjust expectations.
452
453 2020-07-14 Jan Beulich <jbeulich@suse.com>
454
455 * testsuite/gas/i386/prefix.d: Adjust expectations.
456
457 2020-07-14 Jan Beulich <jbeulich@suse.com>
458
459 * testsuite/gas/i386/x86-64-avx-intel.d,
460 testsuite/gas/i386/x86-64-sse4_2-intel.d: Adjust expectations.
461
462 2020-07-14 Jan Beulich <jbeulich@suse.com>
463
464 * testsuite/gas/i386/movbe-suffix.d,
465 testsuite/gas/i386/x86-64-movbe-suffix.d: New.
466 * testsuite/gas/i386/i386.exp: Run new tests.
467
468 2020-07-14 Jan Beulich <jbeulich@suse.com>
469
470 * testsuite/gas/i386/crc32-suffix.d,
471 testsuite/gas/i386/x86-64-crc32-suffix.d: New.
472 * testsuite/gas/i386/i386.exp: Run new tests.
473 * testsuite/gas/i386/arch-10-bdver1.d,
474 testsuite/gas/i386/arch-10-bdver2.d,
475 testsuite/gas/i386/arch-10-bdver3.d,
476 testsuite/gas/i386/arch-10-bdver4.d,
477 testsuite/gas/i386/arch-10-btver1.d,
478 testsuite/gas/i386/arch-10-btver2.d,
479 testsuite/gas/i386/arch-10-lzcnt.d,
480 testsuite/gas/i386/arch-10-prefetchw.d,
481 testsuite/gas/i386/arch-10.d, testsuite/gas/i386/arch-2.d,
482 testsuite/gas/i386/arch-3.d, testsuite/gas/i386/arch-5.d,
483 testsuite/gas/i386/arch-6.d, testsuite/gas/i386/crc32.d,
484 testsuite/gas/i386/sse-noavx.d, testsuite/gas/i386/sse4_2.d,
485 testsuite/gas/i386/x86-64-arch-2-bdver1.d,
486 testsuite/gas/i386/x86-64-arch-2-bdver2.d,
487 testsuite/gas/i386/x86-64-arch-2-bdver3.d,
488 testsuite/gas/i386/x86-64-arch-2-bdver4.d,
489 testsuite/gas/i386/x86-64-arch-2-btver1.d,
490 testsuite/gas/i386/x86-64-arch-2-btver2.d,
491 testsuite/gas/i386/x86-64-arch-2-lzcnt.d,
492 testsuite/gas/i386/x86-64-arch-2-prefetchw.d,
493 testsuite/gas/i386/x86-64-arch-2.d,
494 testsuite/gas/i386/x86-64-crc32.d,
495 testsuite/gas/i386/x86-64-pseudos.d,
496 testsuite/gas/i386/x86-64-sse-noavx.d,
497 testsuite/gas/i386/x86-64-sse4_2.d: Adjust expectations.
498
499 2020-07-14 Jan Beulich <jbeulich@suse.com>
500
501 * testsuite/gas/i386/x86-64-pseudos.s: Add empty-REX tests for
502 ModR/M-encoded byte register cases.
503 * testsuite/gas/i386/x86-64-pseudos.d,
504 testsuite/gas/i386/x86-64-reg-intel.d,
505 testsuite/gas/i386/x86-64-reg.d: Adjust expectations.
506
507 2020-07-14 Jan Beulich <jbeulich@suse.com>
508
509 * testsuite/gas/i386/x86-64-pseudos.s: Add empty-REX tests for
510 not-ModR/M-encoded byte register cases.
511 * testsuite/gas/i386/x86-64-pseudos.d: Adjust expectations.
512
513 2020-07-14 Jan Beulich <jbeulich@suse.com>
514
515 * testsuite/gas/i386/ilp32/x86-64-arch-1.d,
516 testsuite/gas/i386/ilp32/x86-64-arch-2.d,
517 testsuite/gas/i386/ilp32/x86-64-avx-intel.d,
518 testsuite/gas/i386/ilp32/x86-64-avx.d,
519 testsuite/gas/i386/ilp32/x86-64-crc32-intel.d,
520 testsuite/gas/i386/ilp32/x86-64-crc32.d,
521 testsuite/gas/i386/ilp32/x86-64-gotpcrel.d,
522 testsuite/gas/i386/ilp32/x86-64-ifunc.d,
523 testsuite/gas/i386/ilp32/x86-64-reg-intel.d,
524 testsuite/gas/i386/ilp32/x86-64-reg.d,
525 testsuite/gas/i386/ilp32/x86-64-rep-suffix.d,
526 testsuite/gas/i386/ilp32/x86-64-sse4_2-intel.d,
527 testsuite/gas/i386/ilp32/x86-64-sse4_2.d,
528 testsuite/gas/i386/ilp32/x86-64-stack-intel.d,
529 testsuite/gas/i386/ilp32/x86-64-stack-suffix.d,
530 testsuite/gas/i386/ilp32/x86-64-stack.d: Reference parent dir
531 dump expectations.
532
533 2020-07-13 H.J. Lu <hongjiu.lu@intel.com>
534
535 * config/tc-i386.c (offset_in_range): Remove 32-bit sign
536 extension.
537
538 2020-07-13 Nick Clifton <nickc@redhat.com>
539
540 * po/fr.po: Updated French translation.
541
542 2020-07-13 Alan Modra <amodra@gmail.com>
543
544 * testsuite/gas/elf/dwarf2-7.d: Remove most xfails.
545 * testsuite/gas/elf/dwarf2-12.d: Likewise.
546 * testsuite/gas/elf/dwarf2-13.d: Likewise.
547 * testsuite/gas/elf/dwarf2-14.d: Likewise.
548
549 2020-07-11 H.J. Lu <hongjiu.lu@intel.com>
550
551 * config/tc-i386.c (output_insn): Check i.xstate to set
552 GNU_PROPERTY_X86_FEATURE_2_TMM.
553 * testsuite/gas/i386/i386.exp: Run x86-64-property-7,
554 x86-64-property-8 and x86-64-property-9.
555 * testsuite/gas/i386/x86-64-property-7.d: New file.
556 * testsuite/gas/i386/x86-64-property-7.s: Likewise.
557 * testsuite/gas/i386/x86-64-property-8.d: Likewise.
558 * testsuite/gas/i386/x86-64-property-8.s: Likewise.
559 * testsuite/gas/i386/x86-64-property-9.d: Likewise.
560 * testsuite/gas/i386/x86-64-property-9.s: Likewise.
561
562 2020-07-10 H.J. Lu <hongjiu.lu@intel.com>
563
564 * config/tc-i386.c (_i386_insn): Remove has_regmmx, has_regxmm,
565 has_regymm, has_regzmm and has_regtmm. Add xstate.
566 (md_assemble): Set i.xstate from operand types in instruction
567 template.
568 (build_modrm_byte): Updated.
569 (output_insn): Check i.xstate.
570 * testsuite/gas/i386/i386.exp: Run property-6 and
571 x86-64-property-6.
572 * testsuite/gas/i386/property-6.d: New file.
573 * testsuite/gas/i386/property-6.s: Updated.
574 * testsuite/gas/i386/x86-64-property-6.d: Likewise.
575
576 2020-07-10 H.J. Lu <hongjiu.lu@intel.com>
577
578 * testsuite/gas/i386/property-5.d: Correct test name.
579
580 2020-07-10 Lili Cui <lili.cui@intel.com>
581
582 * NEWS: Mention support for Intel AMX instructions.
583 * config/tc-i386.c (i386_error): Add invalid_sib_address.
584 (cpu_arch): Add .amx_int8, .amx_bf16 and .amx_tile.
585 (cpu_noarch): Add noamx_int8, noamx_bf16 and noamx_tile.
586 (match_simd_size): Add tmmword check.
587 (operand_type_match): Add tmmword.
588 (type_names): Add rTMM.
589 (i386_error): Add invalid_tmm_register_set.
590 (check_VecOperands): Handle invalid_sib_address and
591 invalid_tmm_register_set.
592 (match_template): Handle invalid_sib_address.
593 (build_modrm_byte): Handle non-vector SIB and zmmword.
594 (i386_index_check): Disallow RegIP for non-vector SIB.
595 (check_register): Handle zmmword.
596 * doc/c-i386.texi: Document amx_int8, amx_bf16 and amx_tile.
597 * testsuite/gas/i386/i386.exp: Add AMX new tests.
598 * testsuite/gas/i386/intel-regs.d: Add tmm.
599 * testsuite/gas/i386/intel-regs.s: Add tmm.
600 * testsuite/gas/i386/x86-64-amx-intel.d: New.
601 * testsuite/gas/i386/x86-64-amx-inval.l: New.
602 * testsuite/gas/i386/x86-64-amx-inval.s: New.
603 * testsuite/gas/i386/x86-64-amx.d: New.
604 * testsuite/gas/i386/x86-64-amx.s: New.
605 * testsuite/gas/i386/x86-64-amx-bad.d: New.
606 * testsuite/gas/i386/x86-64-amx-bad.s: New.
607
608 2020-07-10 Tom de Vries <tdevries@suse.de>
609
610 * testsuite/gas/elf/dwarf2-11.d: Update expected output from
611 readelf's line table decoding.
612 * testsuite/gas/elf/dwarf2-12.d: Likewise.
613 * testsuite/gas/elf/dwarf2-13.d: Likewise.
614 * testsuite/gas/elf/dwarf2-14.d: Likewise.
615 * testsuite/gas/elf/dwarf2-15.d: Likewise.
616 * testsuite/gas/elf/dwarf2-16.d: Likewise.
617 * testsuite/gas/elf/dwarf2-17.d: Likewise.
618 * testsuite/gas/elf/dwarf2-18.d: Likewise.
619 * testsuite/gas/elf/dwarf2-19.d: Likewise.
620 * testsuite/gas/elf/dwarf2-5.d: Likewise.
621 * testsuite/gas/elf/dwarf2-6.d: Likewise.
622 * testsuite/gas/elf/dwarf2-7.d: Likewise.
623
624 2020-07-09 H.J. Lu <hongjiu.lu@intel.com>
625
626 * config/tc-i386.c (output_insn): Set YMM/ZMM features for
627 VEX/EVEX vector instructions.
628 * testsuite/gas/i386/property-4.d: New file.
629 * testsuite/gas/i386/property-4.s: Likewise.
630 * testsuite/gas/i386/property-5.d: Likewise.
631 * testsuite/gas/i386/property-5.s: Likewise.
632 * testsuite/gas/i386/x86-64-property-4.d: Likewise.
633 * testsuite/gas/i386/x86-64-property-5.d: Likewise.
634
635 2020-07-09 H.J. Lu <hongjiu.lu@intel.com>
636
637 * NEWS: Mention --enable-x86-used-note.
638 * configure.ac: Configure with --enable-x86-used-note by default
639 for Linux/x86.
640 * configure: Regenerated.
641
642 2020-07-09 Alan Modra <amodra@gmail.com>
643
644 * config/obj-coff.h: Remove TE_PE support.
645 * config/tc-ppc.c: Likewise.
646 * config/tc-ppc.h: Likewise.
647 * configure.tgt: Remove powerpc PE and powerpc lynxos.
648 * testsuite/gas/cfi/cfi.exp (cfi-common-6): Remove powerpc PE
649 condition.
650 * testsuite/gas/macros/macros.exp: Don't xfail powerpc PE.
651
652 2020-07-08 Jan Beulich <jbeulich@suse.com>
653
654 * testsuite/gas/i386/fma4-lig.d, testsuite/gas/i386/xop-lig.d:
655 New.
656 * testsuite/gas/i386/i386.exp: Run new tests.
657
658 2020-07-07 Claudiu Zissulescu <claziss@synopsys.com>
659
660 * config/tc-arc.c (find_opcode_match): Add error messages.
661 * testsuite/gas/arc/add_s-err.s: Update test.
662 * testsuite/gas/arc/asm-errors.err: Likewise.
663 * testsuite/gas/arc/cpu-em-err.s: Likewise.
664 * testsuite/gas/arc/hregs-err.s: Likewise.
665 * testsuite/gas/arc/warn.s: Likewise.
666
667 2020-07-07 H.J. Lu <hongjiu.lu@intel.com>
668
669 PR gas/26212
670 * doc/c-i386.texi: Remove an incorrect AVX2 entry.
671
672 2020-07-07 Alan Modra <amodra@gmail.com>
673
674 * testsuite/gas/all/gas.exp: Use is_xcoff_format.
675 * testsuite/gas/ppc/ppc.exp: Likewise.
676 * testsuite/gas/all/weakref1l.d: Likewise.
677
678 2020-07-07 Nick Clifton <nickc@redhat.com>
679
680 * testsuite/gas/arm/cde-missing-fp.l: Fix spelling mistake in
681 expected output.
682
683 2020-07-06 Jan Beulich <jbeulich@suse.com>
684
685 * testsuite/gas/i386/x86-64-avx512bw-wig1.d,
686 testsuite/gas/i386/x86-64-avx512bw-wig1-intel.d,
687 testsuite/gas/i386/x86-64-evex-wig1.d,
688 testsuite/gas/i386/x86-64-evex-wig1-intel.d: Adjust
689 expectations.
690
691 2020-07-06 Jan Beulich <jbeulich@suse.com>
692
693 * testsuite/gas/i386/avx512f-opts.s: Add EVEX movq tests.
694 * testsuite/gas/i386/x86-64-avx512f-opts.s: Add blank line.
695 * testsuite/gas/i386/avx512f-opts-intel.d,
696 testsuite/gas/i386/avx512f-opts.d
697 testsuite/gas/i386/x86-64-avx512f-opts-intel.d
698 testsuite/gas/i386/x86-64-avx512f-opts.d: Adjust expectations.
699
700 2020-07-06 Yuri Chornoivan <yurchor@ukr.net>
701
702 PR 26204
703 * config/tc-arm.c: Fix spelling mistake.
704 * config/tc-riscv.c: Likewise.
705 * config/tc-z80.c: Likewise.
706 * po/gas.pot: Regenerate.
707
708 2020-07-06 Nick Clifton <nickc@redhat.com>
709
710 * po/uk.po: Updated Ukranian translation.
711
712 2020-07-04 Nick Clifton <nickc@redhat.com>
713
714 * configure: Regenerate.
715 * po/gas.pot: Regenerate.
716
717 2020-07-04 Nick Clifton <nickc@redhat.com>
718
719 * version.m4: Change version number to 2.35.50.
720 * configure: Regenerate.
721 * po/bfd.pot: Regenerate.
722
723 2020-07-04 Nick Clifton <nickc@redhat.com>
724
725 Binutils 2.35 branch created.
726
727 2020-07-03 Alan Modra <amodra@gmail.com>
728
729 PR 26028
730 * testsuite/gas/ia64/unwind-ilp32.d: Add -T to readelf options.
731
732 2020-07-02 H.J. Lu <hongjiu.lu@intel.com>
733
734 * config/tc-i386.c (build_modrm_byte): Check vexswapsources to
735 swap two source operands.
736
737 2020-07-02 Nick Clifton <nickc@redhat.com>
738
739 * testsuite/gas/all/fill-1.d: Skip for MeP targets.
740
741 2020-07-02 Alex Coplan <alex.coplan@arm.com>
742
743 * config/tc-aarch64.c (reg_name_p): Fix cast so that we don't
744 segfault on negative chars.
745 * testsuite/gas/aarch64/reglike-label-unicode-segv.d: New test.
746 * testsuite/gas/aarch64/reglike-label-unicode-segv.s: Input.
747
748 2020-07-02 Nick Clifton <nickc@redhat.com>
749
750 PR 26028
751 * testsuite/gas/ia64/group-2.d: Add -T option to readelf
752 command line.
753 * testsuite/gas/ia64/unwind.d: Likewise.
754 * testsuite/gas/mmix/bspec-1.d: Likewise.
755 * testsuite/gas/mmix/bspec-2.d: Likewise.
756 * testsuite/gas/mmix/comment-1.d: Likewise.
757 * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
758
759 2020-07-01 Alan Modra <amodra@gmail.com>
760
761 * config/tc-xc16x.c (md_apply_fix): Add FIXME.
762
763 2020-07-01 Alan Modra <amodra@gmail.com>
764
765 * testsuite/gas/all/eqv-dot.d: xfail targets that set linkrelax
766 in data sections, and mep.
767
768 2020-06-30 H.J. Lu <hongjiu.lu@intel.com>
769
770 * NEWS: Mention x86 NaCl target support removal.
771 * config/tc-i386.c: Remove x86 NaCl target support.
772 * config/tc-i386.h: Likewise.
773 * configure.tgt: Likewise.
774 * testsuite/gas/i386/i386.exp: Likewise.
775 * testsuite/gas/i386/iamcu-1.d: Likewise.
776 * testsuite/gas/i386/iamcu-2.d: Likewise.
777 * testsuite/gas/i386/iamcu-3.d: Likewise.
778 * testsuite/gas/i386/iamcu-4.d: Likewise.
779 * testsuite/gas/i386/iamcu-5.d: Likewise.
780 * testsuite/gas/i386/k1om.d: Likewise.
781 * testsuite/gas/i386/l1om.d: Likewise.
782
783 2020-06-30 Nelson Chu <nelson.chu@sifive.com>
784
785 * config/tc-riscv.c (riscv_csr_class_check): Removed. Move the
786 checking into riscv_csr_address.
787 (riscv_csr_version_check): Likewise.
788 (riscv_csr_address): New function. Return the suitable CSR address
789 after checking the ISA dependency and versions. Issue warnings if
790 we find any conflict and -mcsr-check is set. CSR_CLASS_F and
791 CSR_CLASS_DEBUG are unprivileged CSR for now, so don't check the
792 priv spec versions for them.
793 (reg_csr_lookup_internal): Call riscv_csr_address to find the
794 suitable CSR address.
795 * testsuite/gas/riscv/priv-reg-fail-fext.d: Remove -mpriv-spec=1.11.
796 * testsuite/gas/riscv/priv-reg-fail-read-only-01.d: Likewise.
797 * testsuite/gas/riscv/priv-reg-fail-rv32-only.d: Likewise.
798 * testsuite/gas/riscv/priv-reg-fail-fext.l: We don't care the
799 priv spec warnings here. These warnings are added by accident.
800 Remove them and only focus on the ISA dependency warnings.
801 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
802 * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
803 * testsuite/gas/riscv/priv-reg-fail-version-1p9.l: Updated since
804 dscratch0 and dscratch1 are regarded as the unprivileged CSR rather
805 than the privileged ones.
806 * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
807 * testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
808 * testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
809 * testsuite/gas/riscv/priv-reg.s: Likewise. Add missing debug CSR.
810 * testsuite/gas/riscv/priv-reg-version-1p9.d: Likewise.
811 * testsuite/gas/riscv/priv-reg-version-1p9p1.d: Likewise.
812 * testsuite/gas/riscv/priv-reg-version-1p10.d: Likewise.
813 * testsuite/gas/riscv/priv-reg-version-1p11.d: Likewise.
814 * testsuite/gas/riscv/csr-dw-regnums.d: Likewise.
815 * testsuite/gas/riscv/csr-dw-regnums.s: Likewise.
816
817 2020-06-29 H.J. Lu <hongjiu.lu@intel.com>
818
819 * tc-i386.c (build_vex_prefix): Support VEX base opcode length > 1.
820 (md_assemble): Don't process ImmExt without operands.
821
822 2020-06-29 Hans-Peter Nilsson <hp@bitrange.com>
823
824 PR gas/25331
825 * config/tc-mmix.c (md_assemble) <fixup for
826 BFD_RELOC_MMIX_BASE_PLUS_OFFSET>: This fixup affects 1 byte, not 8.
827 Also, set its fx_no_overflow.
828 (md_convert_frag) <case ENCODE_RELAX (STATE_PUSHJSTUB, STATE_ZERO)>:
829 Similarly this fixup affects 4 bytes, not 8 and needs its
830 fx_no_overflow set.
831 * config/tc-mmix.h (TC_FX_SIZE_SLACK): Don't define.
832 * testsuite/gas/mmix/pr25331.d, testsuite/gas/mmix/pr25331.s: New test.
833
834 2020-06-29 Alan Modra <amodra@gmail.com>
835
836 * config/tc-s12z.c: Use C style comments.
837 * config/tc-z80.c: Likewise.
838 * config/tc-xtensa.c (emit_ld_r_n): Remove commented out code.
839
840 2020-06-26 H.J. Lu <hongjiu.lu@intel.com>
841
842 * config/tc-i386.c (md_assemble): Process ImmExt without
843 operands.
844
845 2020-06-26 H.J. Lu <hongjiu.lu@intel.com>
846
847 * config/tc-i386.c (check_VecOperands): Replace vecsib with sib.
848 Replace VecSIB128, VecSIB256 and VecSIB512 with VECSIB128,
849 VECSIB256 and VECSIB512, respectively.
850 (build_modrm_byte): Replace vecsib with sib.
851
852 2020-06-26 Jan Beulich <jbeulich@suse.com>
853
854 * testsuite/gas/i386/nop-1-suffix.d: New.
855 * testsuite/gas/i386/i386.exp: Run new test.
856
857 2020-06-26 Pat Bernardi <bernardi@adacore.com>
858
859 * config/tc-m68k.c (m68k_elf_gnu_attribute): New function.
860 (md_pseudo_table): Handle "gnu_attribute".
861 * doc/as.texi: Document GNU attribute for M68K.
862
863 2020-06-25 Nick Clifton <nickc@redhat.com>
864
865 PR 26141
866 * config/tc-arm.c (arm_force_relocation): Force resolution of
867 BFD_RELOC_THUMB_PCREL_BRANCH12 relocations.
868 * testsuite/gas/arm/plt-1.d: Adjust expected disassembly.
869
870 2020-06-25 Jan Beulich <jbeulich@suse.com>
871
872 * config/tc-i386.c (md_assemble): Move call to process_immext()
873 ...
874 (process_operands): ... here.
875
876 2020-06-25 Jan Beulich <jbeulich@suse.com>
877
878 * config/tc-i386.c (process_suffix): Skip ambiguous operand size
879 diagnostic when there is a sizing prefix. Switch to word/dword/
880 qword encoding when there is a sizing prefix and no (explicit or
881 derived) suffix.
882 (update_imm): Handle presence of a sizing prefix.
883 * testsuite/gas/i386/noreg16-data32.d,
884 testsuite/gas/i386/noreg32-data16.d,
885 testsuite/gas/i386/noreg32-data16.e,
886 testsuite/gas/i386/noreg64-data16.d,
887 testsuite/gas/i386/noreg64-data16.e,
888 testsuite/gas/i386/noreg64-rex64.d: New.
889 * testsuite/gas/i386/i386.exp: Run new tests.
890 * testsuite/gas/i386/noreg32.s, testsuite/gas/i386/noreg64.s:
891 Introduce and use pfx* macros.
892 * testsuite/gas/i386/noreg16.s: Likewise. Replace 32-bit
893 addressing.
894 * testsuite/gas/i386/noreg16.d: Adjust expectations.
895
896 2020-06-25 Jan Beulich <jbeulich@suse.com>
897
898 * testsuite/gas/i386/avx-16bit.d,
899 testsuite/gas/i386/avx-scalar.d, testsuite/gas/i386/avx.d,
900 testsuite/gas/i386/avx512f-16bit.d,
901 testsuite/gas/i386/avx512f.d,
902 testsuite/gas/i386/evex-lig256.d,
903 testsuite/gas/i386/evex-lig512.d
904 testsuite/gas/i386/evex-wig1.d, testsuite/gas/i386/katmai.d,
905 testsuite/gas/i386/noreg16.d, testsuite/gas/i386/noreg32.d,
906 testsuite/gas/i386/ptwrite.d, testsuite/gas/i386/simd.d,
907 testsuite/gas/i386/sse2-16bit.d,
908 testsuite/gas/i386/sse2.d, testsuite/gas/i386/sse2avx.d: Adjust
909 expectations.
910
911 2020-06-25 Jan Beulich <jbeulich@suse.com>
912
913 * config/tc-i386.c (md_assemble): Also reject explicit REX
914 prefixes with VEX and alike encoded insns. Zap consumed bits
915 from i.rex.
916 (output_insn): Don't ignore REX prefix for VEX and alike
917 encodings; abort() instead if encountered.
918 * testsuite/gas/i386/x86-64-pseudos.s: Move REX-with-VEX cases
919 ...
920 * testsuite/gas/i386/x86-64-pseudos-bad.s: ... here.
921 * testsuite/gas/i386/x86-64-pseudos.d,
922 testsuite/gas/i386/x86-64-pseudos-bad.l: Adjust expectations.
923
924 2020-06-25 Jan Beulich <jbeulich@suse.com>
925
926 * config/tc-i386.c (process_operands): Translate explicit REX
927 prefix into i.rex for SSE2AVX templates.
928 (set_rex_vrex): New helper.
929 (build_modrm_byte): Use it.
930 * testsuite/gas/i386/x86-64-sse2avx.s: Add cases with explict
931 REX prefixes.
932 * testsuite/gas/i386/x86-64-sse2avx.d: Adjust expectations.
933
934 2020-06-25 Jan Beulich <jbeulich@suse.com>
935
936 * config/tc-i386.c (cpu_flags_match): Only match SSE2AVX
937 templates when there's no data size prefix.
938 (md_assemble): Reject data size prefix also for legacy encoded
939 SIMD templates.
940 * testsuite/gas/i386/prefix32.s, testsuite/gas/i386/prefix64.s:
941 Uncomment previously not working line.
942 * testsuite/gas/i386/sse2avx.s: Add ldmxcsr/stmxcsr cases with
943 data16 prefix.
944 * testsuite/gas/i386/prefix32.l, testsuite/gas/i386/prefix64.l,
945 testsuite/gas/i386/sse2avx.d: Adjust expectations.
946
947 2020-06-25 Jan Beulich <jbeulich@suse.com>
948
949 * config/tc-i386.c (build_evex_prefix): Drop early setting of
950 vec_length.
951
952 2020-06-23 Nelson Chu <nelson.chu@sifive.com>
953
954 * config/tc-riscv.c (explicit_priv_attr): Rename explicit_csr to
955 explicit_priv_attr. It used to indicate CSR or priv instructions are
956 explictly used.
957 (riscv_is_priv_insn): Return True if it is a privileged instruction.
958 (riscv_ip): Call riscv_is_priv_insn to check whether the instruction
959 is privileged or not. If it is, then set explicit_priv_attr to TRUE.
960 (riscv_write_out_attrs): Clarification of when to generate the elf
961 priv spec attributes.
962 * testsuite/gas/riscv/attribute-11.s: Add comments.
963 * testsuite/gas/riscv/attribute-14.s: New testcase. Use symbol
964 `priv_insn_<n>` to decide which priv instruction is expected to used.
965 (<n> is a to e.)
966 * testsuite/gas/riscv/attribute-14a.d: Likewise.
967 * testsuite/gas/riscv/attribute-14b.d: Likewise.
968 * testsuite/gas/riscv/attribute-14c.d: Likewise.
969 * testsuite/gas/riscv/attribute-14d.d: Likewise.
970 * testsuite/gas/riscv/attribute-14e.d: Likewise.
971
972 2020-06-22 Nelson Chu <nelson.chu@sifive.com>
973
974 * config/tc-riscv.c (buf_size, buf): Remove the unused variables.
975 (riscv_set_default_priv_spec): Get the priv spec version from the
976 priv spec attributes by riscv_get_priv_spec_class_from_numbers.
977
978 2020-06-20 Alan Modra <amodra@gmail.com>
979
980 * configure.tgt: Set bfd_gas for all SH targets.
981
982 2020-06-18 Jan Beulich <jbeulich@suse.com>
983
984 * testsuite/gas/i386/arch-13.s: Add alternative VMGEXIT case.
985 * testsuite/gas/i386/arch-13.d: Extend -march=. Adjust
986 expectations.
987
988 2020-06-16 Lili Cui <lili.cui@intel.com>
989
990 * config/tc-i386.c (cpu_arch): Correct noavx512_vp2intersect
991 cpu_arch to CPU_ANY_VP2INTERSECT_FLAGS.
992 * doc/c-i386.texi: Add avx512_vp2intersect.
993
994 2020-06-16 Jan Beulich <jbeulich@suse.com>
995
996 * config/tc-i386.c (md_assemble): Drop SSE4a from SSE check
997 conditional.
998 * testsuite/gas/i386/sse-check.s: Adjust comment.
999 * testsuite/gas/i386/sse-check-error.l,
1000 testsuite/gas/i386/sse-check-warn.e,
1001 testsuite/gas/i386/x86-64-sse-check-error.l: Adjust
1002 expectations.
1003
1004 2020-06-16 Alan Modra <amodra@gmail.com>
1005
1006 * config/tc-tic30.h: Remove OBJ_AOUT support.
1007 * configure.tgt: Delete tic30-*-*aout* entry.
1008
1009 2020-06-15 Max Filippov <jcmvbkbc@gmail.com>
1010
1011 * config/tc-xtensa.c (XTHAL_ABI_WINDOWED, XTHAL_ABI_CALL0): New
1012 macros.
1013 (elf32xtensa_abi): New declaration.
1014 (option_abi_windowed, option_abi_call0): New enum constants.
1015 (md_longopts): Add entries for --abi-windowed and --abi-call0.
1016 (md_parse_option): Add handlers for --abi-windowed and
1017 --abi-call0.
1018 (xtensa_add_config_info): Use xtensa_abi_choice instead of
1019 XSHAL_ABI to format ABI tag.
1020 * doc/as.texi (Target Xtensa options): Add --abi-windowed and
1021 --abi-call0 to the list of options.
1022 * doc/c-xtensa.texi: Add description for options --abi-windowed
1023 and --abi-call0.
1024 * testsuite/gas/xtensa/abi-call0.d: New test definition.
1025 * testsuite/gas/xtensa/abi-windowed.d: New test definition.
1026 * testsuite/gas/xtensa/abi.s: New test source.
1027
1028 2020-06-14 H.J. Lu <hongjiu.lu@intel.com>
1029
1030 PR gas/26115
1031 * testsuite/gas/i386/tsxldtrk.d: Replace xsuspldtrk with
1032 xsusldtrk.
1033 * testsuite/gas/i386/tsxldtrk.s: Likewise.
1034 * testsuite/gas/i386/x86-64-tsxldtrk.d: Likewise.
1035 * testsuite/gas/i386/x86-64-tsxldtrk.s: Likewise.
1036
1037 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
1038
1039 * testsuite/gas/riscv/priv-reg-fail-version-1p9.d: Removed.
1040 * testsuite/gas/riscv/priv-reg-fail-version-1p9.l: Likewise.
1041 * testsuite/gas/riscv/priv-reg-version-1p9.d: Likewise.
1042
1043 2020-06-09 Seth Girvan <snth@snthhacks.com>
1044
1045 * doc/c-avr.texi: Improve wording.
1046
1047 2020-06-09 Jan Beulich <jbeulich@suse.com>
1048
1049 * testsuite/gas/i386/x86-64-pseudos-bad.s,
1050 testsuite/gas/i386/x86-64-pseudos-bad.l: New.
1051
1052 2020-06-09 Jan Beulich <jbeulich@suse.com>
1053
1054 * testsuite/gas/i386/prefix.s: Add bogus prefix-with-VEX/EVEX
1055 encoding tests.
1056 * testsuite/gas/i386/prefix.d: Adjust expectations.
1057
1058 2020-06-09 Jan Beulich <jbeulich@suse.com>
1059
1060 * testsuite/gas/i386/prefix.s: Add bogus REP / EVEX.W prefix
1061 with VEX/EVEX encoding tests.
1062 * testsuite/gas/i386/prefix.d: Adjust expectations.
1063
1064 2020-06-09 Jan Beulich <jbeulich@suse.com>
1065
1066 * config/tc-i386.c (process_suffix): Restrict defaulting to 'q'
1067 suffix.
1068 * testsuite/gas/i386/noreg64.s: Add lcall/ljmp cases.
1069 * testsuite/gas/i386/noreg64.d: Adjust expectations.
1070 * testsuite/gas/i386/noreg-intel64.d,
1071 testsuite/gas/i386/noreg-intel64.l,
1072 testsuite/gas/i386/noreg-intel64.s: New.
1073 * testsuite/gas/i386/i386.exp: Run new tests.
1074
1075 2020-06-09 Jan Beulich <jbeulich@suse.com>
1076
1077 * config/tc-i386.c (vex_encoding_error): New enumerator.
1078 (VEX_check_operands): Rename to VEX_check_encoding. Check
1079 for vex_encoding_error. Move Imm4 handling ...
1080 (check_VecOperands): ... here.
1081 (match_template): Call VEX_check_encoding when there are no
1082 operands. Split construct calling check_VecOperands and
1083 VEX_check_encoding (when there are operands).
1084 (check_register): Don't blindly set vex_encoding_evex.
1085 * testsuite/gas/i386/pseudos-bad.s,
1086 testsuite/gas/i386/pseudos-bad.l: New.
1087 * testsuite/gas/i386/i386.exp: Run new test.
1088 * testsuite/gas/i386/xmmhi64.s: Drop {vex2}.
1089
1090 2020-06-08 Alex Coplan <alex.coplan@arm.com>
1091
1092 * config/tc-arm.c (insns): Add dfb.
1093 * testsuite/gas/arm/dfb.d: New test.
1094 * testsuite/gas/arm/dfb.s: Input for test.
1095
1096 2020-06-08 Nick Clifton <nickc@redhat.com>
1097
1098 * testsuite/gas/cfi/cfi-i386-2.d: Skip for PE based targets.
1099
1100 2020-06-08 Jan Beulich <jbeulich@suse.com>
1101
1102 * config/tc-i386.c (pi): Add checks for RegMask and RegBND.
1103
1104 2020-06-08 Jan Beulich <jbeulich@suse.com>
1105
1106 * config/tc-i386.c (check_byte_reg): Drop dead conditional
1107 around as_bad().
1108
1109 2020-06-08 Jan Beulich <jbeulich@suse.com>
1110
1111 * config/tc-i386.c (check_register): Split RegTR handling, to
1112 fail recognition also in 64-bit mode as well as with i586 or
1113 i686 explicitly enabled.
1114 * testsuite/gas/i386/x86_64.s: Add insns referencing tr<N>.
1115 * testsuite/gas/i386/x86_64-intel.d,
1116 testsuite/gas/i386/x86_64.d: Adjust expectations.
1117
1118 2020-06-08 Jan Beulich <jbeulich@suse.com>
1119
1120 * testsuite/gas/cfi/cfi-i386-2.d: Adjust expectations.
1121 * testsuite/gas/cfi/cfi.exp: Run this test.
1122
1123 2020-06-08 Jan Beulich <jbeulich@suse.com>
1124
1125 * config/tc-i386.c (parse_real_register): Add allow_pseudo_reg
1126 check to %st(N) parsing logic.
1127 * testsuite/gas/cfi/cfi-i386.s: Set "generic32" arch.
1128
1129 2020-06-08 Jan Beulich <jbeulich@suse.com>
1130
1131 * config/tc-i386.c (bad_reg): New.
1132 (check_VecOperations, i386_att_operand, i386_parse_name): Check
1133 for it.
1134 (check_register): New, broken out from ...
1135 (parse_real_register): ... here. Call it.
1136 (parse_register): Call it, and error upon failure.
1137 * testsuite/gas/i386/equ-bad.s, testsuite/gas/i386/equ-bad.l,
1138 testsuite/gas/i386/x86-64-equ-bad.s,
1139 testsuite/gas/i386/x86-64-equ-bad.l: New.
1140 * testsuite/gas/i386/i386.exp: Run new tests.
1141
1142 2020-06-06 Alan Modra <amodra@gmail.com>
1143
1144 * config/tc-ppc.c (md_show_usage): Mention -mpower10 and -mpwr10.
1145 * doc/c-ppc.texi: Likewise.
1146
1147 2020-06-06 Alan Modra <amodra@gmail.com>
1148
1149 * config/tc-ppc.c: Update throughout for reloc renaming.
1150
1151 2020-06-05 Jose E. Marchesi <jose.marchesi@oracle.com>
1152
1153 * config/tc-bpf.c (md_apply_fix): Avoid GCC 10 warning
1154 stringop-overflow.
1155
1156 2020-06-05 Nelson Chu <nelson.chu@sifive.com>
1157
1158 * config/tc-riscv.c (explicit_csr): New static boolean.
1159 Used to indicate CSR are explictly used.
1160 (riscv_ip): Set explicit_csr to TRUE if any CSR is used.
1161 (riscv_write_out_attrs): If we already have set elf priv
1162 attributes, then generate them. Otherwise, don't generate
1163 them when no CSR are used.
1164 * testsuite/gas/riscv/attribute-01.d: Remove the priv attributes.
1165 * testsuite/gas/riscv/attribute-02.d: Likewise.
1166 * testsuite/gas/riscv/attribute-03.d: Likewise.
1167 * testsuite/gas/riscv/attribute-04.d: Likewise.
1168 * testsuite/gas/riscv/attribute-05.d: Likewise.
1169 * testsuite/gas/riscv/attribute-06.d: Likewise.
1170 * testsuite/gas/riscv/attribute-07.d: Likewise.
1171 * testsuite/gas/riscv/attribute-08.d: Likewise.
1172 * testsuite/gas/riscv/attribute-09.d: Likewise.
1173 * testsuite/gas/riscv/attribute-10.d: Likewise.
1174 * testsuite/gas/riscv/attribute-unknown.d: Likewise.
1175 * testsuite/gas/riscv/attribute-11.s: New testcase.
1176 * testsuite/gas/riscv/attribute-11.d: New testcase. The CSR is
1177 used, so we should output the ELF priv attributes.
1178 * testsuite/gas/riscv/attribute-12.d: New testcase. The CSR is
1179 used, so output the priv attributes according to the -mpriv-spec.
1180 * testsuite/gas/riscv/attribute-13.d: New testcase. The CSR isn't
1181 used, so ignore the -mpriv-spec setting.
1182
1183 2020-06-04 H.J. Lu <hongjiu.lu@intel.com>
1184
1185 * config/tc-ip2k. (ip2k_apply_fix): Pass endianness to
1186 cgen_get_insn_value.
1187 * config/tc-xstormy16.c (xstormy16_md_apply_fix): Pass
1188 endianness to cgen_get_insn_value and cgen_put_insn_value.
1189
1190 2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1191
1192 * config/tc-bpf.c (md_apply_fix): Simplify and avoid using
1193 cgen_put_insn_value.
1194
1195 2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1196
1197 * config/tc-bpf.c (md_begin): Pass CGEN_CPU_OPEN_INSN_ENDIAN to
1198 bpf_cgen_cpu_open.
1199 (md_assemble): Remove no longer needed hack.
1200
1201 2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1202
1203 * cgen.c (gas_cgen_finish_insn): Pass the endianness to
1204 cgen_put_insn_value.
1205 (gas_cgen_md_apply_fix): Likewise.
1206 (gas_cgen_md_apply_fix): Likewise.
1207 * config/tc-bpf.c (md_apply_fix): Pass data endianness to
1208 cgen_put_insn_value.
1209 * config/tc-mep.c (mep_check_ivc2_scheduling): Pass endianness to
1210 cgen_put_insn_value.
1211
1212 2020-06-04 Alan Modra <amodra@gmail.com>
1213
1214 * testsuite/config/default.exp: Remove global directive outside
1215 proc body.
1216 * testsuite/gas/mep/complex-relocs.exp: Likewise.
1217 * testsuite/gas/microblaze/relax_size.exp: Likewise.
1218 * testsuite/gas/microblaze/reloc_sym.exp: Likewise.
1219 * testsuite/gas/mt/relocs.exp: Likewise.
1220 * testsuite/gas/rx/rx.exp: Likewise.
1221
1222 2020-06-03 Stephen Casner <casner@acm.org>
1223
1224 * doc/c-riscv.texi (RISC-V-Options): Fix non-ASCII apostrophe.
1225
1226 2020-06-02 Frédéric Pétrot <frederic.petrot@univ-grenoble-alpes.fr>
1227 Jim Wilson <jimw@sifive.com>
1228
1229 PR 26051
1230 * doc/c-riscv.texi (RISC-V-Formats): Add missing I format using
1231 simm12(rs1). Correct S format to use simm12(rs1). Drop SB and B
1232 formats using simm12(rs1). Correct SB and B to use rs1 and rs2.
1233 Move B before SB. Move J before UJ.
1234
1235 2020-06-01 Alex Coplan <alex.coplan@arm.com>
1236
1237 * write.c (relax_segment): Fix handling of negative offset when
1238 relaxing an rs_org frag.
1239 * testsuite/gas/aarch64/org-neg.d: New test.
1240 * testsuite/gas/aarch64/org-neg.l: Error output for test.
1241 * testsuite/gas/aarch64/org-neg.s: Input for test.
1242 * testsuite/gas/arm/org-neg.d: New test.
1243 * testsuite/gas/arm/org-neg.l: Error output for test.
1244 * testsuite/gas/arm/org-neg.s: Input for test.
1245
1246 2020-05-28 Stephen Casner <casner@acm.org>
1247
1248 Fix unexpected failures in gas testsuite for pdp11-aout target.
1249 These are caused by the PDP11's mix of little-endian octets in
1250 shorts but shorts in big endian order for long or quad.
1251
1252 * config/tc-pdp11.c (md_number_to_chars): Implement .quad
1253 * testsuite/gas/all/gas.exp: Select alternate test scripts for
1254 pdp11, skip octa test completely.
1255 * testsuite/gas/all/eqv-dot-pdp11.s: Identical to eqv-dot.s
1256 * testsuite/gas/all/eqv-dot-pdp11.d: Match different octet order.
1257 * testsuite/gas/all/cond-pdp11.l: Match different octet order.
1258
1259 2020-05-28 Alex Coplan <alex.coplan@arm.com>
1260
1261 * frags.c (frag_grow): Fix comment.
1262
1263 2020-05-27 Stephen Casner <casner@acm.org>
1264
1265 PR gas/26001
1266 * config/tc-pdp11.c (parse_reg): Distinguish register names from
1267 symbols that begin with a register name.
1268 * testsuite/gas/pdp11/pdp11.exp: Add test of such symbols.
1269 * testsuite/gas/pdp11/pr26001.s: Likewise.
1270 * testsuite/gas/pdp11/pr26001.d: Likewise.
1271
1272 2020-05-27 Simon Cook <simon.cook@embecosm.com>
1273
1274 * config/tc-riscv.c (riscv_init_csr_hash): NULL initilize next
1275 pointer when creating struct riscv_csr_extra.
1276
1277 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
1278
1279 * testsuite/gas/i386/align-branch-9.d: Updated for PECOFF.
1280 * testsuite/gas/i386/inval-avx512f.s: Add .p2align for PECOFF.
1281 * testsuite/gas/i386/inval-avx512f.l: Updated.
1282
1283 2020-05-26 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
1284
1285 * testsuite/gas/s390/zarch-z13.d: Add regexp checks for vector
1286 load/store instruction variants with alignment hints.
1287 * testsuite/gas/s390/zarch-z13.s: Emit new vector load/store
1288 instruction variants with alignment hints.
1289
1290 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
1291
1292 PR gas/26044
1293 * config/tc-xgate.c (md_apply_fix): Check BFD_RELOC_XGATE_PCREL_X
1294 instead of R_XGATE_PCREL_X.
1295 (xgate_parse_operand): Replace R_XGATE_PCREL_X with
1296 BFD_RELOC_XGATE_PCREL_X.
1297
1298 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
1299
1300 PR gas/26044
1301 * config/tc-visium.c (md_convert_frag): Replace fragP->fr_literal
1302 with &fragP->fr_literal[0].
1303
1304 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
1305
1306 PR gas/26044
1307 * config/tc-vax.c (md_estimate_size_before_relax): Replace
1308 fragP->fr_literal with &fragP->fr_literal[0].
1309 (md_convert_frag): Likewise.
1310
1311 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
1312
1313 PR gas/26044
1314 * config/tc-v850.c (md_convert_frag): Replace fragP->fr_literal
1315 with &fragP->fr_literal[0].
1316
1317 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
1318
1319 PR gas/26044
1320 * config/tc-crx.c (getreg_image): Change argument type to int.
1321 (md_convert_frag): Replace fragP->fr_literal with
1322 &fragP->fr_literal[0].
1323
1324 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
1325
1326 PR gas/26044
1327 * onfig/tc-score.c (s3_do_macro_bcmp): Replace overlapping
1328 sprintf with memmove.
1329
1330 2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
1331
1332 * config/tc-mcore.c (md_convert_frag): Replace fragP->fr_literal
1333 with &fragP->fr_literal[0].
1334
1335 2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
1336
1337 PR gas/26041
1338 * config/tc-cr16.c (md_assemble): Use memmove to concatenate
1339 2 overlapping strings.
1340
1341 2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
1342
1343 * config/tc-cr16.c (md_convert_frag): Replace fragP->fr_literal
1344 with &fragP->fr_literal[0].
1345
1346 2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
1347
1348 * config/tc-csky.c (md_convert_frag): Replace fragp->fr_literal
1349 with &fragp->fr_literal[0].
1350 * config/tc-microblaze.c (md_apply_fix): Likewise.
1351 * config/tc-sh.c (md_convert_frag): Likewise.
1352
1353 2020-05-24 Jim Wilson <jimw@sifive.com>
1354
1355 PR 26025
1356 * config/tc-riscv.c (riscv_pre_output_hook): Change s type from const
1357 asection to segT. New locals seg and subseg. Call subseg_set before
1358 fix_new_exp. Call subseg_set after loop to restore original values.
1359
1360 2020-05-21 Alan Modra <amodra@gmail.com>
1361
1362 * atof-generic.c: Replace "if (x) free (x)" with "free (x)"
1363 throughout.
1364 * config/obj-elf.c: Likewise.
1365 * config/tc-aarch64.c: Likewise.
1366 * config/tc-arm.c: Likewise.
1367 * config/tc-m68k.c: Likewise.
1368 * config/tc-nios2.c: Likewise.
1369 * config/tc-tic30.c: Likewise.
1370 * ecoff.c: Likewise.
1371 * read.c: Likewise.
1372 * stabs.c: Likewise.
1373 * symbols.c: Likewise.
1374 * testsuite/gas/all/test-gen.c: Likewise.
1375
1376 2020-05-20 Nelson Chu <nelson.chu@sifive.com>
1377
1378 * testsuite/gas/riscv/priv-reg-fail-read-only-01.s: Updated.
1379 * config/tc-riscv.c (default_arch_with_ext, default_isa_spec):
1380 Static variables which are used to set the ISA extensions. You can
1381 use -march (or ELF build attributes) and -misa-spec to set them,
1382 respectively.
1383 (ext_version_hash): The hash table used to handle the extensions
1384 with versions.
1385 (init_ext_version_hash): Initialize the ext_version_hash according
1386 to riscv_ext_version_table.
1387 (riscv_get_default_ext_version): The callback function of
1388 riscv_parse_subset_t. According to the choosed ISA spec,
1389 get the default version for the specific extension.
1390 (riscv_set_arch): Set the callback function.
1391 (enum options, struct option md_longopts): Add new option -misa-spec.
1392 (md_parse_option): Do not call riscv_set_arch for -march. We will
1393 call it later in riscv_after_parse_args. Call riscv_get_isa_spec_class
1394 to set default_isa_spec class.
1395 (riscv_after_parse_args): Call init_ext_version_hash to initialize the
1396 ext_version_hash, and then call riscv_set_arch to set the architecture
1397 with versions according to default_arch_with_ext.
1398 * testsuite/gas/riscv/attribute-02.d: Set 0p0 as default version for
1399 x extensions.
1400 * testsuite/gas/riscv/attribute-03.d: Likewise.
1401 * testsuite/gas/riscv/attribute-09.d: New testcase. For i-ext, we
1402 already set it's version to 2p1 by march, so no need to use the default
1403 2p2 version. For m-ext, we do not set the version by -march and ELF arch
1404 attribute, so set the default 2p0 to it. For zicsr, it is not defined in
1405 ISA spec 2p2, so set 0p0 to it.
1406 * testsuite/gas/riscv/attribute-10.d: New testcase. The version of
1407 zicsr is 2p0 according to ISA spec 20191213.
1408 * config/tc-riscv.c (DEFAULT_RISCV_ARCH_WITH_EXT)
1409 (DEFAULT_RISCV_ISA_SPEC): Default configure option settings.
1410 You can set them by configure options --with-arch and
1411 --with-isa-spec, respectively.
1412 (riscv_set_default_isa_spec): New function used to set the
1413 default ISA spec.
1414 (md_parse_option): Call riscv_set_default_isa_spec rather than
1415 call riscv_get_isa_spec_class directly.
1416 (riscv_after_parse_args): If the -isa-spec is not set, then we
1417 set the default ISA spec according to DEFAULT_RISCV_ISA_SPEC by
1418 calling riscv_set_default_isa_spec.
1419 * testsuite/gas/riscv/attribute-01.d: Add -misa-spec=2.2, since
1420 the --with-isa-spec may be set to different ISA spec.
1421 * testsuite/gas/riscv/attribute-02.d: Likewise.
1422 * testsuite/gas/riscv/attribute-03.d: Likewise.
1423 * testsuite/gas/riscv/attribute-04.d: Likewise.
1424 * testsuite/gas/riscv/attribute-05.d: Likewise.
1425 * testsuite/gas/riscv/attribute-06.d: Likewise.
1426 * testsuite/gas/riscv/attribute-07.d: Likewise.
1427 * configure.ac: Add configure options, --with-arch and
1428 --with-isa-spec.
1429 * configure: Regenerated.
1430 * config.in: Regenerated.
1431 * config/tc-riscv.c (default_priv_spec): Static variable which is
1432 used to check if the CSR is valid for the chosen privilege spec. You
1433 can use -mpriv-spec to set it.
1434 (enum reg_class): We now get the CSR address from csr_extra_hash rather
1435 than reg_names_hash. Therefore, move RCLASS_CSR behind RCLASS_MAX.
1436 (riscv_init_csr_hashes): Only need to initialize one hash table
1437 csr_extra_hash.
1438 (riscv_csr_class_check): Change the return type to void. Don't check
1439 the ISA dependency if -mcsr-check isn't set.
1440 (riscv_csr_version_check): New function. Check and find the CSR address
1441 from csr_extra_hash, according to default_priv_spec. Report warning
1442 for the invalid CSR if -mcsr-check is set.
1443 (reg_csr_lookup_internal): Updated.
1444 (reg_lookup_internal): Likewise.
1445 (md_begin): Updated since DECLARE_CSR and DECLARE_CSR_ALIAS are changed.
1446 (enum options, struct option md_longopts): Add new GAS option -mpriv-spec.
1447 (md_parse_option): Call riscv_set_default_priv_version to set
1448 default_priv_spec.
1449 (riscv_after_parse_args): If -mpriv-spec isn't set, then set the default
1450 privilege spec to the newest one.
1451 (enum riscv_csr_class, struct riscv_csr_extra): Move them to
1452 include/opcode/riscv.h.
1453 * testsuite/gas/riscv/priv-reg-fail-fext.d: This test case just want
1454 to check the ISA dependency for CSR, so fix the spec version by adding
1455 -mpriv-spec=1.11.
1456 * testsuite/gas/riscv/priv-reg-fail-fext.l: Likewise. There are some
1457 version warnings for the test case.
1458 * gas/testsuite/gas/riscv/priv-reg-fail-read-only-01.d: Likewise.
1459 * gas/testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
1460 * gas/testsuite/gas/riscv/priv-reg-fail-read-only-02.d: Likewise.
1461 * gas/testsuite/gas/riscv/priv-reg-fail-rv32-only.d: Likewise.
1462 * gas/testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
1463 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9.d: New test case.
1464 Check whether the CSR is valid when privilege version 1.9 is choosed.
1465 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9.l: Likewise.
1466 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9p1.d: New test case.
1467 Check whether the CSR is valid when privilege version 1.9.1 is choosed.
1468 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
1469 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p10.d: New test case.
1470 Check whether the CSR is valid when privilege version 1.10 is choosed.
1471 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
1472 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p11.d: New test case.
1473 Check whether the CSR is valid when privilege version 1.11 is choosed.
1474 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
1475 * config/tc-riscv.c (DEFAULT_RISCV_ISA_SPEC): Default configure option
1476 setting. You can set it by configure option --with-priv-spec.
1477 (riscv_set_default_priv_spec): New function used to set the default
1478 privilege spec.
1479 (md_parse_option): Call riscv_set_default_priv_spec rather than
1480 call riscv_get_priv_spec_class directly.
1481 (riscv_after_parse_args): If -mpriv-spec isn't set, then we set the
1482 default privilege spec according to DEFAULT_RISCV_PRIV_SPEC by
1483 calling riscv_set_default_priv_spec.
1484 * testsuite/gas/riscv/csr-dw-regnums.d: Add -mpriv-spec=1.11, since
1485 the --with-priv-spec may be set to different privilege spec.
1486 * testsuite/gas/riscv/priv-reg.d: Likewise.
1487 * configure.ac: Add configure option --with-priv-spec.
1488 * configure: Regenerated.
1489 * config.in: Regenerated.
1490 * config/tc-riscv.c (explicit_attr): Rename explicit_arch_attr to
1491 explicit_attr. Set it to TRUE if any ELF attribute is found.
1492 (riscv_set_default_priv_spec): Try to set the default_priv_spec if
1493 the priv attributes are set.
1494 (md_assemble): Set the default_priv_spec according to the priv
1495 attributes when we start to assemble instruction.
1496 (riscv_write_out_attrs): Rename riscv_write_out_arch_attr to
1497 riscv_write_out_attrs. Update the arch and priv attributes. If we
1498 don't set the corresponding ELF attributes, then try to output the
1499 default ones.
1500 (riscv_set_public_attributes): If any ELF attribute or -march-attr
1501 options is set (explicit_attr is TRUE), then call riscv_write_out_attrs
1502 to update the arch and priv attributes.
1503 (s_riscv_attribute): Make sure all arch and priv attributes are set
1504 before any instruction.
1505 * testsuite/gas/riscv/attribute-01.d: Update the priv attributes if any
1506 ELF attribute or -march-attr is set. If the priv attributes are not
1507 set, then try to update them by the default setting (-mpriv-spec or
1508 --with-priv-spec).
1509 * testsuite/gas/riscv/attribute-02.d: Likewise.
1510 * testsuite/gas/riscv/attribute-03.d: Likewise.
1511 * testsuite/gas/riscv/attribute-04.d: Likewise.
1512 * testsuite/gas/riscv/attribute-06.d: Likewise.
1513 * testsuite/gas/riscv/attribute-07.d: Likewise.
1514 * testsuite/gas/riscv/attribute-08.d: Likewise.
1515 * testsuite/gas/riscv/attribute-09.d: Likewise.
1516 * testsuite/gas/riscv/attribute-10.d: Likewise.
1517 * testsuite/gas/riscv/attribute-unknown.d: Likewise.
1518 * testsuite/gas/riscv/attribute-05.d: Likewise. Also, the priv spec
1519 set by priv attributes must be supported.
1520 * testsuite/gas/riscv/attribute-05.s: Likewise.
1521 * testsuite/gas/riscv/priv-reg-fail-version-1p9.d: Likewise. Updated
1522 priv attributes according to the -mpriv-spec option.
1523 * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.d: Likewise.
1524 * testsuite/gas/riscv/priv-reg-fail-version-1p10.d: Likewise.
1525 * testsuite/gas/riscv/priv-reg-fail-version-1p11.d: Likewise.
1526 * testsuite/gas/riscv/priv-reg.d: Removed.
1527 * testsuite/gas/riscv/priv-reg-version-1p9.d: New test case. Dump the
1528 CSR according to the priv spec 1.9.
1529 * testsuite/gas/riscv/priv-reg-version-1p9p1.d: New test case. Dump the
1530 CSR according to the priv spec 1.9.1.
1531 * testsuite/gas/riscv/priv-reg-version-1p10.d: New test case. Dump the
1532 CSR according to the priv spec 1.10.
1533 * testsuite/gas/riscv/priv-reg-version-1p11.d: New test case. Dump the
1534 CSR according to the priv spec 1.11.
1535 * config/tc-riscv.c (md_show_usage): Add descriptions about
1536 the new GAS options.
1537 * doc/c-riscv.texi: Likewise.
1538
1539 2020-05-19 Peter Bergner <bergner@linux.ibm.com>
1540
1541 * testsuite/gas/ppc/power9.s <dcbf, dcbfl, dcbflp>: Add tests.
1542 * testsuite/gas/ppc/power9.d: Likewise.
1543 * testsuite/gas/ppc/power10.s <dcbf, dcbfps, dcbstps, hwsync, lwsync,
1544 pause_short, phwsync, plwsync, ptesync, stcisync, stncisync, stsync,
1545 sync, wait, waitrsv>: Add tests.
1546 * testsuite/gas/ppc/power10.d: Likewise.
1547
1548 2020-05-19 Alexander Fedotov <alfedotov@gmail.com>
1549
1550 PR 25992
1551 * config/tc-arm.c : Add arm_ext_v8r feature.
1552 (it_fsm_post_encode): Check arm_ext_v8r feature.
1553 (get_aeabi_cpu_arch_from_fset): Check arm_ext_v8r feature.
1554
1555 2020-05-19 Alan Modra <amodra@gmail.com>
1556
1557 * write.c (write_contents): Use bfd_get_filename rather than
1558 accessing bfd->filename directly. Use bfd_section_name rather
1559 than accessing section->name directly.
1560
1561 2020-05-19 Alan Modra <amodra@gmail.com>
1562
1563 * symbols.c (local_symbol_make): Init all of lsy_flags.
1564
1565 2020-05-18 Alan Modra <amodra@gmail.com>
1566
1567 * symbols.c (resolve_symbol_value): Invoke LOCAL_SYMBOL_CHECK
1568 before looking at add_symbol->sy_flags.
1569
1570 2020-05-18 Hongtao Liu <hongtao.liu@intel.com>
1571
1572 * config/tc-i386.c: Not handle lret/iret.
1573 * testsuite/gas/i386/lfence-ret-a.d: Adjust testcase.
1574 * testsuite/gas/i386/lfence-ret-b.d: Ditto.
1575 * testsuite/gas/i386/lfence-ret-c.d: Ditto.
1576 * testsuite/gas/i386/lfence-ret-d.d: Ditto.
1577 * testsuite/gas/i386/lfence-ret.s: Ditto.
1578 * testsuite/gas/i386/x86-64-lfence-ret-a.d: Ditto.
1579 * testsuite/gas/i386/x86-64-lfence-ret-b.d: Ditto.
1580 * testsuite/gas/i386/x86-64-lfence-ret-c.d: Ditto.
1581 * testsuite/gas/i386/x86-64-lfence-ret-d.d: Ditto.
1582 * testsuite/gas/i386/x86-64-lfence-ret-e.d: Ditto.
1583 * testsuite/gas/i386/x86-64-lfence-ret.s: Ditto.
1584 * testsuite/gas/i386/x86-64-lfence-ret.e: Deleted.
1585
1586 2020-05-15 Alan Modra <amodra@gmail.com>
1587 Alex Coplan <alex.coplan@arm.com>
1588
1589 * symbols.c (struct local_symbol): Update comment.
1590 (resolve_symbol_value): For resolved symbols equated to other
1591 symbols, verify that the referenced symbol is not a local_symbol
1592 before accessing sy_value. Don't leave symbol loops during
1593 finalize_syms resolution.
1594 * testsuite/gas/all/assign-bad-recursive.d: New test.
1595 * testsuite/gas/all/assign-bad-recursive.l: Error output for test.
1596 * testsuite/gas/all/assign-bad-recursive.s: Assembly for test.
1597 * testsuite/gas/all/gas.exp: Run it.
1598
1599 2020-05-14 Nick Clifton <nickc@redhat.com>
1600
1601 * po/sv.po: Updated Swedish translation.
1602
1603 2020-05-11 Alan Modra <amodra@gmail.com>
1604
1605 * testsuite/gas/ppc/scalarquad.d,
1606 * testsuite/gas/ppc/scalarquad.s: New test.
1607 * testsuite/gas/ppc/ppc.exp: Run it.
1608
1609 2020-05-11 Alan Modra <amodra@gmail.com>
1610
1611 * testsuite/gas/ppc/rightmost.d,
1612 * testsuite/gas/ppc/rightmost.s: New test.
1613 * testsuite/gas/ppc/ppc.exp: Run it.
1614
1615 2020-05-11 Alan Modra <amodra@gmail.com>
1616
1617 * testsuite/gas/ppc/xvtlsbb.d,
1618 * testsuite/gas/ppc/xvtlsbb.s: New test.
1619 * testsuite/gas/ppc/ppc.exp: Run it.
1620
1621 2020-05-11 Alan Modra <amodra@gmail.com>
1622
1623 * testsuite/gas/ppc/stringop.d,
1624 * testsuite/gas/ppc/stringop.s: New test.
1625 * testsuite/gas/ppc/ppc.exp: Run it.
1626
1627 2020-05-11 Peter Bergner <bergner@linux.ibm.com>
1628
1629 * testsuite/gas/ppc/set_bool.d,
1630 * testsuite/gas/ppc/set_bool.s: New test.
1631 * testsuite/gas/ppc/ppc.exp: Run it.
1632
1633 2020-05-11 Alan Modra <amodra@gmail.com>
1634
1635 * testsuite/gas/ppc/bitmanip.d,
1636 * testsuite/gas/ppc/bitmanip.s: New test.
1637 * testsuite/gas/ppc/ppc.exp: Run it.
1638
1639 2020-05-11 Alan Modra <amodra@gmail.com>
1640
1641 * testsuite/gas/ppc/genpcv.d,
1642 * testsuite/gas/ppc/genpcv.s: New test.
1643 * testsuite/gas/ppc/ppc.exp: Run it.
1644
1645 2020-05-11 Alan Modra <amodra@gmail.com>
1646
1647 * testsuite/gas/ppc/maskmanip.d,
1648 * testsuite/gas/ppc/maskmanip.s: New test.
1649 * testsuite/gas/ppc/ppc.exp: Run it.
1650
1651 2020-05-11 Alan Modra <amodra@gmail.com>
1652 Peter Bergner <bergner@linux.ibm.com>
1653
1654 * config/tc-ppc.c (pre_defined_registers): Add accumulators.
1655 (md_assemble): Check acc specified in correct operand.
1656 * testsuite/gas/ppc/outerprod.d,
1657 * testsuite/gas/ppc/outerprod.s,
1658 * testsuite/gas/ppc/vsx4.d,
1659 * testsuite/gas/ppc/vsx4.s: New tests.
1660 * testsuite/gas/ppc/ppc.exp: Run them.
1661
1662 2020-05-11 Alan Modra <amodra@gmail.com>
1663
1664 * testsuite/gas/ppc/simd_perm.d,
1665 * testsuite/gas/ppc/simd_perm.s: New test.
1666 * testsuite/gas/ppc/ppc.exp: Run it.
1667
1668 2020-05-11 Alan Modra <amodra@gmail.com>
1669
1670 * testsuite/gas/ppc/int128.d,
1671 * testsuite/gas/ppc/int128.s: New test.
1672 * testsuite/gas/ppc/ppc.exp: Run it.
1673
1674 2020-05-11 Alan Modra <amodra@gmail.com>
1675
1676 * testsuite/gas/ppc/vsx_32byte.d,
1677 * testsuite/gas/ppc/vsx_32byte.s: New test.
1678 * testsuite/gas/ppc/ppc.exp: Run it.
1679
1680 2020-05-11 Alan Modra <amodra@gmail.com>
1681
1682 * testsuite/gas/ppc/vec_mul.s,
1683 * testsuite/gas/ppc/vec_mul.d: New test.
1684 * testsuite/gas/ppc/ppc.exp: Run it.
1685
1686 2020-05-11 Peter Bergner <bergner@linux.ibm.com>
1687
1688 * testsuite/gas/ppc/byte_rev.d,
1689 * testsuite/gas/ppc/byte_rev.s: New test.
1690 * testsuite/gas/ppc/ppc.exp: Run it.
1691
1692 2020-05-11 Peter Bergner <bergner@linux.ibm.com>
1693
1694 * testsuite/gas/ppc/power10.d: Add paste. tests.
1695 * testsuite/gas/ppc/power10.s: Likewise.
1696
1697 2020-05-11 Peter Bergner <bergner@linux.ibm.com>
1698
1699 * testsuite/gas/ppc/power10.s: New test.
1700 * testsuite/gas/ppc/power10.d: Likewise.
1701 * testsuite/gas/ppc/ppc.exp: Run it.
1702
1703 2020-05-11 Alan Modra <amodra@gmail.com>
1704
1705 * config/tc-ppc.c (md_assemble): Update for PPC_OPCODE_POWER10
1706 renaming.
1707 * testsuite/gas/ppc/prefix-align.d: Use -mpower10/-Mpower10 in
1708 place of -mfuture/-Mfuture.
1709 * testsuite/gas/ppc/prefix-pcrel.d: Likewise.
1710 * testsuite/gas/ppc/prefix-reloc.d: Likewise.
1711
1712 2020-05-06 Nick Clifton <nickc@redhat.com>
1713
1714 * po/sv.po: Updated Swedish translation.
1715
1716 2020-05-06 Nick Clifton <nickc@redhat.com>
1717
1718 PR 25927
1719 * doc/as.texi (Preprocessing): Replace cross reference to not
1720 existant document with a URL to the equivalent page in the GCC
1721 manual.
1722
1723 2020-05-05 Nick Clifton <nickc@redhat.com>
1724
1725 * dwarf2dbg.c (out_dir_and_file_list): Add comments describing the
1726 construction of a DWARF-5 directory name table.
1727 * testsuite/gas/elf/pr25917.d: Update expected output.
1728
1729 2020-05-05 Gunther Nikl <gnikl@justmail.de>
1730
1731 * config/tc-rx.c (elf_flags): Initialize for non-linux targets.
1732 (md_parse_option): Remove initialization of elf_flags.
1733
1734 2020-05-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
1735
1736 PR gas/25863
1737 * config/tc-arm.c (do_mve_vmull): Fix scalar and NEON parsing of vmul.
1738 * testsuite/gas/arm/mve-scalar-vmult-it.d: New test.
1739 * testsuite/gas/arm/mve-scalar-vmult-it.s: New test.
1740
1741 2020-05-04 Nick Clifton <nickc@redhat.com>
1742
1743 PR 25917
1744 * dwarf2dbg.c (out_dir_and_file_list): Check for the directory
1745 table's existence before looking at its entries.
1746 Also do not emit a default directory entry if there are no
1747 directories in use.
1748
1749 * testsuite/gas/elf/pr25917.s: New test source file.
1750 * testsuite/gas/elf/pr25917.d: New test driver.
1751 * testsuite/gas/elf/elf.exp (run_elf_list_test): Run the new test.
1752
1753 2020-04-30 Alex Coplan <alex.coplan@arm.com>
1754
1755 * config/tc-aarch64.c (fix_insn): Implement for
1756 AARCH64_OPND_UNDEFINED.
1757 (parse_operands): Implement for AARCH64_OPND_UNDEFINED.
1758 * testsuite/gas/aarch64/udf.s: New.
1759 * testsuite/gas/aarch64/udf.d: New.
1760 * testsuite/gas/aarch64/udf-invalid.s: New.
1761 * testsuite/gas/aarch64/udf-invalid.l: New.
1762 * testsuite/gas/aarch64/udf-invalid.d: New.
1763
1764 2020-04-30 Yoshinori Sato <ysato@users.sourceforge.jp>
1765
1766 * config/tc-rx.c (elf_flags): Reset default value.
1767 (md_parse_option): For rx-elf Initialize elf_flags with RX_ABI.
1768
1769 2020-04-29 Max Filippov <jcmvbkbc@gmail.com>
1770
1771 * config/tc-xtensa.c (XTENSA_MARCH_EARLIEST): Define macro as 0
1772 if it's not defined.
1773 (microarch_earliest): New static variable.
1774 (xg_translate_idioms): Translate "simcall" to "simcall 0" when
1775 simcall opcode has mandatory parameter.
1776 (xg_init_global_config): Initialize microarch_earliest.
1777
1778 2020-04-29 Nick Clifton <nickc@redhat.com>
1779
1780 PR 22699
1781 * config/tc-sh.c (build_Mytes): Change operand type IMM0_8 to
1782 IMM0_8S and add support for IMM0_8U.
1783 * testsuite/gas/sh/sh4a.s: Add test of a logical insn using an
1784 unsigned 8-bit immediate.
1785 * testsuite/gas/sh/sh4a.d: Extended expected disassembly.
1786 * testsuite/gas/sh/sh4al-dsp.d: Update expected disassembly.
1787
1788 2020-04-27 Tamar Christina <tamar.christina@arm.com>
1789
1790 * NEWS: Add news entry for big-obj.
1791 * config/tc-i386.c (i386_target_format): Support new format.
1792 * doc/c-i386.texi: Add i386 support.
1793 * testsuite/gas/pe/big-obj.d: Rename test to not be x64 specific.
1794 * testsuite/gas/pe/pe.exp (big-obj): Make test run on i386 as well.
1795
1796 2020-04-27 Nick Clifton <nickc@redhat.com>
1797
1798 PR 25878
1799 * dwarf2dbg.c (struct file_entry): Add auto_assigned field.
1800 (assign_file_to_slot): New function. Fills in an entry in the
1801 files table.
1802 (allocate_filenum): Use new function.
1803 (allocate_filename_to_slot): Use new function. If the specified
1804 slot entry is already in use, but was chosen automatically then
1805 reassign the automatic entry.
1806
1807 2020-04-26 Hongtao Liu <hongtao.liu@intel.com
1808
1809 * config/tc-i386.c (lfence_before_ret_shl): New member.
1810 (load_insn_p): implict load for POP/POPA/POPF/XLATB, no load
1811 for Anysize insns.
1812 (insert_after_load): Issue warning for REP CMPS/SCAS.
1813 (insert_before_before): Handle iret, Handle
1814 -mlfence-before-ret=shl, Adjust operand size of or/not/shl to ret's,
1815 (md_parse_option): Change -mlfence-before-ret=[none|not|or] to
1816 -mlfence-before-ret=[none/not/or/shl/yes].
1817 Enable -mlfence-before-ret=shl when
1818 -mlfence-beofre-indirect-branch=all and no explict -mlfence-before-ret option.
1819 (md_show_usage): Ditto.
1820 * doc/c-i386.texi: Ditto.
1821 * testsuite/gas/i386/i386.exp: Add new testcases.
1822 * testsuite/gas/i386/lfence-load-b.d: New.
1823 * testsuite/gas/i386/lfence-load-b.e: New.
1824 * testsuite/gas/i386/lfence-load.d: Modified.
1825 * testsuite/gas/i386/lfence-load.e: New.
1826 * testsuite/gas/i386/lfence-load.s: Modified.
1827 * testsuite/gas/i386/lfence-ret-a.d: Modified.
1828 * testsuite/gas/i386/lfence-ret-b.d: Modified.
1829 * testsuite/gas/i386/lfence-ret-c.d: New.
1830 * testsuite/gas/i386/lfence-ret-d.d: New.
1831 * testsuite/gas/i386/lfence-ret.s: Modified.
1832 * testsuite/gas/i386/x86-64-lfence-load-b.d: New.
1833 * testsuite/gas/i386/x86-64-lfence-load.d: Modified.
1834 * testsuite/gas/i386/x86-64-lfence-load.s: Modified.
1835 * testsuite/gas/i386/x86-64-lfence-ret-a.d: Modified.
1836 * testsuite/gas/i386/x86-64-lfence-ret-b.d: Modified.
1837 * testsuite/gas/i386/x86-64-lfence-ret-c.d: New.
1838 * testsuite/gas/i386/x86-64-lfence-ret-d.d: New
1839 * testsuite/gas/i386/x86-64-lfence-ret-e.d: New.
1840 * testsuite/gas/i386/x86-64-lfence-ret.e: New.
1841 * testsuite/gas/i386/x86-64-lfence-ret.s: New.
1842
1843 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
1844
1845 PR ld/25861
1846 * config/tc-xtensa.c (md_apply_fix): Replace
1847 BFD_RELOC_XTENSA_DIFF{8,16,32} generation with
1848 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
1849 BFD_RELOC_XTENSA_NDIFF{8,16,32} generation.
1850 * testsuite/gas/xtensa/loc.d: Replace BFD_RELOC_XTENSA_DIFF16
1851 with BFD_RELOC_XTENSA_PDIFF16 in the expected output.
1852
1853 2020-04-22 Alan Modra <amodra@gmail.com>
1854
1855 * config/obj-elf.c (elf_frob_symbol): Unconditionally remove
1856 symbol for ".symver .. remove".
1857 * doc/as.texi (.symver): Update.
1858 * testsuite/gas/symver/symver11.s: Make foo weak.
1859 * testsuite/gas/symver/symver11.d: Expect an error.
1860 * testsuite/gas/symver/symver7.d: Allow other random symbols.
1861
1862 2020-04-21 H.J. Lu <hongjiu.lu@intel.com>
1863
1864 * testsuite/gas/symver/symver11.s: Add ".balign 8".
1865
1866 2020-04-21 Andreas Schwab <schwab@linux-m68k.org>
1867
1868 PR 25848
1869 * testsuite/gas/m68k/operands.s: Add tests for cmpi.
1870 * testsuite/gas/m68k/operands.d: Update.
1871 * testsuite/gas/m68k/op68000.d: Update for new error messages.
1872
1873 2020-04-21 Tamar Christina <tamar.christina@arm.com>
1874
1875 PR binutils/24753
1876 * testsuite/gas/arm/pr24753.d: New test.
1877 * testsuite/gas/arm/pr24753.s: New test.
1878
1879 2020-04-21 H.J. Lu <hongjiu.lu@intel.com>
1880
1881 PR gas/23840
1882 PR gas/25295
1883 * NEWS: Mention .symver extension.
1884 * config/obj-elf.c (obj_elf_find_and_add_versioned_name): New
1885 function.
1886 (obj_elf_symver): Call obj_elf_find_and_add_versioned_name to
1887 add a version name. Add local, hidden and remove visibility
1888 support.
1889 (elf_frob_symbol): Handle the list of version names. Update the
1890 original symbol to local, hidden or remove it from the symbol
1891 table.
1892 (elf_frob_file_before_adjust): Handle the list of version names.
1893 * config/obj-elf.h (elf_visibility): New.
1894 (elf_versioned_name_list): Likewise.
1895 (elf_obj_sy): Change local to bitfield. Add rename, bad_version
1896 and visibility. Change versioned_name pointer to struct
1897 elf_versioned_name_list.
1898 * doc/as.texi: Update .symver directive.
1899 * testsuite/gas/symver/symver.exp: Run all *.d tests. Add more
1900 error checking tests.
1901 * testsuite/gas/symver/symver6.d: New file.
1902 * testsuite/gas/symver/symver7.d: Likewise.
1903 * testsuite/gas/symver/symver7.s: Likewise.
1904 * testsuite/gas/symver/symver8.d: Likewise.
1905 * testsuite/gas/symver/symver8.s: Likewise.
1906 * testsuite/gas/symver/symver9.s: Likewise.
1907 * testsuite/gas/symver/symver9a.d: Likewise.
1908 * testsuite/gas/symver/symver9b.d: Likewise.
1909 * testsuite/gas/symver/symver10.s: Likewise.
1910 * testsuite/gas/symver/symver10a.d: Likewise.
1911 * testsuite/gas/symver/symver10b.d: Likewise.
1912 * testsuite/gas/symver/symver11.d: Likewise.
1913 * testsuite/gas/symver/symver11.s: Likewise.
1914 * testsuite/gas/symver/symver12.d: Likewise.
1915 * testsuite/gas/symver/symver12.s: Likewise.
1916 * testsuite/gas/symver/symver13.d: Likewise.
1917 * testsuite/gas/symver/symver13.s: Likewise.
1918 * testsuite/gas/symver/symver14.d: Likewise.
1919 * testsuite/gas/symver/symver14.l: Likewise.
1920 * testsuite/gas/symver/symver15.d: Likewise.
1921 * testsuite/gas/symver/symver15.l: Likewise.
1922 * testsuite/gas/symver/symver6.l: Removed.
1923 * testsuite/gas/symver/symver6.s: Updated.
1924
1925 2020-04-20 Sudakshina Das <sudi.das@arm.com>
1926
1927 * config/tc-aarch64.c (parse_barrier_psb): Update error messages
1928 to include TSB.
1929 * testsuite/gas/aarch64/system-2.d: Update -march and new tsb tests.
1930 * testsuite/gas/aarch64/system-2.s: Add new tsb tests.
1931 * testsuite/gas/aarch64/system.d: Update.
1932
1933 2020-04-20 Sudakshina Das <sudi.das@arm.com>
1934
1935 * testsuite/gas/aarch64/bti.d: Update -march option.
1936 * testsuite/gas/aarch64/illegal-bti.d: Remove.
1937 * testsuite/gas/aarch64/illegal-bti.l: Remove.
1938 * testsuite/gas/aarch64/illegal-ras-1.l: Remove esb.
1939 * testsuite/gas/aarch64/illegal-ras-1.s: Remove esb.
1940
1941 2020-04-17 Alan Modra <amodra@gmail.com>
1942
1943 * config/tc-bfin.h (TC_EQUAL_IN_INSN): Allow assignment to dot.
1944
1945 2020-04-16 Gagan Singh Sidhu <broly@mac.com>
1946 Nick Clifton <nickc@redhat.com>
1947
1948 PR 25803
1949 * config/obj-elf.c (obj_elf_type): Reject ifunc symbols on MIPS
1950 targets.
1951 * testsuite/gas/elf/elf.exp: Add MIPS targets to the list to skip
1952 for the type-2 test.
1953 * testsuite/gas/elf/type-noifunc.e: Update to allow for MIPS
1954 targets running this test.
1955
1956 2020-02-16 David Faust <david.faust@oracle.com>
1957
1958 * testsuite/gas/bpf/bpf.exp: Run jump32 tests.
1959 * testsuite/gas/bpf/jump32.s: New file.
1960 * testsuite/gas/bpf/jump32.d: Likewise.
1961
1962 2020-04-08 H.J. Lu <hongjiu.lu@intel.com>
1963
1964 * doc/c-i386.texi: Correct -mlfence-before-indirect-branch=
1965 documentation.
1966
1967 2020-04-08 Gunther Nikl <gnikl@justmail.de>
1968
1969 * config/tc-moxie.h (MD_PCREL_FROM_SECTION): Delete define.
1970 (md_pcrel_from): Remove prototytpe.
1971 * config/tc-m32c.h (MD_PCREL_FROM_SECTION): Delete duplicate
1972 define.
1973 (md_pcrel_from_section): Remove duplicate prototype.
1974 * tc.h (md_pcrel_from_section): Add prototype.
1975 * config/tc-aarch64.h (md_pcrel_from_section): Remove prototype.
1976 * config/tc-arc.h (md_pcrel_from_section): Likewise.
1977 * config/tc-arm.h (md_pcrel_from_section): Likewise.
1978 * config/tc-avr.h (md_pcrel_from_section): Likewise.
1979 * config/tc-bfin.h (md_pcrel_from_section): Likewise.
1980 * config/tc-bpf.h (md_pcrel_from_section): Likewise.
1981 * config/tc-csky.h (md_pcrel_from_section): Likewise.
1982 * config/tc-d10v.h (md_pcrel_from_section): Likewise.
1983 * config/tc-d30v.h (md_pcrel_from_section): Likewise.
1984 * config/tc-epiphany.h (md_pcrel_from_section): Likewise.
1985 * config/tc-fr30.h (md_pcrel_from_section): Likewise.
1986 * config/tc-frv.h (md_pcrel_from_section): Likewise.
1987 * config/tc-iq2000.h (md_pcrel_from_section): Likewise.
1988 * config/tc-lm32.h (md_pcrel_from_section): Likewise.
1989 * config/tc-m32c.h (md_pcrel_from_section): Likewise.
1990 * config/tc-m32r.h (md_pcrel_from_section): Likewise.
1991 * config/tc-mcore.h (md_pcrel_from_section): Likewise.
1992 * config/tc-mep.h (md_pcrel_from_section): Likewise.
1993 * config/tc-metag.h (md_pcrel_from_section): Likewise.
1994 * config/tc-microblaze.h (md_pcrel_from_section): Likewise.
1995 * config/tc-mmix.h (md_pcrel_from_section): Likewise.
1996 * config/tc-moxie.h (md_pcrel_from_section): Likewise.
1997 * config/tc-msp430.h (md_pcrel_from_section): Likewise.
1998 * config/tc-mt.h (md_pcrel_from_section): Likewise.
1999 * config/tc-or1k.h (md_pcrel_from_section): Likewise.
2000 * config/tc-ppc.h (md_pcrel_from_section): Likewise.
2001 * config/tc-rl78.h (md_pcrel_from_section): Likewise.
2002 * config/tc-rx.h (md_pcrel_from_section): Likewise.
2003 * config/tc-s390.h (md_pcrel_from_section): Likewise.
2004 * config/tc-sh.h (md_pcrel_from_section): Likewise.
2005 * config/tc-xc16x.h (md_pcrel_from_section): Likewise.
2006 * config/tc-xstormy16.h (md_pcrel_from_section): Likewise.
2007 * config/tc-microblaze.h (md_begin, md_assemble, md_undefined_symbol,
2008 md_show_usage, md_convert_frag, md_operand, md_number_to_chars,
2009 md_estimate_size_before_relax, md_section_align, tc_gen_reloc,
2010 md_apply_fix3): Delete prototypes.
2011
2012 2020-04-07 H.J. Lu <hongjiu.lu@intel.com>
2013
2014 * NEWS: Mention support for Intel SERIALIZE and TSXLDTRK
2015 instructions.
2016
2017 2020-04-07 H.J. Lu <hongjiu.lu@intel.com>
2018
2019 * doc/c-z80.texi: Fix @xref warnings.
2020
2021 2020-04-07 Lili Cui <lili.cui@intel.com>
2022
2023 * config/tc-i386.c (cpu_arch): Add .TSXLDTRK.
2024 (cpu_noarch): Likewise.
2025 * doc/c-i386.texi: Document TSXLDTRK.
2026 * testsuite/gas/i386/i386.exp: Run TSXLDTRK tests.
2027 * testsuite/gas/i386/tsxldtrk.d: Likewise.
2028 * testsuite/gas/i386/tsxldtrk.s: Likewise.
2029 * testsuite/gas/i386/x86-64-tsxldtrk.d: Likewise.
2030
2031 2020-04-02 Lili Cui <lili.cui@intel.com>
2032
2033 * config/tc-i386.c (cpu_arch): Add .serialize.
2034 (cpu_noarch): Likewise.
2035 * doc/c-i386.texi: Document serialize.
2036 * testsuite/gas/i386/i386.exp: Run serialize tests
2037 * testsuite/gas/i386/serialize.d: Likewise.
2038 * testsuite/gas/i386/x86-64-serialize.d: Likewise.
2039 * testsuite/gas/i386/serialize.s: Likewise.
2040
2041 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2042
2043 * testsuite/gas/elf/section12a.d: Use notarget instead of xfail.
2044 * testsuite/gas/elf/section12b.d: Likewise.
2045 * testsuite/gas/elf/section16a.d: Likewise.
2046 * testsuite/gas/elf/section16b.d: Likewise.
2047
2048 2020-04-02 Gunther Nikl <gnikl@justmail.de>
2049
2050 * config/tc-m68k.c (m68k_ip): Fix range check for index register
2051 with a suppressed address register.
2052
2053 2020-04-01 H.J. Lu <hongjiu.lu@intel.com>
2054
2055 PR gas/25756
2056 * config/tc-i386.h (TC_FORCE_RELOCATION_ABS): New.
2057 * testsuite/gas/i386/localpic.s: Add a test for relocation
2058 against local absolute symbol.
2059 * testsuite/gas/i386/x86-64-localpic.s: Likewise.
2060 * testsuite/gas/i386/localpic.d: Updated.
2061 * testsuite/gas/i386/x86-64-localpic.d: Likewise.
2062 * testsuite/gas/i386/ilp32/x86-64-localpic.d: Likewise.
2063
2064 2020-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2065
2066 PR gas/25732
2067 * testsuite/gas/i386/solaris/x86-64-branch-2.d: New file.
2068 * testsuite/gas/i386/solaris/x86-64-branch-3.d: New file.
2069 * testsuite/gas/i386/solaris/x86-64-jump.d: Incorporate changes to
2070 testsuite/gas/i386/x86-64-jump.d.
2071 * gas/testsuite/gas/i386/solaris/x86-64-mpx-branch-1.d:
2072 Incorporate changes to
2073 gas/testsuite/gas/i386/x86-64-mpx-branch-1.d.
2074 * testsuite/gas/i386/solaris/x86-64-mpx-branch-2.d : Incorporate
2075 changes to testsuite/gas/i386/x86-64-mpx-branch-2.d.
2076 * testsuite/gas/i386/x86-64-branch-2.d: Skip on *-*-solaris*.
2077 * testsuite/gas/i386/x86-64-branch-3.d: Likewise.
2078
2079 2020-03-31 Maciej W. Rozycki <macro@linux-mips.org>
2080
2081 PR 25611
2082 PR 25614
2083 * dwarf2dbg.c: Do not include "bignum.h".
2084
2085 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
2086
2087 * testsuite/gas/riscv/alias-csr.d: Move this to priv-reg-pseudo.
2088 * testsuite/gas/riscv/alias-csr.s: Likewise.
2089 * testsuite/gas/riscv/no-aliases-csr.d: Move this
2090 to priv-reg-pseudo-noalias.
2091 * testsuite/gas/riscv/bad-csr.d: Rename to priv-reg-fail-nonexistent.
2092 * testsuite/gas/riscv/bad-csr.l: Likewise.
2093 * testsuite/gas/riscv/bad-csr.s: Likewise.
2094 * testsuite/gas/riscv/satp.d: Removed. Already included in priv-reg.
2095 * testsuite/gas/riscv/satp.s: Likewise.
2096 * testsuite/gas/riscv/priv-reg-pseudo.d: New testcase for all pseudo
2097 csr instruction, including alias-csr testcase.
2098 * testsuite/gas/riscv/priv-reg-pseudo.s: Likewise.
2099 * testsuite/gas/riscv/priv-reg-pseudo-noalias.d: New testcase for all
2100 pseudo instruction with objdump -Mno-aliases.
2101 * testsuite/gas/riscv/priv-reg-fail-nonexistent.d: New testcase.
2102 * testsuite/gas/riscv/priv-reg-fail-nonexistent.l: Likewise.
2103 * testsuite/gas/riscv/priv-reg-fail-nonexistent.s: Likewise.
2104 * testsuite/gas/riscv/priv-reg.d: Update CSR to 1.11.
2105 * testsuite/gas/riscv/priv-reg.s: Likewise.
2106 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
2107 * testsuite/gas/riscv/csr-dw-regnums.d: Likewise.
2108 * testsuite/gas/riscv/csr-dw-regnums.s: Likewise.
2109
2110 2020-03-25 J.W. Jagersma <jwjagersma@gmail.com>
2111
2112 * config/obj-coff.c (obj_coff_section): Set the bss flag on
2113 sections with the "b" attribute.
2114
2115 2020-03-22 Alan Modra <amodra@gmail.com>
2116
2117 * testsuite/gas/s12z/truncated.d: Update expected output.
2118
2119 2020-03-17 Sergey Belyashov <sergey.belyashov@gmail.com>
2120
2121 PR 25690
2122 * config/tc-z80.c (md_pseudo_table): Add xdef anf xref pseudo ops.
2123 * doc/c-z80.texi: Update documentation.
2124
2125 2020-03-17 Sergey Belyashov <sergey.belyashov@gmail.com>
2126
2127 PR 25641
2128 PR 25668
2129 PR 25633
2130 Fix disassembling ED+A4/AC/B4/BC opcodes.
2131 Fix assembling lines containing colonless label and instruction
2132 with first operand inside parentheses.
2133 Fix registration of unsupported by target CPU registers.
2134 * config/tc-z80.c: See above.
2135 * config/tc-z80.h: See above.
2136 * testsuite/gas/z80/colonless.d: Update test.
2137 * testsuite/gas/z80/colonless.s: Likewise.
2138 * testsuite/gas/z80/ez80_adl_all.d: Likewise.
2139 * testsuite/gas/z80/ez80_unsup_regs.d: Likewise.
2140 * testsuite/gas/z80/ez80_z80_all.d: Likewise.
2141 * testsuite/gas/z80/gbz80_unsup_regs.d: Likewise.
2142 * testsuite/gas/z80/r800_unsup_regs.d: Likewise.
2143 * testsuite/gas/z80/unsup_regs.s: Likewise.
2144 * testsuite/gas/z80/z180_unsup_regs.d: Likewise.
2145 * testsuite/gas/z80/z80.exp: Likewise.
2146 * testsuite/gas/z80/z80_strict_unsup_regs.d: Likewise.
2147 * testsuite/gas/z80/z80_unsup_regs.d: Likewise.
2148 * testsuite/gas/z80/z80n_unsup_regs.d: Likewise.
2149
2150 2020-03-13 Andre Vieira <andre.simoesdiasvieira@arm.com>
2151
2152 PR 25660
2153 * config/tc-arm.c (operand_parse_code): Add OP_RNSDMQR and OP_oRNSDMQ.
2154 (parse_operands): Handle new operand codes.
2155 (do_neon_dyadic_long): Make shape check accept the scalar variants.
2156 (asm_opcode_insns): Fix operand codes for vaddl and vsubl.
2157 * testsuite/gas/arm/mve-vaddsub-it.s: New test.
2158 * testsuite/gas/arm/mve-vaddsub-it.d: New test.
2159 * testsuite/gas/arm/mve-vaddsub-it-bad.s: New test.
2160 * testsuite/gas/arm/mve-vaddsub-it-bad.l: New test.
2161 * testsuite/gas/arm/mve-vaddsub-it-bad.d: New test.
2162 * testsuite/gas/arm/nomve-vaddsub-it.d: New test.
2163
2164 2020-03-11 H.J. Lu <hongjiu.lu@intel.com>
2165
2166 * NEWS: Mention x86 assembler options for CVE-2020-0551.
2167
2168 2020-03-11 H.J. Lu <hongjiu.lu@intel.com>
2169
2170 * testsuite/gas/i386/i386.exp: Run new tests.
2171 * testsuite/gas/i386/lfence-byte.d: New file.
2172 * testsuite/gas/i386/lfence-byte.e: Likewise.
2173 * testsuite/gas/i386/lfence-byte.s: Likewise.
2174 * testsuite/gas/i386/lfence-indbr-a.d: Likewise.
2175 * testsuite/gas/i386/lfence-indbr-b.d: Likewise.
2176 * testsuite/gas/i386/lfence-indbr-c.d: Likewise.
2177 * testsuite/gas/i386/lfence-indbr.e: Likewise.
2178 * testsuite/gas/i386/lfence-indbr.s: Likewise.
2179 * testsuite/gas/i386/lfence-load.d: Likewise.
2180 * testsuite/gas/i386/lfence-load.s: Likewise.
2181 * testsuite/gas/i386/lfence-ret-a.d: Likewise.
2182 * testsuite/gas/i386/lfence-ret-b.d: Likewise.
2183 * testsuite/gas/i386/lfence-ret.s: Likewise.
2184 * testsuite/gas/i386/x86-64-lfence-byte.d: Likewise.
2185 * testsuite/gas/i386/x86-64-lfence-byte.e: Likewise.
2186 * testsuite/gas/i386/x86-64-lfence-byte.s: Likewise.
2187 * testsuite/gas/i386/x86-64-lfence-indbr-a.d: Likewise.
2188 * testsuite/gas/i386/x86-64-lfence-indbr-b.d: Likewise.
2189 * testsuite/gas/i386/x86-64-lfence-indbr-c.d: Likewise.
2190 * testsuite/gas/i386/x86-64-lfence-indbr.e: Likewise.
2191 * testsuite/gas/i386/x86-64-lfence-indbr.s: Likewise.
2192 * testsuite/gas/i386/x86-64-lfence-load.d: Likewise.
2193 * testsuite/gas/i386/x86-64-lfence-load.s: Likewise.
2194 * testsuite/gas/i386/x86-64-lfence-ret-a.d: Likewise.
2195 * testsuite/gas/i386/x86-64-lfence-ret-b.d: Likewise.
2196
2197 2020-03-11 H.J. Lu <hongjiu.lu@intel.com>
2198
2199 * config/tc-i386.c (lfence_after_load): New.
2200 (lfence_before_indirect_branch_kind): New.
2201 (lfence_before_indirect_branch): New.
2202 (lfence_before_ret_kind): New.
2203 (lfence_before_ret): New.
2204 (last_insn): New.
2205 (load_insn_p): New.
2206 (insert_lfence_after): New.
2207 (insert_lfence_before): New.
2208 (md_assemble): Call insert_lfence_before and insert_lfence_after.
2209 Set last_insn.
2210 (OPTION_MLFENCE_AFTER_LOAD): New.
2211 (OPTION_MLFENCE_BEFORE_INDIRECT_BRANCH): New.
2212 (OPTION_MLFENCE_BEFORE_RET): New.
2213 (md_longopts): Add -mlfence-after-load=,
2214 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
2215 (md_parse_option): Handle -mlfence-after-load=,
2216 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
2217 (md_show_usage): Display -mlfence-after-load=,
2218 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
2219 (i386_cons_align): New.
2220 * config/tc-i386.h (i386_cons_align): New.
2221 (md_cons_align): New.
2222 * doc/c-i386.texi: Document -mlfence-after-load=,
2223 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
2224
2225 2020-03-11 Nick Clifton <nickc@redhat.com>
2226
2227 PR 25611
2228 PR 25614
2229 * dwarf2dbg.c (DWARF2_FILE_TIME_NAME): Default to -1.
2230 (DWARF2_FILE_SIZE_NAME): Default to -1.
2231 (DWARF2_LINE_VERSION): Default to the current dwarf level or 3,
2232 whichever is higher.
2233 (DWARF2_LINE_MAX_OPS_PER_INSN): Provide a default value of 1.
2234 (NUM_MD5_BYTES): Define.
2235 (struct file entry): Add md5 field.
2236 (get_filenum): Delete and replace with...
2237 (get_basename): New function.
2238 (get_directory_table_entry): New function.
2239 (allocate_filenum): New function.
2240 (allocate_filename_to_slot): New function.
2241 (dwarf2_where): Use new functions.
2242 (dwarf2_directive_filename): Add support for extended .file
2243 pseudo-op.
2244 (dwarf2_directive_loc): Allow the use of file number zero with
2245 DWARF 5 or higher.
2246 (out_file_list): Rename to...
2247 (out_dir_and_file_list): Add DWARF 5 support.
2248 (out_debug_line): Emit extra values into the section header for
2249 DWARF 5.
2250 (out_debug_str): Allow for file 0 to be used with DWARF 5.
2251 * doc/as.texi (.file): Update the description of this pseudo-op.
2252 * testsuite/gas/elf-dwarf-5-file0.s: Add more lines.
2253 * testsuite/gas/elf-dwarf-5-file0.d: Update expected dump output.
2254 * testsuite/gas/lns/lns-diag-1.l: Update expected error message.
2255 * NEWS: Mention the new feature.
2256
2257 2020-03-10 Alan Modra <amodra@gmail.com>
2258
2259 * config/tc-csky.c (get_operand_value): Rewrite 1 << 31 expressions
2260 to avoid signed overflow.
2261 * config/tc-mcore.c (md_assemble): Likewise.
2262 * config/tc-mips.c (gpr_read_mask, gpr_write_mask): Likewise.
2263 * config/tc-nds32.c (SET_ADDEND): Likewise.
2264 * config/tc-nios2.c (nios2_assemble_arg_R): Likewise.
2265
2266 2020-03-09 Jan Beulich <jbeulich@suse.com>
2267
2268 * testsuite/gas/i386/avx.s: Add long-form VCMP[PS][SD] pseudos.
2269 * testsuite/gas/i386/avx.d, testsuite/gas/i386/avx-16bit.d,
2270 testsuite/gas/i386/avx-intel.d: Adjust expectations.
2271
2272 2020-03-07 Alan Modra <amodra@gmail.com>
2273
2274 * testsuite/gas/elf/dwarf-5-file0.s: Don't start directives in
2275 first column.
2276
2277 2020-03-06 Nick Clifton <nickc@redhat.com>
2278
2279 PR 25614
2280 * dwarf2dbg.c (dwarf2_directive_filename): Allow a file number of
2281 0 if the dwarf_level is 5 or more. Complain if a filename follows
2282 a file 0.
2283 * testsuite/gas/elf/dwarf-5-file0.s: New test.
2284 * testsuite/gas/elf/dwarf-5-file0.d: New test driver.
2285 * testsuite/gas/elf/elf.exp: Run the new test.
2286
2287 PR 25612
2288 * config/tc-ia64.h (DWARF2_VERISION): Fix typo.
2289 * doc/as.texi: Fix another typo.
2290
2291 2020-03-06 Nick Clifton <nickc@redhat.com>
2292
2293 PR 25612
2294 * as.c (dwarf_level): Define.
2295 (show_usage): Add --gdwarf-3, --gdwarf-4 and --gdwarf-5.
2296 (parse_args): Add support for the new options.
2297 as.h (dwarf_level): Prototype.
2298 * dwarf2dbg.c (DWARF2_VERSION): Use dwarf_level as default version
2299 value.
2300 * config/tc-ia64.h (DWARF2_VERISION): Update definition.
2301 (DWARF2_LINE_VERSION): Remove definition.
2302 * doc/as.texi: Document the new options.
2303
2304 2020-03-06 Nick Clifton <nickc@redhat.com>
2305
2306 PR 25572
2307 * as.c (main): Allow matching input and outputs when they are
2308 not regular files.
2309
2310 2020-03-06 Jan Beulich <jbeulich@suse.com>
2311
2312 * config/tc-i386.c (match_mem_size): Generalize broadcast special
2313 casing.
2314 (check_VecOperands): Zap xmmword/ymmword/zmmword when more than
2315 one of byte/word/dword/qword is set alongside a SIMD register in
2316 a template's operand.
2317
2318 2020-03-06 Jan Beulich <jbeulich@suse.com>
2319
2320 * config/tc-i386.c (match_template): Extend code in logic
2321 rejecting certain suffixes in certain modes to also cover mask
2322 register use and VecSIB. Drop special casing of broadcast. Skip
2323 immediates in the check.
2324
2325 2020-03-06 Jan Beulich <jbeulich@suse.com>
2326
2327 * config/tc-i386.c (match_template): Fold duplicate code in
2328 logic rejecting certain suffixes in certain modes. Drop
2329 pointless "else".
2330
2331 2020-03-06 Jan Beulich <jbeulich@suse.com>
2332
2333 * config/tc-i386.c (process_suffix): Exlucde !vexw insns
2334 alongside !norex64 ones.
2335 * testsuite/gas/i386/x86-64-avx512bw.s: Test VPEXTR* and VPINSR*
2336 with both 32- and 64-bit GPR operands.
2337 * testsuite/gas/i386/x86-64-avx512f.s: Test VEXTRACTPS with both
2338 32- and 64-bit GPR operands.
2339 * testsuite/gas/i386/x86-64-avx512bw-intel.d,
2340 testsuite/gas/i386/x86-64-avx512bw.d,
2341 testsuite/gas/i386/x86-64-avx512f-intel.d,
2342 testsuite/gas/i386/x86-64-avx512f.d: Adjust expectations.
2343
2344 2020-03-06 Jan Beulich <jbeulich@suse.com>
2345
2346 * config/tc-i386.c (md_assemble): Drop use of rex64.
2347 (process_suffix): For REX.W for 64-bit CRC32.
2348
2349 2020-03-06 Jan Beulich <jbeulich@suse.com>
2350
2351 * config/tc-i386.c (i386_addressing_mode): For 32-bit
2352 addressing for MPX insns without base/index.
2353 * testsuite/gas/i386/mpx-16bit.s,
2354 * testsuite/gas/i386/mpx-16bit.d: New.
2355 * testsuite/gas/i386/i386.exp: Run new test.
2356
2357 2020-03-06 Jan Beulich <jbeulich@suse.com>
2358
2359 * testsuite/gas/i386/adx.s, testsuite/gas/i386/cet.s,
2360 testsuite/gas/i386/ept.s, testsuite/gas/i386/fsgs.s,
2361 testsuite/gas/i386/invpcid.s, testsuite/gas/i386/movdir.s,
2362 testsuite/gas/i386/ptwrite.s, testsuite/gas/i386/vmx.s,
2363 * testsuite/gas/i386/code16.s: Add CR, DR, and TR access cases
2364 as well as a BSWAP one.
2365 * testsuite/gas/i386/rdpid.s: Add 16-bit case.
2366 * testsuite/gas/i386/sse2-16bit.s: Cover more insns.
2367 * testsuite/gas/i386/adx-intel.d, testsuite/gas/i386/adx.d,
2368 testsuite/gas/i386/cet-intel.d, testsuite/gas/i386/cet.d,
2369 testsuite/gas/i386/code16.d, testsuite/gas/i386/ept-intel.d,
2370 testsuite/gas/i386/ept.d, testsuite/gas/i386/fsgs-intel.d,
2371 testsuite/gas/i386/fsgs.d, testsuite/gas/i386/invpcid-intel.d,
2372 testsuite/gas/i386/invpcid.d, testsuite/gas/i386/movdir-intel.d,
2373 testsuite/gas/i386/movdir.d, testsuite/gas/i386/ptwrite-intel.d,
2374 testsuite/gas/i386/ptwrite.d, testsuite/gas/i386/rdpid-intel.d,
2375 testsuite/gas/i386/rdpid.d, testsuite/gas/i386/sse2-16bit.d,
2376 testsuite/gas/i386/vmx.d: Adjust expectations.
2377
2378 2020-03-06 Jan Beulich <jbeulich@suse.com>
2379
2380 * config/tc-i386.c (md_assemble): Also exclude tpause and umwait
2381 from having their operands swapped.
2382 * testsuite/gas/i386/waitpkg.s,
2383 testsuite/gas/i386/x86-64-waitpkg.s: Add tpause and umwait
2384 3-operand cases as well as testing of 16-bit code generation.
2385 * testsuite/gas/i386/waitpkg.d,
2386 testsuite/gas/i386/waitpkg-intel.d,
2387 testsuite/gas/i386/x86-64-waitpkg.d,
2388 testsuite/gas/i386/x86-64-waitpkg-intel.d: Adjust expectations.
2389
2390 2020-03-04 Nelson Chu <nelson.chu@sifive.com>
2391
2392 * config/tc-riscv.c (percent_op_utype): Support the modifier
2393 %got_pcrel_hi.
2394 * doc/c-riscv.texi: Add documentation.
2395 * testsuite/gas/riscv/no-relax-reloc.d: Add test case for the new
2396 modifier %got_pcrel_hi.
2397 * testsuite/gas/riscv/no-relax-reloc.s: Likewise.
2398 * testsuite/gas/riscv/relax-reloc.d: Likewise.
2399 * testsuite/gas/riscv/relax-reloc.s: Likewise.
2400
2401 * doc/c-riscv.texi (relocation modifiers): Add documentation.
2402 (RISC-V-Formats): Update the section name from "Instruction Formats"
2403 to "RISC-V Instruction Formats".
2404
2405 2020-03-04 Alexandre Oliva <oliva@adacore.com>
2406
2407 * config/tc-arm.c (md_apply_fix): Warn if a PC-relative load is
2408 detected in a section which does not have at least 4 byte
2409 alignment.
2410 * testsuite/gas/arm/armv8-ar-it-bad.s: Add alignment directive.
2411 * testsuite/gas/arm/ldr-t.s: Likewise.
2412 * testsuite/gas/arm/sp-pc-usage-t.s: Likewise.
2413 * testsuite/gas/arm/sp-pc-usage-t.d: Finish test at end of
2414 disassembly, ignoring any NOPs that may have been inserted because
2415 of section alignment.
2416 * testsuite/gas/arm/ldr-t.d: Likewise.
2417
2418 2020-03-04 Jan Beulich <jbeulich@suse.com>
2419
2420 * config/tc-i386.c (cpu_arch): Add .sev_es entry.
2421 * doc/c-i386.texi: Mention sev_es.
2422 * testsuite/gas/i386/arch-13.s: Add SEV-ES case.
2423 * testsuite/gas/i386/arch-13.d: Extend -march=. Adjust
2424 expectations.
2425 * testsuite/gas/i386/arch-13-znver1.d,
2426 testsuite/gas/i386/arch-13-znver2.d: Extend -march=.
2427
2428 2020-03-03 H.J. Lu <hongjiu.lu@intel.com>
2429
2430 * config/tc-i386.c (match_template): Replace ignoresize and
2431 defaultsize with mnemonicsize.
2432 (process_suffix): Likewise.
2433
2434 2020-03-03 Sergey Belyashov <sergey.belyashov@gmail.com>
2435
2436 PR 25627
2437 * config/tc-z80.c (emit_ld_rr_m): Fix invalid compilation of
2438 instruction LD IY,(HL).
2439 * testsuite/gas/z80/ez80_adl_all.d: Update expected disassembly.
2440 * testsuite/gas/z80/ez80_adl_all.s: Add tests of the instruction.
2441 * testsuite/gas/z80/ez80_z80_all.d: Update expected disassembly.
2442 * testsuite/gas/z80/ez80_z80_all.s: Add tests of the instruction.
2443
2444 2020-03-03 H.J. Lu <hongjiu.lu@intel.com>
2445
2446 PR gas/25622
2447 * testsuite/gas/i386/i386.exp: Run x86-64-default-suffix and
2448 x86-64-default-suffix-avx.
2449 * testsuite/gas/i386/noreg64.s: Remove cvtsi2sd, cvtsi2ss,
2450 vcvtsi2sd, vcvtsi2ss, vcvtusi2sd and vcvtusi2ss entries.
2451 * testsuite/gas/i386/noreg64.d: Updated.
2452 * testsuite/gas/i386/noreg64.l: Likewise.
2453 * testsuite/gas/i386/x86-64-default-suffix-avx.d: New file.
2454 * testsuite/gas/i386/x86-64-default-suffix.d: Likewise.
2455 * testsuite/gas/i386/x86-64-default-suffix.s: Likewise.
2456
2457 2020-03-03 Sergey Belyashov <sergey.belyashov@gmail.com>
2458
2459 PR 25604
2460 * config/tc-z80.c (contains_register): Prevent an illegal memory
2461 access when checking an expression for a register name.
2462
2463 2020-03-03 Alan Modra <amodra@gmail.com>
2464
2465 * config/obj-coff.h: Remove vestiges of coff-m68k and pe-mips
2466 support.
2467
2468 2020-03-02 Alan Modra <amodra@gmail.com>
2469
2470 * config/tc-m32r.c (md_begin): Set SEC_SMALL_DATA on .scommon section.
2471 * config/tc-mips.c (s_change_sec): Set SEC_SMALL_DATA for .sdata
2472 and .sbss sections.
2473 * config/tc-score.c: Delete !BFD_ASSEMBLER code throughout.
2474 (s3_s_change_sec): Set SEC_SMALL_DATA for .sbss section.
2475 (s3_s_score_lcomm): Likewise.
2476 * config/tc-score7.c: Similarly.
2477 * read.c (bss_alloc): Set SEC_SMALL_DATA for .sbss section.
2478
2479 2020-02-28 YunQiang Su <syq@debian.org>
2480
2481 PR gas/25539
2482 * config/tc-mips.c (fix_loongson3_llsc): Compare label value
2483 to handle multi-labels.
2484 (has_label_name): New.
2485
2486 2020-02-26 Matthew Malcomson <matthew.malcomson@arm.com>
2487
2488 * config/tc-arm.c (enum pred_instruction_type): Remove
2489 NEUTRAL_IT_NO_VPT_INSN predication type.
2490 (cxn_handle_predication): Modify to require condition suffixes.
2491 (handle_pred_state): Remove NEUTRAL_IT_NO_VPT_INSN cases.
2492 * testsuite/gas/arm/cde-scalar.s: Update test.
2493 * testsuite/gas/arm/cde-warnings.l: Update test.
2494 * testsuite/gas/arm/cde-warnings.s: Update test.
2495
2496 2020-02-26 Alan Modra <amodra@gmail.com>
2497
2498 * config/tc-arm.c (reg_expected_msgs[REG_TYPE_RNB]): Don't use
2499 N_() on empty string.
2500
2501 2020-02-26 Alan Modra <amodra@gmail.com>
2502
2503 * read.c (read_a_source_file): Call strncpy with length one
2504 less than size of original_case_string.
2505
2506 2020-02-26 Alan Modra <amodra@gmail.com>
2507
2508 * config/obj-elf.c: Indent labels correctly.
2509 * config/obj-macho.c: Likewise.
2510 * config/tc-aarch64.c: Likewise.
2511 * config/tc-alpha.c: Likewise.
2512 * config/tc-arm.c: Likewise.
2513 * config/tc-cr16.c: Likewise.
2514 * config/tc-crx.c: Likewise.
2515 * config/tc-frv.c: Likewise.
2516 * config/tc-i386-intel.c: Likewise.
2517 * config/tc-i386.c: Likewise.
2518 * config/tc-ia64.c: Likewise.
2519 * config/tc-mn10200.c: Likewise.
2520 * config/tc-mn10300.c: Likewise.
2521 * config/tc-nds32.c: Likewise.
2522 * config/tc-riscv.c: Likewise.
2523 * config/tc-s12z.c: Likewise.
2524 * config/tc-xtensa.c: Likewise.
2525 * config/tc-z80.c: Likewise.
2526 * read.c: Likewise.
2527 * symbols.c: Likewise.
2528 * write.c: Likewise.
2529
2530 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
2531
2532 * config/tc-riscv.c (riscv_ip): New boolean insn_with_csr to indicate
2533 we are assembling instruction with CSR. Call riscv_csr_read_only_check
2534 after parsing all arguments.
2535 (enum csr_insn_type): New enum is used to classify the CSR instruction.
2536 (riscv_csr_insn_type, riscv_csr_read_only_check): New functions. These
2537 are used to check if we write a read-only CSR by the CSR instruction.
2538 * testsuite/gas/riscv/priv-reg-fail-read-only-01.s: New testcase. Test
2539 all CSR for the read-only CSR checking.
2540 * testsuite/gas/riscv/priv-reg-fail-read-only-01.d: Likewise.
2541 * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
2542 * testsuite/gas/riscv/priv-reg-fail-read-only-02.s: New testcase. Test
2543 all CSR instructions for the read-only CSR checking.
2544 * testsuite/gas/riscv/priv-reg-fail-read-only-02.d: Likewise.
2545 * testsuite/gas/riscv/priv-reg-fail-read-only-02.l: Likewise.
2546
2547 * config/tc-riscv.c (struct riscv_set_options): New field csr_check.
2548 (riscv_opts): Initialize it.
2549 (reg_lookup_internal): Check the `riscv_opts.csr_check`
2550 before doing the CSR checking.
2551 (enum options): Add OPTION_CSR_CHECK and OPTION_NO_CSR_CHECK.
2552 (md_longopts): Add mcsr-check and mno-csr-check.
2553 (md_parse_option): Handle new enum option values.
2554 (s_riscv_option): Handle new long options.
2555 * doc/c-riscv.texi: Add description for the new .option and assembler
2556 options.
2557 * testsuite/gas/riscv/priv-reg-fail-fext.d: Add `-mcsr-check` to enable
2558 the CSR checking.
2559 * testsuite/gas/riscv/priv-reg-fail-rv32-only.d: Likewise.
2560
2561 * config/tc-riscv.c (csr_extra_hash): New.
2562 (enum riscv_csr_class): New enum. Used to decide
2563 whether or not this CSR is legal in the current ISA string.
2564 (struct riscv_csr_extra): New structure to hold all extra information
2565 of CSR.
2566 (riscv_init_csr_hashes): New. According to the DECLARE_CSR and
2567 DECLARE_CSR_ALIAS, insert CSR extra information into csr_extra_hash.
2568 Call hash_reg_name to insert CSR address into reg_names_hash.
2569 (reg_csr_lookup_internal, riscv_csr_class_check): New functions.
2570 Decide whether the CSR is valid according to the csr_extra_hash.
2571 (reg_lookup_internal): Call reg_csr_lookup_internal for CSRs.
2572 (init_opcode_hash): Update 'if (hash_error != NULL)' as hash_error is
2573 not a boolean. This is same as riscv_init_csr_hash, so keep the
2574 consistent usage.
2575 (md_begin): Call riscv_init_csr_hashes for each DECLARE_CSR.
2576 * testsuite/gas/riscv/csr-dw-regnums.d: Add -march=rv32if option.
2577 * testsuite/gas/riscv/priv-reg.d: Add f-ext by -march option.
2578 * testsuite/gas/riscv/priv-reg-fail-fext.d: New testcase. The source
2579 file is `priv-reg.s`, and the ISA is rv32i without f-ext, so the
2580 f-ext CSR are not allowed.
2581 * testsuite/gas/riscv/priv-reg-fail-fext.l: Likewise.
2582 * testsuite/gas/riscv/priv-reg-fail-rv32-only.d: New testcase. The
2583 source file is `priv-reg.s`, and the ISA is rv64if, so the
2584 rv32-only CSR are not allowed.
2585 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
2586
2587 2020-02-21 Alan Modra <amodra@gmail.com>
2588
2589 * config/tc-pdp11.c (md_apply_fix): Handle BFD_RELOC_32.
2590 (tc_gen_reloc): Only give a BAD_CASE assertion on pcrel relocs.
2591
2592 2020-02-21 Alan Modra <amodra@gmail.com>
2593
2594 PR 25569
2595 * config/obj-aout.c (obj_aout_frob_file_before_fix): Don't loop
2596 on section size adjustment, instead perform another write if
2597 exec header size is larger than section size.
2598
2599 2020-02-19 Nelson Chu <nelson.chu@sifive.com>
2600
2601 * doc/c-riscv.texi: Add the doc entries for -march-attr/
2602 -mno-arch-attr command line options.
2603
2604 2020-02-19 Nelson Chu <nelson.chu@sifive.com>
2605
2606 * testsuite/gas/riscv/c-add-addi.d: New testcase.
2607 * testsuite/gas/riscv/c-add-addi.s: Likewise.
2608
2609 2020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
2610
2611 PR 25576
2612 * config/tc-z80.c (md_parse_option): Do not use an underscore
2613 prefix for local labels in SDCC compatability mode.
2614 (z80_start_line_hook): Remove SDCC dollar label support.
2615 * testsuite/gas/z80/sdcc.d: Update expected disassembly.
2616 * testsuite/gas/z80/sdcc.s: Likewise.
2617
2618 2020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
2619
2620 PR 25517
2621 * config/tc-z80.c: Add -march option.
2622 * doc/as.texi: Update Z80 documentation.
2623 * doc/c-z80.texi: Likewise.
2624 * testsuite/gas/z80/ez80_adl_all.d: Update command line.
2625 * testsuite/gas/z80/ez80_adl_suf.d: Likewise.
2626 * testsuite/gas/z80/ez80_pref_dis.d: Likewise.
2627 * testsuite/gas/z80/ez80_z80_all.d: Likewise.
2628 * testsuite/gas/z80/ez80_z80_suf.d: Likewise.
2629 * testsuite/gas/z80/gbz80_all.d: Likewise.
2630 * testsuite/gas/z80/r800_extra.d: Likewise.
2631 * testsuite/gas/z80/r800_ii8.d: Likewise.
2632 * testsuite/gas/z80/r800_z80_doc.d: Likewise.
2633 * testsuite/gas/z80/sdcc.d: Likewise.
2634 * testsuite/gas/z80/z180.d: Likewise.
2635 * testsuite/gas/z80/z180_z80_doc.d: Likewise.
2636 * testsuite/gas/z80/z80_doc.d: Likewise.
2637 * testsuite/gas/z80/z80_ii8.d: Likewise.
2638 * testsuite/gas/z80/z80_in_f_c.d: Likewise.
2639 * testsuite/gas/z80/z80_op_ii_ld.d: Likewise.
2640 * testsuite/gas/z80/z80_out_c_0.d: Likewise.
2641 * testsuite/gas/z80/z80_sli.d: Likewise.
2642 * testsuite/gas/z80/z80n_all.d: Likewise.
2643 * testsuite/gas/z80/z80n_reloc.d: Likewise.
2644
2645 2020-02-19 H.J. Lu <hongjiu.lu@intel.com>
2646
2647 * config/tc-i386.c (output_insn): Mark cvtpi2ps and cvtpi2pd
2648 with GNU_PROPERTY_X86_FEATURE_2_MMX.
2649 * testsuite/gas/i386/i386.exp: Run property-3 and
2650 x86-64-property-3.
2651 * testsuite/gas/i386/property-3.d: New file.
2652 * testsuite/gas/i386/property-3.s: Likewise.
2653 * testsuite/gas/i386/x86-64-property-3.d: Likewise.
2654
2655 2020-02-17 H.J. Lu <hongjiu.lu@intel.com>
2656
2657 * config/tc-i386.c (cpu_arch): Add .popcnt.
2658 * doc/c-i386.texi: Remove abm and .abm. Add popcnt and .popcnt.
2659 Add a tab before @samp{.sse4a}.
2660
2661 2020-02-17 Jan Beulich <jbeulich@suse.com>
2662
2663 * config/tc-i386.c (process_suffix): Don't try to guess a suffix
2664 for AddrPrefixOpReg templates. Combine the two pieces of
2665 addrprefixopreg handling. Reject 16-bit address reg in 64-bit
2666 mode.
2667
2668 2020-02-17 Jan Beulich <jbeulich@suse.com>
2669
2670 PR gas/14439
2671 * config/tc-i386.c (md_assemble): Also suppress operand
2672 swapping for MONITOR{,X} and MWAIT{,X}.
2673 * testsuite/gas/i386/sse3.s, testsuite/gas/i386/x86-64-sse3.s:
2674 Add Intel syntax monitor/mwait tests.
2675 * testsuite/gas/i386/sse3.d, testsuite/gas/i386/x86-64-sse3.d:
2676 Adjust expectations.
2677 *testsuite/gas/i386/sse3-intel.d,
2678 testsuite/gas/i386/x86-64-sse3-intel.d: New.
2679 * testsuite/gas/i386/i386.exp: Run new tests.
2680
2681 2020-02-17 Jan Beulich <jbeulich@suse.com>
2682
2683 PR gas/6518
2684 * config/tc-i386.c (process_suffix): Re-work Intel-syntax
2685 [XYZ]MMWord memory operand ambiguity recognition logic (largely
2686 re-indentation).
2687 * testsuite/gas/i386/avx512dq-inval.s: Add vcvtqq2ps/vcvtuqq2ps
2688 cases.
2689 * testsuite/gas/i386/inval-avx512f.s: Also test vcvtneps2bf16.
2690 * testsuite/gas/i386/avx512dq-inval.l,
2691 testsuite/gas/i386/inval-avx.l,
2692 testsuite/gas/i386/inval-avx512f.l: Adjust expectations.
2693 * testsuite/gas/i386/avx512vl-ambig.s,
2694 testsuite/gas/i386/avx512vl-ambig.l: New.
2695 * testsuite/gas/i386/i386.exp: Run new test.
2696
2697 2020-02-16 H.J. Lu <hongjiu.lu@intel.com>
2698
2699 * config/tc-i386.c (cpu_arch): Add .sse4a and nosse4a. Restore
2700 nosse4.
2701 * doc/c-i386.texi: Document sse4a and nosse4a.
2702
2703 2020-02-14 H.J. Lu <hongjiu.lu@intel.com>
2704
2705 * doc/c-i386.texi: Remove the old movsx and movzx documentation
2706 for AT&T syntax.
2707
2708 2020-02-14 Jan Beulich <jbeulich@suse.com>
2709
2710 PR gas/25438
2711 * config/tc-i386.c (md_assemble): Move movsx/movzx special
2712 casing ...
2713 (process_suffix): ... here. Consider just the first operand
2714 initially.
2715 (check_long_reg): Drop opcode 0x63 special case again.
2716 * testsuite/gas/i386/i386.s, testsuite/gas/i386/iamcu-1.s,
2717 testsuite/gas/i386/ilp32/x86-64.s, testsuite/gas/i386/x86_64.s:
2718 Move ambiguous operand size tests ...
2719 * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
2720 testsuite/gas/i386/noreg64.s: ... here.
2721 * testsuite/gas/i386/i386.d, testsuite/gas/i386/i386-intel.d
2722 testsuite/gas/i386/iamcu-1.d, testsuite/gas/i386/ilp32/x86-64.d,
2723 testsuite/gas/i386/k1om.d, testsuite/gas/i386/l1om.d,
2724 testsuite/gas/i386/movx16.l, testsuite/gas/i386/movx32.l,
2725 testsuite/gas/i386/movx64.l, testsuite/gas/i386/noreg16.d,
2726 testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg64.d,
2727 testsuite/gas/i386/x86-64-movsxd.d,
2728 testsuite/gas/i386/x86-64-movsxd-intel.d,
2729 testsuite/gas/i386/x86_64.d, testsuite/gas/i386/x86_64-intel.d:
2730 Adjust expectations.
2731 * testsuite/gas/i386/movx16.s, testsuite/gas/i386/movx16.l,
2732 testsuite/gas/i386/movx32.s, testsuite/gas/i386/movx32.l,
2733 testsuite/gas/i386/movx64.s, testsuite/gas/i386/movx64.l: New.
2734 * testsuite/gas/i386/i386.exp: Run new tests.
2735
2736 2020-02-14 Jan Beulich <jbeulich@suse.com>
2737
2738 * config/tc-i386.c (process_operands): Also skip segment
2739 override prefix emission if it matches an already present one.
2740 * testsuite/gas/i386/prefix32.s: Add double segment override
2741 cases.
2742 * testsuite/gas/i386/prefix32.l: Adjust expectations.
2743
2744 2020-02-14 Jan Beulich <jbeulich@suse.com>
2745
2746 * config/tc-i386.c (process_operands): Drop ineffectual segment
2747 overrides when optimizing.
2748 * testsuite/gas/i386/lea-optimize.d: New.
2749 * testsuite/gas/i386/i386.exp: Run new test.
2750
2751 2020-02-14 Jan Beulich <jbeulich@suse.com>
2752
2753 * config/tc-i386.c (process_operands): Also check insn prefix
2754 for ineffectual segment override warning. Don't cover possible
2755 VEX/EVEX encoded insns there.
2756 * testsuite/gas/i386/lea.s, testsuite/gas/i386/lea.d,
2757 testsuite/gas/i386/lea.e: New.
2758 * testsuite/gas/i386/i386.exp: Run new test.
2759
2760 2020-02-14 H.J. Lu <hongjiu.lu@intel.com>
2761
2762 PR gas/25438
2763 * doc/c-i386.texi: Document movsx, movsxd and movzx for AT&T
2764 syntax.
2765
2766 2020-02-13 Fangrui Song <maskray@google.com>
2767 H.J. Lu <hongjiu.lu@intel.com>
2768
2769 PR gas/25551
2770 * config/tc-i386.c (tc_i386_fix_adjustable): Don't check
2771 BFD_RELOC_386_PLT32 nor BFD_RELOC_X86_64_PLT32.
2772 * testsuite/gas/i386/i386.exp: Run relax-5 and x86-64-relax-4.
2773 * testsuite/gas/i386/relax-5.d: New file.
2774 * testsuite/gas/i386/relax-5.s: Likewise.
2775 * testsuite/gas/i386/x86-64-relax-4.d: Likewise.
2776 * testsuite/gas/i386/x86-64-relax-4.s: Likewise.
2777
2778 2020-02-13 Jan Beulich <jbeulich@suse.com>
2779
2780 * config/tc-i386.c (cpu_noarch): Use CPU_ANY_SSE4_FLAGS in
2781 "nosse4" entry.
2782
2783 2020-02-12 Jan Beulich <jbeulich@suse.com>
2784
2785 * config/tc-i386.c (avx512): New (at file scope), moved from
2786 (check_VecOperands): ... here.
2787 (process_suffix): Add [XYZ]MMword operand size handling.
2788 * testsuite/gas/i386/avx512dq-inval.s: Add VFPCLASS tests.
2789 * testsuite/gas/i386/noavx512-2.s: Add Intel syntax VFPCLASS
2790 tests.
2791 * testsuite/gas/i386/avx512dq-inval.l,
2792 testsuite/gas/i386/noavx512-2.l: Adjust expectations.
2793
2794 2020-02-12 Jan Beulich <jbeulich@suse.com>
2795
2796 PR gas/24546
2797 * config/tc-i386.c (match_template): Apply AMD64 check to 64-bit
2798 code only.
2799 * config/tc-i386-intel.c (i386_intel_operand): Also handle
2800 CALL/JMP in O_tbyte_ptr case.
2801 * doc/c-i386.texi: Mention far call and full pointer load ISA
2802 differences.
2803 * testsuite/gas/i386/x86-64-branch-3.s,
2804 testsuite/gas/i386/x86-64-intel64.s: Add 64-bit far call cases.
2805 * testsuite/gas/i386/x86-64-branch-3.d,
2806 testsuite/gas/i386/x86-64-intel64.d: Adjust expectations.
2807 * testsuite/gas/i386/x86-64-branch-5.l,
2808 testsuite/gas/i386/x86-64-branch-5.s: New.
2809 * testsuite/gas/i386/i386.exp: Run new test.
2810
2811 2020-02-12 Jan Beulich <jbeulich@suse.com>
2812
2813 PR gas/25438
2814 * config/tc-i386.c (REGISTER_WARNINGS): Delete.
2815 (check_byte_reg): Skip only source operand of CRC32. Drop Non-
2816 64-bit-only warning.
2817 (check_word_reg): Consistently error on mismatching register
2818 size and suffix.
2819 * testsuite/gas/i386/general.s: Replace dword GPR with word one
2820 for movw. Replace suffix / GPR for orb.
2821 * testsuite/gas/i386/inval.s: Add tests for movw with dword and
2822 byte GPRs as well as ones for inb/outb with a word accumulator.
2823 * testsuite/gas/i386/general.l, testsuite/gas/i386/intelbad.l,
2824 testsuite/gas/i386/inval.l: Adjust expectations.
2825
2826 2020-02-12 Jan Beulich <jbeulich@suse.com>
2827
2828 * config/tc-i386.c (operand_type_register_match): Also fall
2829 through initial two if()-s when the template allows for a GPR
2830 operand. Adjust comment.
2831
2832 2020-02-11 Jan Beulich <jbeulich@suse.com>
2833
2834 (struct _i386_insn): New field "short_form".
2835 (optimize_encoding): Drop setting of shortform field.
2836 (process_suffix): Set i.short_form. Replace shortform use.
2837 (process_operands): Replace shortform use.
2838
2839 2020-02-11 Matthew Malcomson <matthew.malcomson@arm.com>
2840
2841 * config/tc-arm.c (vcx_handle_register_arguments): Remove `for`
2842 loop initial declaration.
2843
2844 2020-02-10 Matthew Malcomson <matthew.malcomson@arm.com>
2845
2846 * config/tc-arm.c (NEON_MAX_TYPE_ELS): Increment to account for
2847 instructions that can have 5 arguments.
2848 (enum operand_parse_code): Add new operands.
2849 (parse_operands): Account for new operands.
2850 (S5): New macro.
2851 (enum neon_shape_el): Introduce P suffixes for coprocessor.
2852 (neon_select_shape): Account for P suffix.
2853 (LOW1): Move macro to global position.
2854 (HI4): Move macro to global position.
2855 (vcx_assign_vec_d): New.
2856 (vcx_assign_vec_m): New.
2857 (vcx_assign_vec_n): New.
2858 (enum vcx_reg_type): New.
2859 (vcx_get_reg_type): New.
2860 (vcx_size_pos): New.
2861 (vcx_vec_pos): New.
2862 (vcx_handle_shape): New.
2863 (vcx_ensure_register_in_range): New.
2864 (vcx_handle_register_arguments): New.
2865 (vcx_handle_insn_block): New.
2866 (vcx_handle_common_checks): New.
2867 (do_vcx1): New.
2868 (do_vcx2): New.
2869 (do_vcx3): New.
2870 * testsuite/gas/arm/cde-missing-fp.d: New test.
2871 * testsuite/gas/arm/cde-missing-fp.l: New test.
2872 * testsuite/gas/arm/cde-missing-mve.d: New test.
2873 * testsuite/gas/arm/cde-missing-mve.l: New test.
2874 * testsuite/gas/arm/cde-mve-or-neon.d: New test.
2875 * testsuite/gas/arm/cde-mve-or-neon.s: New test.
2876 * testsuite/gas/arm/cde-mve.s: New test.
2877 * testsuite/gas/arm/cde-warnings.l:
2878 * testsuite/gas/arm/cde-warnings.s:
2879 * testsuite/gas/arm/cde.d:
2880 * testsuite/gas/arm/cde.s:
2881
2882 2020-02-10 Stam Markianos-Wright <stam.markianos-wright@arm.com>
2883 Matthew Malcomson <matthew.malcomson@arm.com>
2884
2885 * config/tc-arm.c (arm_ext_cde*): New feature sets for each
2886 CDE coprocessor that can be enabled.
2887 (enum pred_instruction_type): New pred type.
2888 (BAD_NO_VPT): New error message.
2889 (BAD_CDE): New error message.
2890 (BAD_CDE_COPROC): New error message.
2891 (enum operand_parse_code): Add new immediate operands.
2892 (parse_operands): Account for new immediate operands.
2893 (check_cde_operand): New.
2894 (cde_coproc_enabled): New.
2895 (cde_coproc_pos): New.
2896 (cde_handle_coproc): New.
2897 (cxn_handle_predication): New.
2898 (do_custom_instruction_1): New.
2899 (do_custom_instruction_2): New.
2900 (do_custom_instruction_3): New.
2901 (do_cx1): New.
2902 (do_cx1a): New.
2903 (do_cx1d): New.
2904 (do_cx1da): New.
2905 (do_cx2): New.
2906 (do_cx2a): New.
2907 (do_cx2d): New.
2908 (do_cx2da): New.
2909 (do_cx3): New.
2910 (do_cx3a): New.
2911 (do_cx3d): New.
2912 (do_cx3da): New.
2913 (handle_pred_state): Define new IT block behaviour.
2914 (insns): Add newn CX*{,d}{,a} instructions.
2915 (CDE_EXTENSIONS,armv8m_main_ext_table,armv8_1m_main_ext_table):
2916 Define new cdecp extension strings.
2917 * doc/c-arm.texi: Document new cdecp extension arguments.
2918 * testsuite/gas/arm/cde-scalar.d: New test.
2919 * testsuite/gas/arm/cde-scalar.s: New test.
2920 * testsuite/gas/arm/cde-warnings.d: New test.
2921 * testsuite/gas/arm/cde-warnings.l: New test.
2922 * testsuite/gas/arm/cde-warnings.s: New test.
2923 * testsuite/gas/arm/cde.d: New test.
2924 * testsuite/gas/arm/cde.s: New test.
2925
2926 2020-02-10 H.J. Lu <hongjiu.lu@intel.com>
2927
2928 PR gas/25516
2929 * config/tc-i386.c (intel64): Renamed to ...
2930 (isa64): This.
2931 (match_template): Accept Intel64 only instruction by default.
2932 (i386_displacement): Updated.
2933 (md_parse_option): Updated.
2934 * c-i386.texi: Update -mamd64/-mintel64 documentation.
2935 * testsuite/gas/i386/i386.exp: Run x86-64-sysenter. Pass
2936 -mamd64 to x86-64-sysenter-amd.
2937 * testsuite/gas/i386/x86-64-sysenter.d: New file.
2938
2939 2020-02-10 Alan Modra <amodra@gmail.com>
2940
2941 * config/obj-elf.c (obj_elf_change_section): Error for section
2942 type, attr or entsize changes in assembly.
2943 * testsuite/gas/elf/elf.exp: Pass -Z to gas for section5 test.
2944 * testsuite/gas/elf/section5.l: Update.
2945
2946 2020-02-10 Alan Modra <amodra@gmail.com>
2947
2948 * output-file.c (output_file_close): Do a normal close when
2949 flag_always_generate_output.
2950 * write.c (write_object_file): Don't stop output when
2951 flag_always_generate_output.
2952
2953 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
2954
2955 PR 25469
2956 * config/tc-z80.c: Add -gbz80 command line option to generate code
2957 for the GameBoy Z80. Add support for generating DWARF.
2958 * config/tc-z80.h: Add support for DWARF debug information
2959 generation.
2960 * doc/c-z80.texi: Document new command line option.
2961 * testsuite/gas/z80/gbz80_all.d: New file.
2962 * testsuite/gas/z80/gbz80_all.s: New file.
2963 * testsuite/gas/z80/z80.exp: Run the new tests.
2964 * testsuite/gas/z80/z80n_all.d: New file.
2965 * testsuite/gas/z80/z80n_all.s: New file.
2966 * testsuite/gas/z80/z80n_reloc.d: New file.
2967
2968 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
2969
2970 PR gas/25381
2971 * config/obj-elf.c (get_section): Also check
2972 linked_to_symbol_name.
2973 (obj_elf_change_section): Also set map_head.linked_to_symbol_name.
2974 (obj_elf_parse_section_letters): Handle the 'o' flag.
2975 (build_group_lists): Renamed to ...
2976 (build_additional_section_info): This. Set elf_linked_to_section
2977 from map_head.linked_to_symbol_name.
2978 (elf_adjust_symtab): Updated.
2979 * config/obj-elf.h (elf_section_match): Add linked_to_symbol_name.
2980 * doc/as.texi: Document the 'o' flag.
2981 * testsuite/gas/elf/elf.exp: Run PR gas/25381 tests.
2982 * testsuite/gas/elf/section18.d: New file.
2983 * testsuite/gas/elf/section18.s: Likewise.
2984 * testsuite/gas/elf/section19.d: Likewise.
2985 * testsuite/gas/elf/section19.s: Likewise.
2986 * testsuite/gas/elf/section20.d: Likewise.
2987 * testsuite/gas/elf/section20.s: Likewise.
2988 * testsuite/gas/elf/section21.d: Likewise.
2989 * testsuite/gas/elf/section21.l: Likewise.
2990 * testsuite/gas/elf/section21.s: Likewise.
2991
2992 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
2993
2994 * NEWS: Mention x86 assembler options to align branches for
2995 binutils 2.34.
2996
2997 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
2998
2999 * testsuite/gas/i386/i386.exp: Run unique and x86-64-unique
3000 only for ELF targets.
3001 * testsuite/gas/i386/unique.d: Don't xfail.
3002 * testsuite/gas/i386/x86-64-unique.d: Likewise.
3003
3004 2020-02-06 Alan Modra <amodra@gmail.com>
3005
3006 * testsuite/gas/i386/unique.d: xfail for non-elf targets.
3007 * testsuite/gas/i386/x86-64-unique.d: Likewise.
3008
3009 2020-02-06 Alan Modra <amodra@gmail.com>
3010
3011 * testsuite/gas/elf/section12a.d: Use supports_gnu_osabi in
3012 xfail, and rename test.
3013 * testsuite/gas/elf/section12b.d: Likewise.
3014 * testsuite/gas/elf/section16a.d: Likewise.
3015 * testsuite/gas/elf/section16b.d: Likewise.
3016
3017 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
3018
3019 PR gas/25380
3020 * config/obj-elf.c (section_match): Removed.
3021 (get_section): Also match SEC_ASSEMBLER_SECTION_ID and
3022 section_id.
3023 (obj_elf_change_section): Replace info and group_name arguments
3024 with match_p. Also update the section ID and flags from match_p.
3025 (obj_elf_section): Handle "unique,N". Update call to
3026 obj_elf_change_section.
3027 * config/obj-elf.h (elf_section_match): New.
3028 (obj_elf_change_section): Updated.
3029 * config/tc-arm.c (start_unwind_section): Update call to
3030 obj_elf_change_section.
3031 * config/tc-ia64.c (obj_elf_vms_common): Likewise.
3032 * config/tc-microblaze.c (microblaze_s_data): Likewise.
3033 (microblaze_s_sdata): Likewise.
3034 (microblaze_s_rdata): Likewise.
3035 (microblaze_s_bss): Likewise.
3036 * config/tc-mips.c (s_change_section): Likewise.
3037 * config/tc-msp430.c (msp430_profiler): Likewise.
3038 * config/tc-rx.c (parse_rx_section): Likewise.
3039 * config/tc-tic6x.c (tic6x_start_unwind_section): Likewise.
3040 * doc/as.texi: Document "unique,N" in .section directive.
3041 * testsuite/gas/elf/elf.exp: Run "unique,N" tests.
3042 * testsuite/gas/elf/section15.d: New file.
3043 * testsuite/gas/elf/section15.s: Likewise.
3044 * testsuite/gas/elf/section16.s: Likewise.
3045 * testsuite/gas/elf/section16a.d: Likewise.
3046 * testsuite/gas/elf/section16b.d: Likewise.
3047 * testsuite/gas/elf/section17.d: Likewise.
3048 * testsuite/gas/elf/section17.l: Likewise.
3049 * testsuite/gas/elf/section17.s: Likewise.
3050 * testsuite/gas/i386/unique.d: Likewise.
3051 * testsuite/gas/i386/unique.s: Likewise.
3052 * testsuite/gas/i386/x86-64-unique.d: Likewise.
3053 * testsuite/gas/i386/i386.exp: Run unique and x86-64-unique.
3054
3055 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
3056
3057 * testsuite/gas/elf/section13.s: Replace @nobits with %nobits.
3058
3059 2020-02-01 Anthony Green <green@moxielogic.com>
3060
3061 * config/tc-moxie.c (md_begin): Don't force big-endian mode.
3062
3063 2020-01-31 Sandra Loosemore <sandra@codesourcery.com>
3064
3065 * config/tc-nios2.c (nios2_cons): Handle %gotoff as well as
3066 %tls_ldo.
3067
3068 2020-01-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
3069
3070 PR gas/25472
3071 * config/tc-arm.c (armv8m_main_ext_table): Refactored +dsp adding.
3072 (armv8_1m_main_ext_table): Refactored +dsp adding and enabled dsp for
3073 +mve.
3074 * testsuite/gas/arm/mve_dsp.d: New test.
3075
3076 2020-01-31 Nick Clifton <nickc@redhat.com>
3077
3078 * config/tc-s390.c (s390_elf_suffix): Return ELF_SUFFIX_NONE
3079 rather than BFD_RELOC_NONE.
3080
3081 2020-01-31 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3082
3083 * config/tc-arm.c (fldmias): Moved inside "THUMB_VARIANT & arm_ext_v6t2"
3084 to support VLDMIA instruction for MVE.
3085 (fldmdbs): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VLDMDB
3086 instruction for MVE.
3087 (fstmias): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VSTMIA
3088 instruction for MVE.
3089 (fstmdbs): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VSTMDB
3090 instruction for MVE.
3091 * testsuite/gas/arm/mve-ldst.d: New test.
3092 * testsuite/gas/arm/mve-ldst.s: Likewise.
3093
3094 2020-01-31 Nick Clifton <nickc@redhat.com>
3095
3096 * po/fr.po: Updated French translation.
3097 * po/ru.po: Updated Russian translation.
3098
3099 2020-01-31 Richard Sandiford <richard.sandiford@arm.com>
3100
3101 * testsuite/gas/aarch64/sve-bfloat-movprfx.s: Use .h rather than
3102 .s for the movprfx.
3103 * testsuite/gas/aarch64/sve-bfloat-movprfx.d: Update accordingly.
3104 * testsuite/gas/aarch64/sve-movprfx_28.d,
3105 * testsuite/gas/aarch64/sve-movprfx_28.l,
3106 * testsuite/gas/aarch64/sve-movprfx_28.s: New test.
3107
3108 2020-01-30 Jan Beulich <jbeulich@suse.com>
3109
3110 * config/tc-i386.c (output_disp): Tighten base_opcode check.
3111 * testsuite/gas/i386/got.s: Add LSL, MOVLPS, and BNDCN cases.
3112 * testsuite/gas/i386/got-no-relax.d, testsuite/gas/i386/got.d:
3113 Adjust expectations.
3114
3115 2020-01-30 Jose E. Marchesi <jose.marchesi@oracle.com>
3116
3117 * testsuite/gas/bpf/alu.d: Update expected opcode for `neg'.
3118 * testsuite/gas/bpf/alu-be.d: Likewise.
3119 * testsuite/gas/bpf/alu32.d: Likewise for `neg32'.
3120 * testsuite/gas/bpf/alu32-be.d: Likewise.
3121
3122 2020-01-30 Jan Beulich <jbeulich@suse.com>
3123
3124 * testsuite/gas/i386/x86-64-branch-2.s,
3125 testsuite/gas/i386/x86-64-branch-4.s,
3126 testsuite/gas/i386/x86-64-branch.s: Add RETW cases.
3127 * testsuite/gas/i386/ilp32/x86-64-branch.d,
3128 testsuite/gas/i386/x86-64-branch-2.d,
3129 testsuite/gas/i386/x86-64-branch-4.l,
3130 testsuite/gas/i386/x86-64-branch.d: Adjust expectations.
3131
3132 2020-01-30 Jan Beulich <jbeulich@suse.com>
3133
3134 * config/tc-i386.c (process_suffix): .
3135 testsuite/gas/i386/noreg64.s: Add IRET and LRET cases.
3136 testsuite/gas/i386/x86-64-opcode.s: Add suffix to IRET and LRET.
3137 Add LRETQ case.
3138 testsuite/gas/i386/x86-64-suffix.s: Drop IRET case without
3139 suffix.
3140 testsuite/gas/i386/x86_64.s: Add RETF cases.
3141 * testsuite/gas/i386/k1om.d, testsuite/gas/i386/l1om.d,
3142 testsuite/gas/i386/noreg64.d, testsuite/gas/i386/noreg64.l,
3143 testsuite/gas/i386/x86-64-opcode.d,
3144 testsuite/gas/i386/x86-64-suffix-intel.d,
3145 testsuite/gas/i386/x86-64-suffix.d,
3146 testsuite/gas/i386/x86_64-intel.d
3147 testsuite/gas/i386/x86_64.d: Adjust expectations.
3148 * testsuite/gas/i386/x86-64-suffix.e,
3149 testsuite/gas/i386/x86_64.e: New.
3150
3151 2020-01-30 Jan Beulich <jbeulich@suse.com>
3152
3153 * config/tc-i386.c (process_suffix): Redo and move FLDENV et al
3154 special case.
3155
3156 2020-01-27 H.J. Lu <hongjiu.lu@intel.com>
3157
3158 PR binutils/25445
3159 * config/tc-i386.c (check_long_reg): Also convert to QWORD for
3160 movsxd.
3161 * doc/c-i386.texi: Add a node for AMD64 vs. Intel64 ISA
3162 differences. Document movslq and movsxd.
3163 * testsuite/gas/i386/i386.exp: Run PR binutils/25445 tests.
3164 * testsuite/gas/i386/x86-64-movsxd-intel.d: New file.
3165 * testsuite/gas/i386/x86-64-movsxd-intel64-intel.d: Likewise.
3166 * testsuite/gas/i386/x86-64-movsxd-intel64-inval.l: Likewise.
3167 * testsuite/gas/i386/x86-64-movsxd-intel64-inval.s: Likewise.
3168 * testsuite/gas/i386/x86-64-movsxd-intel64.d: Likewise.
3169 * testsuite/gas/i386/x86-64-movsxd-intel64.s: Likewise.
3170 * testsuite/gas/i386/x86-64-movsxd-inval.l: Likewise.
3171 * testsuite/gas/i386/x86-64-movsxd-inval.s: Likewise.
3172 * testsuite/gas/i386/x86-64-movsxd.d: Likewise.
3173 * testsuite/gas/i386/x86-64-movsxd.s: Likewise.
3174
3175 2020-01-27 Alan Modra <amodra@gmail.com>
3176
3177 * testsuite/gas/all/gas.exp: Replace case statements with switch
3178 statements.
3179 * testsuite/gas/elf/elf.exp: Likewise.
3180 * testsuite/gas/macros/macros.exp: Likewise.
3181 * testsuite/lib/gas-defs.exp: Likewise.
3182
3183 2020-01-27 Tamar Christina <tamar.christina@arm.com>
3184
3185 PR 25403
3186 * testsuite/gas/aarch64/armv8_4-a.d: Add cfinv.
3187 * testsuite/gas/aarch64/armv8_4-a.s: Likewise.
3188
3189 2020-01-22 Maxim Blinov <maxim.blinov@embecosm.com>
3190
3191 * testsuite/gas/riscv/march-ok-s.d: sx is no longer valid and
3192 s exts must be known, so rename *ok* to *fail*.
3193 * testsuite/gas/riscv/march-ok-sx.d: Likewise.
3194 * testsuite/gas/riscv/march-ok-s-with-version: Likewise.
3195 * testsuite/gas/riscv/march-fail-s.l: Expected error messages for
3196 above change.
3197 * testsuite/gas/riscv/march-fail-sx.l: Likewise.
3198 * testsuite/gas/riscv/march-fail-sx-with-version.l: Likewise.
3199
3200 2020-01-22 H.J. Lu <hongjiu.lu@intel.com>
3201
3202 PR gas/25438
3203 * config/tc-i386.c (check_long_reg): Always disallow double word
3204 suffix in mnemonic with word general register.
3205 * testsuite/gas/i386/general.s: Replace word general register
3206 with double word general register for movl.
3207 * testsuite/gas/i386/inval.s: Add tests for movl with word general
3208 register.
3209 * testsuite/gas/i386/general.l: Updated.
3210 * testsuite/gas/i386/inval.l: Likewise.
3211
3212 2020-01-22 Alan Modra <amodra@gmail.com>
3213
3214 * config/tc-ppc.c (parse_tls_arg): Handle tls arg for
3215 __tls_get_addr_desc and __tls_get_addr_opt.
3216
3217 2020-01-21 Jan Beulich <jbeulich@suse.com>
3218
3219 * testsuite/gas/i386/inval-crc32.s,
3220 testsuite/gas/i386/x86-64-inval-crc32.s: Add alignment directive.
3221 * testsuite/gas/i386/inval-crc32.l,
3222 testsuite/gas/i386/x86-64-inval-crc32.l: Adjust expectations.
3223
3224 2020-01-21 Jan Beulich <jbeulich@suse.com>
3225
3226 * config/tc-i386.c (process_suffix): Merge CRC32 handling into
3227 generic code path. Deal with No_lSuf being set in a template.
3228 * testsuite/gas/i386/inval-crc32.l,
3229 testsuite/gas/i386/x86-64-inval-crc32.l: Expect warning(s)
3230 instead of error(s) when operand size is ambiguous.
3231 * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
3232 testsuite/gas/i386/noreg64.s: Add CRC32 tests.
3233 * testsuite/gas/i386/noreg16.d, testsuite/gas/i386/noreg16.l,
3234 testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg32.l,
3235 testsuite/gas/i386/noreg64.d, testsuite/gas/i386/noreg64.l:
3236 Adjust expectations.
3237
3238 2020-01-21 Jan Beulich <jbeulich@suse.com>
3239
3240 * config/tc-i386.c (process_suffix): Drop SYSRET special case
3241 and an intel_syntax check. Re-write lack-of-suffix processing
3242 logic.
3243 * doc/c-i386.texi: Document operand size defaults for suffix-
3244 less AT&T syntax insns.
3245 * testsuite/gas/i386/bundle.s, testsuite/gas/i386/lock-1.s,
3246 testsuite/gas/i386/opcode.s, testsuite/gas/i386/sse3.s,
3247 testsuite/gas/i386/x86-64-avx-scalar.s,
3248 testsuite/gas/i386/x86-64-avx.s,
3249 testsuite/gas/i386/x86-64-bundle.s,
3250 testsuite/gas/i386/x86-64-intel64.s,
3251 testsuite/gas/i386/x86-64-lock-1.s,
3252 testsuite/gas/i386/x86-64-opcode.s,
3253 testsuite/gas/i386/x86-64-sse2avx.s,
3254 testsuite/gas/i386/x86-64-sse3.s: Add missing suffixes.
3255 * testsuite/gas/i386/nops.s, testsuite/gas/i386/sse-noavx.s,
3256 testsuite/gas/i386/x86-64-nops.s,
3257 testsuite/gas/i386/x86-64-ptwrite.s,
3258 testsuite/gas/i386/x86-64-simd.s,
3259 testsuite/gas/i386/x86-64-sse-noavx.s,
3260 testsuite/gas/i386/x86-64-suffix.s: Drop bogus suffix-less
3261 insns.
3262 * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
3263 testsuite/gas/i386/noreg64.s: Add further tests.
3264 * testsuite/gas/i386/ilp32/x86-64-nops.d,
3265 testsuite/gas/i386/nops.d, testsuite/gas/i386/noreg16.d,
3266 testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg64.d,
3267 testsuite/gas/i386/sse-noavx.d,
3268 testsuite/gas/i386/x86-64-intel64.d,
3269 testsuite/gas/i386/x86-64-nops.d,
3270 testsuite/gas/i386/x86-64-opcode.d,
3271 testsuite/gas/i386/x86-64-ptwrite-intel.d,
3272 testsuite/gas/i386/x86-64-ptwrite.d,
3273 testsuite/gas/i386/x86-64-simd-intel.d,
3274 testsuite/gas/i386/x86-64-simd-suffix.d,
3275 testsuite/gas/i386/x86-64-simd.d,
3276 testsuite/gas/i386/x86-64-sse-noavx.d
3277 testsuite/gas/i386/x86-64-suffix.d,
3278 testsuite/gas/i386/x86-64-suffix-intel.d: Adjust expectations.
3279 * testsuite/gas/i386/noreg16.l, testsuite/gas/i386/noreg32.l,
3280 testsuite/gas/i386/noreg64.l: New.
3281 * testsuite/gas/i386/i386.exp: Run new tests.
3282
3283 2020-01-21 Jan Beulich <jbeulich@suse.com>
3284
3285 * testsuite/gas/i386/avx512_bf16_vl.s,
3286 testsuite/gas/i386/x86-64-avx512_bf16_vl.s: Add broadcast forms
3287 of VCVTNEPS2BF16{X,Y}. Add operand-size less Intel syntax
3288 broadcast forms of VCVTNEPS2BF16.
3289 * testsuite/gas/i386/avx512_bf16_vl.d,
3290 testsuite/gas/i386/x86-64-avx512_bf16_vl.d: Adjust expectations.
3291
3292 2020-01-20 Nick Clifton <nickc@redhat.com>
3293
3294 * po/uk.po: Updated Ukranian translation.
3295
3296 2020-01-20 H.J. Lu <hongjiu.lu@intel.com>
3297
3298 PR ld/25416
3299 * config/tc-i386.c (output_insn): Add a dummy REX_OPCODE prefix
3300 for lea with R_X86_64_GOTPC32_TLSDESC relocation when generating
3301 x32 object.
3302 * testsuite/gas/i386/ilp32/x32-tls.d: Updated.
3303 * testsuite/gas/i386/ilp32/x32-tls.s: Add tests for lea with
3304 R_X86_64_GOTPC32_TLSDESC relocation.
3305
3306 2020-01-18 Nick Clifton <nickc@redhat.com>
3307
3308 * configure: Regenerate.
3309 * po/gas.pot: Regenerate.
3310
3311 2020-01-18 Nick Clifton <nickc@redhat.com>
3312
3313 Binutils 2.34 branch created.
3314
3315 2020-01-17 H.J. Lu <hongjiu.lu@intel.com>
3316
3317 * config/tc-i386.c (_i386_insn): Replace vex_encoding_vex2
3318 with vex_encoding_vex.
3319 (parse_insn): Likewise.
3320 * doc/c-i386.texi: Replace {vex2} with {vex}. Update {vex}
3321 and {vex3} documentation.
3322 * testsuite/gas/i386/pseudos.s: Replace 3 {vex2} tests with
3323 {vex}.
3324 * testsuite/gas/i386/x86-64-pseudos.s: Likewise.
3325
3326 2020-01-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
3327
3328 PR 25376
3329 * config/tc-arm.c (mve_ext, mve_fp_ext): Use CORE_HIGH.
3330 (armv8_1m_main_ext_table): Use CORE_HIGH for mve.
3331 * testsuite/arm/armv8_1-m-fpu-mve-1.s: New.
3332 * testsuite/arm/armv8_1-m-fpu-mve-1.d: New.
3333 * testsuite/arm/armv8_1-m-fpu-mve-2.s: New.
3334 * testsuite/arm/armv8_1-m-fpu-mve-2.d: New.
3335
3336 2020-01-16 Jan Beulich <jbeulich@suse.com>
3337
3338 * config/tc-i386.c (match_template): Drop found_cpu_match local
3339 variable.
3340
3341 2020-01-16 Jan Beulich <jbeulich@suse.com>
3342
3343 * testsuite/gas/i386/avx512dq-inval.l,
3344 testsuite/gas/i386/avx512dq-inval.s: New.
3345 * testsuite/gas/i386/i386.exp: Run new test.
3346
3347 2020-01-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3348
3349 * config/tc-msp430.c (CHECK_RELOC_MSP430): Always generate 430X
3350 relocations when the target is 430X, except when extracting part of an
3351 expression.
3352 (msp430_srcoperand): Adjust comment.
3353 Initialize the expp member of the msp430_operand_s struct as
3354 appropriate.
3355 (msp430_dstoperand): Likewise.
3356 * testsuite/gas/msp430/msp430.exp: Run new test.
3357 * testsuite/gas/msp430/reloc-lo-430x.d: New test.
3358 * testsuite/gas/msp430/reloc-lo-430x.s: New test.
3359
3360 2020-01-15 Alan Modra <amodra@gmail.com>
3361
3362 * configure.tgt: Add sparc-*-freebsd case.
3363
3364 2020-01-14 Lili Cui <lili.cui@intel.com>
3365
3366 * testsuite/gas/i386/align-branch-1a.d: Updated for Darwin.
3367 * testsuite/gas/i386/align-branch-1b.d: Likewise.
3368 * testsuite/gas/i386/align-branch-1c.d: Likewise.
3369 * testsuite/gas/i386/align-branch-1d.d: Likewise.
3370 * testsuite/gas/i386/align-branch-1e.d: Likewise.
3371 * testsuite/gas/i386/align-branch-1f.d: Likewise.
3372 * testsuite/gas/i386/align-branch-1g.d: Likewise.
3373 * testsuite/gas/i386/align-branch-1h.d: Likewise.
3374 * testsuite/gas/i386/align-branch-1i.d: Likewise.
3375 * testsuite/gas/i386/align-branch-5.d: Likewise.
3376 * testsuite/gas/i386/x86-64-align-branch-1a.d: Likewise.
3377 * testsuite/gas/i386/x86-64-align-branch-1b.d: Likewise.
3378 * testsuite/gas/i386/x86-64-align-branch-1c.d: Likewise.
3379 * testsuite/gas/i386/x86-64-align-branch-1d.d: Likewise.
3380 * testsuite/gas/i386/x86-64-align-branch-1e.d: Likewise.
3381 * testsuite/gas/i386/x86-64-align-branch-1f.d: Likewise.
3382 * testsuite/gas/i386/x86-64-align-branch-1g.d: Likewise.
3383 * testsuite/gas/i386/x86-64-align-branch-1h.d: Likewise.
3384 * testsuite/gas/i386/x86-64-align-branch-1i.d: Likewise.
3385 * testsuite/gas/i386/x86-64-align-branch-5.d: Likewise.
3386 * testsuite/gas/i386/i386.exp: Skip x86-64-align-branch-2a,
3387 x86-64-align-branch-2b and x86-64-align-branch-2c on Darwin.
3388
3389 2020-01-14 Sergey Belyashov <sergey.belyashov@gmail.com>
3390
3391 PR 25377
3392 * config/tc-z80.c: Add support for half precision, single
3393 precision and double precision floating point values.
3394 * config/tc-z80.h b/gas/config/tc-z80.h: Disable string escapes.
3395 * doc/as.texi: Add new z80 command line options.
3396 * doc/c-z80.texi: Document new z80 command line options.
3397 * testsuite/gas/z80/ez80_pref_dis.s: New test.
3398 * testsuite/gas/z80/ez80_pref_dis.d: New test driver.
3399 * testsuite/gas/z80/z80.exp: Run the new test.
3400 * testsuite/gas/z80/fp_math48.d: Use correct command line option.
3401 * testsuite/gas/z80/fp_zeda32.d: Likewise.
3402 * testsuite/gas/z80/strings.d: Update expected output.
3403
3404 2020-01-13 Matthew Malcomson <matthew.malcomson@arm.com>
3405
3406 * config/tc-aarch64.c (f64mm, f32mm): Add sve as a feature
3407 dependency.
3408
3409 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
3410
3411 * config/tc-arc.c (arc_select_cpu): Re-init the bfd if we change
3412 the CPU.
3413 * config/tc-arc.h: Add header if/defs.
3414 * testsuite/gas/arc/pseudos.d: Improve matching pattern.
3415
3416 2020-01-13 Alan Modra <amodra@gmail.com>
3417
3418 * testsuite/gas/wasm32/allinsn.d: Update expected output.
3419
3420 2020-01-13 Alan Modra <amodra@gmail.com>
3421
3422 * config/tc-tic4x.c (tic4x_operands_match): Correct tic3x trap
3423 insertion.
3424
3425 2020-01-10 Alan Modra <amodra@gmail.com>
3426
3427 * testsuite/gas/elf/pr14891.s: Don't start directives in first column.
3428 * testsuite/gas/elf/pr21661.d: Don't run on hpux.
3429
3430 2020-01-03 Sergey Belyashov <sergey.belyashov@gmail.com>
3431
3432 PR 25224
3433 * config/tc-z80.c (emit_ld_m_rr): Use integer types when checking
3434 opcode byte values.
3435 (emit_ld_r_r): Likewise.
3436 (emit_ld_rr_m): Likewise.
3437 (emit_ld_rr_nn): Likewise.
3438
3439 2020-01-09 Jan Beulich <jbeulich@suse.com>
3440
3441 * config/tc-i386.c (optimize_encoding): Add
3442 is_any_vex_encoding() invocations. Drop respective
3443 i.tm.extension_opcode == None checks.
3444
3445 2020-01-09 Jan Beulich <jbeulich@suse.com>
3446
3447 * config/tc-i386.c (md_assemble): Check RegRex is clear during
3448 REX transformations. Correct comment indentation.
3449
3450 2020-01-09 Jan Beulich <jbeulich@suse.com>
3451
3452 * config/tc-i386.c (optimize_encoding): Generalize register
3453 transformation for TEST optimization.
3454
3455 2020-01-09 Jan Beulich <jbeulich@suse.com>
3456
3457 * testsuite/gas/i386/x86-64-sysenter-amd.s,
3458 testsuite/gas/i386/x86-64-sysenter-amd.d,
3459 testsuite/gas/i386/x86-64-sysenter-amd.l,
3460 testsuite/gas/i386/x86-64-sysenter-intel.d,
3461 testsuite/gas/i386/x86-64-sysenter-mixed.d: New.
3462 * testsuite/gas/i386/i386.exp: Run new tests.
3463
3464 2020-01-08 Nick Clifton <nickc@redhat.com>
3465
3466 PR 25284
3467 * doc/as.texi (Align): Document the fact that all arguments can be
3468 omitted.
3469 (Balign): Likewise.
3470 (P2align): Likewise.
3471
3472 2020-01-08 Nick Clifton <nickc@redhat.com>
3473
3474 PR 14891
3475 * config/obj-elf.c (obj_elf_section): Fail if the section name is
3476 already defined as a different symbol type.
3477 * testsuite/gas/elf/pr14891.s: New test source file.
3478 * testsuite/gas/elf/pr14891.d: New test driver.
3479 * testsuite/gas/elf/pr14891.s: New test expected error output.
3480 * testsuite/gas/elf/elf.exp: Run the new test.
3481
3482 2020-01-08 Alan Modra <amodra@gmail.com>
3483
3484 * config/tc-z8k.c (md_begin): Make idx unsigned.
3485 (get_specific): Likewise for this_index.
3486
3487 2020-01-07 Claudiu Zissulescu <claziss@synopsys.com>
3488
3489 * onfig/tc-arc.c (parse_reloc_symbol): New function.
3490 (tokenize_arguments): Clean up, use parse_reloc_symbol function.
3491 (md_operand): Set X_md to absent.
3492 (arc_parse_name): Check for X_md.
3493
3494 2020-01-03 Sergey Belyashov <sergey.belyashov@gmail.com>
3495
3496 PR 25311
3497 * as.h (TC_STRING_ESCAPES): Provide a default definition.
3498 * app.c (do_scrub_chars): Use TC_STRING_ESCAPES instead of
3499 NO_STRING_ESCAPES.
3500 * read.c (next_char_of_string): Likewise.
3501 * config/tc-ppc.h (TC_STRING_ESCAPES): Define.
3502 * config/tc-z80.h (TC_STRING_ESCAPES): Define.
3503
3504 2020-01-03 Nick Clifton <nickc@redhat.com>
3505
3506 * po/sv.po: Updated Swedish translation.
3507
3508 2020-01-03 Jan Beulich <jbeulich@suse.com>
3509
3510 * testsuite/gas/aarch64/f64mm.s: Scale index of LD1RO{H,W,D}.
3511 * testsuite/gas/aarch64/f64mm.d: Adjust expectations.
3512
3513 2020-01-03 Jan Beulich <jbeulich@suse.com>
3514
3515 * testsuite/gas/aarch64/i8mm.s: Add 128-bit form tests for
3516 by-element usdot. Add 64-bit form tests for by-element sudot.
3517 * testsuite/gas/aarch64/i8mm.d: Adjust expectations.
3518
3519 2020-01-03 Jan Beulich <jbeulich@suse.com>
3520
3521 * testsuite/gas/aarch64/f64mm.s: Drop 'i' from uzip<n>.
3522 * testsuite/gas/aarch64/f64mm.d: Adjust expectations.
3523
3524 2020-01-03 Jan Beulich <jbeulich@suse.com>
3525
3526 * testsuite/gas/aarch64/f64mm.d,
3527 testsuite/gas/aarch64/sve-movprfx-mm.d: Adjust expectations.
3528
3529 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
3530
3531 * config/tc-z80.c: Add new architectures: Z180 and eZ80. Add
3532 support for assembler code generated by SDCC. Add new relocation
3533 types. Add z80-elf target support.
3534 * config/tc-z80.h: Add z80-elf target support. Enable dollar local
3535 labels. Local labels starts from ".L".
3536 * NEWS: Mention the new support.
3537 * testsuite/gas/all/fwdexp.d: Fix failure due to symbol conflict.
3538 * testsuite/gas/all/fwdexp.s: Likewise.
3539 * testsuite/gas/all/cond.l: Likewise.
3540 * testsuite/gas/all/cond.s: Likewise.
3541 * testsuite/gas/all/fwdexp.d: Likewise.
3542 * testsuite/gas/all/fwdexp.s: Likewise.
3543 * testsuite/gas/elf/section2.e-mips: Likewise.
3544 * testsuite/gas/elf/section2.l: Likewise.
3545 * testsuite/gas/elf/section2.s: Likewise.
3546 * testsuite/gas/macros/app1.d: Likewise.
3547 * testsuite/gas/macros/app1.s: Likewise.
3548 * testsuite/gas/macros/app2.d: Likewise.
3549 * testsuite/gas/macros/app2.s: Likewise.
3550 * testsuite/gas/macros/app3.d: Likewise.
3551 * testsuite/gas/macros/app3.s: Likewise.
3552 * testsuite/gas/macros/app4.d: Likewise.
3553 * testsuite/gas/macros/app4.s: Likewise.
3554 * testsuite/gas/macros/app4b.s: Likewise.
3555 * testsuite/gas/z80/suffix.d: Fix failure on ELF target.
3556 * testsuite/gas/z80/z80.exp: Add new tests
3557 * testsuite/gas/z80/dollar.d: New file.
3558 * testsuite/gas/z80/dollar.s: New file.
3559 * testsuite/gas/z80/ez80_adl_all.d: New file.
3560 * testsuite/gas/z80/ez80_adl_all.s: New file.
3561 * testsuite/gas/z80/ez80_adl_suf.d: New file.
3562 * testsuite/gas/z80/ez80_isuf.s: New file.
3563 * testsuite/gas/z80/ez80_z80_all.d: New file.
3564 * testsuite/gas/z80/ez80_z80_all.s: New file.
3565 * testsuite/gas/z80/ez80_z80_suf.d: New file.
3566 * testsuite/gas/z80/r800_extra.d: New file.
3567 * testsuite/gas/z80/r800_extra.s: New file.
3568 * testsuite/gas/z80/r800_ii8.d: New file.
3569 * testsuite/gas/z80/r800_z80_doc.d: New file.
3570 * testsuite/gas/z80/z180.d: New file.
3571 * testsuite/gas/z80/z180.s: New file.
3572 * testsuite/gas/z80/z180_z80_doc.d: New file.
3573 * testsuite/gas/z80/z80_doc.d: New file.
3574 * testsuite/gas/z80/z80_doc.s: New file.
3575 * testsuite/gas/z80/z80_ii8.d: New file.
3576 * testsuite/gas/z80/z80_ii8.s: New file.
3577 * testsuite/gas/z80/z80_in_f_c.d: New file.
3578 * testsuite/gas/z80/z80_in_f_c.s: New file.
3579 * testsuite/gas/z80/z80_op_ii_ld.d: New file.
3580 * testsuite/gas/z80/z80_op_ii_ld.s: New file.
3581 * testsuite/gas/z80/z80_out_c_0.d: New file.
3582 * testsuite/gas/z80/z80_out_c_0.s: New file.
3583 * testsuite/gas/z80/z80_reloc.d: New file.
3584 * testsuite/gas/z80/z80_reloc.s: New file.
3585 * testsuite/gas/z80/z80_sli.d: New file.
3586 * testsuite/gas/z80/z80_sli.s: New file.
3587
3588 2020-01-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
3589
3590 * config/tc-arm.c (parse_reg_list): Use REG_TYPE_RN instead of
3591 REGLIST_RN.
3592
3593 2020-01-01 Alan Modra <amodra@gmail.com>
3594
3595 Update year range in copyright notice of all files.
3596
3597 For older changes see ChangeLog-2019
3598 \f
3599 Copyright (C) 2020 Free Software Foundation, Inc.
3600
3601 Copying and distribution of this file, with or without modification,
3602 are permitted in any medium without royalty provided the copyright
3603 notice and this notice are preserved.
3604
3605 Local Variables:
3606 mode: change-log
3607 left-margin: 8
3608 fill-column: 74
3609 version-control: never
3610 End: