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