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