]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gas/ChangeLog
Extend pdp11-aout symbol table format and code for .stab symbols.
[thirdparty/binutils-gdb.git] / gas / ChangeLog
CommitLineData
d413a623
L
12020-06-04 H.J. Lu <hongjiu.lu@intel.com>
2
3 * config/tc-ip2k. (ip2k_apply_fix): Pass endianness to
4 cgen_get_insn_value.
5 * config/tc-xstormy16.c (xstormy16_md_apply_fix): Pass
6 endianness to cgen_get_insn_value and cgen_put_insn_value.
7
7d8b91fd
JM
82020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
9
10 * config/tc-bpf.c (md_apply_fix): Simplify and avoid using
11 cgen_put_insn_value.
12
d8740be1
JM
132020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
14
15 * config/tc-bpf.c (md_begin): Pass CGEN_CPU_OPEN_INSN_ENDIAN to
16 bpf_cgen_cpu_open.
17 (md_assemble): Remove no longer needed hack.
18
e9bffec9
JM
192020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
20
21 * cgen.c (gas_cgen_finish_insn): Pass the endianness to
22 cgen_put_insn_value.
23 (gas_cgen_md_apply_fix): Likewise.
24 (gas_cgen_md_apply_fix): Likewise.
25 * config/tc-bpf.c (md_apply_fix): Pass data endianness to
26 cgen_put_insn_value.
27 * config/tc-mep.c (mep_check_ivc2_scheduling): Pass endianness to
28 cgen_put_insn_value.
29
1cf67587
AM
302020-06-04 Alan Modra <amodra@gmail.com>
31
32 * testsuite/config/default.exp: Remove global directive outside
33 proc body.
34 * testsuite/gas/mep/complex-relocs.exp: Likewise.
35 * testsuite/gas/microblaze/relax_size.exp: Likewise.
36 * testsuite/gas/microblaze/reloc_sym.exp: Likewise.
37 * testsuite/gas/mt/relocs.exp: Likewise.
38 * testsuite/gas/rx/rx.exp: Likewise.
39
338d56a8
SC
402020-06-03 Stephen Casner <casner@acm.org>
41
42 * doc/c-riscv.texi (RISC-V-Options): Fix non-ASCII apostrophe.
43
bb7322c6
JW
442020-06-02 Frédéric Pétrot <frederic.petrot@univ-grenoble-alpes.fr>
45 Jim Wilson <jimw@sifive.com>
46
47 PR 26051
48 * doc/c-riscv.texi (RISC-V-Formats): Add missing I format using
49 simm12(rs1). Correct S format to use simm12(rs1). Drop SB and B
50 formats using simm12(rs1). Correct SB and B to use rs1 and rs2.
51 Move B before SB. Move J before UJ.
52
c39c821c
AC
532020-06-01 Alex Coplan <alex.coplan@arm.com>
54
55 * write.c (relax_segment): Fix handling of negative offset when
56 relaxing an rs_org frag.
57 * testsuite/gas/aarch64/org-neg.d: New test.
58 * testsuite/gas/aarch64/org-neg.l: Error output for test.
59 * testsuite/gas/aarch64/org-neg.s: Input for test.
60 * testsuite/gas/arm/org-neg.d: New test.
61 * testsuite/gas/arm/org-neg.l: Error output for test.
62 * testsuite/gas/arm/org-neg.s: Input for test.
63
66e3eb08
SC
642020-05-28 Stephen Casner <casner@acm.org>
65
66 Fix unexpected failures in gas testsuite for pdp11-aout target.
67 These are caused by the PDP11's mix of little-endian octets in
68 shorts but shorts in big endian order for long or quad.
69
70 * config/tc-pdp11.c (md_number_to_chars): Implement .quad
71 * testsuite/gas/all/gas.exp: Select alternate test scripts for
72 pdp11, skip octa test completely.
73 * testsuite/gas/all/eqv-dot-pdp11.s: Identical to eqv-dot.s
74 * testsuite/gas/all/eqv-dot-pdp11.d: Match different octet order.
75 * testsuite/gas/all/cond-pdp11.l: Match different octet order.
76
9e85f042
NC
772020-05-28 Alex Coplan <alex.coplan@arm.com>
78
79 * frags.c (frag_grow): Fix comment.
80
1c912705
SC
812020-05-27 Stephen Casner <casner@acm.org>
82
83 PR gas/26001
84 * config/tc-pdp11.c (parse_reg): Distinguish register names from
85 symbols that begin with a register name.
86 * testsuite/gas/pdp11/pdp11.exp: Add test of such symbols.
87 * testsuite/gas/pdp11/pr26001.s: Likewise.
88 * testsuite/gas/pdp11/pr26001.d: Likewise.
89
5c505568
SC
902020-05-27 Simon Cook <simon.cook@embecosm.com>
91
92 * config/tc-riscv.c (riscv_init_csr_hash): NULL initilize next
93 pointer when creating struct riscv_csr_extra.
94
3c730740
L
952020-05-26 H.J. Lu <hongjiu.lu@intel.com>
96
97 * testsuite/gas/i386/align-branch-9.d: Updated for PECOFF.
98 * testsuite/gas/i386/inval-avx512f.s: Add .p2align for PECOFF.
99 * testsuite/gas/i386/inval-avx512f.l: Updated.
100
57b17940
SSF
1012020-05-26 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
102
103 * testsuite/gas/s390/zarch-z13.d: Add regexp checks for vector
104 load/store instruction variants with alignment hints.
105 * testsuite/gas/s390/zarch-z13.s: Emit new vector load/store
106 instruction variants with alignment hints.
107
e3fed0f2
L
1082020-05-26 H.J. Lu <hongjiu.lu@intel.com>
109
110 PR gas/26044
111 * config/tc-xgate.c (md_apply_fix): Check BFD_RELOC_XGATE_PCREL_X
112 instead of R_XGATE_PCREL_X.
113 (xgate_parse_operand): Replace R_XGATE_PCREL_X with
114 BFD_RELOC_XGATE_PCREL_X.
115
8bbc5da5
L
1162020-05-26 H.J. Lu <hongjiu.lu@intel.com>
117
118 PR gas/26044
119 * config/tc-visium.c (md_convert_frag): Replace fragP->fr_literal
120 with &fragP->fr_literal[0].
121
c4612b92
L
1222020-05-26 H.J. Lu <hongjiu.lu@intel.com>
123
124 PR gas/26044
125 * config/tc-vax.c (md_estimate_size_before_relax): Replace
126 fragP->fr_literal with &fragP->fr_literal[0].
127 (md_convert_frag): Likewise.
128
70b1b570
L
1292020-05-26 H.J. Lu <hongjiu.lu@intel.com>
130
131 PR gas/26044
132 * config/tc-v850.c (md_convert_frag): Replace fragP->fr_literal
133 with &fragP->fr_literal[0].
134
e67e940f
L
1352020-05-26 H.J. Lu <hongjiu.lu@intel.com>
136
137 PR gas/26044
138 * config/tc-crx.c (getreg_image): Change argument type to int.
139 (md_convert_frag): Replace fragP->fr_literal with
140 &fragP->fr_literal[0].
141
a05e3e20
L
1422020-05-26 H.J. Lu <hongjiu.lu@intel.com>
143
144 PR gas/26044
145 * onfig/tc-score.c (s3_do_macro_bcmp): Replace overlapping
146 sprintf with memmove.
147
c6412eee
L
1482020-05-25 H.J. Lu <hongjiu.lu@intel.com>
149
150 * config/tc-mcore.c (md_convert_frag): Replace fragP->fr_literal
151 with &fragP->fr_literal[0].
152
9fcc3457
L
1532020-05-25 H.J. Lu <hongjiu.lu@intel.com>
154
155 PR gas/26041
156 * config/tc-cr16.c (md_assemble): Use memmove to concatenate
157 2 overlapping strings.
158
6c115e16
L
1592020-05-25 H.J. Lu <hongjiu.lu@intel.com>
160
161 * config/tc-cr16.c (md_convert_frag): Replace fragP->fr_literal
162 with &fragP->fr_literal[0].
163
a39d29cd
L
1642020-05-25 H.J. Lu <hongjiu.lu@intel.com>
165
166 * config/tc-csky.c (md_convert_frag): Replace fragp->fr_literal
167 with &fragp->fr_literal[0].
168 * config/tc-microblaze.c (md_apply_fix): Likewise.
169 * config/tc-sh.c (md_convert_frag): Likewise.
170
72393fd1
JW
1712020-05-24 Jim Wilson <jimw@sifive.com>
172
173 PR 26025
174 * config/tc-riscv.c (riscv_pre_output_hook): Change s type from const
175 asection to segT. New locals seg and subseg. Call subseg_set before
176 fix_new_exp. Call subseg_set after loop to restore original values.
177
9fbb53c7
AM
1782020-05-21 Alan Modra <amodra@gmail.com>
179
180 * atof-generic.c: Replace "if (x) free (x)" with "free (x)"
181 throughout.
182 * config/obj-elf.c: Likewise.
183 * config/tc-aarch64.c: Likewise.
184 * config/tc-arm.c: Likewise.
185 * config/tc-m68k.c: Likewise.
186 * config/tc-nios2.c: Likewise.
187 * config/tc-tic30.c: Likewise.
188 * ecoff.c: Likewise.
189 * read.c: Likewise.
190 * stabs.c: Likewise.
191 * symbols.c: Likewise.
192 * testsuite/gas/all/test-gen.c: Likewise.
193
8f595e9b
NC
1942020-05-20 Nelson Chu <nelson.chu@sifive.com>
195
196 * testsuite/gas/riscv/priv-reg-fail-read-only-01.s: Updated.
197 * config/tc-riscv.c (default_arch_with_ext, default_isa_spec):
198 Static variables which are used to set the ISA extensions. You can
199 use -march (or ELF build attributes) and -misa-spec to set them,
200 respectively.
201 (ext_version_hash): The hash table used to handle the extensions
202 with versions.
203 (init_ext_version_hash): Initialize the ext_version_hash according
204 to riscv_ext_version_table.
205 (riscv_get_default_ext_version): The callback function of
206 riscv_parse_subset_t. According to the choosed ISA spec,
207 get the default version for the specific extension.
208 (riscv_set_arch): Set the callback function.
209 (enum options, struct option md_longopts): Add new option -misa-spec.
210 (md_parse_option): Do not call riscv_set_arch for -march. We will
211 call it later in riscv_after_parse_args. Call riscv_get_isa_spec_class
212 to set default_isa_spec class.
213 (riscv_after_parse_args): Call init_ext_version_hash to initialize the
214 ext_version_hash, and then call riscv_set_arch to set the architecture
215 with versions according to default_arch_with_ext.
216 * testsuite/gas/riscv/attribute-02.d: Set 0p0 as default version for
217 x extensions.
218 * testsuite/gas/riscv/attribute-03.d: Likewise.
219 * testsuite/gas/riscv/attribute-09.d: New testcase. For i-ext, we
220 already set it's version to 2p1 by march, so no need to use the default
221 2p2 version. For m-ext, we do not set the version by -march and ELF arch
222 attribute, so set the default 2p0 to it. For zicsr, it is not defined in
223 ISA spec 2p2, so set 0p0 to it.
224 * testsuite/gas/riscv/attribute-10.d: New testcase. The version of
225 zicsr is 2p0 according to ISA spec 20191213.
226 * config/tc-riscv.c (DEFAULT_RISCV_ARCH_WITH_EXT)
227 (DEFAULT_RISCV_ISA_SPEC): Default configure option settings.
228 You can set them by configure options --with-arch and
229 --with-isa-spec, respectively.
230 (riscv_set_default_isa_spec): New function used to set the
231 default ISA spec.
232 (md_parse_option): Call riscv_set_default_isa_spec rather than
233 call riscv_get_isa_spec_class directly.
234 (riscv_after_parse_args): If the -isa-spec is not set, then we
235 set the default ISA spec according to DEFAULT_RISCV_ISA_SPEC by
236 calling riscv_set_default_isa_spec.
237 * testsuite/gas/riscv/attribute-01.d: Add -misa-spec=2.2, since
238 the --with-isa-spec may be set to different ISA spec.
239 * testsuite/gas/riscv/attribute-02.d: Likewise.
240 * testsuite/gas/riscv/attribute-03.d: Likewise.
241 * testsuite/gas/riscv/attribute-04.d: Likewise.
242 * testsuite/gas/riscv/attribute-05.d: Likewise.
243 * testsuite/gas/riscv/attribute-06.d: Likewise.
244 * testsuite/gas/riscv/attribute-07.d: Likewise.
245 * configure.ac: Add configure options, --with-arch and
246 --with-isa-spec.
247 * configure: Regenerated.
248 * config.in: Regenerated.
249 * config/tc-riscv.c (default_priv_spec): Static variable which is
250 used to check if the CSR is valid for the chosen privilege spec. You
251 can use -mpriv-spec to set it.
252 (enum reg_class): We now get the CSR address from csr_extra_hash rather
253 than reg_names_hash. Therefore, move RCLASS_CSR behind RCLASS_MAX.
254 (riscv_init_csr_hashes): Only need to initialize one hash table
255 csr_extra_hash.
256 (riscv_csr_class_check): Change the return type to void. Don't check
257 the ISA dependency if -mcsr-check isn't set.
258 (riscv_csr_version_check): New function. Check and find the CSR address
259 from csr_extra_hash, according to default_priv_spec. Report warning
260 for the invalid CSR if -mcsr-check is set.
261 (reg_csr_lookup_internal): Updated.
262 (reg_lookup_internal): Likewise.
263 (md_begin): Updated since DECLARE_CSR and DECLARE_CSR_ALIAS are changed.
264 (enum options, struct option md_longopts): Add new GAS option -mpriv-spec.
265 (md_parse_option): Call riscv_set_default_priv_version to set
266 default_priv_spec.
267 (riscv_after_parse_args): If -mpriv-spec isn't set, then set the default
268 privilege spec to the newest one.
269 (enum riscv_csr_class, struct riscv_csr_extra): Move them to
270 include/opcode/riscv.h.
271 * testsuite/gas/riscv/priv-reg-fail-fext.d: This test case just want
272 to check the ISA dependency for CSR, so fix the spec version by adding
273 -mpriv-spec=1.11.
274 * testsuite/gas/riscv/priv-reg-fail-fext.l: Likewise. There are some
275 version warnings for the test case.
276 * gas/testsuite/gas/riscv/priv-reg-fail-read-only-01.d: Likewise.
277 * gas/testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
278 * gas/testsuite/gas/riscv/priv-reg-fail-read-only-02.d: Likewise.
279 * gas/testsuite/gas/riscv/priv-reg-fail-rv32-only.d: Likewise.
280 * gas/testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
281 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9.d: New test case.
282 Check whether the CSR is valid when privilege version 1.9 is choosed.
283 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9.l: Likewise.
284 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9p1.d: New test case.
285 Check whether the CSR is valid when privilege version 1.9.1 is choosed.
286 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
287 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p10.d: New test case.
288 Check whether the CSR is valid when privilege version 1.10 is choosed.
289 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
290 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p11.d: New test case.
291 Check whether the CSR is valid when privilege version 1.11 is choosed.
292 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
293 * config/tc-riscv.c (DEFAULT_RISCV_ISA_SPEC): Default configure option
294 setting. You can set it by configure option --with-priv-spec.
295 (riscv_set_default_priv_spec): New function used to set the default
296 privilege spec.
297 (md_parse_option): Call riscv_set_default_priv_spec rather than
298 call riscv_get_priv_spec_class directly.
299 (riscv_after_parse_args): If -mpriv-spec isn't set, then we set the
300 default privilege spec according to DEFAULT_RISCV_PRIV_SPEC by
301 calling riscv_set_default_priv_spec.
302 * testsuite/gas/riscv/csr-dw-regnums.d: Add -mpriv-spec=1.11, since
303 the --with-priv-spec may be set to different privilege spec.
304 * testsuite/gas/riscv/priv-reg.d: Likewise.
305 * configure.ac: Add configure option --with-priv-spec.
306 * configure: Regenerated.
307 * config.in: Regenerated.
308 * config/tc-riscv.c (explicit_attr): Rename explicit_arch_attr to
309 explicit_attr. Set it to TRUE if any ELF attribute is found.
310 (riscv_set_default_priv_spec): Try to set the default_priv_spec if
311 the priv attributes are set.
312 (md_assemble): Set the default_priv_spec according to the priv
313 attributes when we start to assemble instruction.
314 (riscv_write_out_attrs): Rename riscv_write_out_arch_attr to
315 riscv_write_out_attrs. Update the arch and priv attributes. If we
316 don't set the corresponding ELF attributes, then try to output the
317 default ones.
318 (riscv_set_public_attributes): If any ELF attribute or -march-attr
319 options is set (explicit_attr is TRUE), then call riscv_write_out_attrs
320 to update the arch and priv attributes.
321 (s_riscv_attribute): Make sure all arch and priv attributes are set
322 before any instruction.
323 * testsuite/gas/riscv/attribute-01.d: Update the priv attributes if any
324 ELF attribute or -march-attr is set. If the priv attributes are not
325 set, then try to update them by the default setting (-mpriv-spec or
326 --with-priv-spec).
327 * testsuite/gas/riscv/attribute-02.d: Likewise.
328 * testsuite/gas/riscv/attribute-03.d: Likewise.
329 * testsuite/gas/riscv/attribute-04.d: Likewise.
330 * testsuite/gas/riscv/attribute-06.d: Likewise.
331 * testsuite/gas/riscv/attribute-07.d: Likewise.
332 * testsuite/gas/riscv/attribute-08.d: Likewise.
333 * testsuite/gas/riscv/attribute-09.d: Likewise.
334 * testsuite/gas/riscv/attribute-10.d: Likewise.
335 * testsuite/gas/riscv/attribute-unknown.d: Likewise.
336 * testsuite/gas/riscv/attribute-05.d: Likewise. Also, the priv spec
337 set by priv attributes must be supported.
338 * testsuite/gas/riscv/attribute-05.s: Likewise.
339 * testsuite/gas/riscv/priv-reg-fail-version-1p9.d: Likewise. Updated
340 priv attributes according to the -mpriv-spec option.
341 * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.d: Likewise.
342 * testsuite/gas/riscv/priv-reg-fail-version-1p10.d: Likewise.
343 * testsuite/gas/riscv/priv-reg-fail-version-1p11.d: Likewise.
344 * testsuite/gas/riscv/priv-reg.d: Removed.
345 * testsuite/gas/riscv/priv-reg-version-1p9.d: New test case. Dump the
346 CSR according to the priv spec 1.9.
347 * testsuite/gas/riscv/priv-reg-version-1p9p1.d: New test case. Dump the
348 CSR according to the priv spec 1.9.1.
349 * testsuite/gas/riscv/priv-reg-version-1p10.d: New test case. Dump the
350 CSR according to the priv spec 1.10.
351 * testsuite/gas/riscv/priv-reg-version-1p11.d: New test case. Dump the
352 CSR according to the priv spec 1.11.
353 * config/tc-riscv.c (md_show_usage): Add descriptions about
354 the new GAS options.
355 * doc/c-riscv.texi: Likewise.
356
3d205eb4
PB
3572020-05-19 Peter Bergner <bergner@linux.ibm.com>
358
359 * testsuite/gas/ppc/power9.s <dcbf, dcbfl, dcbflp>: Add tests.
360 * testsuite/gas/ppc/power9.d: Likewise.
361 * testsuite/gas/ppc/power10.s <dcbf, dcbfps, dcbstps, hwsync, lwsync,
362 pause_short, phwsync, plwsync, ptesync, stcisync, stncisync, stsync,
363 sync, wait, waitrsv>: Add tests.
364 * testsuite/gas/ppc/power10.d: Likewise.
365
164446e0
AF
3662020-05-19 Alexander Fedotov <alfedotov@gmail.com>
367
368 PR 25992
369 * config/tc-arm.c : Add arm_ext_v8r feature.
370 (it_fsm_post_encode): Check arm_ext_v8r feature.
371 (get_aeabi_cpu_arch_from_fset): Check arm_ext_v8r feature.
372
69f57659
AM
3732020-05-19 Alan Modra <amodra@gmail.com>
374
375 * write.c (write_contents): Use bfd_get_filename rather than
376 accessing bfd->filename directly. Use bfd_section_name rather
377 than accessing section->name directly.
378
0e1d094e
AM
3792020-05-19 Alan Modra <amodra@gmail.com>
380
381 * symbols.c (local_symbol_make): Init all of lsy_flags.
382
d402189f
AM
3832020-05-18 Alan Modra <amodra@gmail.com>
384
385 * symbols.c (resolve_symbol_value): Invoke LOCAL_SYMBOL_CHECK
386 before looking at add_symbol->sy_flags.
387
503648e4 3882020-05-18 Hongtao Liu <hongtao.liu@intel.com>
389
390 * config/tc-i386.c: Not handle lret/iret.
391 * testsuite/gas/i386/lfence-ret-a.d: Adjust testcase.
392 * testsuite/gas/i386/lfence-ret-b.d: Ditto.
393 * testsuite/gas/i386/lfence-ret-c.d: Ditto.
394 * testsuite/gas/i386/lfence-ret-d.d: Ditto.
395 * testsuite/gas/i386/lfence-ret.s: Ditto.
396 * testsuite/gas/i386/x86-64-lfence-ret-a.d: Ditto.
397 * testsuite/gas/i386/x86-64-lfence-ret-b.d: Ditto.
398 * testsuite/gas/i386/x86-64-lfence-ret-c.d: Ditto.
399 * testsuite/gas/i386/x86-64-lfence-ret-d.d: Ditto.
400 * testsuite/gas/i386/x86-64-lfence-ret-e.d: Ditto.
401 * testsuite/gas/i386/x86-64-lfence-ret.s: Ditto.
402 * testsuite/gas/i386/x86-64-lfence-ret.e: Deleted.
403
2a50b401
AM
4042020-05-15 Alan Modra <amodra@gmail.com>
405 Alex Coplan <alex.coplan@arm.com>
406
407 * symbols.c (struct local_symbol): Update comment.
408 (resolve_symbol_value): For resolved symbols equated to other
409 symbols, verify that the referenced symbol is not a local_symbol
410 before accessing sy_value. Don't leave symbol loops during
411 finalize_syms resolution.
412 * testsuite/gas/all/assign-bad-recursive.d: New test.
413 * testsuite/gas/all/assign-bad-recursive.l: Error output for test.
414 * testsuite/gas/all/assign-bad-recursive.s: Assembly for test.
415 * testsuite/gas/all/gas.exp: Run it.
416
9d95b8e9
NC
4172020-05-14 Nick Clifton <nickc@redhat.com>
418
419 * po/sv.po: Updated Swedish translation.
420
3b646889
AM
4212020-05-11 Alan Modra <amodra@gmail.com>
422
423 * testsuite/gas/ppc/scalarquad.d,
424 * testsuite/gas/ppc/scalarquad.s: New test.
425 * testsuite/gas/ppc/ppc.exp: Run it.
426
9cc4ce88
AM
4272020-05-11 Alan Modra <amodra@gmail.com>
428
429 * testsuite/gas/ppc/rightmost.d,
430 * testsuite/gas/ppc/rightmost.s: New test.
431 * testsuite/gas/ppc/ppc.exp: Run it.
432
5d57bc3f
AM
4332020-05-11 Alan Modra <amodra@gmail.com>
434
435 * testsuite/gas/ppc/xvtlsbb.d,
436 * testsuite/gas/ppc/xvtlsbb.s: New test.
437 * testsuite/gas/ppc/ppc.exp: Run it.
438
66ef5847
AM
4392020-05-11 Alan Modra <amodra@gmail.com>
440
441 * testsuite/gas/ppc/stringop.d,
442 * testsuite/gas/ppc/stringop.s: New test.
443 * testsuite/gas/ppc/ppc.exp: Run it.
444
4f3e9537
PB
4452020-05-11 Peter Bergner <bergner@linux.ibm.com>
446
447 * testsuite/gas/ppc/set_bool.d,
448 * testsuite/gas/ppc/set_bool.s: New test.
449 * testsuite/gas/ppc/ppc.exp: Run it.
450
ec40e91c
AM
4512020-05-11 Alan Modra <amodra@gmail.com>
452
453 * testsuite/gas/ppc/bitmanip.d,
454 * testsuite/gas/ppc/bitmanip.s: New test.
455 * testsuite/gas/ppc/ppc.exp: Run it.
456
d7e97a76
AM
4572020-05-11 Alan Modra <amodra@gmail.com>
458
459 * testsuite/gas/ppc/genpcv.d,
460 * testsuite/gas/ppc/genpcv.s: New test.
461 * testsuite/gas/ppc/ppc.exp: Run it.
462
fdefed7c
AM
4632020-05-11 Alan Modra <amodra@gmail.com>
464
465 * testsuite/gas/ppc/maskmanip.d,
466 * testsuite/gas/ppc/maskmanip.s: New test.
467 * testsuite/gas/ppc/ppc.exp: Run it.
468
aa3c112f
AM
4692020-05-11 Alan Modra <amodra@gmail.com>
470 Peter Bergner <bergner@linux.ibm.com>
471
472 * config/tc-ppc.c (pre_defined_registers): Add accumulators.
473 (md_assemble): Check acc specified in correct operand.
474 * testsuite/gas/ppc/outerprod.d,
475 * testsuite/gas/ppc/outerprod.s,
476 * testsuite/gas/ppc/vsx4.d,
477 * testsuite/gas/ppc/vsx4.s: New tests.
478 * testsuite/gas/ppc/ppc.exp: Run them.
479
6edbfd3b
AM
4802020-05-11 Alan Modra <amodra@gmail.com>
481
482 * testsuite/gas/ppc/simd_perm.d,
483 * testsuite/gas/ppc/simd_perm.s: New test.
484 * testsuite/gas/ppc/ppc.exp: Run it.
485
c7d7aea2
AM
4862020-05-11 Alan Modra <amodra@gmail.com>
487
488 * testsuite/gas/ppc/int128.d,
489 * testsuite/gas/ppc/int128.s: New test.
490 * testsuite/gas/ppc/ppc.exp: Run it.
491
94ba9882
AM
4922020-05-11 Alan Modra <amodra@gmail.com>
493
494 * testsuite/gas/ppc/vsx_32byte.d,
495 * testsuite/gas/ppc/vsx_32byte.s: New test.
496 * testsuite/gas/ppc/ppc.exp: Run it.
497
f4791f1a
AM
4982020-05-11 Alan Modra <amodra@gmail.com>
499
500 * testsuite/gas/ppc/vec_mul.s,
501 * testsuite/gas/ppc/vec_mul.d: New test.
502 * testsuite/gas/ppc/ppc.exp: Run it.
503
3ff0a5ba
PB
5042020-05-11 Peter Bergner <bergner@linux.ibm.com>
505
506 * testsuite/gas/ppc/byte_rev.d,
507 * testsuite/gas/ppc/byte_rev.s: New test.
508 * testsuite/gas/ppc/ppc.exp: Run it.
509
afef4fe9
PB
5102020-05-11 Peter Bergner <bergner@linux.ibm.com>
511
512 * testsuite/gas/ppc/power10.d: Add paste. tests.
513 * testsuite/gas/ppc/power10.s: Likewise.
514
1224c05d
PB
5152020-05-11 Peter Bergner <bergner@linux.ibm.com>
516
517 * testsuite/gas/ppc/power10.s: New test.
518 * testsuite/gas/ppc/power10.d: Likewise.
519 * testsuite/gas/ppc/ppc.exp: Run it.
520
7c1f4227
AM
5212020-05-11 Alan Modra <amodra@gmail.com>
522
523 * config/tc-ppc.c (md_assemble): Update for PPC_OPCODE_POWER10
524 renaming.
525 * testsuite/gas/ppc/prefix-align.d: Use -mpower10/-Mpower10 in
526 place of -mfuture/-Mfuture.
527 * testsuite/gas/ppc/prefix-pcrel.d: Likewise.
528 * testsuite/gas/ppc/prefix-reloc.d: Likewise.
529
bfeaed38
NC
5302020-05-06 Nick Clifton <nickc@redhat.com>
531
532 * po/sv.po: Updated Swedish translation.
533
6ef719c0
NC
5342020-05-06 Nick Clifton <nickc@redhat.com>
535
536 PR 25927
537 * doc/as.texi (Preprocessing): Replace cross reference to not
538 existant document with a URL to the equivalent page in the GCC
539 manual.
540
546cb2d8
NC
5412020-05-05 Nick Clifton <nickc@redhat.com>
542
543 * dwarf2dbg.c (out_dir_and_file_list): Add comments describing the
544 construction of a DWARF-5 directory name table.
545 * testsuite/gas/elf/pr25917.d: Update expected output.
546
7d0bd487
GN
5472020-05-05 Gunther Nikl <gnikl@justmail.de>
548
549 * config/tc-rx.c (elf_flags): Initialize for non-linux targets.
550 (md_parse_option): Remove initialization of elf_flags.
070b775f 551
fe05f369
ASDV
5522020-05-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
553
554 PR gas/25863
555 * config/tc-arm.c (do_mve_vmull): Fix scalar and NEON parsing of vmul.
556 * testsuite/gas/arm/mve-scalar-vmult-it.d: New test.
557 * testsuite/gas/arm/mve-scalar-vmult-it.s: New test.
558
4706679d
NC
5592020-05-04 Nick Clifton <nickc@redhat.com>
560
561 PR 25917
562 * dwarf2dbg.c (out_dir_and_file_list): Check for the directory
563 table's existence before looking at its entries.
070b775f
NC
564 Also do not emit a default directory entry if there are no
565 directories in use.
566
4706679d
NC
567 * testsuite/gas/elf/pr25917.s: New test source file.
568 * testsuite/gas/elf/pr25917.d: New test driver.
569 * testsuite/gas/elf/elf.exp (run_elf_list_test): Run the new test.
570
09c1e68a
AC
5712020-04-30 Alex Coplan <alex.coplan@arm.com>
572
573 * config/tc-aarch64.c (fix_insn): Implement for
574 AARCH64_OPND_UNDEFINED.
575 (parse_operands): Implement for AARCH64_OPND_UNDEFINED.
576 * testsuite/gas/aarch64/udf.s: New.
577 * testsuite/gas/aarch64/udf.d: New.
578 * testsuite/gas/aarch64/udf-invalid.s: New.
579 * testsuite/gas/aarch64/udf-invalid.l: New.
580 * testsuite/gas/aarch64/udf-invalid.d: New.
581
c578f16e
YS
5822020-04-30 Yoshinori Sato <ysato@users.sourceforge.jp>
583
584 * config/tc-rx.c (elf_flags): Reset default value.
585 (md_parse_option): For rx-elf Initialize elf_flags with RX_ABI.
586
935f1f4b
MF
5872020-04-29 Max Filippov <jcmvbkbc@gmail.com>
588
589 * config/tc-xtensa.c (XTENSA_MARCH_EARLIEST): Define macro as 0
590 if it's not defined.
591 (microarch_earliest): New static variable.
592 (xg_translate_idioms): Translate "simcall" to "simcall 0" when
593 simcall opcode has mandatory parameter.
594 (xg_init_global_config): Initialize microarch_earliest.
595
5c936ef5
NC
5962020-04-29 Nick Clifton <nickc@redhat.com>
597
598 PR 22699
599 * config/tc-sh.c (build_Mytes): Change operand type IMM0_8 to
600 IMM0_8S and add support for IMM0_8U.
601 * testsuite/gas/sh/sh4a.s: Add test of a logical insn using an
602 unsigned 8-bit immediate.
603 * testsuite/gas/sh/sh4a.d: Extended expected disassembly.
241e541d 604 * testsuite/gas/sh/sh4al-dsp.d: Update expected disassembly.
5c936ef5 605
251dae91
TC
6062020-04-27 Tamar Christina <tamar.christina@arm.com>
607
608 * NEWS: Add news entry for big-obj.
609 * config/tc-i386.c (i386_target_format): Support new format.
610 * doc/c-i386.texi: Add i386 support.
611 * testsuite/gas/pe/big-obj.d: Rename test to not be x64 specific.
612 * testsuite/gas/pe/pe.exp (big-obj): Make test run on i386 as well.
613
714e6c96
NC
6142020-04-27 Nick Clifton <nickc@redhat.com>
615
616 PR 25878
617 * dwarf2dbg.c (struct file_entry): Add auto_assigned field.
618 (assign_file_to_slot): New function. Fills in an entry in the
619 files table.
620 (allocate_filenum): Use new function.
621 (allocate_filename_to_slot): Use new function. If the specified
622 slot entry is already in use, but was chosen automatically then
623 reassign the automatic entry.
624
a09f656b 6252020-04-26 Hongtao Liu <hongtao.liu@intel.com
626
627 * config/tc-i386.c (lfence_before_ret_shl): New member.
628 (load_insn_p): implict load for POP/POPA/POPF/XLATB, no load
629 for Anysize insns.
630 (insert_after_load): Issue warning for REP CMPS/SCAS.
631 (insert_before_before): Handle iret, Handle
632 -mlfence-before-ret=shl, Adjust operand size of or/not/shl to ret's,
633 (md_parse_option): Change -mlfence-before-ret=[none|not|or] to
634 -mlfence-before-ret=[none/not/or/shl/yes].
635 Enable -mlfence-before-ret=shl when
636 -mlfence-beofre-indirect-branch=all and no explict -mlfence-before-ret option.
637 (md_show_usage): Ditto.
638 * doc/c-i386.texi: Ditto.
639 * testsuite/gas/i386/i386.exp: Add new testcases.
640 * testsuite/gas/i386/lfence-load-b.d: New.
641 * testsuite/gas/i386/lfence-load-b.e: New.
642 * testsuite/gas/i386/lfence-load.d: Modified.
643 * testsuite/gas/i386/lfence-load.e: New.
644 * testsuite/gas/i386/lfence-load.s: Modified.
645 * testsuite/gas/i386/lfence-ret-a.d: Modified.
646 * testsuite/gas/i386/lfence-ret-b.d: Modified.
647 * testsuite/gas/i386/lfence-ret-c.d: New.
648 * testsuite/gas/i386/lfence-ret-d.d: New.
649 * testsuite/gas/i386/lfence-ret.s: Modified.
650 * testsuite/gas/i386/x86-64-lfence-load-b.d: New.
651 * testsuite/gas/i386/x86-64-lfence-load.d: Modified.
652 * testsuite/gas/i386/x86-64-lfence-load.s: Modified.
653 * testsuite/gas/i386/x86-64-lfence-ret-a.d: Modified.
654 * testsuite/gas/i386/x86-64-lfence-ret-b.d: Modified.
655 * testsuite/gas/i386/x86-64-lfence-ret-c.d: New.
656 * testsuite/gas/i386/x86-64-lfence-ret-d.d: New
657 * testsuite/gas/i386/x86-64-lfence-ret-e.d: New.
658 * testsuite/gas/i386/x86-64-lfence-ret.e: New.
659 * testsuite/gas/i386/x86-64-lfence-ret.s: New.
660
30ce8e47
MF
6612020-04-22 Max Filippov <jcmvbkbc@gmail.com>
662
663 PR ld/25861
664 * config/tc-xtensa.c (md_apply_fix): Replace
665 BFD_RELOC_XTENSA_DIFF{8,16,32} generation with
666 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
667 BFD_RELOC_XTENSA_NDIFF{8,16,32} generation.
668 * testsuite/gas/xtensa/loc.d: Replace BFD_RELOC_XTENSA_DIFF16
669 with BFD_RELOC_XTENSA_PDIFF16 in the expected output.
670
31c89d60
AM
6712020-04-22 Alan Modra <amodra@gmail.com>
672
673 * config/obj-elf.c (elf_frob_symbol): Unconditionally remove
674 symbol for ".symver .. remove".
675 * doc/as.texi (.symver): Update.
676 * testsuite/gas/symver/symver11.s: Make foo weak.
677 * testsuite/gas/symver/symver11.d: Expect an error.
678 * testsuite/gas/symver/symver7.d: Allow other random symbols.
679
1d3eb556
L
6802020-04-21 H.J. Lu <hongjiu.lu@intel.com>
681
682 * testsuite/gas/symver/symver11.s: Add ".balign 8".
683
bb2a1453
AS
6842020-04-21 Andreas Schwab <schwab@linux-m68k.org>
685
686 PR 25848
687 * testsuite/gas/m68k/operands.s: Add tests for cmpi.
688 * testsuite/gas/m68k/operands.d: Update.
689 * testsuite/gas/m68k/op68000.d: Update for new error messages.
690
c36876fe
TC
6912020-04-21 Tamar Christina <tamar.christina@arm.com>
692
693 PR binutils/24753
694 * testsuite/gas/arm/pr24753.d: New test.
695 * testsuite/gas/arm/pr24753.s: New test.
696
6914be53
L
6972020-04-21 H.J. Lu <hongjiu.lu@intel.com>
698
699 PR gas/23840
700 PR gas/25295
701 * NEWS: Mention .symver extension.
702 * config/obj-elf.c (obj_elf_find_and_add_versioned_name): New
703 function.
704 (obj_elf_symver): Call obj_elf_find_and_add_versioned_name to
705 add a version name. Add local, hidden and remove visibility
706 support.
707 (elf_frob_symbol): Handle the list of version names. Update the
708 original symbol to local, hidden or remove it from the symbol
709 table.
710 (elf_frob_file_before_adjust): Handle the list of version names.
711 * config/obj-elf.h (elf_visibility): New.
712 (elf_versioned_name_list): Likewise.
713 (elf_obj_sy): Change local to bitfield. Add rename, bad_version
714 and visibility. Change versioned_name pointer to struct
715 elf_versioned_name_list.
716 * doc/as.texi: Update .symver directive.
717 * testsuite/gas/symver/symver.exp: Run all *.d tests. Add more
718 error checking tests.
719 * testsuite/gas/symver/symver6.d: New file.
720 * testsuite/gas/symver/symver7.d: Likewise.
721 * testsuite/gas/symver/symver7.s: Likewise.
722 * testsuite/gas/symver/symver8.d: Likewise.
723 * testsuite/gas/symver/symver8.s: Likewise.
724 * testsuite/gas/symver/symver9.s: Likewise.
725 * testsuite/gas/symver/symver9a.d: Likewise.
726 * testsuite/gas/symver/symver9b.d: Likewise.
727 * testsuite/gas/symver/symver10.s: Likewise.
728 * testsuite/gas/symver/symver10a.d: Likewise.
729 * testsuite/gas/symver/symver10b.d: Likewise.
730 * testsuite/gas/symver/symver11.d: Likewise.
731 * testsuite/gas/symver/symver11.s: Likewise.
732 * testsuite/gas/symver/symver12.d: Likewise.
733 * testsuite/gas/symver/symver12.s: Likewise.
734 * testsuite/gas/symver/symver13.d: Likewise.
735 * testsuite/gas/symver/symver13.s: Likewise.
736 * testsuite/gas/symver/symver14.d: Likewise.
737 * testsuite/gas/symver/symver14.l: Likewise.
738 * testsuite/gas/symver/symver15.d: Likewise.
739 * testsuite/gas/symver/symver15.l: Likewise.
740 * testsuite/gas/symver/symver6.l: Removed.
741 * testsuite/gas/symver/symver6.s: Updated.
742
c2e5c986
SD
7432020-04-20 Sudakshina Das <sudi.das@arm.com>
744
745 * config/tc-aarch64.c (parse_barrier_psb): Update error messages
746 to include TSB.
747 * testsuite/gas/aarch64/system-2.d: Update -march and new tsb tests.
748 * testsuite/gas/aarch64/system-2.s: Add new tsb tests.
749 * testsuite/gas/aarch64/system.d: Update.
750
8a6e1d1d
SD
7512020-04-20 Sudakshina Das <sudi.das@arm.com>
752
753 * testsuite/gas/aarch64/bti.d: Update -march option.
754 * testsuite/gas/aarch64/illegal-bti.d: Remove.
755 * testsuite/gas/aarch64/illegal-bti.l: Remove.
756 * testsuite/gas/aarch64/illegal-ras-1.l: Remove esb.
757 * testsuite/gas/aarch64/illegal-ras-1.s: Remove esb.
758
49af2f5c
AM
7592020-04-17 Alan Modra <amodra@gmail.com>
760
761 * config/tc-bfin.h (TC_EQUAL_IN_INSN): Allow assignment to dot.
762
8e4979ac
NC
7632020-04-16 Gagan Singh Sidhu <broly@mac.com>
764 Nick Clifton <nickc@redhat.com>
765
766 PR 25803
767 * config/obj-elf.c (obj_elf_type): Reject ifunc symbols on MIPS
768 targets.
769 * testsuite/gas/elf/elf.exp: Add MIPS targets to the list to skip
770 for the type-2 test.
771 * testsuite/gas/elf/type-noifunc.e: Update to allow for MIPS
772 targets running this test.
773
c54a9b56
DF
7742020-02-16 David Faust <david.faust@oracle.com>
775
776 * testsuite/gas/bpf/bpf.exp: Run jump32 tests.
777 * testsuite/gas/bpf/jump32.s: New file.
778 * testsuite/gas/bpf/jump32.d: Likewise.
779
3071b197
L
7802020-04-08 H.J. Lu <hongjiu.lu@intel.com>
781
782 * doc/c-i386.texi: Correct -mlfence-before-indirect-branch=
783 documentation.
784
6a3ab923
GN
7852020-04-08 Gunther Nikl <gnikl@justmail.de>
786
787 * config/tc-moxie.h (MD_PCREL_FROM_SECTION): Delete define.
788 (md_pcrel_from): Remove prototytpe.
d9f19885
GN
789 * config/tc-m32c.h (MD_PCREL_FROM_SECTION): Delete duplicate
790 define.
791 (md_pcrel_from_section): Remove duplicate prototype.
9ad4cfa8
GN
792 * tc.h (md_pcrel_from_section): Add prototype.
793 * config/tc-aarch64.h (md_pcrel_from_section): Remove prototype.
794 * config/tc-arc.h (md_pcrel_from_section): Likewise.
795 * config/tc-arm.h (md_pcrel_from_section): Likewise.
796 * config/tc-avr.h (md_pcrel_from_section): Likewise.
797 * config/tc-bfin.h (md_pcrel_from_section): Likewise.
798 * config/tc-bpf.h (md_pcrel_from_section): Likewise.
799 * config/tc-csky.h (md_pcrel_from_section): Likewise.
800 * config/tc-d10v.h (md_pcrel_from_section): Likewise.
801 * config/tc-d30v.h (md_pcrel_from_section): Likewise.
802 * config/tc-epiphany.h (md_pcrel_from_section): Likewise.
803 * config/tc-fr30.h (md_pcrel_from_section): Likewise.
804 * config/tc-frv.h (md_pcrel_from_section): Likewise.
805 * config/tc-iq2000.h (md_pcrel_from_section): Likewise.
806 * config/tc-lm32.h (md_pcrel_from_section): Likewise.
807 * config/tc-m32c.h (md_pcrel_from_section): Likewise.
808 * config/tc-m32r.h (md_pcrel_from_section): Likewise.
809 * config/tc-mcore.h (md_pcrel_from_section): Likewise.
810 * config/tc-mep.h (md_pcrel_from_section): Likewise.
811 * config/tc-metag.h (md_pcrel_from_section): Likewise.
812 * config/tc-microblaze.h (md_pcrel_from_section): Likewise.
813 * config/tc-mmix.h (md_pcrel_from_section): Likewise.
814 * config/tc-moxie.h (md_pcrel_from_section): Likewise.
815 * config/tc-msp430.h (md_pcrel_from_section): Likewise.
816 * config/tc-mt.h (md_pcrel_from_section): Likewise.
817 * config/tc-or1k.h (md_pcrel_from_section): Likewise.
818 * config/tc-ppc.h (md_pcrel_from_section): Likewise.
819 * config/tc-rl78.h (md_pcrel_from_section): Likewise.
820 * config/tc-rx.h (md_pcrel_from_section): Likewise.
821 * config/tc-s390.h (md_pcrel_from_section): Likewise.
822 * config/tc-sh.h (md_pcrel_from_section): Likewise.
823 * config/tc-xc16x.h (md_pcrel_from_section): Likewise.
824 * config/tc-xstormy16.h (md_pcrel_from_section): Likewise.
4c09b8c4
GN
825 * config/tc-microblaze.h (md_begin, md_assemble, md_undefined_symbol,
826 md_show_usage, md_convert_frag, md_operand, md_number_to_chars,
827 md_estimate_size_before_relax, md_section_align, tc_gen_reloc,
828 md_apply_fix3): Delete prototypes.
6a3ab923 829
6e0e8b45
L
8302020-04-07 H.J. Lu <hongjiu.lu@intel.com>
831
832 * NEWS: Mention support for Intel SERIALIZE and TSXLDTRK
833 instructions.
834
266803a2
L
8352020-04-07 H.J. Lu <hongjiu.lu@intel.com>
836
837 * doc/c-z80.texi: Fix @xref warnings.
838
bb651e8b
CL
8392020-04-07 Lili Cui <lili.cui@intel.com>
840
841 * config/tc-i386.c (cpu_arch): Add .TSXLDTRK.
842 (cpu_noarch): Likewise.
843 * doc/c-i386.texi: Document TSXLDTRK.
844 * testsuite/gas/i386/i386.exp: Run TSXLDTRK tests.
845 * testsuite/gas/i386/tsxldtrk.d: Likewise.
846 * testsuite/gas/i386/tsxldtrk.s: Likewise.
847 * testsuite/gas/i386/x86-64-tsxldtrk.d: Likewise.
848
4b27d27c
L
8492020-04-02 Lili Cui <lili.cui@intel.com>
850
851 * config/tc-i386.c (cpu_arch): Add .serialize.
852 (cpu_noarch): Likewise.
853 * doc/c-i386.texi: Document serialize.
854 * testsuite/gas/i386/i386.exp: Run serialize tests
855 * testsuite/gas/i386/serialize.d: Likewise.
856 * testsuite/gas/i386/x86-64-serialize.d: Likewise.
857 * testsuite/gas/i386/serialize.s: Likewise.
858
bb897477
RO
8592020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
860
861 * testsuite/gas/elf/section12a.d: Use notarget instead of xfail.
862 * testsuite/gas/elf/section12b.d: Likewise.
863 * testsuite/gas/elf/section16a.d: Likewise.
864 * testsuite/gas/elf/section16b.d: Likewise.
865
59e28a97
GN
8662020-04-02 Gunther Nikl <gnikl@justmail.de>
867
868 * config/tc-m68k.c (m68k_ip): Fix range check for index register
869 with a suppressed address register.
870
efc3a950
L
8712020-04-01 H.J. Lu <hongjiu.lu@intel.com>
872
873 PR gas/25756
874 * config/tc-i386.h (TC_FORCE_RELOCATION_ABS): New.
875 * testsuite/gas/i386/localpic.s: Add a test for relocation
876 against local absolute symbol.
877 * testsuite/gas/i386/x86-64-localpic.s: Likewise.
878 * testsuite/gas/i386/localpic.d: Updated.
879 * testsuite/gas/i386/x86-64-localpic.d: Likewise.
880 * testsuite/gas/i386/ilp32/x86-64-localpic.d: Likewise.
881
15d47c3a
RO
8822020-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
883
884 PR gas/25732
885 * testsuite/gas/i386/solaris/x86-64-branch-2.d: New file.
886 * testsuite/gas/i386/solaris/x86-64-branch-3.d: New file.
887 * testsuite/gas/i386/solaris/x86-64-jump.d: Incorporate changes to
888 testsuite/gas/i386/x86-64-jump.d.
889 * gas/testsuite/gas/i386/solaris/x86-64-mpx-branch-1.d:
890 Incorporate changes to
891 gas/testsuite/gas/i386/x86-64-mpx-branch-1.d.
892 * testsuite/gas/i386/solaris/x86-64-mpx-branch-2.d : Incorporate
893 changes to testsuite/gas/i386/x86-64-mpx-branch-2.d.
894 * testsuite/gas/i386/x86-64-branch-2.d: Skip on *-*-solaris*.
895 * testsuite/gas/i386/x86-64-branch-3.d: Likewise.
896
876678f0
MR
8972020-03-31 Maciej W. Rozycki <macro@linux-mips.org>
898
899 PR 25611
900 PR 25614
901 * dwarf2dbg.c: Do not include "bignum.h".
902
d1a89da5
NC
9032020-03-30 Nelson Chu <nelson.chu@sifive.com>
904
905 * testsuite/gas/riscv/alias-csr.d: Move this to priv-reg-pseudo.
906 * testsuite/gas/riscv/alias-csr.s: Likewise.
907 * testsuite/gas/riscv/no-aliases-csr.d: Move this
908 to priv-reg-pseudo-noalias.
909 * testsuite/gas/riscv/bad-csr.d: Rename to priv-reg-fail-nonexistent.
910 * testsuite/gas/riscv/bad-csr.l: Likewise.
911 * testsuite/gas/riscv/bad-csr.s: Likewise.
912 * testsuite/gas/riscv/satp.d: Removed. Already included in priv-reg.
913 * testsuite/gas/riscv/satp.s: Likewise.
914 * testsuite/gas/riscv/priv-reg-pseudo.d: New testcase for all pseudo
915 csr instruction, including alias-csr testcase.
916 * testsuite/gas/riscv/priv-reg-pseudo.s: Likewise.
917 * testsuite/gas/riscv/priv-reg-pseudo-noalias.d: New testcase for all
918 pseudo instruction with objdump -Mno-aliases.
919 * testsuite/gas/riscv/priv-reg-fail-nonexistent.d: New testcase.
920 * testsuite/gas/riscv/priv-reg-fail-nonexistent.l: Likewise.
921 * testsuite/gas/riscv/priv-reg-fail-nonexistent.s: Likewise.
922 * testsuite/gas/riscv/priv-reg.d: Update CSR to 1.11.
923 * testsuite/gas/riscv/priv-reg.s: Likewise.
924 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
925 * testsuite/gas/riscv/csr-dw-regnums.d: Likewise.
926 * testsuite/gas/riscv/csr-dw-regnums.s: Likewise.
927
b7780957
J
9282020-03-25 J.W. Jagersma <jwjagersma@gmail.com>
929
930 * config/obj-coff.c (obj_coff_section): Set the bss flag on
931 sections with the "b" attribute.
932
d1023b5d
AM
9332020-03-22 Alan Modra <amodra@gmail.com>
934
935 * testsuite/gas/s12z/truncated.d: Update expected output.
936
0d832e7f
SB
9372020-03-17 Sergey Belyashov <sergey.belyashov@gmail.com>
938
939 PR 25690
940 * config/tc-z80.c (md_pseudo_table): Add xdef anf xref pseudo ops.
941 * doc/c-z80.texi: Update documentation.
942
327ef784
NC
9432020-03-17 Sergey Belyashov <sergey.belyashov@gmail.com>
944
945 PR 25641
946 PR 25668
947 PR 25633
948 Fix disassembling ED+A4/AC/B4/BC opcodes.
949 Fix assembling lines containing colonless label and instruction
950 with first operand inside parentheses.
951 Fix registration of unsupported by target CPU registers.
952 * config/tc-z80.c: See above.
953 * config/tc-z80.h: See above.
954 * testsuite/gas/z80/colonless.d: Update test.
955 * testsuite/gas/z80/colonless.s: Likewise.
956 * testsuite/gas/z80/ez80_adl_all.d: Likewise.
957 * testsuite/gas/z80/ez80_unsup_regs.d: Likewise.
958 * testsuite/gas/z80/ez80_z80_all.d: Likewise.
959 * testsuite/gas/z80/gbz80_unsup_regs.d: Likewise.
960 * testsuite/gas/z80/r800_unsup_regs.d: Likewise.
961 * testsuite/gas/z80/unsup_regs.s: Likewise.
962 * testsuite/gas/z80/z180_unsup_regs.d: Likewise.
963 * testsuite/gas/z80/z80.exp: Likewise.
964 * testsuite/gas/z80/z80_strict_unsup_regs.d: Likewise.
965 * testsuite/gas/z80/z80_unsup_regs.d: Likewise.
966 * testsuite/gas/z80/z80n_unsup_regs.d: Likewise.
967
66d1f7cc
AV
9682020-03-13 Andre Vieira <andre.simoesdiasvieira@arm.com>
969
970 PR 25660
971 * config/tc-arm.c (operand_parse_code): Add OP_RNSDMQR and OP_oRNSDMQ.
972 (parse_operands): Handle new operand codes.
973 (do_neon_dyadic_long): Make shape check accept the scalar variants.
974 (asm_opcode_insns): Fix operand codes for vaddl and vsubl.
975 * testsuite/gas/arm/mve-vaddsub-it.s: New test.
976 * testsuite/gas/arm/mve-vaddsub-it.d: New test.
977 * testsuite/gas/arm/mve-vaddsub-it-bad.s: New test.
978 * testsuite/gas/arm/mve-vaddsub-it-bad.l: New test.
979 * testsuite/gas/arm/mve-vaddsub-it-bad.d: New test.
980 * testsuite/gas/arm/nomve-vaddsub-it.d: New test.
981
9e8f1c90
L
9822020-03-11 H.J. Lu <hongjiu.lu@intel.com>
983
984 * NEWS: Mention x86 assembler options for CVE-2020-0551.
985
97b4a8f7
L
9862020-03-11 H.J. Lu <hongjiu.lu@intel.com>
987
988 * testsuite/gas/i386/i386.exp: Run new tests.
989 * testsuite/gas/i386/lfence-byte.d: New file.
990 * testsuite/gas/i386/lfence-byte.e: Likewise.
991 * testsuite/gas/i386/lfence-byte.s: Likewise.
992 * testsuite/gas/i386/lfence-indbr-a.d: Likewise.
993 * testsuite/gas/i386/lfence-indbr-b.d: Likewise.
994 * testsuite/gas/i386/lfence-indbr-c.d: Likewise.
995 * testsuite/gas/i386/lfence-indbr.e: Likewise.
996 * testsuite/gas/i386/lfence-indbr.s: Likewise.
997 * testsuite/gas/i386/lfence-load.d: Likewise.
998 * testsuite/gas/i386/lfence-load.s: Likewise.
999 * testsuite/gas/i386/lfence-ret-a.d: Likewise.
1000 * testsuite/gas/i386/lfence-ret-b.d: Likewise.
1001 * testsuite/gas/i386/lfence-ret.s: Likewise.
1002 * testsuite/gas/i386/x86-64-lfence-byte.d: Likewise.
1003 * testsuite/gas/i386/x86-64-lfence-byte.e: Likewise.
1004 * testsuite/gas/i386/x86-64-lfence-byte.s: Likewise.
1005 * testsuite/gas/i386/x86-64-lfence-indbr-a.d: Likewise.
1006 * testsuite/gas/i386/x86-64-lfence-indbr-b.d: Likewise.
1007 * testsuite/gas/i386/x86-64-lfence-indbr-c.d: Likewise.
1008 * testsuite/gas/i386/x86-64-lfence-indbr.e: Likewise.
1009 * testsuite/gas/i386/x86-64-lfence-indbr.s: Likewise.
1010 * testsuite/gas/i386/x86-64-lfence-load.d: Likewise.
1011 * testsuite/gas/i386/x86-64-lfence-load.s: Likewise.
1012 * testsuite/gas/i386/x86-64-lfence-ret-a.d: Likewise.
1013 * testsuite/gas/i386/x86-64-lfence-ret-b.d: Likewise.
1014
ae531041
L
10152020-03-11 H.J. Lu <hongjiu.lu@intel.com>
1016
1017 * config/tc-i386.c (lfence_after_load): New.
1018 (lfence_before_indirect_branch_kind): New.
1019 (lfence_before_indirect_branch): New.
1020 (lfence_before_ret_kind): New.
1021 (lfence_before_ret): New.
1022 (last_insn): New.
1023 (load_insn_p): New.
1024 (insert_lfence_after): New.
1025 (insert_lfence_before): New.
1026 (md_assemble): Call insert_lfence_before and insert_lfence_after.
1027 Set last_insn.
1028 (OPTION_MLFENCE_AFTER_LOAD): New.
1029 (OPTION_MLFENCE_BEFORE_INDIRECT_BRANCH): New.
1030 (OPTION_MLFENCE_BEFORE_RET): New.
1031 (md_longopts): Add -mlfence-after-load=,
1032 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
1033 (md_parse_option): Handle -mlfence-after-load=,
1034 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
1035 (md_show_usage): Display -mlfence-after-load=,
1036 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
1037 (i386_cons_align): New.
1038 * config/tc-i386.h (i386_cons_align): New.
1039 (md_cons_align): New.
1040 * doc/c-i386.texi: Document -mlfence-after-load=,
1041 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
1042
5496f3c6
NC
10432020-03-11 Nick Clifton <nickc@redhat.com>
1044
1045 PR 25611
1046 PR 25614
1047 * dwarf2dbg.c (DWARF2_FILE_TIME_NAME): Default to -1.
1048 (DWARF2_FILE_SIZE_NAME): Default to -1.
1049 (DWARF2_LINE_VERSION): Default to the current dwarf level or 3,
1050 whichever is higher.
1051 (DWARF2_LINE_MAX_OPS_PER_INSN): Provide a default value of 1.
1052 (NUM_MD5_BYTES): Define.
1053 (struct file entry): Add md5 field.
1054 (get_filenum): Delete and replace with...
1055 (get_basename): New function.
1056 (get_directory_table_entry): New function.
1057 (allocate_filenum): New function.
1058 (allocate_filename_to_slot): New function.
1059 (dwarf2_where): Use new functions.
1060 (dwarf2_directive_filename): Add support for extended .file
1061 pseudo-op.
1062 (dwarf2_directive_loc): Allow the use of file number zero with
1063 DWARF 5 or higher.
1064 (out_file_list): Rename to...
1065 (out_dir_and_file_list): Add DWARF 5 support.
1066 (out_debug_line): Emit extra values into the section header for
1067 DWARF 5.
1068 (out_debug_str): Allow for file 0 to be used with DWARF 5.
1069 * doc/as.texi (.file): Update the description of this pseudo-op.
1070 * testsuite/gas/elf-dwarf-5-file0.s: Add more lines.
1071 * testsuite/gas/elf-dwarf-5-file0.d: Update expected dump output.
1072 * testsuite/gas/lns/lns-diag-1.l: Update expected error message.
1073 * NEWS: Mention the new feature.
1074
a6a1f5e0
AM
10752020-03-10 Alan Modra <amodra@gmail.com>
1076
1077 * config/tc-csky.c (get_operand_value): Rewrite 1 << 31 expressions
1078 to avoid signed overflow.
1079 * config/tc-mcore.c (md_assemble): Likewise.
1080 * config/tc-mips.c (gpr_read_mask, gpr_write_mask): Likewise.
1081 * config/tc-nds32.c (SET_ADDEND): Likewise.
1082 * config/tc-nios2.c (nios2_assemble_arg_R): Likewise.
1083
3fabc179
JB
10842020-03-09 Jan Beulich <jbeulich@suse.com>
1085
1086 * testsuite/gas/i386/avx.s: Add long-form VCMP[PS][SD] pseudos.
1087 * testsuite/gas/i386/avx.d, testsuite/gas/i386/avx-16bit.d,
1088 testsuite/gas/i386/avx-intel.d: Adjust expectations.
1089
190e5fc8
AM
10902020-03-07 Alan Modra <amodra@gmail.com>
1091
1092 * testsuite/gas/elf/dwarf-5-file0.s: Don't start directives in
1093 first column.
1094
84d9ab33
NC
10952020-03-06 Nick Clifton <nickc@redhat.com>
1096
1097 PR 25614
1098 * dwarf2dbg.c (dwarf2_directive_filename): Allow a file number of
1099 0 if the dwarf_level is 5 or more. Complain if a filename follows
1100 a file 0.
1101 * testsuite/gas/elf/dwarf-5-file0.s: New test.
1102 * testsuite/gas/elf/dwarf-5-file0.d: New test driver.
1103 * testsuite/gas/elf/elf.exp: Run the new test.
1104
1105 PR 25612
1106 * config/tc-ia64.h (DWARF2_VERISION): Fix typo.
1107 * doc/as.texi: Fix another typo.
1108
31bf1864
NC
11092020-03-06 Nick Clifton <nickc@redhat.com>
1110
1111 PR 25612
1112 * as.c (dwarf_level): Define.
1113 (show_usage): Add --gdwarf-3, --gdwarf-4 and --gdwarf-5.
1114 (parse_args): Add support for the new options.
1115 as.h (dwarf_level): Prototype.
1116 * dwarf2dbg.c (DWARF2_VERSION): Use dwarf_level as default version
1117 value.
1118 * config/tc-ia64.h (DWARF2_VERISION): Update definition.
1119 (DWARF2_LINE_VERSION): Remove definition.
1120 * doc/as.texi: Document the new options.
1121
3c968de5
NC
11222020-03-06 Nick Clifton <nickc@redhat.com>
1123
1124 PR 25572
1125 * as.c (main): Allow matching input and outputs when they are
1126 not regular files.
1127
bc49bfd8
JB
11282020-03-06 Jan Beulich <jbeulich@suse.com>
1129
1130 * config/tc-i386.c (match_mem_size): Generalize broadcast special
1131 casing.
1132 (check_VecOperands): Zap xmmword/ymmword/zmmword when more than
1133 one of byte/word/dword/qword is set alongside a SIMD register in
1134 a template's operand.
1135
4873e243
JB
11362020-03-06 Jan Beulich <jbeulich@suse.com>
1137
1138 * config/tc-i386.c (match_template): Extend code in logic
1139 rejecting certain suffixes in certain modes to also cover mask
1140 register use and VecSIB. Drop special casing of broadcast. Skip
1141 immediates in the check.
1142
e365e234
JB
11432020-03-06 Jan Beulich <jbeulich@suse.com>
1144
1145 * config/tc-i386.c (match_template): Fold duplicate code in
1146 logic rejecting certain suffixes in certain modes. Drop
1147 pointless "else".
1148
4ed21b58
JB
11492020-03-06 Jan Beulich <jbeulich@suse.com>
1150
1151 * config/tc-i386.c (process_suffix): Exlucde !vexw insns
1152 alongside !norex64 ones.
1153 * testsuite/gas/i386/x86-64-avx512bw.s: Test VPEXTR* and VPINSR*
1154 with both 32- and 64-bit GPR operands.
1155 * testsuite/gas/i386/x86-64-avx512f.s: Test VEXTRACTPS with both
1156 32- and 64-bit GPR operands.
1157 * testsuite/gas/i386/x86-64-avx512bw-intel.d,
1158 testsuite/gas/i386/x86-64-avx512bw.d,
1159 testsuite/gas/i386/x86-64-avx512f-intel.d,
1160 testsuite/gas/i386/x86-64-avx512f.d: Adjust expectations.
1161
643bb870
JB
11622020-03-06 Jan Beulich <jbeulich@suse.com>
1163
1164 * config/tc-i386.c (md_assemble): Drop use of rex64.
1165 (process_suffix): For REX.W for 64-bit CRC32.
1166
a23b33b3
JB
11672020-03-06 Jan Beulich <jbeulich@suse.com>
1168
1169 * config/tc-i386.c (i386_addressing_mode): For 32-bit
1170 addressing for MPX insns without base/index.
1171 * testsuite/gas/i386/mpx-16bit.s,
1172 * testsuite/gas/i386/mpx-16bit.d: New.
1173 * testsuite/gas/i386/i386.exp: Run new test.
1174
a0497384
JB
11752020-03-06 Jan Beulich <jbeulich@suse.com>
1176
1177 * testsuite/gas/i386/adx.s, testsuite/gas/i386/cet.s,
1178 testsuite/gas/i386/ept.s, testsuite/gas/i386/fsgs.s,
1179 testsuite/gas/i386/invpcid.s, testsuite/gas/i386/movdir.s,
1180 testsuite/gas/i386/ptwrite.s, testsuite/gas/i386/vmx.s,
1181 * testsuite/gas/i386/code16.s: Add CR, DR, and TR access cases
1182 as well as a BSWAP one.
1183 * testsuite/gas/i386/rdpid.s: Add 16-bit case.
1184 * testsuite/gas/i386/sse2-16bit.s: Cover more insns.
1185 * testsuite/gas/i386/adx-intel.d, testsuite/gas/i386/adx.d,
1186 testsuite/gas/i386/cet-intel.d, testsuite/gas/i386/cet.d,
1187 testsuite/gas/i386/code16.d, testsuite/gas/i386/ept-intel.d,
1188 testsuite/gas/i386/ept.d, testsuite/gas/i386/fsgs-intel.d,
1189 testsuite/gas/i386/fsgs.d, testsuite/gas/i386/invpcid-intel.d,
1190 testsuite/gas/i386/invpcid.d, testsuite/gas/i386/movdir-intel.d,
1191 testsuite/gas/i386/movdir.d, testsuite/gas/i386/ptwrite-intel.d,
1192 testsuite/gas/i386/ptwrite.d, testsuite/gas/i386/rdpid-intel.d,
1193 testsuite/gas/i386/rdpid.d, testsuite/gas/i386/sse2-16bit.d,
1194 testsuite/gas/i386/vmx.d: Adjust expectations.
1195
b630c145
JB
11962020-03-06 Jan Beulich <jbeulich@suse.com>
1197
1198 * config/tc-i386.c (md_assemble): Also exclude tpause and umwait
1199 from having their operands swapped.
1200 * testsuite/gas/i386/waitpkg.s,
1201 testsuite/gas/i386/x86-64-waitpkg.s: Add tpause and umwait
1202 3-operand cases as well as testing of 16-bit code generation.
1203 * testsuite/gas/i386/waitpkg.d,
1204 testsuite/gas/i386/waitpkg-intel.d,
1205 testsuite/gas/i386/x86-64-waitpkg.d,
1206 testsuite/gas/i386/x86-64-waitpkg-intel.d: Adjust expectations.
1207
de48783e
NC
12082020-03-04 Nelson Chu <nelson.chu@sifive.com>
1209
dee35d02
NC
1210 * config/tc-riscv.c (percent_op_utype): Support the modifier
1211 %got_pcrel_hi.
1212 * doc/c-riscv.texi: Add documentation.
1213 * testsuite/gas/riscv/no-relax-reloc.d: Add test case for the new
1214 modifier %got_pcrel_hi.
1215 * testsuite/gas/riscv/no-relax-reloc.s: Likewise.
1216 * testsuite/gas/riscv/relax-reloc.d: Likewise.
1217 * testsuite/gas/riscv/relax-reloc.s: Likewise.
1218
de48783e
NC
1219 * doc/c-riscv.texi (relocation modifiers): Add documentation.
1220 (RISC-V-Formats): Update the section name from "Instruction Formats"
1221 to "RISC-V Instruction Formats".
1222
749479c8
AO
12232020-03-04 Alexandre Oliva <oliva@adacore.com>
1224
1225 * config/tc-arm.c (md_apply_fix): Warn if a PC-relative load is
1226 detected in a section which does not have at least 4 byte
1227 alignment.
1228 * testsuite/gas/arm/armv8-ar-it-bad.s: Add alignment directive.
1229 * testsuite/gas/arm/ldr-t.s: Likewise.
1230 * testsuite/gas/arm/sp-pc-usage-t.s: Likewise.
1231 * testsuite/gas/arm/sp-pc-usage-t.d: Finish test at end of
1232 disassembly, ignoring any NOPs that may have been inserted because
1233 of section alignment.
1234 * testsuite/gas/arm/ldr-t.d: Likewise.
1235
a847e322
JB
12362020-03-04 Jan Beulich <jbeulich@suse.com>
1237
1238 * config/tc-i386.c (cpu_arch): Add .sev_es entry.
1239 * doc/c-i386.texi: Mention sev_es.
1240 * testsuite/gas/i386/arch-13.s: Add SEV-ES case.
1241 * testsuite/gas/i386/arch-13.d: Extend -march=. Adjust
1242 expectations.
1243 * testsuite/gas/i386/arch-13-znver1.d,
1244 testsuite/gas/i386/arch-13-znver2.d: Extend -march=.
1245
3cd7f3e3
L
12462020-03-03 H.J. Lu <hongjiu.lu@intel.com>
1247
1248 * config/tc-i386.c (match_template): Replace ignoresize and
1249 defaultsize with mnemonicsize.
1250 (process_suffix): Likewise.
1251
b8ba1385
SB
12522020-03-03 Sergey Belyashov <sergey.belyashov@gmail.com>
1253
1254 PR 25627
1255 * config/tc-z80.c (emit_ld_rr_m): Fix invalid compilation of
1256 instruction LD IY,(HL).
1257 * testsuite/gas/z80/ez80_adl_all.d: Update expected disassembly.
1258 * testsuite/gas/z80/ez80_adl_all.s: Add tests of the instruction.
1259 * testsuite/gas/z80/ez80_z80_all.d: Update expected disassembly.
1260 * testsuite/gas/z80/ez80_z80_all.s: Add tests of the instruction.
1261
10d97a0f
L
12622020-03-03 H.J. Lu <hongjiu.lu@intel.com>
1263
1264 PR gas/25622
1265 * testsuite/gas/i386/i386.exp: Run x86-64-default-suffix and
1266 x86-64-default-suffix-avx.
1267 * testsuite/gas/i386/noreg64.s: Remove cvtsi2sd, cvtsi2ss,
1268 vcvtsi2sd, vcvtsi2ss, vcvtusi2sd and vcvtusi2ss entries.
1269 * testsuite/gas/i386/noreg64.d: Updated.
1270 * testsuite/gas/i386/noreg64.l: Likewise.
1271 * testsuite/gas/i386/x86-64-default-suffix-avx.d: New file.
1272 * testsuite/gas/i386/x86-64-default-suffix.d: Likewise.
1273 * testsuite/gas/i386/x86-64-default-suffix.s: Likewise.
1274
8326546e
SB
12752020-03-03 Sergey Belyashov <sergey.belyashov@gmail.com>
1276
1277 PR 25604
1278 * config/tc-z80.c (contains_register): Prevent an illegal memory
1279 access when checking an expression for a register name.
1280
e3e896e6
AM
12812020-03-03 Alan Modra <amodra@gmail.com>
1282
1283 * config/obj-coff.h: Remove vestiges of coff-m68k and pe-mips
1284 support.
1285
a4dd6c97
AM
12862020-03-02 Alan Modra <amodra@gmail.com>
1287
1288 * config/tc-m32r.c (md_begin): Set SEC_SMALL_DATA on .scommon section.
1289 * config/tc-mips.c (s_change_sec): Set SEC_SMALL_DATA for .sdata
1290 and .sbss sections.
1291 * config/tc-score.c: Delete !BFD_ASSEMBLER code throughout.
1292 (s3_s_change_sec): Set SEC_SMALL_DATA for .sbss section.
1293 (s3_s_score_lcomm): Likewise.
1294 * config/tc-score7.c: Similarly.
1295 * read.c (bss_alloc): Set SEC_SMALL_DATA for .sbss section.
1296
dec7b24b
YS
12972020-02-28 YunQiang Su <syq@debian.org>
1298
1299 PR gas/25539
1300 * config/tc-mips.c (fix_loongson3_llsc): Compare label value
1301 to handle multi-labels.
1302 (has_label_name): New.
1303
cceb53b8
MM
13042020-02-26 Matthew Malcomson <matthew.malcomson@arm.com>
1305
1306 * config/tc-arm.c (enum pred_instruction_type): Remove
1307 NEUTRAL_IT_NO_VPT_INSN predication type.
1308 (cxn_handle_predication): Modify to require condition suffixes.
1309 (handle_pred_state): Remove NEUTRAL_IT_NO_VPT_INSN cases.
1310 * testsuite/gas/arm/cde-scalar.s: Update test.
1311 * testsuite/gas/arm/cde-warnings.l: Update test.
1312 * testsuite/gas/arm/cde-warnings.s: Update test.
1313
da3ec71f
AM
13142020-02-26 Alan Modra <amodra@gmail.com>
1315
1316 * config/tc-arm.c (reg_expected_msgs[REG_TYPE_RNB]): Don't use
1317 N_() on empty string.
1318
42135cad
AM
13192020-02-26 Alan Modra <amodra@gmail.com>
1320
1321 * read.c (read_a_source_file): Call strncpy with length one
1322 less than size of original_case_string.
1323
dc1e8a47
AM
13242020-02-26 Alan Modra <amodra@gmail.com>
1325
1326 * config/obj-elf.c: Indent labels correctly.
1327 * config/obj-macho.c: Likewise.
1328 * config/tc-aarch64.c: Likewise.
1329 * config/tc-alpha.c: Likewise.
1330 * config/tc-arm.c: Likewise.
1331 * config/tc-cr16.c: Likewise.
1332 * config/tc-crx.c: Likewise.
1333 * config/tc-frv.c: Likewise.
1334 * config/tc-i386-intel.c: Likewise.
1335 * config/tc-i386.c: Likewise.
1336 * config/tc-ia64.c: Likewise.
1337 * config/tc-mn10200.c: Likewise.
1338 * config/tc-mn10300.c: Likewise.
1339 * config/tc-nds32.c: Likewise.
1340 * config/tc-riscv.c: Likewise.
1341 * config/tc-s12z.c: Likewise.
1342 * config/tc-xtensa.c: Likewise.
1343 * config/tc-z80.c: Likewise.
1344 * read.c: Likewise.
1345 * symbols.c: Likewise.
1346 * write.c: Likewise.
1347
bd0cf5a6
NC
13482020-02-20 Nelson Chu <nelson.chu@sifive.com>
1349
54b2aec1
NC
1350 * config/tc-riscv.c (riscv_ip): New boolean insn_with_csr to indicate
1351 we are assembling instruction with CSR. Call riscv_csr_read_only_check
1352 after parsing all arguments.
1353 (enum csr_insn_type): New enum is used to classify the CSR instruction.
1354 (riscv_csr_insn_type, riscv_csr_read_only_check): New functions. These
1355 are used to check if we write a read-only CSR by the CSR instruction.
1356 * testsuite/gas/riscv/priv-reg-fail-read-only-01.s: New testcase. Test
1357 all CSR for the read-only CSR checking.
1358 * testsuite/gas/riscv/priv-reg-fail-read-only-01.d: Likewise.
1359 * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
1360 * testsuite/gas/riscv/priv-reg-fail-read-only-02.s: New testcase. Test
1361 all CSR instructions for the read-only CSR checking.
1362 * testsuite/gas/riscv/priv-reg-fail-read-only-02.d: Likewise.
1363 * testsuite/gas/riscv/priv-reg-fail-read-only-02.l: Likewise.
1364
2ca89224
NC
1365 * config/tc-riscv.c (struct riscv_set_options): New field csr_check.
1366 (riscv_opts): Initialize it.
1367 (reg_lookup_internal): Check the `riscv_opts.csr_check`
1368 before doing the CSR checking.
1369 (enum options): Add OPTION_CSR_CHECK and OPTION_NO_CSR_CHECK.
1370 (md_longopts): Add mcsr-check and mno-csr-check.
1371 (md_parse_option): Handle new enum option values.
1372 (s_riscv_option): Handle new long options.
1373 * doc/c-riscv.texi: Add description for the new .option and assembler
1374 options.
1375 * testsuite/gas/riscv/priv-reg-fail-fext.d: Add `-mcsr-check` to enable
1376 the CSR checking.
1377 * testsuite/gas/riscv/priv-reg-fail-rv32-only.d: Likewise.
1378
bd0cf5a6
NC
1379 * config/tc-riscv.c (csr_extra_hash): New.
1380 (enum riscv_csr_class): New enum. Used to decide
1381 whether or not this CSR is legal in the current ISA string.
1382 (struct riscv_csr_extra): New structure to hold all extra information
1383 of CSR.
1384 (riscv_init_csr_hashes): New. According to the DECLARE_CSR and
1385 DECLARE_CSR_ALIAS, insert CSR extra information into csr_extra_hash.
1386 Call hash_reg_name to insert CSR address into reg_names_hash.
1387 (reg_csr_lookup_internal, riscv_csr_class_check): New functions.
1388 Decide whether the CSR is valid according to the csr_extra_hash.
1389 (reg_lookup_internal): Call reg_csr_lookup_internal for CSRs.
1390 (init_opcode_hash): Update 'if (hash_error != NULL)' as hash_error is
1391 not a boolean. This is same as riscv_init_csr_hash, so keep the
1392 consistent usage.
1393 (md_begin): Call riscv_init_csr_hashes for each DECLARE_CSR.
1394 * testsuite/gas/riscv/csr-dw-regnums.d: Add -march=rv32if option.
1395 * testsuite/gas/riscv/priv-reg.d: Add f-ext by -march option.
1396 * testsuite/gas/riscv/priv-reg-fail-fext.d: New testcase. The source
1397 file is `priv-reg.s`, and the ISA is rv32i without f-ext, so the
1398 f-ext CSR are not allowed.
1399 * testsuite/gas/riscv/priv-reg-fail-fext.l: Likewise.
1400 * testsuite/gas/riscv/priv-reg-fail-rv32-only.d: New testcase. The
1401 source file is `priv-reg.s`, and the ISA is rv64if, so the
1402 rv32-only CSR are not allowed.
1403 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
1404
10a95fcc
AM
14052020-02-21 Alan Modra <amodra@gmail.com>
1406
1407 * config/tc-pdp11.c (md_apply_fix): Handle BFD_RELOC_32.
1408 (tc_gen_reloc): Only give a BAD_CASE assertion on pcrel relocs.
1409
dda2980f
AM
14102020-02-21 Alan Modra <amodra@gmail.com>
1411
1412 PR 25569
1413 * config/obj-aout.c (obj_aout_frob_file_before_fix): Don't loop
1414 on section size adjustment, instead perform another write if
1415 exec header size is larger than section size.
1416
bd3380bc
NC
14172020-02-19 Nelson Chu <nelson.chu@sifive.com>
1418
1419 * doc/c-riscv.texi: Add the doc entries for -march-attr/
1420 -mno-arch-attr command line options.
1421
fa164239
JW
14222020-02-19 Nelson Chu <nelson.chu@sifive.com>
1423
1424 * testsuite/gas/riscv/c-add-addi.d: New testcase.
1425 * testsuite/gas/riscv/c-add-addi.s: Likewise.
1426
fcaaac0a
SB
14272020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
1428
1429 PR 25576
1430 * config/tc-z80.c (md_parse_option): Do not use an underscore
1431 prefix for local labels in SDCC compatability mode.
1432 (z80_start_line_hook): Remove SDCC dollar label support.
1433 * testsuite/gas/z80/sdcc.d: Update expected disassembly.
1434 * testsuite/gas/z80/sdcc.s: Likewise.
1435
14362020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
1437
1438 PR 25517
1439 * config/tc-z80.c: Add -march option.
1440 * doc/as.texi: Update Z80 documentation.
1441 * doc/c-z80.texi: Likewise.
1442 * testsuite/gas/z80/ez80_adl_all.d: Update command line.
1443 * testsuite/gas/z80/ez80_adl_suf.d: Likewise.
1444 * testsuite/gas/z80/ez80_pref_dis.d: Likewise.
1445 * testsuite/gas/z80/ez80_z80_all.d: Likewise.
1446 * testsuite/gas/z80/ez80_z80_suf.d: Likewise.
1447 * testsuite/gas/z80/gbz80_all.d: Likewise.
1448 * testsuite/gas/z80/r800_extra.d: Likewise.
1449 * testsuite/gas/z80/r800_ii8.d: Likewise.
1450 * testsuite/gas/z80/r800_z80_doc.d: Likewise.
1451 * testsuite/gas/z80/sdcc.d: Likewise.
1452 * testsuite/gas/z80/z180.d: Likewise.
1453 * testsuite/gas/z80/z180_z80_doc.d: Likewise.
1454 * testsuite/gas/z80/z80_doc.d: Likewise.
1455 * testsuite/gas/z80/z80_ii8.d: Likewise.
1456 * testsuite/gas/z80/z80_in_f_c.d: Likewise.
1457 * testsuite/gas/z80/z80_op_ii_ld.d: Likewise.
1458 * testsuite/gas/z80/z80_out_c_0.d: Likewise.
1459 * testsuite/gas/z80/z80_sli.d: Likewise.
1460 * testsuite/gas/z80/z80n_all.d: Likewise.
1461 * testsuite/gas/z80/z80n_reloc.d: Likewise.
1462
a7e12755
L
14632020-02-19 H.J. Lu <hongjiu.lu@intel.com>
1464
1465 * config/tc-i386.c (output_insn): Mark cvtpi2ps and cvtpi2pd
1466 with GNU_PROPERTY_X86_FEATURE_2_MMX.
1467 * testsuite/gas/i386/i386.exp: Run property-3 and
1468 x86-64-property-3.
1469 * testsuite/gas/i386/property-3.d: New file.
1470 * testsuite/gas/i386/property-3.s: Likewise.
1471 * testsuite/gas/i386/x86-64-property-3.d: Likewise.
1472
272a84b1
L
14732020-02-17 H.J. Lu <hongjiu.lu@intel.com>
1474
1475 * config/tc-i386.c (cpu_arch): Add .popcnt.
1476 * doc/c-i386.texi: Remove abm and .abm. Add popcnt and .popcnt.
1477 Add a tab before @samp{.sse4a}.
1478
c8f8eebc
JB
14792020-02-17 Jan Beulich <jbeulich@suse.com>
1480
1481 * config/tc-i386.c (process_suffix): Don't try to guess a suffix
1482 for AddrPrefixOpReg templates. Combine the two pieces of
1483 addrprefixopreg handling. Reject 16-bit address reg in 64-bit
1484 mode.
1485
eedb0f2c
JB
14862020-02-17 Jan Beulich <jbeulich@suse.com>
1487
1488 PR gas/14439
1489 * config/tc-i386.c (md_assemble): Also suppress operand
1490 swapping for MONITOR{,X} and MWAIT{,X}.
1491 * testsuite/gas/i386/sse3.s, testsuite/gas/i386/x86-64-sse3.s:
1492 Add Intel syntax monitor/mwait tests.
1493 * testsuite/gas/i386/sse3.d, testsuite/gas/i386/x86-64-sse3.d:
1494 Adjust expectations.
1495 *testsuite/gas/i386/sse3-intel.d,
1496 testsuite/gas/i386/x86-64-sse3-intel.d: New.
1497 * testsuite/gas/i386/i386.exp: Run new tests.
1498
b9915cbc
JB
14992020-02-17 Jan Beulich <jbeulich@suse.com>
1500
1501 PR gas/6518
1502 * config/tc-i386.c (process_suffix): Re-work Intel-syntax
1503 [XYZ]MMWord memory operand ambiguity recognition logic (largely
1504 re-indentation).
1505 * testsuite/gas/i386/avx512dq-inval.s: Add vcvtqq2ps/vcvtuqq2ps
1506 cases.
1507 * testsuite/gas/i386/inval-avx512f.s: Also test vcvtneps2bf16.
1508 * testsuite/gas/i386/avx512dq-inval.l,
1509 testsuite/gas/i386/inval-avx.l,
1510 testsuite/gas/i386/inval-avx512f.l: Adjust expectations.
1511 * testsuite/gas/i386/avx512vl-ambig.s,
1512 testsuite/gas/i386/avx512vl-ambig.l: New.
1513 * testsuite/gas/i386/i386.exp: Run new test.
1514
af5c13b0
L
15152020-02-16 H.J. Lu <hongjiu.lu@intel.com>
1516
1517 * config/tc-i386.c (cpu_arch): Add .sse4a and nosse4a. Restore
1518 nosse4.
1519 * doc/c-i386.texi: Document sse4a and nosse4a.
1520
07d98387
L
15212020-02-14 H.J. Lu <hongjiu.lu@intel.com>
1522
1523 * doc/c-i386.texi: Remove the old movsx and movzx documentation
1524 for AT&T syntax.
1525
65fca059
JB
15262020-02-14 Jan Beulich <jbeulich@suse.com>
1527
1528 PR gas/25438
1529 * config/tc-i386.c (md_assemble): Move movsx/movzx special
1530 casing ...
1531 (process_suffix): ... here. Consider just the first operand
1532 initially.
1533 (check_long_reg): Drop opcode 0x63 special case again.
1534 * testsuite/gas/i386/i386.s, testsuite/gas/i386/iamcu-1.s,
1535 testsuite/gas/i386/ilp32/x86-64.s, testsuite/gas/i386/x86_64.s:
1536 Move ambiguous operand size tests ...
1537 * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
1538 testsuite/gas/i386/noreg64.s: ... here.
1539 * testsuite/gas/i386/i386.d, testsuite/gas/i386/i386-intel.d
1540 testsuite/gas/i386/iamcu-1.d, testsuite/gas/i386/ilp32/x86-64.d,
1541 testsuite/gas/i386/k1om.d, testsuite/gas/i386/l1om.d,
1542 testsuite/gas/i386/movx16.l, testsuite/gas/i386/movx32.l,
1543 testsuite/gas/i386/movx64.l, testsuite/gas/i386/noreg16.d,
1544 testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg64.d,
1545 testsuite/gas/i386/x86-64-movsxd.d,
1546 testsuite/gas/i386/x86-64-movsxd-intel.d,
1547 testsuite/gas/i386/x86_64.d, testsuite/gas/i386/x86_64-intel.d:
1548 Adjust expectations.
1549 * testsuite/gas/i386/movx16.s, testsuite/gas/i386/movx16.l,
1550 testsuite/gas/i386/movx32.s, testsuite/gas/i386/movx32.l,
1551 testsuite/gas/i386/movx64.s, testsuite/gas/i386/movx64.l: New.
1552 * testsuite/gas/i386/i386.exp: Run new tests.
1553
b6773884
JB
15542020-02-14 Jan Beulich <jbeulich@suse.com>
1555
1556 * config/tc-i386.c (process_operands): Also skip segment
1557 override prefix emission if it matches an already present one.
1558 * testsuite/gas/i386/prefix32.s: Add double segment override
1559 cases.
1560 * testsuite/gas/i386/prefix32.l: Adjust expectations.
1561
92334ad2
JB
15622020-02-14 Jan Beulich <jbeulich@suse.com>
1563
1564 * config/tc-i386.c (process_operands): Drop ineffectual segment
1565 overrides when optimizing.
1566 * testsuite/gas/i386/lea-optimize.d: New.
1567 * testsuite/gas/i386/i386.exp: Run new test.
1568
15692020-02-14 Jan Beulich <jbeulich@suse.com>
514a8bb0
JB
1570
1571 * config/tc-i386.c (process_operands): Also check insn prefix
1572 for ineffectual segment override warning. Don't cover possible
1573 VEX/EVEX encoded insns there.
1574 * testsuite/gas/i386/lea.s, testsuite/gas/i386/lea.d,
1575 testsuite/gas/i386/lea.e: New.
1576 * testsuite/gas/i386/i386.exp: Run new test.
1577
0e6724de
L
15782020-02-14 H.J. Lu <hongjiu.lu@intel.com>
1579
1580 PR gas/25438
1581 * doc/c-i386.texi: Document movsx, movsxd and movzx for AT&T
1582 syntax.
1583
292676c1
L
15842020-02-13 Fangrui Song <maskray@google.com>
1585 H.J. Lu <hongjiu.lu@intel.com>
1586
1587 PR gas/25551
1588 * config/tc-i386.c (tc_i386_fix_adjustable): Don't check
1589 BFD_RELOC_386_PLT32 nor BFD_RELOC_X86_64_PLT32.
1590 * testsuite/gas/i386/i386.exp: Run relax-5 and x86-64-relax-4.
1591 * testsuite/gas/i386/relax-5.d: New file.
1592 * testsuite/gas/i386/relax-5.s: Likewise.
1593 * testsuite/gas/i386/x86-64-relax-4.d: Likewise.
1594 * testsuite/gas/i386/x86-64-relax-4.s: Likewise.
1595
7deea9aa
JB
15962020-02-13 Jan Beulich <jbeulich@suse.com>
1597
1598 * config/tc-i386.c (cpu_noarch): Use CPU_ANY_SSE4_FLAGS in
1599 "nosse4" entry.
1600
6c0946d0
JB
16012020-02-12 Jan Beulich <jbeulich@suse.com>
1602
1603 * config/tc-i386.c (avx512): New (at file scope), moved from
1604 (check_VecOperands): ... here.
1605 (process_suffix): Add [XYZ]MMword operand size handling.
1606 * testsuite/gas/i386/avx512dq-inval.s: Add VFPCLASS tests.
1607 * testsuite/gas/i386/noavx512-2.s: Add Intel syntax VFPCLASS
1608 tests.
1609 * testsuite/gas/i386/avx512dq-inval.l,
1610 testsuite/gas/i386/noavx512-2.l: Adjust expectations.
1611
5990e377
JB
16122020-02-12 Jan Beulich <jbeulich@suse.com>
1613
1614 PR gas/24546
1615 * config/tc-i386.c (match_template): Apply AMD64 check to 64-bit
1616 code only.
1617 * config/tc-i386-intel.c (i386_intel_operand): Also handle
1618 CALL/JMP in O_tbyte_ptr case.
1619 * doc/c-i386.texi: Mention far call and full pointer load ISA
1620 differences.
1621 * testsuite/gas/i386/x86-64-branch-3.s,
1622 testsuite/gas/i386/x86-64-intel64.s: Add 64-bit far call cases.
1623 * testsuite/gas/i386/x86-64-branch-3.d,
1624 testsuite/gas/i386/x86-64-intel64.d: Adjust expectations.
1625 * testsuite/gas/i386/x86-64-branch-5.l,
1626 testsuite/gas/i386/x86-64-branch-5.s: New.
1627 * testsuite/gas/i386/i386.exp: Run new test.
1628
9706160a
JB
16292020-02-12 Jan Beulich <jbeulich@suse.com>
1630
1631 PR gas/25438
1632 * config/tc-i386.c (REGISTER_WARNINGS): Delete.
1633 (check_byte_reg): Skip only source operand of CRC32. Drop Non-
1634 64-bit-only warning.
1635 (check_word_reg): Consistently error on mismatching register
1636 size and suffix.
1637 * testsuite/gas/i386/general.s: Replace dword GPR with word one
1638 for movw. Replace suffix / GPR for orb.
1639 * testsuite/gas/i386/inval.s: Add tests for movw with dword and
1640 byte GPRs as well as ones for inb/outb with a word accumulator.
1641 * testsuite/gas/i386/general.l, testsuite/gas/i386/intelbad.l,
1642 testsuite/gas/i386/inval.l: Adjust expectations.
1643
5de4d9ef
JB
16442020-02-12 Jan Beulich <jbeulich@suse.com>
1645
1646 * config/tc-i386.c (operand_type_register_match): Also fall
1647 through initial two if()-s when the template allows for a GPR
1648 operand. Adjust comment.
1649
50128d0c
JB
16502020-02-11 Jan Beulich <jbeulich@suse.com>
1651
1652 (struct _i386_insn): New field "short_form".
1653 (optimize_encoding): Drop setting of shortform field.
1654 (process_suffix): Set i.short_form. Replace shortform use.
1655 (process_operands): Replace shortform use.
1656
1ed818b4
MM
16572020-02-11 Matthew Malcomson <matthew.malcomson@arm.com>
1658
1659 * config/tc-arm.c (vcx_handle_register_arguments): Remove `for`
1660 loop initial declaration.
1661
5aae9ae9
MM
16622020-02-10 Matthew Malcomson <matthew.malcomson@arm.com>
1663
1664 * config/tc-arm.c (NEON_MAX_TYPE_ELS): Increment to account for
1665 instructions that can have 5 arguments.
1666 (enum operand_parse_code): Add new operands.
1667 (parse_operands): Account for new operands.
1668 (S5): New macro.
1669 (enum neon_shape_el): Introduce P suffixes for coprocessor.
1670 (neon_select_shape): Account for P suffix.
1671 (LOW1): Move macro to global position.
1672 (HI4): Move macro to global position.
1673 (vcx_assign_vec_d): New.
1674 (vcx_assign_vec_m): New.
1675 (vcx_assign_vec_n): New.
1676 (enum vcx_reg_type): New.
1677 (vcx_get_reg_type): New.
1678 (vcx_size_pos): New.
1679 (vcx_vec_pos): New.
1680 (vcx_handle_shape): New.
1681 (vcx_ensure_register_in_range): New.
1682 (vcx_handle_register_arguments): New.
1683 (vcx_handle_insn_block): New.
1684 (vcx_handle_common_checks): New.
1685 (do_vcx1): New.
1686 (do_vcx2): New.
1687 (do_vcx3): New.
1688 * testsuite/gas/arm/cde-missing-fp.d: New test.
1689 * testsuite/gas/arm/cde-missing-fp.l: New test.
1690 * testsuite/gas/arm/cde-missing-mve.d: New test.
1691 * testsuite/gas/arm/cde-missing-mve.l: New test.
1692 * testsuite/gas/arm/cde-mve-or-neon.d: New test.
1693 * testsuite/gas/arm/cde-mve-or-neon.s: New test.
1694 * testsuite/gas/arm/cde-mve.s: New test.
1695 * testsuite/gas/arm/cde-warnings.l:
1696 * testsuite/gas/arm/cde-warnings.s:
1697 * testsuite/gas/arm/cde.d:
1698 * testsuite/gas/arm/cde.s:
1699
4934a27c
MM
17002020-02-10 Stam Markianos-Wright <stam.markianos-wright@arm.com>
1701 Matthew Malcomson <matthew.malcomson@arm.com>
1702
1703 * config/tc-arm.c (arm_ext_cde*): New feature sets for each
1704 CDE coprocessor that can be enabled.
1705 (enum pred_instruction_type): New pred type.
1706 (BAD_NO_VPT): New error message.
1707 (BAD_CDE): New error message.
1708 (BAD_CDE_COPROC): New error message.
1709 (enum operand_parse_code): Add new immediate operands.
1710 (parse_operands): Account for new immediate operands.
1711 (check_cde_operand): New.
1712 (cde_coproc_enabled): New.
1713 (cde_coproc_pos): New.
1714 (cde_handle_coproc): New.
1715 (cxn_handle_predication): New.
1716 (do_custom_instruction_1): New.
1717 (do_custom_instruction_2): New.
1718 (do_custom_instruction_3): New.
1719 (do_cx1): New.
1720 (do_cx1a): New.
1721 (do_cx1d): New.
1722 (do_cx1da): New.
1723 (do_cx2): New.
1724 (do_cx2a): New.
1725 (do_cx2d): New.
1726 (do_cx2da): New.
1727 (do_cx3): New.
1728 (do_cx3a): New.
1729 (do_cx3d): New.
1730 (do_cx3da): New.
1731 (handle_pred_state): Define new IT block behaviour.
1732 (insns): Add newn CX*{,d}{,a} instructions.
1733 (CDE_EXTENSIONS,armv8m_main_ext_table,armv8_1m_main_ext_table):
1734 Define new cdecp extension strings.
1735 * doc/c-arm.texi: Document new cdecp extension arguments.
1736 * testsuite/gas/arm/cde-scalar.d: New test.
1737 * testsuite/gas/arm/cde-scalar.s: New test.
1738 * testsuite/gas/arm/cde-warnings.d: New test.
1739 * testsuite/gas/arm/cde-warnings.l: New test.
1740 * testsuite/gas/arm/cde-warnings.s: New test.
1741 * testsuite/gas/arm/cde.d: New test.
1742 * testsuite/gas/arm/cde.s: New test.
1743
4b5aaf5f
L
17442020-02-10 H.J. Lu <hongjiu.lu@intel.com>
1745
1746 PR gas/25516
1747 * config/tc-i386.c (intel64): Renamed to ...
1748 (isa64): This.
1749 (match_template): Accept Intel64 only instruction by default.
1750 (i386_displacement): Updated.
1751 (md_parse_option): Updated.
1752 * c-i386.texi: Update -mamd64/-mintel64 documentation.
1753 * testsuite/gas/i386/i386.exp: Run x86-64-sysenter. Pass
1754 -mamd64 to x86-64-sysenter-amd.
1755 * testsuite/gas/i386/x86-64-sysenter.d: New file.
1756
33176d91
AM
17572020-02-10 Alan Modra <amodra@gmail.com>
1758
1759 * config/obj-elf.c (obj_elf_change_section): Error for section
1760 type, attr or entsize changes in assembly.
1761 * testsuite/gas/elf/elf.exp: Pass -Z to gas for section5 test.
1762 * testsuite/gas/elf/section5.l: Update.
1763
82194874
AM
17642020-02-10 Alan Modra <amodra@gmail.com>
1765
1766 * output-file.c (output_file_close): Do a normal close when
1767 flag_always_generate_output.
1768 * write.c (write_object_file): Don't stop output when
1769 flag_always_generate_output.
1770
9fc0b501
SB
17712020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
1772
1773 PR 25469
1774 * config/tc-z80.c: Add -gbz80 command line option to generate code
1775 for the GameBoy Z80. Add support for generating DWARF.
1776 * config/tc-z80.h: Add support for DWARF debug information
1777 generation.
1778 * doc/c-z80.texi: Document new command line option.
1779 * testsuite/gas/z80/gbz80_all.d: New file.
1780 * testsuite/gas/z80/gbz80_all.s: New file.
1781 * testsuite/gas/z80/z80.exp: Run the new tests.
1782 * testsuite/gas/z80/z80n_all.d: New file.
1783 * testsuite/gas/z80/z80n_all.s: New file.
1784 * testsuite/gas/z80/z80n_reloc.d: New file.
1785
b7d07216
L
17862020-02-06 H.J. Lu <hongjiu.lu@intel.com>
1787
1788 PR gas/25381
1789 * config/obj-elf.c (get_section): Also check
1790 linked_to_symbol_name.
1791 (obj_elf_change_section): Also set map_head.linked_to_symbol_name.
1792 (obj_elf_parse_section_letters): Handle the 'o' flag.
1793 (build_group_lists): Renamed to ...
1794 (build_additional_section_info): This. Set elf_linked_to_section
1795 from map_head.linked_to_symbol_name.
1796 (elf_adjust_symtab): Updated.
1797 * config/obj-elf.h (elf_section_match): Add linked_to_symbol_name.
1798 * doc/as.texi: Document the 'o' flag.
1799 * testsuite/gas/elf/elf.exp: Run PR gas/25381 tests.
1800 * testsuite/gas/elf/section18.d: New file.
1801 * testsuite/gas/elf/section18.s: Likewise.
1802 * testsuite/gas/elf/section19.d: Likewise.
1803 * testsuite/gas/elf/section19.s: Likewise.
1804 * testsuite/gas/elf/section20.d: Likewise.
1805 * testsuite/gas/elf/section20.s: Likewise.
1806 * testsuite/gas/elf/section21.d: Likewise.
1807 * testsuite/gas/elf/section21.l: Likewise.
1808 * testsuite/gas/elf/section21.s: Likewise.
1809
5eb617a7
L
18102020-02-06 H.J. Lu <hongjiu.lu@intel.com>
1811
1812 * NEWS: Mention x86 assembler options to align branches for
1813 binutils 2.34.
1814
986ac314
L
18152020-02-06 H.J. Lu <hongjiu.lu@intel.com>
1816
1817 * testsuite/gas/i386/i386.exp: Run unique and x86-64-unique
1818 only for ELF targets.
1819 * testsuite/gas/i386/unique.d: Don't xfail.
1820 * testsuite/gas/i386/x86-64-unique.d: Likewise.
1821
19234a6d
AM
18222020-02-06 Alan Modra <amodra@gmail.com>
1823
1824 * testsuite/gas/i386/unique.d: xfail for non-elf targets.
1825 * testsuite/gas/i386/x86-64-unique.d: Likewise.
1826
02e0be69
AM
18272020-02-06 Alan Modra <amodra@gmail.com>
1828
1829 * testsuite/gas/elf/section12a.d: Use supports_gnu_osabi in
1830 xfail, and rename test.
1831 * testsuite/gas/elf/section12b.d: Likewise.
1832 * testsuite/gas/elf/section16a.d: Likewise.
1833 * testsuite/gas/elf/section16b.d: Likewise.
1834
a8c4d40b
L
18352020-02-02 H.J. Lu <hongjiu.lu@intel.com>
1836
1837 PR gas/25380
1838 * config/obj-elf.c (section_match): Removed.
1839 (get_section): Also match SEC_ASSEMBLER_SECTION_ID and
1840 section_id.
1841 (obj_elf_change_section): Replace info and group_name arguments
1842 with match_p. Also update the section ID and flags from match_p.
1843 (obj_elf_section): Handle "unique,N". Update call to
1844 obj_elf_change_section.
1845 * config/obj-elf.h (elf_section_match): New.
1846 (obj_elf_change_section): Updated.
1847 * config/tc-arm.c (start_unwind_section): Update call to
1848 obj_elf_change_section.
1849 * config/tc-ia64.c (obj_elf_vms_common): Likewise.
1850 * config/tc-microblaze.c (microblaze_s_data): Likewise.
1851 (microblaze_s_sdata): Likewise.
1852 (microblaze_s_rdata): Likewise.
1853 (microblaze_s_bss): Likewise.
1854 * config/tc-mips.c (s_change_section): Likewise.
1855 * config/tc-msp430.c (msp430_profiler): Likewise.
1856 * config/tc-rx.c (parse_rx_section): Likewise.
1857 * config/tc-tic6x.c (tic6x_start_unwind_section): Likewise.
1858 * doc/as.texi: Document "unique,N" in .section directive.
1859 * testsuite/gas/elf/elf.exp: Run "unique,N" tests.
1860 * testsuite/gas/elf/section15.d: New file.
1861 * testsuite/gas/elf/section15.s: Likewise.
1862 * testsuite/gas/elf/section16.s: Likewise.
1863 * testsuite/gas/elf/section16a.d: Likewise.
1864 * testsuite/gas/elf/section16b.d: Likewise.
1865 * testsuite/gas/elf/section17.d: Likewise.
1866 * testsuite/gas/elf/section17.l: Likewise.
1867 * testsuite/gas/elf/section17.s: Likewise.
1868 * testsuite/gas/i386/unique.d: Likewise.
1869 * testsuite/gas/i386/unique.s: Likewise.
1870 * testsuite/gas/i386/x86-64-unique.d: Likewise.
1871 * testsuite/gas/i386/i386.exp: Run unique and x86-64-unique.
1872
575d37ae
L
18732020-02-02 H.J. Lu <hongjiu.lu@intel.com>
1874
1875 * testsuite/gas/elf/section13.s: Replace @nobits with %nobits.
1876
2384096c
G
18772020-02-01 Anthony Green <green@moxielogic.com>
1878
1879 * config/tc-moxie.c (md_begin): Don't force big-endian mode.
1880
95441c43
SL
18812020-01-31 Sandra Loosemore <sandra@codesourcery.com>
1882
1883 * config/tc-nios2.c (nios2_cons): Handle %gotoff as well as
1884 %tls_ldo.
1885
d465d695
AV
18862020-01-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
1887
1888 PR gas/25472
1889 * config/tc-arm.c (armv8m_main_ext_table): Refactored +dsp adding.
1890 (armv8_1m_main_ext_table): Refactored +dsp adding and enabled dsp for
1891 +mve.
1892 * testsuite/gas/arm/mve_dsp.d: New test.
1893
d26cc8a9
NC
18942020-01-31 Nick Clifton <nickc@redhat.com>
1895
1896 * config/tc-s390.c (s390_elf_suffix): Return ELF_SUFFIX_NONE
1897 rather than BFD_RELOC_NONE.
1898
90e9955a
SP
18992020-01-31 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
1900
1901 * config/tc-arm.c (fldmias): Moved inside "THUMB_VARIANT & arm_ext_v6t2"
1902 to support VLDMIA instruction for MVE.
1903 (fldmdbs): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VLDMDB
1904 instruction for MVE.
1905 (fstmias): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VSTMIA
1906 instruction for MVE.
1907 (fstmdbs): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VSTMDB
1908 instruction for MVE.
1909 * testsuite/gas/arm/mve-ldst.d: New test.
1910 * testsuite/gas/arm/mve-ldst.s: Likewise.
1911
53943f32
NC
19122020-01-31 Nick Clifton <nickc@redhat.com>
1913
1914 * po/fr.po: Updated French translation.
1915 * po/ru.po: Updated Russian translation.
1916
c3036ed0
RS
19172020-01-31 Richard Sandiford <richard.sandiford@arm.com>
1918
1919 * testsuite/gas/aarch64/sve-bfloat-movprfx.s: Use .h rather than
1920 .s for the movprfx.
1921 * testsuite/gas/aarch64/sve-bfloat-movprfx.d: Update accordingly.
1922 * testsuite/gas/aarch64/sve-movprfx_28.d,
1923 * testsuite/gas/aarch64/sve-movprfx_28.l,
1924 * testsuite/gas/aarch64/sve-movprfx_28.s: New test.
1925
2ae4c703
JB
19262020-01-30 Jan Beulich <jbeulich@suse.com>
1927
1928 * config/tc-i386.c (output_disp): Tighten base_opcode check.
1929 * testsuite/gas/i386/got.s: Add LSL, MOVLPS, and BNDCN cases.
1930 * testsuite/gas/i386/got-no-relax.d, testsuite/gas/i386/got.d:
1931 Adjust expectations.
1932
bd434cc4
JM
19332020-01-30 Jose E. Marchesi <jose.marchesi@oracle.com>
1934
1935 * testsuite/gas/bpf/alu.d: Update expected opcode for `neg'.
1936 * testsuite/gas/bpf/alu-be.d: Likewise.
1937 * testsuite/gas/bpf/alu32.d: Likewise for `neg32'.
1938 * testsuite/gas/bpf/alu32-be.d: Likewise.
1939
aeab2b26
JB
19402020-01-30 Jan Beulich <jbeulich@suse.com>
1941
1942 * testsuite/gas/i386/x86-64-branch-2.s,
1943 testsuite/gas/i386/x86-64-branch-4.s,
1944 testsuite/gas/i386/x86-64-branch.s: Add RETW cases.
1945 * testsuite/gas/i386/ilp32/x86-64-branch.d,
1946 testsuite/gas/i386/x86-64-branch-2.d,
1947 testsuite/gas/i386/x86-64-branch-4.l,
1948 testsuite/gas/i386/x86-64-branch.d: Adjust expectations.
1949
873494c8
JB
19502020-01-30 Jan Beulich <jbeulich@suse.com>
1951
1952 * config/tc-i386.c (process_suffix): .
1953 testsuite/gas/i386/noreg64.s: Add IRET and LRET cases.
1954 testsuite/gas/i386/x86-64-opcode.s: Add suffix to IRET and LRET.
1955 Add LRETQ case.
1956 testsuite/gas/i386/x86-64-suffix.s: Drop IRET case without
1957 suffix.
1958 testsuite/gas/i386/x86_64.s: Add RETF cases.
1959 * testsuite/gas/i386/k1om.d, testsuite/gas/i386/l1om.d,
1960 testsuite/gas/i386/noreg64.d, testsuite/gas/i386/noreg64.l,
1961 testsuite/gas/i386/x86-64-opcode.d,
1962 testsuite/gas/i386/x86-64-suffix-intel.d,
1963 testsuite/gas/i386/x86-64-suffix.d,
1964 testsuite/gas/i386/x86_64-intel.d
1965 testsuite/gas/i386/x86_64.d: Adjust expectations.
1966 * testsuite/gas/i386/x86-64-suffix.e,
1967 testsuite/gas/i386/x86_64.e: New.
1968
62b3f548
JB
19692020-01-30 Jan Beulich <jbeulich@suse.com>
1970
1971 * config/tc-i386.c (process_suffix): Redo and move FLDENV et al
1972 special case.
1973
bc31405e
L
19742020-01-27 H.J. Lu <hongjiu.lu@intel.com>
1975
1976 PR binutils/25445
1977 * config/tc-i386.c (check_long_reg): Also convert to QWORD for
1978 movsxd.
1979 * doc/c-i386.texi: Add a node for AMD64 vs. Intel64 ISA
1980 differences. Document movslq and movsxd.
1981 * testsuite/gas/i386/i386.exp: Run PR binutils/25445 tests.
1982 * testsuite/gas/i386/x86-64-movsxd-intel.d: New file.
1983 * testsuite/gas/i386/x86-64-movsxd-intel64-intel.d: Likewise.
1984 * testsuite/gas/i386/x86-64-movsxd-intel64-inval.l: Likewise.
1985 * testsuite/gas/i386/x86-64-movsxd-intel64-inval.s: Likewise.
1986 * testsuite/gas/i386/x86-64-movsxd-intel64.d: Likewise.
1987 * testsuite/gas/i386/x86-64-movsxd-intel64.s: Likewise.
1988 * testsuite/gas/i386/x86-64-movsxd-inval.l: Likewise.
1989 * testsuite/gas/i386/x86-64-movsxd-inval.s: Likewise.
1990 * testsuite/gas/i386/x86-64-movsxd.d: Likewise.
1991 * testsuite/gas/i386/x86-64-movsxd.s: Likewise.
1992
e3696f67
AM
19932020-01-27 Alan Modra <amodra@gmail.com>
1994
1995 * testsuite/gas/all/gas.exp: Replace case statements with switch
1996 statements.
1997 * testsuite/gas/elf/elf.exp: Likewise.
1998 * testsuite/gas/macros/macros.exp: Likewise.
1999 * testsuite/lib/gas-defs.exp: Likewise.
2000
7568c93b
TC
20012020-01-27 Tamar Christina <tamar.christina@arm.com>
2002
2003 PR 25403
2004 * testsuite/gas/aarch64/armv8_4-a.d: Add cfinv.
2005 * testsuite/gas/aarch64/armv8_4-a.s: Likewise.
2006
403d1bd9
JW
20072020-01-22 Maxim Blinov <maxim.blinov@embecosm.com>
2008
2009 * testsuite/gas/riscv/march-ok-s.d: sx is no longer valid and
2010 s exts must be known, so rename *ok* to *fail*.
2011 * testsuite/gas/riscv/march-ok-sx.d: Likewise.
2012 * testsuite/gas/riscv/march-ok-s-with-version: Likewise.
2013 * testsuite/gas/riscv/march-fail-s.l: Expected error messages for
2014 above change.
2015 * testsuite/gas/riscv/march-fail-sx.l: Likewise.
2016 * testsuite/gas/riscv/march-fail-sx-with-version.l: Likewise.
2017
be4c5e58
L
20182020-01-22 H.J. Lu <hongjiu.lu@intel.com>
2019
2020 PR gas/25438
2021 * config/tc-i386.c (check_long_reg): Always disallow double word
2022 suffix in mnemonic with word general register.
2023 * testsuite/gas/i386/general.s: Replace word general register
2024 with double word general register for movl.
2025 * testsuite/gas/i386/inval.s: Add tests for movl with word general
2026 register.
2027 * testsuite/gas/i386/general.l: Updated.
2028 * testsuite/gas/i386/inval.l: Likewise.
2029
9e7028aa
AM
20302020-01-22 Alan Modra <amodra@gmail.com>
2031
2032 * config/tc-ppc.c (parse_tls_arg): Handle tls arg for
2033 __tls_get_addr_desc and __tls_get_addr_opt.
2034
e3ed17f3
JB
20352020-01-21 Jan Beulich <jbeulich@suse.com>
2036
2037 * testsuite/gas/i386/inval-crc32.s,
2038 testsuite/gas/i386/x86-64-inval-crc32.s: Add alignment directive.
2039 * testsuite/gas/i386/inval-crc32.l,
2040 testsuite/gas/i386/x86-64-inval-crc32.l: Adjust expectations.
2041
1a035124
JB
20422020-01-21 Jan Beulich <jbeulich@suse.com>
2043
2044 * config/tc-i386.c (process_suffix): Merge CRC32 handling into
2045 generic code path. Deal with No_lSuf being set in a template.
2046 * testsuite/gas/i386/inval-crc32.l,
2047 testsuite/gas/i386/x86-64-inval-crc32.l: Expect warning(s)
2048 instead of error(s) when operand size is ambiguous.
2049 * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
2050 testsuite/gas/i386/noreg64.s: Add CRC32 tests.
2051 * testsuite/gas/i386/noreg16.d, testsuite/gas/i386/noreg16.l,
2052 testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg32.l,
2053 testsuite/gas/i386/noreg64.d, testsuite/gas/i386/noreg64.l:
2054 Adjust expectations.
2055
c006a730
JB
20562020-01-21 Jan Beulich <jbeulich@suse.com>
2057
2058 * config/tc-i386.c (process_suffix): Drop SYSRET special case
2059 and an intel_syntax check. Re-write lack-of-suffix processing
2060 logic.
2061 * doc/c-i386.texi: Document operand size defaults for suffix-
2062 less AT&T syntax insns.
2063 * testsuite/gas/i386/bundle.s, testsuite/gas/i386/lock-1.s,
2064 testsuite/gas/i386/opcode.s, testsuite/gas/i386/sse3.s,
2065 testsuite/gas/i386/x86-64-avx-scalar.s,
2066 testsuite/gas/i386/x86-64-avx.s,
2067 testsuite/gas/i386/x86-64-bundle.s,
2068 testsuite/gas/i386/x86-64-intel64.s,
2069 testsuite/gas/i386/x86-64-lock-1.s,
2070 testsuite/gas/i386/x86-64-opcode.s,
2071 testsuite/gas/i386/x86-64-sse2avx.s,
2072 testsuite/gas/i386/x86-64-sse3.s: Add missing suffixes.
2073 * testsuite/gas/i386/nops.s, testsuite/gas/i386/sse-noavx.s,
2074 testsuite/gas/i386/x86-64-nops.s,
2075 testsuite/gas/i386/x86-64-ptwrite.s,
2076 testsuite/gas/i386/x86-64-simd.s,
2077 testsuite/gas/i386/x86-64-sse-noavx.s,
2078 testsuite/gas/i386/x86-64-suffix.s: Drop bogus suffix-less
2079 insns.
2080 * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
2081 testsuite/gas/i386/noreg64.s: Add further tests.
2082 * testsuite/gas/i386/ilp32/x86-64-nops.d,
2083 testsuite/gas/i386/nops.d, testsuite/gas/i386/noreg16.d,
2084 testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg64.d,
2085 testsuite/gas/i386/sse-noavx.d,
2086 testsuite/gas/i386/x86-64-intel64.d,
2087 testsuite/gas/i386/x86-64-nops.d,
2088 testsuite/gas/i386/x86-64-opcode.d,
2089 testsuite/gas/i386/x86-64-ptwrite-intel.d,
2090 testsuite/gas/i386/x86-64-ptwrite.d,
2091 testsuite/gas/i386/x86-64-simd-intel.d,
2092 testsuite/gas/i386/x86-64-simd-suffix.d,
2093 testsuite/gas/i386/x86-64-simd.d,
2094 testsuite/gas/i386/x86-64-sse-noavx.d
2095 testsuite/gas/i386/x86-64-suffix.d,
2096 testsuite/gas/i386/x86-64-suffix-intel.d: Adjust expectations.
2097 * testsuite/gas/i386/noreg16.l, testsuite/gas/i386/noreg32.l,
2098 testsuite/gas/i386/noreg64.l: New.
2099 * testsuite/gas/i386/i386.exp: Run new tests.
2100
c906a69a
JB
21012020-01-21 Jan Beulich <jbeulich@suse.com>
2102
2103 * testsuite/gas/i386/avx512_bf16_vl.s,
2104 testsuite/gas/i386/x86-64-avx512_bf16_vl.s: Add broadcast forms
2105 of VCVTNEPS2BF16{X,Y}. Add operand-size less Intel syntax
2106 broadcast forms of VCVTNEPS2BF16.
2107 * testsuite/gas/i386/avx512_bf16_vl.d,
2108 testsuite/gas/i386/x86-64-avx512_bf16_vl.d: Adjust expectations.
2109
26916852
NC
21102020-01-20 Nick Clifton <nickc@redhat.com>
2111
2112 * po/uk.po: Updated Ukranian translation.
2113
14470f07
L
21142020-01-20 H.J. Lu <hongjiu.lu@intel.com>
2115
2116 PR ld/25416
2117 * config/tc-i386.c (output_insn): Add a dummy REX_OPCODE prefix
2118 for lea with R_X86_64_GOTPC32_TLSDESC relocation when generating
2119 x32 object.
2120 * testsuite/gas/i386/ilp32/x32-tls.d: Updated.
2121 * testsuite/gas/i386/ilp32/x32-tls.s: Add tests for lea with
2122 R_X86_64_GOTPC32_TLSDESC relocation.
2123
1b1bb2c6
NC
21242020-01-18 Nick Clifton <nickc@redhat.com>
2125
2126 * configure: Regenerate.
2127 * po/gas.pot: Regenerate.
2128
ae774686
NC
21292020-01-18 Nick Clifton <nickc@redhat.com>
2130
2131 Binutils 2.34 branch created.
2132
42e04b36
L
21332020-01-17 H.J. Lu <hongjiu.lu@intel.com>
2134
2135 * config/tc-i386.c (_i386_insn): Replace vex_encoding_vex2
2136 with vex_encoding_vex.
2137 (parse_insn): Likewise.
2138 * doc/c-i386.texi: Replace {vex2} with {vex}. Update {vex}
2139 and {vex3} documentation.
2140 * testsuite/gas/i386/pseudos.s: Replace 3 {vex2} tests with
2141 {vex}.
2142 * testsuite/gas/i386/x86-64-pseudos.s: Likewise.
2143
2da2eaf4
AV
21442020-01-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
2145
2146 PR 25376
2147 * config/tc-arm.c (mve_ext, mve_fp_ext): Use CORE_HIGH.
2148 (armv8_1m_main_ext_table): Use CORE_HIGH for mve.
2149 * testsuite/arm/armv8_1-m-fpu-mve-1.s: New.
2150 * testsuite/arm/armv8_1-m-fpu-mve-1.d: New.
2151 * testsuite/arm/armv8_1-m-fpu-mve-2.s: New.
2152 * testsuite/arm/armv8_1-m-fpu-mve-2.d: New.
2153
45a4bb20
JB
21542020-01-16 Jan Beulich <jbeulich@suse.com>
2155
2156 * config/tc-i386.c (match_template): Drop found_cpu_match local
2157 variable.
2158
4814632e
JB
21592020-01-16 Jan Beulich <jbeulich@suse.com>
2160
2161 * testsuite/gas/i386/avx512dq-inval.l,
2162 testsuite/gas/i386/avx512dq-inval.s: New.
2163 * testsuite/gas/i386/i386.exp: Run new test.
2164
131cb553
JL
21652020-01-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2166
2167 * config/tc-msp430.c (CHECK_RELOC_MSP430): Always generate 430X
2168 relocations when the target is 430X, except when extracting part of an
2169 expression.
2170 (msp430_srcoperand): Adjust comment.
2171 Initialize the expp member of the msp430_operand_s struct as
2172 appropriate.
2173 (msp430_dstoperand): Likewise.
2174 * testsuite/gas/msp430/msp430.exp: Run new test.
2175 * testsuite/gas/msp430/reloc-lo-430x.d: New test.
2176 * testsuite/gas/msp430/reloc-lo-430x.s: New test.
2177
c24d0e8d
AM
21782020-01-15 Alan Modra <amodra@gmail.com>
2179
2180 * configure.tgt: Add sparc-*-freebsd case.
2181
e44925ae
LC
21822020-01-14 Lili Cui <lili.cui@intel.com>
2183
2184 * testsuite/gas/i386/align-branch-1a.d: Updated for Darwin.
2185 * testsuite/gas/i386/align-branch-1b.d: Likewise.
2186 * testsuite/gas/i386/align-branch-1c.d: Likewise.
2187 * testsuite/gas/i386/align-branch-1d.d: Likewise.
2188 * testsuite/gas/i386/align-branch-1e.d: Likewise.
2189 * testsuite/gas/i386/align-branch-1f.d: Likewise.
2190 * testsuite/gas/i386/align-branch-1g.d: Likewise.
2191 * testsuite/gas/i386/align-branch-1h.d: Likewise.
2192 * testsuite/gas/i386/align-branch-1i.d: Likewise.
2193 * testsuite/gas/i386/align-branch-5.d: Likewise.
2194 * testsuite/gas/i386/x86-64-align-branch-1a.d: Likewise.
2195 * testsuite/gas/i386/x86-64-align-branch-1b.d: Likewise.
2196 * testsuite/gas/i386/x86-64-align-branch-1c.d: Likewise.
2197 * testsuite/gas/i386/x86-64-align-branch-1d.d: Likewise.
2198 * testsuite/gas/i386/x86-64-align-branch-1e.d: Likewise.
2199 * testsuite/gas/i386/x86-64-align-branch-1f.d: Likewise.
2200 * testsuite/gas/i386/x86-64-align-branch-1g.d: Likewise.
2201 * testsuite/gas/i386/x86-64-align-branch-1h.d: Likewise.
2202 * testsuite/gas/i386/x86-64-align-branch-1i.d: Likewise.
2203 * testsuite/gas/i386/x86-64-align-branch-5.d: Likewise.
2204 * testsuite/gas/i386/i386.exp: Skip x86-64-align-branch-2a,
2205 x86-64-align-branch-2b and x86-64-align-branch-2c on Darwin.
2206
7a6bf3be
SB
22072020-01-14 Sergey Belyashov <sergey.belyashov@gmail.com>
2208
2209 PR 25377
2210 * config/tc-z80.c: Add support for half precision, single
2211 precision and double precision floating point values.
2212 * config/tc-z80.h b/gas/config/tc-z80.h: Disable string escapes.
2213 * doc/as.texi: Add new z80 command line options.
2214 * doc/c-z80.texi: Document new z80 command line options.
2215 * testsuite/gas/z80/ez80_pref_dis.s: New test.
2216 * testsuite/gas/z80/ez80_pref_dis.d: New test driver.
2217 * testsuite/gas/z80/z80.exp: Run the new test.
2218 * testsuite/gas/z80/fp_math48.d: Use correct command line option.
2219 * testsuite/gas/z80/fp_zeda32.d: Likewise.
2220 * testsuite/gas/z80/strings.d: Update expected output.
2221
82e9597c
MM
22222020-01-13 Matthew Malcomson <matthew.malcomson@arm.com>
2223
2224 * config/tc-aarch64.c (f64mm, f32mm): Add sve as a feature
2225 dependency.
2226
5e4f7e05
CZ
22272020-01-13 Claudiu Zissulescu <claziss@gmail.com>
2228
2229 * config/tc-arc.c (arc_select_cpu): Re-init the bfd if we change
2230 the CPU.
2231 * config/tc-arc.h: Add header if/defs.
2232 * testsuite/gas/arc/pseudos.d: Improve matching pattern.
2233
febda64f
AM
22342020-01-13 Alan Modra <amodra@gmail.com>
2235
2236 * testsuite/gas/wasm32/allinsn.d: Update expected output.
2237
5496abe1
AM
22382020-01-13 Alan Modra <amodra@gmail.com>
2239
2240 * config/tc-tic4x.c (tic4x_operands_match): Correct tic3x trap
2241 insertion.
2242
ec4181f2
AM
22432020-01-10 Alan Modra <amodra@gmail.com>
2244
2245 * testsuite/gas/elf/pr14891.s: Don't start directives in first column.
2246 * testsuite/gas/elf/pr21661.d: Don't run on hpux.
2247
40c75bc8
SB
22482020-01-03 Sergey Belyashov <sergey.belyashov@gmail.com>
2249
2250 PR 25224
2251 * config/tc-z80.c (emit_ld_m_rr): Use integer types when checking
2252 opcode byte values.
2253 (emit_ld_r_r): Likewise.
2254 (emit_ld_rr_m): Likewise.
2255 (emit_ld_rr_nn): Likewise.
2256
72aea328
JB
22572020-01-09 Jan Beulich <jbeulich@suse.com>
2258
2259 * config/tc-i386.c (optimize_encoding): Add
2260 is_any_vex_encoding() invocations. Drop respective
2261 i.tm.extension_opcode == None checks.
2262
3f93af61
JB
22632020-01-09 Jan Beulich <jbeulich@suse.com>
2264
2265 * config/tc-i386.c (md_assemble): Check RegRex is clear during
2266 REX transformations. Correct comment indentation.
2267
7697afb6
JB
22682020-01-09 Jan Beulich <jbeulich@suse.com>
2269
2270 * config/tc-i386.c (optimize_encoding): Generalize register
2271 transformation for TEST optimization.
2272
d835a58b
JB
22732020-01-09 Jan Beulich <jbeulich@suse.com>
2274
2275 * testsuite/gas/i386/x86-64-sysenter-amd.s,
2276 testsuite/gas/i386/x86-64-sysenter-amd.d,
2277 testsuite/gas/i386/x86-64-sysenter-amd.l,
2278 testsuite/gas/i386/x86-64-sysenter-intel.d,
2279 testsuite/gas/i386/x86-64-sysenter-mixed.d: New.
2280 * testsuite/gas/i386/i386.exp: Run new tests.
2281
915808f6
NC
22822020-01-08 Nick Clifton <nickc@redhat.com>
2283
2284 PR 25284
2285 * doc/as.texi (Align): Document the fact that all arguments can be
2286 omitted.
2287 (Balign): Likewise.
2288 (P2align): Likewise.
2289
f1f28025
NC
22902020-01-08 Nick Clifton <nickc@redhat.com>
2291
2292 PR 14891
2293 * config/obj-elf.c (obj_elf_section): Fail if the section name is
2294 already defined as a different symbol type.
2295 * testsuite/gas/elf/pr14891.s: New test source file.
2296 * testsuite/gas/elf/pr14891.d: New test driver.
2297 * testsuite/gas/elf/pr14891.s: New test expected error output.
2298 * testsuite/gas/elf/elf.exp: Run the new test.
2299
030a2e78
AM
23002020-01-08 Alan Modra <amodra@gmail.com>
2301
2302 * config/tc-z8k.c (md_begin): Make idx unsigned.
2303 (get_specific): Likewise for this_index.
2304
2a1ebfb2
CZ
23052020-01-07 Claudiu Zissulescu <claziss@synopsys.com>
2306
2307 * onfig/tc-arc.c (parse_reloc_symbol): New function.
2308 (tokenize_arguments): Clean up, use parse_reloc_symbol function.
2309 (md_operand): Set X_md to absent.
2310 (arc_parse_name): Check for X_md.
2311
16d87673
SB
23122020-01-03 Sergey Belyashov <sergey.belyashov@gmail.com>
2313
2314 PR 25311
2315 * as.h (TC_STRING_ESCAPES): Provide a default definition.
2316 * app.c (do_scrub_chars): Use TC_STRING_ESCAPES instead of
2317 NO_STRING_ESCAPES.
2318 * read.c (next_char_of_string): Likewise.
2319 * config/tc-ppc.h (TC_STRING_ESCAPES): Define.
2320 * config/tc-z80.h (TC_STRING_ESCAPES): Define.
2321
a2322019
NC
23222020-01-03 Nick Clifton <nickc@redhat.com>
2323
2324 * po/sv.po: Updated Swedish translation.
2325
5437a02a
JB
23262020-01-03 Jan Beulich <jbeulich@suse.com>
2327
2328 * testsuite/gas/aarch64/f64mm.s: Scale index of LD1RO{H,W,D}.
2329 * testsuite/gas/aarch64/f64mm.d: Adjust expectations.
2330
567dfba2
JB
23312020-01-03 Jan Beulich <jbeulich@suse.com>
2332
2333 * testsuite/gas/aarch64/i8mm.s: Add 128-bit form tests for
2334 by-element usdot. Add 64-bit form tests for by-element sudot.
2335 * testsuite/gas/aarch64/i8mm.d: Adjust expectations.
2336
8c45011a
JB
23372020-01-03 Jan Beulich <jbeulich@suse.com>
2338
2339 * testsuite/gas/aarch64/f64mm.s: Drop 'i' from uzip<n>.
2340 * testsuite/gas/aarch64/f64mm.d: Adjust expectations.
2341
f4950f76
JB
23422020-01-03 Jan Beulich <jbeulich@suse.com>
2343
2344 * testsuite/gas/aarch64/f64mm.d,
2345 testsuite/gas/aarch64/sve-movprfx-mm.d: Adjust expectations.
2346
6655dba2
SB
23472020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
2348
2349 * config/tc-z80.c: Add new architectures: Z180 and eZ80. Add
2350 support for assembler code generated by SDCC. Add new relocation
2351 types. Add z80-elf target support.
2352 * config/tc-z80.h: Add z80-elf target support. Enable dollar local
2353 labels. Local labels starts from ".L".
2354 * NEWS: Mention the new support.
2355 * testsuite/gas/all/fwdexp.d: Fix failure due to symbol conflict.
2356 * testsuite/gas/all/fwdexp.s: Likewise.
2357 * testsuite/gas/all/cond.l: Likewise.
2358 * testsuite/gas/all/cond.s: Likewise.
2359 * testsuite/gas/all/fwdexp.d: Likewise.
2360 * testsuite/gas/all/fwdexp.s: Likewise.
2361 * testsuite/gas/elf/section2.e-mips: Likewise.
2362 * testsuite/gas/elf/section2.l: Likewise.
2363 * testsuite/gas/elf/section2.s: Likewise.
2364 * testsuite/gas/macros/app1.d: Likewise.
2365 * testsuite/gas/macros/app1.s: Likewise.
2366 * testsuite/gas/macros/app2.d: Likewise.
2367 * testsuite/gas/macros/app2.s: Likewise.
2368 * testsuite/gas/macros/app3.d: Likewise.
2369 * testsuite/gas/macros/app3.s: Likewise.
2370 * testsuite/gas/macros/app4.d: Likewise.
2371 * testsuite/gas/macros/app4.s: Likewise.
2372 * testsuite/gas/macros/app4b.s: Likewise.
2373 * testsuite/gas/z80/suffix.d: Fix failure on ELF target.
2374 * testsuite/gas/z80/z80.exp: Add new tests
2375 * testsuite/gas/z80/dollar.d: New file.
2376 * testsuite/gas/z80/dollar.s: New file.
2377 * testsuite/gas/z80/ez80_adl_all.d: New file.
2378 * testsuite/gas/z80/ez80_adl_all.s: New file.
2379 * testsuite/gas/z80/ez80_adl_suf.d: New file.
2380 * testsuite/gas/z80/ez80_isuf.s: New file.
2381 * testsuite/gas/z80/ez80_z80_all.d: New file.
2382 * testsuite/gas/z80/ez80_z80_all.s: New file.
2383 * testsuite/gas/z80/ez80_z80_suf.d: New file.
2384 * testsuite/gas/z80/r800_extra.d: New file.
2385 * testsuite/gas/z80/r800_extra.s: New file.
2386 * testsuite/gas/z80/r800_ii8.d: New file.
2387 * testsuite/gas/z80/r800_z80_doc.d: New file.
2388 * testsuite/gas/z80/z180.d: New file.
2389 * testsuite/gas/z80/z180.s: New file.
2390 * testsuite/gas/z80/z180_z80_doc.d: New file.
2391 * testsuite/gas/z80/z80_doc.d: New file.
2392 * testsuite/gas/z80/z80_doc.s: New file.
2393 * testsuite/gas/z80/z80_ii8.d: New file.
2394 * testsuite/gas/z80/z80_ii8.s: New file.
2395 * testsuite/gas/z80/z80_in_f_c.d: New file.
2396 * testsuite/gas/z80/z80_in_f_c.s: New file.
2397 * testsuite/gas/z80/z80_op_ii_ld.d: New file.
2398 * testsuite/gas/z80/z80_op_ii_ld.s: New file.
2399 * testsuite/gas/z80/z80_out_c_0.d: New file.
2400 * testsuite/gas/z80/z80_out_c_0.s: New file.
2401 * testsuite/gas/z80/z80_reloc.d: New file.
2402 * testsuite/gas/z80/z80_reloc.s: New file.
2403 * testsuite/gas/z80/z80_sli.d: New file.
2404 * testsuite/gas/z80/z80_sli.s: New file.
2405
a65b5de6
SN
24062020-01-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
2407
2408 * config/tc-arm.c (parse_reg_list): Use REG_TYPE_RN instead of
2409 REGLIST_RN.
2410
b14ce8bf
AM
24112020-01-01 Alan Modra <amodra@gmail.com>
2412
2413 Update year range in copyright notice of all files.
2414
0b114740 2415For older changes see ChangeLog-2019
3499769a 2416\f
0b114740 2417Copyright (C) 2020 Free Software Foundation, Inc.
3499769a
AM
2418
2419Copying and distribution of this file, with or without modification,
2420are permitted in any medium without royalty provided the copyright
2421notice and this notice are preserved.
2422
2423Local Variables:
2424mode: change-log
2425left-margin: 8
2426fill-column: 74
2427version-control: never
2428End: