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