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