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