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