]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gas/ChangeLog
PR26279 Work around maybe-uninitialized warning in s390-mkopc.c
[thirdparty/binutils-gdb.git] / gas / ChangeLog
CommitLineData
1a02d6b0
L
12020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR gas/26305
4 * config/tc-i386.c (build_modrm_byte): Use disp32/disp16 on
5 (%bp)/(%ebp)/(%rbp) for {disp32}.
6 * doc/c-i386.texi: Update {disp32} documentation.
7 * testsuite/gas/i386/pseudos.s: Add (%bp)/(%ebp) tests.
8 * testsuite/gas/i386/x86-64-pseudos.s: Add (%ebp)/(%rbp) tests.
9 * testsuite/gas/i386/pseudos.d: Updated.
10 * testsuite/gas/i386/x86-64-pseudos.d: Likewise.
11
608d61c2
L
122020-07-27 H.J. Lu <hongjiu.lu@intel.com>
13
14 * doc/as.texi: Replace preceeded with preceded.
15
39fdda07
MR
162020-07-22 Maciej W. Rozycki <macro@linux-mips.org>
17
18 * testsuite/gas/mips/jal-svr4pic-irix.d: New file.
19 * testsuite/gas/mips/mips1@jal-svr4pic-irix.d: New file.
20 * testsuite/gas/mips/mipsr6@jal-svr4pic-irix.d: New file.
21 * testsuite/gas/mips/micromips@jal-svr4pic-irix.d: New file.
22 * testsuite/gas/mips/r3000@jal-svr4pic-irix.d: New file.
23 * testsuite/gas/mips/jal-svr4pic-local-irix.d: New file.
24 * testsuite/gas/mips/mips1@jal-svr4pic-local-irix.d: New file.
25 * testsuite/gas/mips/micromips@jal-svr4pic-local-irix.d: New
26 file.
27 * testsuite/gas/mips/r3000@jal-svr4pic-local-irix.d: New file.
28 * testsuite/gas/mips/jal-svr4pic-noreorder-irix.d: New file.
29 * testsuite/gas/mips/mips1@jal-svr4pic-noreorder-irix.d: New
30 file.
31 * testsuite/gas/mips/mipsr6@jal-svr4pic-noreorder-irix.d: New
32 file.
33 * testsuite/gas/mips/micromips@jal-svr4pic-noreorder-irix.d: New
34 file.
35 * testsuite/gas/mips/r3000@jal-svr4pic-noreorder-irix.d: New
36 file.
37 * testsuite/gas/mips/jal-xgot-irix.d: New file.
38 * testsuite/gas/mips/jalr2-irix.d: New file.
39 * testsuite/gas/mips/micromips-branch-relax-insn32-pic-irix.d:
40 New file.
41 * testsuite/gas/mips/micromips-branch-relax-pic-irix.d: New
42 file.
43 * testsuite/gas/mips/mips-abi32-pic2-irix.d: New file.
44 * testsuite/gas/mips/jal-svr4pic-local.d: Don't exclude
45 `*-*-irix*' targets. Add source file designator.
46 * testsuite/gas/mips/mips1@jal-svr4pic-local.d: Don't exclude
47 `*-*-irix*' targets.
48 * testsuite/gas/mips/r3000@jal-svr4pic-local.d: Likewise.
49 * testsuite/gas/mips/micromips@jal-svr4pic-local.d: Likewise.
50 * testsuite/gas/mips/jalr2.d: Add name designator.
51 * testsuite/gas/mips/mips.exp: Use respective IRIX variants for
52 tests involving the JALR relocation throughout.
53
b83d958f
MR
542020-07-22 Maciej W. Rozycki <macro@linux-mips.org>
55
56 * testsuite/gas/mips/mips.exp: Use a helper variable for
57 IRIX/non-IRIX test selection.
58
bf4ba07c
JB
592020-07-21 Jan Beulich <jbeulich@suse.com>
60
61 * testsuite/gas/i386/evex-no-scale-64.d,
62 testsuite/gas/i386/addr32.d,
63 testsuite/gas/i386/x86-64-addr32-intel.d,
64 testsuite/gas/i386/x86-64-addr32.d: Adjust expectations.
65
2b42b041
CQ
662020-07-21 Cooper Qu <cooper.qu@linux.alibaba.com>
67
68 * config/tc-csky.c (md_begin): Fix tests of arch and mach flags.
69
185a798e
JB
702020-07-21 Jan Beulich <jbeulich@suse.com>
71
72 * testsuite/gas/i386/evex-no-scale-32.d,
73 testsuite/gas/i386/evex-no-scale-64.d: Add #source and #pass.
74 * testsuite/gas/i386/evex-no-scale-32.s,
75 testsuite/gas/i386/evex-no-scale-64.s: Rename / fold into ...
76 * testsuite/gas/i386/evex-no-scale.s: ... this. Use .struct
77 instead of .section.
78 * testsuite/gas/i386/i386.exp: Move above tests out of ELF-
79 specific section.
80
ec4fcab0
MR
812020-07-21 Maciej W. Rozycki <macro@linux-mips.org>
82
83 * config/tc-mips.c (prev_reloc_op_frag): Remove variable.
84 (my_getSmallExpression): Adjust accordingly.
85
b3983e5f
JB
862020-07-20 Jan Beulich <jbeulich@suse.com>
87
88 PR gas/4572
89 * config/tc-i386.c (i386_comment_chars): Drop TE_I386AIX from
90 conditional around it.
91 (md_begin): Insert backslash into operand_chars[] when slash is
92 a comment character.
93 * config/tc-i386-intel.c (i386_operator): Recognize \/, \%, and
94 \* as operators when / may be a comment character.
95 * testsuite/gas/i386/svr4.s, testsuite/gas/i386/svr4.d: New.
96 * testsuite/gas/i386/i386.exp: Run new test.
97
750e4bf7
JB
982020-07-20 Jan Beulich <jbeulich@suse.com>
99
100 PR gas/4572
101 * app.c (last_char): Drop TC_ARM conditional around it.
102 (struct app_save): Drop TC_ARM conditional around last_char.
103 (app_push, app_pop): Drop TC_ARM conditional from last_char
104 accesses.
105 (do_scrub_chars): Likewise. Drop TC_ARM conditional from
106 backslash-precedes-comment-character check.
107
48ef937e
JB
1082020-07-20 Jan Beulich <jbeulich@suse.com>
109
110 * config/tc-i386.c (frag_opcode_byte): New.
111 (output_branch): Emit error when in absolute section.
112 (output_jump, output_insn): Use frag_opcode_byte. Handle being
113 in absolute section.
114 (output_interseg_jump, output_disp, output_imm): Handle being in
115 absolute section.
116 * testsuite/gas/i386/sizing.s,
117 testsuite/gas/i386/sizing32.d,
118 testsuite/gas/i386/sizing64.d: New.
119 * testsuite/gas/i386/i386.exp: Run new tests.
120
693bec1e
JB
1212020-07-20 Jan Beulich <jbeulich@suse.com>
122
123 * testsuite/gas/i386/i386.exp: Include *-*-vxworks alongside
124 is_elf_format as applicable; merely exclude iamcu tests.
125
2585b7a5
L
1262020-07-19 H.J. Lu <hongjiu.lu@intel.com>
127
128 PR gas/26263
129 * config/tc-i386.c (i386_validate_fix): Change PLT32 reloc
130 against section to PC32 reloc.
131 * testsuite/gas/i386/relax-5.d: Updated.
132 * testsuite/gas/i386/x86-64-relax-4.d: Likewise.
133
04c662e2
L
1342020-07-15 H.J. Lu <hongjiu.lu@intel.com>
135
136 PR gas/26237
137 * testsuite/gas/i386/evex-no-scale-64.d: Updated.
138 * testsuite/gas/i386/addr32.d: Likewise.
139 * testsuite/gas/i386/x86-64-addr32-intel.d: Likewise.
140 * testsuite/gas/i386/x86-64-addr32.d: Likewise.
141
56c1b507
NC
1422020-07-15 Nick Clifton <nickc@redhat.com>
143
144 * write.c (create_note_reloc): Add desc2_size parameter. Zero out
145 the addend field of REL relocations. Store the full addend into
146 the note for REL relocations.
147
e2e018c3
JB
1482020-07-15 Jan Beulich <jbeulich@suse.com>
149
150 * testsuite/gas/i386/x86-64-stack.s: Adjust 32-bit push
151 immediate.
152 * testsuite/gas/i386/x86-64-stack-intel.d,
153 testsuite/gas/i386/x86-64-stack-suffix.d,
154 testsuite/gas/i386/x86-64-stack.d: Adjust expectations.
155
36938cab
JB
1562020-07-15 Jan Beulich <jbeulich@suse.com>
157
158 * testsuite/gas/i386/disassem.d,
159 testsuite/gas/i386/ilp32/x86-64-branch.d,
160 testsuite/gas/i386/intel.d, testsuite/gas/i386/jump16.d,
161 testsuite/gas/i386/lfence-load.d, testsuite/gas/i386/noreg16.d,
162 testsuite/gas/i386/noreg32.d,
163 testsuite/gas/i386/noreg64-rex64.d,
164 testsuite/gas/i386/noreg64.d, testsuite/gas/i386/notrack.d,
165 testsuite/gas/i386/opcode.d,
166 testsuite/gas/i386/solaris/x86-64-branch-2.d,
167 testsuite/gas/i386/solaris/x86-64-jump.d,
168 testsuite/gas/i386/solaris/x86-64-mpx-branch-1.d,
169 testsuite/gas/i386/solaris/x86-64-nop-3.d,
170 testsuite/gas/i386/solaris/x86-64-nop-4.d,
171 testsuite/gas/i386/solaris/x86-64-nop-5.d,
172 testsuite/gas/i386/solaris/x86-64-relax-2.d,
173 testsuite/gas/i386/solaris/x86-64-relax-3.d,
174 testsuite/gas/i386/x86-64-align-branch-1a.d,
175 testsuite/gas/i386/x86-64-align-branch-1b.d,
176 testsuite/gas/i386/x86-64-align-branch-1c.d,
177 testsuite/gas/i386/x86-64-align-branch-1d.d,
178 testsuite/gas/i386/x86-64-align-branch-1e.d,
179 testsuite/gas/i386/x86-64-align-branch-1f.d,
180 testsuite/gas/i386/x86-64-align-branch-1g.d,
181 testsuite/gas/i386/x86-64-align-branch-1h.d,
182 testsuite/gas/i386/x86-64-align-branch-1i.d,
183 testsuite/gas/i386/x86-64-align-branch-2a.d,
184 testsuite/gas/i386/x86-64-align-branch-2b.d,
185 testsuite/gas/i386/x86-64-align-branch-2c.d,
186 testsuite/gas/i386/x86-64-align-branch-3.d,
187 testsuite/gas/i386/x86-64-align-branch-4a.d,
188 testsuite/gas/i386/x86-64-align-branch-4b.d,
189 testsuite/gas/i386/x86-64-align-branch-5.d,
190 testsuite/gas/i386/x86-64-align-branch-6.d,
191 testsuite/gas/i386/x86-64-branch-2.d,
192 testsuite/gas/i386/x86-64-branch-3.d,
193 testsuite/gas/i386/x86-64-branch.d,
194 testsuite/gas/i386/x86-64-disassem.d,
195 testsuite/gas/i386/x86-64-disp32.d,
196 testsuite/gas/i386/x86-64-gotpcrel-no-relax.d,
197 testsuite/gas/i386/x86-64-gotpcrel.d,
198 testsuite/gas/i386/x86-64-ifunc.d,
199 testsuite/gas/i386/x86-64-jump.d,
200 testsuite/gas/i386/x86-64-lfence-byte.d,
201 testsuite/gas/i386/x86-64-lfence-indbr-a.d,
202 testsuite/gas/i386/x86-64-lfence-indbr-b.d,
203 testsuite/gas/i386/x86-64-lfence-indbr-c.d,
204 testsuite/gas/i386/x86-64-lfence-load.d,
205 testsuite/gas/i386/x86-64-lfence-ret-a.d,
206 testsuite/gas/i386/x86-64-lfence-ret-b.d,
207 testsuite/gas/i386/x86-64-lfence-ret-c.d,
208 testsuite/gas/i386/x86-64-lfence-ret-d.d,
209 testsuite/gas/i386/x86-64-lfence-ret-e.d,
210 testsuite/gas/i386/x86-64-mpx-add-bnd-prefix.d,
211 testsuite/gas/i386/x86-64-mpx-branch-1.d,
212 testsuite/gas/i386/x86-64-mpx.d,
213 testsuite/gas/i386/x86-64-nop-3.d,
214 testsuite/gas/i386/x86-64-nop-4.d,
215 testsuite/gas/i386/x86-64-nop-5.d,
216 testsuite/gas/i386/x86-64-nops-7.d,
217 testsuite/gas/i386/x86-64-notrack.d,
218 testsuite/gas/i386/x86-64-opcode.d,
219 testsuite/gas/i386/x86-64-relax-2.d,
220 testsuite/gas/i386/x86-64-relax-3.d,
221 testsuite/gas/i386/x86-64-relax-4.d,
222 testsuite/gas/i386/x86-64-rtm.d,
223 testsuite/gas/i386/x86-64-stack.d,
224 testsuite/gas/i386/x86-64-unique.d,
225 testsuite/gas/i386/x86_64-intel.d: Adjust expectations.
226
8e58ef80
L
2272020-07-14 H.J. Lu <hongjiu.lu@intel.com>
228
229 PR gas/26237
230 * testsuite/gas/i386/addr32.s: Add tests for 32-bit wrapped around
231 address.
232 * testsuite/gas/i386/x86-64-addr32.s: Likewise.
233 * testsuite/gas/i386/addr32.d: Updated.
234 * testsuite/gas/i386/x86-64-addr32-intel.d: Likewise.
235 * testsuite/gas/i386/x86-64-addr32.d: Likewise.
236 * testsuite/gas/i386/ilp32/x86-64-addr32-intel.d: Likewise.
237 * testsuite/gas/i386/ilp32/x86-64-addr32.d: Likewise.
238
bfbd9438
JB
2392020-07-14 Jan Beulich <jbeulich@suse.com>
240
241 * testsuite/gas/i386/intel.s: Use dr<N> instead of db<N>.
242 * testsuite/gas/i386/intel-intel.d: Disambiguate name.
243 * testsuite/gas/i386/intel.d,
244 testsuite/gas/i386/opcode-intel.d: Adjust expectations.
245
7531c613
JB
2462020-07-14 Jan Beulich <jbeulich@suse.com>
247
248 * testsuite/gas/i386/prefix.d: Adjust expectations.
249
b24d668c
JB
2502020-07-14 Jan Beulich <jbeulich@suse.com>
251
252 * testsuite/gas/i386/x86-64-avx-intel.d,
253 testsuite/gas/i386/x86-64-sse4_2-intel.d: Adjust expectations.
254
9ab00b61
JB
2552020-07-14 Jan Beulich <jbeulich@suse.com>
256
257 * testsuite/gas/i386/movbe-suffix.d,
258 testsuite/gas/i386/x86-64-movbe-suffix.d: New.
259 * testsuite/gas/i386/i386.exp: Run new tests.
260
2875b28a
JB
2612020-07-14 Jan Beulich <jbeulich@suse.com>
262
263 * testsuite/gas/i386/crc32-suffix.d,
264 testsuite/gas/i386/x86-64-crc32-suffix.d: New.
265 * testsuite/gas/i386/i386.exp: Run new tests.
266 * testsuite/gas/i386/arch-10-bdver1.d,
267 testsuite/gas/i386/arch-10-bdver2.d,
268 testsuite/gas/i386/arch-10-bdver3.d,
269 testsuite/gas/i386/arch-10-bdver4.d,
270 testsuite/gas/i386/arch-10-btver1.d,
271 testsuite/gas/i386/arch-10-btver2.d,
272 testsuite/gas/i386/arch-10-lzcnt.d,
273 testsuite/gas/i386/arch-10-prefetchw.d,
274 testsuite/gas/i386/arch-10.d, testsuite/gas/i386/arch-2.d,
275 testsuite/gas/i386/arch-3.d, testsuite/gas/i386/arch-5.d,
276 testsuite/gas/i386/arch-6.d, testsuite/gas/i386/crc32.d,
277 testsuite/gas/i386/sse-noavx.d, testsuite/gas/i386/sse4_2.d,
278 testsuite/gas/i386/x86-64-arch-2-bdver1.d,
279 testsuite/gas/i386/x86-64-arch-2-bdver2.d,
280 testsuite/gas/i386/x86-64-arch-2-bdver3.d,
281 testsuite/gas/i386/x86-64-arch-2-bdver4.d,
282 testsuite/gas/i386/x86-64-arch-2-btver1.d,
283 testsuite/gas/i386/x86-64-arch-2-btver2.d,
284 testsuite/gas/i386/x86-64-arch-2-lzcnt.d,
285 testsuite/gas/i386/x86-64-arch-2-prefetchw.d,
286 testsuite/gas/i386/x86-64-arch-2.d,
287 testsuite/gas/i386/x86-64-crc32.d,
288 testsuite/gas/i386/x86-64-pseudos.d,
289 testsuite/gas/i386/x86-64-sse-noavx.d,
290 testsuite/gas/i386/x86-64-sse4_2.d: Adjust expectations.
291
e184e611
JB
2922020-07-14 Jan Beulich <jbeulich@suse.com>
293
294 * testsuite/gas/i386/x86-64-pseudos.s: Add empty-REX tests for
295 ModR/M-encoded byte register cases.
296 * testsuite/gas/i386/x86-64-pseudos.d,
297 testsuite/gas/i386/x86-64-reg-intel.d,
298 testsuite/gas/i386/x86-64-reg.d: Adjust expectations.
299
e8b5d5f9
JB
3002020-07-14 Jan Beulich <jbeulich@suse.com>
301
302 * testsuite/gas/i386/x86-64-pseudos.s: Add empty-REX tests for
303 not-ModR/M-encoded byte register cases.
304 * testsuite/gas/i386/x86-64-pseudos.d: Adjust expectations.
305
38397794
JB
3062020-07-14 Jan Beulich <jbeulich@suse.com>
307
308 * testsuite/gas/i386/ilp32/x86-64-arch-1.d,
309 testsuite/gas/i386/ilp32/x86-64-arch-2.d,
310 testsuite/gas/i386/ilp32/x86-64-avx-intel.d,
311 testsuite/gas/i386/ilp32/x86-64-avx.d,
312 testsuite/gas/i386/ilp32/x86-64-crc32-intel.d,
313 testsuite/gas/i386/ilp32/x86-64-crc32.d,
314 testsuite/gas/i386/ilp32/x86-64-gotpcrel.d,
315 testsuite/gas/i386/ilp32/x86-64-ifunc.d,
316 testsuite/gas/i386/ilp32/x86-64-reg-intel.d,
317 testsuite/gas/i386/ilp32/x86-64-reg.d,
318 testsuite/gas/i386/ilp32/x86-64-rep-suffix.d,
319 testsuite/gas/i386/ilp32/x86-64-sse4_2-intel.d,
320 testsuite/gas/i386/ilp32/x86-64-sse4_2.d,
321 testsuite/gas/i386/ilp32/x86-64-stack-intel.d,
322 testsuite/gas/i386/ilp32/x86-64-stack-suffix.d,
323 testsuite/gas/i386/ilp32/x86-64-stack.d: Reference parent dir
324 dump expectations.
325
7a705315
L
3262020-07-13 H.J. Lu <hongjiu.lu@intel.com>
327
328 * config/tc-i386.c (offset_in_range): Remove 32-bit sign
329 extension.
330
0a5c31d1
NC
3312020-07-13 Nick Clifton <nickc@redhat.com>
332
333 * po/fr.po: Updated French translation.
334
8884c29c
AM
3352020-07-13 Alan Modra <amodra@gmail.com>
336
337 * testsuite/gas/elf/dwarf2-7.d: Remove most xfails.
338 * testsuite/gas/elf/dwarf2-12.d: Likewise.
339 * testsuite/gas/elf/dwarf2-13.d: Likewise.
340 * testsuite/gas/elf/dwarf2-14.d: Likewise.
341
a308b89d
L
3422020-07-11 H.J. Lu <hongjiu.lu@intel.com>
343
344 * config/tc-i386.c (output_insn): Check i.xstate to set
345 GNU_PROPERTY_X86_FEATURE_2_TMM.
346 * testsuite/gas/i386/i386.exp: Run x86-64-property-7,
347 x86-64-property-8 and x86-64-property-9.
348 * testsuite/gas/i386/x86-64-property-7.d: New file.
349 * testsuite/gas/i386/x86-64-property-7.s: Likewise.
350 * testsuite/gas/i386/x86-64-property-8.d: Likewise.
351 * testsuite/gas/i386/x86-64-property-8.s: Likewise.
352 * testsuite/gas/i386/x86-64-property-9.d: Likewise.
353 * testsuite/gas/i386/x86-64-property-9.s: Likewise.
354
921eafea
L
3552020-07-10 H.J. Lu <hongjiu.lu@intel.com>
356
357 * config/tc-i386.c (_i386_insn): Remove has_regmmx, has_regxmm,
358 has_regymm, has_regzmm and has_regtmm. Add xstate.
359 (md_assemble): Set i.xstate from operand types in instruction
360 template.
361 (build_modrm_byte): Updated.
362 (output_insn): Check i.xstate.
363 * testsuite/gas/i386/i386.exp: Run property-6 and
364 x86-64-property-6.
365 * testsuite/gas/i386/property-6.d: New file.
366 * testsuite/gas/i386/property-6.s: Updated.
367 * testsuite/gas/i386/x86-64-property-6.d: Likewise.
368
d249bf86
L
3692020-07-10 H.J. Lu <hongjiu.lu@intel.com>
370
371 * testsuite/gas/i386/property-5.d: Correct test name.
372
260cd341
LC
3732020-07-10 Lili Cui <lili.cui@intel.com>
374
375 * NEWS: Mention support for Intel AMX instructions.
376 * config/tc-i386.c (i386_error): Add invalid_sib_address.
377 (cpu_arch): Add .amx_int8, .amx_bf16 and .amx_tile.
378 (cpu_noarch): Add noamx_int8, noamx_bf16 and noamx_tile.
379 (match_simd_size): Add tmmword check.
380 (operand_type_match): Add tmmword.
381 (type_names): Add rTMM.
382 (i386_error): Add invalid_tmm_register_set.
383 (check_VecOperands): Handle invalid_sib_address and
384 invalid_tmm_register_set.
385 (match_template): Handle invalid_sib_address.
386 (build_modrm_byte): Handle non-vector SIB and zmmword.
387 (i386_index_check): Disallow RegIP for non-vector SIB.
388 (check_register): Handle zmmword.
389 * doc/c-i386.texi: Document amx_int8, amx_bf16 and amx_tile.
390 * testsuite/gas/i386/i386.exp: Add AMX new tests.
391 * testsuite/gas/i386/intel-regs.d: Add tmm.
392 * testsuite/gas/i386/intel-regs.s: Add tmm.
393 * testsuite/gas/i386/x86-64-amx-intel.d: New.
394 * testsuite/gas/i386/x86-64-amx-inval.l: New.
395 * testsuite/gas/i386/x86-64-amx-inval.s: New.
396 * testsuite/gas/i386/x86-64-amx.d: New.
397 * testsuite/gas/i386/x86-64-amx.s: New.
398 * testsuite/gas/i386/x86-64-amx-bad.d: New.
399 * testsuite/gas/i386/x86-64-amx-bad.s: New.
400
af2b3186
TV
4012020-07-10 Tom de Vries <tdevries@suse.de>
402
403 * testsuite/gas/elf/dwarf2-11.d: Update expected output from
404 readelf's line table decoding.
405 * testsuite/gas/elf/dwarf2-12.d: Likewise.
406 * testsuite/gas/elf/dwarf2-13.d: Likewise.
407 * testsuite/gas/elf/dwarf2-14.d: Likewise.
408 * testsuite/gas/elf/dwarf2-15.d: Likewise.
409 * testsuite/gas/elf/dwarf2-16.d: Likewise.
410 * testsuite/gas/elf/dwarf2-17.d: Likewise.
411 * testsuite/gas/elf/dwarf2-18.d: Likewise.
412 * testsuite/gas/elf/dwarf2-19.d: Likewise.
413 * testsuite/gas/elf/dwarf2-5.d: Likewise.
414 * testsuite/gas/elf/dwarf2-6.d: Likewise.
415 * testsuite/gas/elf/dwarf2-7.d: Likewise.
416
39776b11
L
4172020-07-09 H.J. Lu <hongjiu.lu@intel.com>
418
419 * config/tc-i386.c (output_insn): Set YMM/ZMM features for
420 VEX/EVEX vector instructions.
421 * testsuite/gas/i386/property-4.d: New file.
422 * testsuite/gas/i386/property-4.s: Likewise.
423 * testsuite/gas/i386/property-5.d: Likewise.
424 * testsuite/gas/i386/property-5.s: Likewise.
425 * testsuite/gas/i386/x86-64-property-4.d: Likewise.
426 * testsuite/gas/i386/x86-64-property-5.d: Likewise.
427
939b95c7
L
4282020-07-09 H.J. Lu <hongjiu.lu@intel.com>
429
430 * NEWS: Mention --enable-x86-used-note.
431 * configure.ac: Configure with --enable-x86-used-note by default
432 for Linux/x86.
433 * configure: Regenerated.
434
fe49679d
AM
4352020-07-09 Alan Modra <amodra@gmail.com>
436
437 * config/obj-coff.h: Remove TE_PE support.
438 * config/tc-ppc.c: Likewise.
439 * config/tc-ppc.h: Likewise.
440 * configure.tgt: Remove powerpc PE and powerpc lynxos.
441 * testsuite/gas/cfi/cfi.exp (cfi-common-6): Remove powerpc PE
442 condition.
443 * testsuite/gas/macros/macros.exp: Don't xfail powerpc PE.
444
6384fd9e
JB
4452020-07-08 Jan Beulich <jbeulich@suse.com>
446
447 * testsuite/gas/i386/fma4-lig.d, testsuite/gas/i386/xop-lig.d:
448 New.
449 * testsuite/gas/i386/i386.exp: Run new tests.
450
3128916d
CZ
4512020-07-07 Claudiu Zissulescu <claziss@synopsys.com>
452
453 * config/tc-arc.c (find_opcode_match): Add error messages.
454 * testsuite/gas/arc/add_s-err.s: Update test.
455 * testsuite/gas/arc/asm-errors.err: Likewise.
456 * testsuite/gas/arc/cpu-em-err.s: Likewise.
457 * testsuite/gas/arc/hregs-err.s: Likewise.
458 * testsuite/gas/arc/warn.s: Likewise.
459
dbdba9b0
L
4602020-07-07 H.J. Lu <hongjiu.lu@intel.com>
461
462 PR gas/26212
463 * doc/c-i386.texi: Remove an incorrect AVX2 entry.
464
34e79798
AM
4652020-07-07 Alan Modra <amodra@gmail.com>
466
467 * testsuite/gas/all/gas.exp: Use is_xcoff_format.
468 * testsuite/gas/ppc/ppc.exp: Likewise.
469 * testsuite/gas/all/weakref1l.d: Likewise.
470
3c6e74ce
NC
4712020-07-07 Nick Clifton <nickc@redhat.com>
472
473 * testsuite/gas/arm/cde-missing-fp.l: Fix spelling mistake in
474 expected output.
475
e74d9fa9
JB
4762020-07-06 Jan Beulich <jbeulich@suse.com>
477
478 * testsuite/gas/i386/x86-64-avx512bw-wig1.d,
479 testsuite/gas/i386/x86-64-avx512bw-wig1-intel.d,
480 testsuite/gas/i386/x86-64-evex-wig1.d,
481 testsuite/gas/i386/x86-64-evex-wig1-intel.d: Adjust
482 expectations.
483
39e0f456
JB
4842020-07-06 Jan Beulich <jbeulich@suse.com>
485
486 * testsuite/gas/i386/avx512f-opts.s: Add EVEX movq tests.
487 * testsuite/gas/i386/x86-64-avx512f-opts.s: Add blank line.
488 * testsuite/gas/i386/avx512f-opts-intel.d,
489 testsuite/gas/i386/avx512f-opts.d
490 testsuite/gas/i386/x86-64-avx512f-opts-intel.d
491 testsuite/gas/i386/x86-64-avx512f-opts.d: Adjust expectations.
492
ddc73fa9
NC
4932020-07-06 Yuri Chornoivan <yurchor@ukr.net>
494
495 PR 26204
496 * config/tc-arm.c: Fix spelling mistake.
497 * config/tc-riscv.c: Likewise.
498 * config/tc-z80.c: Likewise.
499 * po/gas.pot: Regenerate.
500
17550be7
NC
5012020-07-06 Nick Clifton <nickc@redhat.com>
502
503 * po/uk.po: Updated Ukranian translation.
504
b19d852d
NC
5052020-07-04 Nick Clifton <nickc@redhat.com>
506
507 * configure: Regenerate.
508 * po/gas.pot: Regenerate.
509
5102020-07-04 Nick Clifton <nickc@redhat.com>
511
512 * version.m4: Change version number to 2.35.50.
513 * configure: Regenerate.
514 * po/bfd.pot: Regenerate.
515
b115b9fd
NC
5162020-07-04 Nick Clifton <nickc@redhat.com>
517
518 Binutils 2.35 branch created.
519
b657622c
AM
5202020-07-03 Alan Modra <amodra@gmail.com>
521
522 PR 26028
523 * testsuite/gas/ia64/unwind-ilp32.d: Add -T to readelf options.
524
c2ecccb3
L
5252020-07-02 H.J. Lu <hongjiu.lu@intel.com>
526
527 * config/tc-i386.c (build_modrm_byte): Check vexswapsources to
528 swap two source operands.
529
f436f38e
NC
5302020-07-02 Nick Clifton <nickc@redhat.com>
531
532 * testsuite/gas/all/fill-1.d: Skip for MeP targets.
533
f405494f
AC
5342020-07-02 Alex Coplan <alex.coplan@arm.com>
535
536 * config/tc-aarch64.c (reg_name_p): Fix cast so that we don't
537 segfault on negative chars.
538 * testsuite/gas/aarch64/reglike-label-unicode-segv.d: New test.
539 * testsuite/gas/aarch64/reglike-label-unicode-segv.s: Input.
540
0942c7ab
NC
5412020-07-02 Nick Clifton <nickc@redhat.com>
542
543 PR 26028
544 * testsuite/gas/ia64/group-2.d: Add -T option to readelf
545 command line.
546 * testsuite/gas/ia64/unwind.d: Likewise.
547 * testsuite/gas/mmix/bspec-1.d: Likewise.
548 * testsuite/gas/mmix/bspec-2.d: Likewise.
549 * testsuite/gas/mmix/comment-1.d: Likewise.
550 * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
551
3443489c
AM
5522020-07-01 Alan Modra <amodra@gmail.com>
553
554 * config/tc-xc16x.c (md_apply_fix): Add FIXME.
555
054b336d
AM
5562020-07-01 Alan Modra <amodra@gmail.com>
557
558 * testsuite/gas/all/eqv-dot.d: xfail targets that set linkrelax
559 in data sections, and mep.
560
bbd19b19
L
5612020-06-30 H.J. Lu <hongjiu.lu@intel.com>
562
563 * NEWS: Mention x86 NaCl target support removal.
564 * config/tc-i386.c: Remove x86 NaCl target support.
565 * config/tc-i386.h: Likewise.
566 * configure.tgt: Likewise.
567 * testsuite/gas/i386/i386.exp: Likewise.
568 * testsuite/gas/i386/iamcu-1.d: Likewise.
569 * testsuite/gas/i386/iamcu-2.d: Likewise.
570 * testsuite/gas/i386/iamcu-3.d: Likewise.
571 * testsuite/gas/i386/iamcu-4.d: Likewise.
572 * testsuite/gas/i386/iamcu-5.d: Likewise.
573 * testsuite/gas/i386/k1om.d: Likewise.
574 * testsuite/gas/i386/l1om.d: Likewise.
575
08ccfccf
NC
5762020-06-30 Nelson Chu <nelson.chu@sifive.com>
577
578 * config/tc-riscv.c (riscv_csr_class_check): Removed. Move the
579 checking into riscv_csr_address.
580 (riscv_csr_version_check): Likewise.
581 (riscv_csr_address): New function. Return the suitable CSR address
582 after checking the ISA dependency and versions. Issue warnings if
583 we find any conflict and -mcsr-check is set. CSR_CLASS_F and
584 CSR_CLASS_DEBUG are unprivileged CSR for now, so don't check the
585 priv spec versions for them.
586 (reg_csr_lookup_internal): Call riscv_csr_address to find the
587 suitable CSR address.
588 * testsuite/gas/riscv/priv-reg-fail-fext.d: Remove -mpriv-spec=1.11.
589 * testsuite/gas/riscv/priv-reg-fail-read-only-01.d: Likewise.
590 * testsuite/gas/riscv/priv-reg-fail-rv32-only.d: Likewise.
591 * testsuite/gas/riscv/priv-reg-fail-fext.l: We don't care the
592 priv spec warnings here. These warnings are added by accident.
593 Remove them and only focus on the ISA dependency warnings.
594 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
595 * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
596 * testsuite/gas/riscv/priv-reg-fail-version-1p9.l: Updated since
597 dscratch0 and dscratch1 are regarded as the unprivileged CSR rather
598 than the privileged ones.
599 * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
600 * testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
601 * testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
602 * testsuite/gas/riscv/priv-reg.s: Likewise. Add missing debug CSR.
603 * testsuite/gas/riscv/priv-reg-version-1p9.d: Likewise.
604 * testsuite/gas/riscv/priv-reg-version-1p9p1.d: Likewise.
605 * testsuite/gas/riscv/priv-reg-version-1p10.d: Likewise.
606 * testsuite/gas/riscv/priv-reg-version-1p11.d: Likewise.
607 * testsuite/gas/riscv/csr-dw-regnums.d: Likewise.
608 * testsuite/gas/riscv/csr-dw-regnums.s: Likewise.
609
8c190ce0
L
6102020-06-29 H.J. Lu <hongjiu.lu@intel.com>
611
612 * tc-i386.c (build_vex_prefix): Support VEX base opcode length > 1.
613 (md_assemble): Don't process ImmExt without operands.
614
b20e7614
HPN
6152020-06-29 Hans-Peter Nilsson <hp@bitrange.com>
616
617 PR gas/25331
618 * config/tc-mmix.c (md_assemble) <fixup for
619 BFD_RELOC_MMIX_BASE_PLUS_OFFSET>: This fixup affects 1 byte, not 8.
620 Also, set its fx_no_overflow.
621 (md_convert_frag) <case ENCODE_RELAX (STATE_PUSHJSTUB, STATE_ZERO)>:
622 Similarly this fixup affects 4 bytes, not 8 and needs its
623 fx_no_overflow set.
624 * config/tc-mmix.h (TC_FX_SIZE_SLACK): Don't define.
4e394b28 625 * testsuite/gas/mmix/pr25331.d, testsuite/gas/mmix/pr25331.s: New test.
b20e7614 626
279edac5
AM
6272020-06-29 Alan Modra <amodra@gmail.com>
628
629 * config/tc-s12z.c: Use C style comments.
630 * config/tc-z80.c: Likewise.
631 * config/tc-xtensa.c (emit_ld_r_n): Remove commented out code.
632
b6cd5d10
L
6332020-06-26 H.J. Lu <hongjiu.lu@intel.com>
634
635 * config/tc-i386.c (md_assemble): Process ImmExt without
636 operands.
637
63112cd6
L
6382020-06-26 H.J. Lu <hongjiu.lu@intel.com>
639
640 * config/tc-i386.c (check_VecOperands): Replace vecsib with sib.
641 Replace VecSIB128, VecSIB256 and VecSIB512 with VECSIB128,
642 VECSIB256 and VECSIB512, respectively.
643 (build_modrm_byte): Replace vecsib with sib.
644
2a1bb84c
JB
6452020-06-26 Jan Beulich <jbeulich@suse.com>
646
647 * testsuite/gas/i386/nop-1-suffix.d: New.
648 * testsuite/gas/i386/i386.exp: Run new test.
649
85f7484a
PB
6502020-06-26 Pat Bernardi <bernardi@adacore.com>
651
652 * config/tc-m68k.c (m68k_elf_gnu_attribute): New function.
653 (md_pseudo_table): Handle "gnu_attribute".
654 * doc/as.texi: Document GNU attribute for M68K.
655
b59d128a
NC
6562020-06-25 Nick Clifton <nickc@redhat.com>
657
658 PR 26141
659 * config/tc-arm.c (arm_force_relocation): Force resolution of
660 BFD_RELOC_THUMB_PCREL_BRANCH12 relocations.
661 * testsuite/gas/arm/plt-1.d: Adjust expected disassembly.
662
c423d21a
JB
6632020-06-25 Jan Beulich <jbeulich@suse.com>
664
665 * config/tc-i386.c (md_assemble): Move call to process_immext()
666 ...
667 (process_operands): ... here.
668
8bbb3ad8
JB
6692020-06-25 Jan Beulich <jbeulich@suse.com>
670
671 * config/tc-i386.c (process_suffix): Skip ambiguous operand size
672 diagnostic when there is a sizing prefix. Switch to word/dword/
673 qword encoding when there is a sizing prefix and no (explicit or
674 derived) suffix.
675 (update_imm): Handle presence of a sizing prefix.
676 * testsuite/gas/i386/noreg16-data32.d,
677 testsuite/gas/i386/noreg32-data16.d,
678 testsuite/gas/i386/noreg32-data16.e,
679 testsuite/gas/i386/noreg64-data16.d,
680 testsuite/gas/i386/noreg64-data16.e,
681 testsuite/gas/i386/noreg64-rex64.d: New.
682 * testsuite/gas/i386/i386.exp: Run new tests.
683 * testsuite/gas/i386/noreg32.s, testsuite/gas/i386/noreg64.s:
684 Introduce and use pfx* macros.
685 * testsuite/gas/i386/noreg16.s: Likewise. Replace 32-bit
686 addressing.
687 * testsuite/gas/i386/noreg16.d: Adjust expectations.
688
589958d6
JB
6892020-06-25 Jan Beulich <jbeulich@suse.com>
690
691 * testsuite/gas/i386/avx-16bit.d,
692 testsuite/gas/i386/avx-scalar.d, testsuite/gas/i386/avx.d,
693 testsuite/gas/i386/avx512f-16bit.d,
694 testsuite/gas/i386/avx512f.d,
695 testsuite/gas/i386/evex-lig256.d,
696 testsuite/gas/i386/evex-lig512.d
697 testsuite/gas/i386/evex-wig1.d, testsuite/gas/i386/katmai.d,
698 testsuite/gas/i386/noreg16.d, testsuite/gas/i386/noreg32.d,
699 testsuite/gas/i386/ptwrite.d, testsuite/gas/i386/simd.d,
700 testsuite/gas/i386/sse2-16bit.d,
701 testsuite/gas/i386/sse2.d, testsuite/gas/i386/sse2avx.d: Adjust
702 expectations.
703
0b9404fd
JB
7042020-06-25 Jan Beulich <jbeulich@suse.com>
705
706 * config/tc-i386.c (md_assemble): Also reject explicit REX
707 prefixes with VEX and alike encoded insns. Zap consumed bits
708 from i.rex.
709 (output_insn): Don't ignore REX prefix for VEX and alike
710 encodings; abort() instead if encountered.
711 * testsuite/gas/i386/x86-64-pseudos.s: Move REX-with-VEX cases
712 ...
713 * testsuite/gas/i386/x86-64-pseudos-bad.s: ... here.
714 * testsuite/gas/i386/x86-64-pseudos.d,
715 testsuite/gas/i386/x86-64-pseudos-bad.l: Adjust expectations.
716
a5aeccd9
JB
7172020-06-25 Jan Beulich <jbeulich@suse.com>
718
719 * config/tc-i386.c (process_operands): Translate explicit REX
720 prefix into i.rex for SSE2AVX templates.
721 (set_rex_vrex): New helper.
722 (build_modrm_byte): Use it.
723 * testsuite/gas/i386/x86-64-sse2avx.s: Add cases with explict
724 REX prefixes.
725 * testsuite/gas/i386/x86-64-sse2avx.d: Adjust expectations.
726
40d231b4
JB
7272020-06-25 Jan Beulich <jbeulich@suse.com>
728
729 * config/tc-i386.c (cpu_flags_match): Only match SSE2AVX
730 templates when there's no data size prefix.
731 (md_assemble): Reject data size prefix also for legacy encoded
732 SIMD templates.
733 * testsuite/gas/i386/prefix32.s, testsuite/gas/i386/prefix64.s:
734 Uncomment previously not working line.
735 * testsuite/gas/i386/sse2avx.s: Add ldmxcsr/stmxcsr cases with
736 data16 prefix.
737 * testsuite/gas/i386/prefix32.l, testsuite/gas/i386/prefix64.l,
738 testsuite/gas/i386/sse2avx.d: Adjust expectations.
739
11abe426
JB
7402020-06-25 Jan Beulich <jbeulich@suse.com>
741
742 * config/tc-i386.c (build_evex_prefix): Drop early setting of
743 vec_length.
744
1a79004f
NC
7452020-06-23 Nelson Chu <nelson.chu@sifive.com>
746
747 * config/tc-riscv.c (explicit_priv_attr): Rename explicit_csr to
748 explicit_priv_attr. It used to indicate CSR or priv instructions are
749 explictly used.
750 (riscv_is_priv_insn): Return True if it is a privileged instruction.
751 (riscv_ip): Call riscv_is_priv_insn to check whether the instruction
752 is privileged or not. If it is, then set explicit_priv_attr to TRUE.
753 (riscv_write_out_attrs): Clarification of when to generate the elf
754 priv spec attributes.
755 * testsuite/gas/riscv/attribute-11.s: Add comments.
756 * testsuite/gas/riscv/attribute-14.s: New testcase. Use symbol
757 `priv_insn_<n>` to decide which priv instruction is expected to used.
758 (<n> is a to e.)
759 * testsuite/gas/riscv/attribute-14a.d: Likewise.
760 * testsuite/gas/riscv/attribute-14b.d: Likewise.
761 * testsuite/gas/riscv/attribute-14c.d: Likewise.
762 * testsuite/gas/riscv/attribute-14d.d: Likewise.
763 * testsuite/gas/riscv/attribute-14e.d: Likewise.
764
39ff0b81
NC
7652020-06-22 Nelson Chu <nelson.chu@sifive.com>
766
767 * config/tc-riscv.c (buf_size, buf): Remove the unused variables.
768 (riscv_set_default_priv_spec): Get the priv spec version from the
769 priv spec attributes by riscv_get_priv_spec_class_from_numbers.
770
e2201c2a
AM
7712020-06-20 Alan Modra <amodra@gmail.com>
772
773 * configure.tgt: Set bfd_gas for all SH targets.
774
d27c357a
JB
7752020-06-18 Jan Beulich <jbeulich@suse.com>
776
777 * testsuite/gas/i386/arch-13.s: Add alternative VMGEXIT case.
778 * testsuite/gas/i386/arch-13.d: Extend -march=. Adjust
779 expectations.
780
708a2fff
CL
7812020-06-16 Lili Cui <lili.cui@intel.com>
782
783 * config/tc-i386.c (cpu_arch): Correct noavx512_vp2intersect
784 cpu_arch to CPU_ANY_VP2INTERSECT_FLAGS.
785 * doc/c-i386.texi: Add avx512_vp2intersect.
786
2106ed9b
JB
7872020-06-16 Jan Beulich <jbeulich@suse.com>
788
789 * config/tc-i386.c (md_assemble): Drop SSE4a from SSE check
790 conditional.
791 * testsuite/gas/i386/sse-check.s: Adjust comment.
792 * testsuite/gas/i386/sse-check-error.l,
793 testsuite/gas/i386/sse-check-warn.e,
794 testsuite/gas/i386/x86-64-sse-check-error.l: Adjust
795 expectations.
796
a435742a
AM
7972020-06-16 Alan Modra <amodra@gmail.com>
798
799 * config/tc-tic30.h: Remove OBJ_AOUT support.
800 * configure.tgt: Delete tic30-*-*aout* entry.
801
7a77f1ac
MF
8022020-06-15 Max Filippov <jcmvbkbc@gmail.com>
803
804 * config/tc-xtensa.c (XTHAL_ABI_WINDOWED, XTHAL_ABI_CALL0): New
805 macros.
806 (elf32xtensa_abi): New declaration.
807 (option_abi_windowed, option_abi_call0): New enum constants.
808 (md_longopts): Add entries for --abi-windowed and --abi-call0.
809 (md_parse_option): Add handlers for --abi-windowed and
810 --abi-call0.
811 (xtensa_add_config_info): Use xtensa_abi_choice instead of
812 XSHAL_ABI to format ABI tag.
813 * doc/as.texi (Target Xtensa options): Add --abi-windowed and
814 --abi-call0 to the list of options.
815 * doc/c-xtensa.texi: Add description for options --abi-windowed
816 and --abi-call0.
817 * testsuite/gas/xtensa/abi-call0.d: New test definition.
818 * testsuite/gas/xtensa/abi-windowed.d: New test definition.
819 * testsuite/gas/xtensa/abi.s: New test source.
820
efe30057
L
8212020-06-14 H.J. Lu <hongjiu.lu@intel.com>
822
823 PR gas/26115
824 * testsuite/gas/i386/tsxldtrk.d: Replace xsuspldtrk with
825 xsusldtrk.
826 * testsuite/gas/i386/tsxldtrk.s: Likewise.
827 * testsuite/gas/i386/x86-64-tsxldtrk.d: Likewise.
828 * testsuite/gas/i386/x86-64-tsxldtrk.s: Likewise.
829
d8af286f
NC
8302020-06-12 Nelson Chu <nelson.chu@sifive.com>
831
832 * testsuite/gas/riscv/priv-reg-fail-version-1p9.d: Removed.
833 * testsuite/gas/riscv/priv-reg-fail-version-1p9.l: Likewise.
834 * testsuite/gas/riscv/priv-reg-version-1p9.d: Likewise.
835
18ca16be
SG
8362020-06-09 Seth Girvan <snth@snthhacks.com>
837
838 * doc/c-avr.texi: Improve wording.
839
6778f1c4
JB
8402020-06-09 Jan Beulich <jbeulich@suse.com>
841
842 * testsuite/gas/i386/x86-64-pseudos-bad.s,
843 testsuite/gas/i386/x86-64-pseudos-bad.l: New.
844
73239888
JB
8452020-06-09 Jan Beulich <jbeulich@suse.com>
846
847 * testsuite/gas/i386/prefix.s: Add bogus prefix-with-VEX/EVEX
848 encoding tests.
849 * testsuite/gas/i386/prefix.d: Adjust expectations.
850
bf926894
JB
8512020-06-09 Jan Beulich <jbeulich@suse.com>
852
853 * testsuite/gas/i386/prefix.s: Add bogus REP / EVEX.W prefix
854 with VEX/EVEX encoding tests.
855 * testsuite/gas/i386/prefix.d: Adjust expectations.
856
828c2a25
JB
8572020-06-09 Jan Beulich <jbeulich@suse.com>
858
859 * config/tc-i386.c (process_suffix): Restrict defaulting to 'q'
860 suffix.
861 * testsuite/gas/i386/noreg64.s: Add lcall/ljmp cases.
862 * testsuite/gas/i386/noreg64.d: Adjust expectations.
863 * testsuite/gas/i386/noreg-intel64.d,
864 testsuite/gas/i386/noreg-intel64.l,
865 testsuite/gas/i386/noreg-intel64.s: New.
866 * testsuite/gas/i386/i386.exp: Run new tests.
867
da4977e0
JB
8682020-06-09 Jan Beulich <jbeulich@suse.com>
869
870 * config/tc-i386.c (vex_encoding_error): New enumerator.
871 (VEX_check_operands): Rename to VEX_check_encoding. Check
872 for vex_encoding_error. Move Imm4 handling ...
873 (check_VecOperands): ... here.
874 (match_template): Call VEX_check_encoding when there are no
875 operands. Split construct calling check_VecOperands and
876 VEX_check_encoding (when there are operands).
877 (check_register): Don't blindly set vex_encoding_evex.
878 * testsuite/gas/i386/pseudos-bad.s,
879 testsuite/gas/i386/pseudos-bad.l: New.
880 * testsuite/gas/i386/i386.exp: Run new test.
881 * testsuite/gas/i386/xmmhi64.s: Drop {vex2}.
882
26417f19
AC
8832020-06-08 Alex Coplan <alex.coplan@arm.com>
884
885 * config/tc-arm.c (insns): Add dfb.
886 * testsuite/gas/arm/dfb.d: New test.
887 * testsuite/gas/arm/dfb.s: Input for test.
888
9f3e7dbc
NC
8892020-06-08 Nick Clifton <nickc@redhat.com>
890
891 * testsuite/gas/cfi/cfi-i386-2.d: Skip for PE based targets.
892
dd6b8a0b
JB
8932020-06-08 Jan Beulich <jbeulich@suse.com>
894
895 * config/tc-i386.c (pi): Add checks for RegMask and RegBND.
896
73c76375
JB
8972020-06-08 Jan Beulich <jbeulich@suse.com>
898
899 * config/tc-i386.c (check_byte_reg): Drop dead conditional
900 around as_bad().
901
22e00a3f
JB
9022020-06-08 Jan Beulich <jbeulich@suse.com>
903
904 * config/tc-i386.c (check_register): Split RegTR handling, to
905 fail recognition also in 64-bit mode as well as with i586 or
906 i686 explicitly enabled.
907 * testsuite/gas/i386/x86_64.s: Add insns referencing tr<N>.
908 * testsuite/gas/i386/x86_64-intel.d,
909 testsuite/gas/i386/x86_64.d: Adjust expectations.
910
1ab84e02
JB
9112020-06-08 Jan Beulich <jbeulich@suse.com>
912
913 * testsuite/gas/cfi/cfi-i386-2.d: Adjust expectations.
914 * testsuite/gas/cfi/cfi.exp: Run this test.
915
af32b722
JB
9162020-06-08 Jan Beulich <jbeulich@suse.com>
917
918 * config/tc-i386.c (parse_real_register): Add allow_pseudo_reg
919 check to %st(N) parsing logic.
920 * testsuite/gas/cfi/cfi-i386.s: Set "generic32" arch.
921
8a6fb3f9
JB
9222020-06-08 Jan Beulich <jbeulich@suse.com>
923
924 * config/tc-i386.c (bad_reg): New.
925 (check_VecOperations, i386_att_operand, i386_parse_name): Check
926 for it.
927 (check_register): New, broken out from ...
928 (parse_real_register): ... here. Call it.
929 (parse_register): Call it, and error upon failure.
930 * testsuite/gas/i386/equ-bad.s, testsuite/gas/i386/equ-bad.l,
931 testsuite/gas/i386/x86-64-equ-bad.s,
932 testsuite/gas/i386/x86-64-equ-bad.l: New.
933 * testsuite/gas/i386/i386.exp: Run new tests.
934
1424c35d
AM
9352020-06-06 Alan Modra <amodra@gmail.com>
936
937 * config/tc-ppc.c (md_show_usage): Mention -mpower10 and -mpwr10.
938 * doc/c-ppc.texi: Likewise.
939
87c69f97
AM
9402020-06-06 Alan Modra <amodra@gmail.com>
941
942 * config/tc-ppc.c: Update throughout for reloc renaming.
943
f1919c56
JM
9442020-06-05 Jose E. Marchesi <jose.marchesi@oracle.com>
945
946 * config/tc-bpf.c (md_apply_fix): Avoid GCC 10 warning
947 stringop-overflow.
948
3fc6c3dc
NC
9492020-06-05 Nelson Chu <nelson.chu@sifive.com>
950
951 * config/tc-riscv.c (explicit_csr): New static boolean.
952 Used to indicate CSR are explictly used.
953 (riscv_ip): Set explicit_csr to TRUE if any CSR is used.
954 (riscv_write_out_attrs): If we already have set elf priv
955 attributes, then generate them. Otherwise, don't generate
956 them when no CSR are used.
957 * testsuite/gas/riscv/attribute-01.d: Remove the priv attributes.
958 * testsuite/gas/riscv/attribute-02.d: Likewise.
959 * testsuite/gas/riscv/attribute-03.d: Likewise.
960 * testsuite/gas/riscv/attribute-04.d: Likewise.
961 * testsuite/gas/riscv/attribute-05.d: Likewise.
962 * testsuite/gas/riscv/attribute-06.d: Likewise.
963 * testsuite/gas/riscv/attribute-07.d: Likewise.
964 * testsuite/gas/riscv/attribute-08.d: Likewise.
965 * testsuite/gas/riscv/attribute-09.d: Likewise.
966 * testsuite/gas/riscv/attribute-10.d: Likewise.
967 * testsuite/gas/riscv/attribute-unknown.d: Likewise.
968 * testsuite/gas/riscv/attribute-11.s: New testcase.
969 * testsuite/gas/riscv/attribute-11.d: New testcase. The CSR is
970 used, so we should output the ELF priv attributes.
971 * testsuite/gas/riscv/attribute-12.d: New testcase. The CSR is
972 used, so output the priv attributes according to the -mpriv-spec.
973 * testsuite/gas/riscv/attribute-13.d: New testcase. The CSR isn't
974 used, so ignore the -mpriv-spec setting.
975
d413a623
L
9762020-06-04 H.J. Lu <hongjiu.lu@intel.com>
977
978 * config/tc-ip2k. (ip2k_apply_fix): Pass endianness to
979 cgen_get_insn_value.
980 * config/tc-xstormy16.c (xstormy16_md_apply_fix): Pass
981 endianness to cgen_get_insn_value and cgen_put_insn_value.
982
7d8b91fd
JM
9832020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
984
985 * config/tc-bpf.c (md_apply_fix): Simplify and avoid using
986 cgen_put_insn_value.
987
d8740be1
JM
9882020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
989
990 * config/tc-bpf.c (md_begin): Pass CGEN_CPU_OPEN_INSN_ENDIAN to
991 bpf_cgen_cpu_open.
992 (md_assemble): Remove no longer needed hack.
993
e9bffec9
JM
9942020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
995
996 * cgen.c (gas_cgen_finish_insn): Pass the endianness to
997 cgen_put_insn_value.
998 (gas_cgen_md_apply_fix): Likewise.
999 (gas_cgen_md_apply_fix): Likewise.
1000 * config/tc-bpf.c (md_apply_fix): Pass data endianness to
1001 cgen_put_insn_value.
1002 * config/tc-mep.c (mep_check_ivc2_scheduling): Pass endianness to
1003 cgen_put_insn_value.
1004
1cf67587
AM
10052020-06-04 Alan Modra <amodra@gmail.com>
1006
1007 * testsuite/config/default.exp: Remove global directive outside
1008 proc body.
1009 * testsuite/gas/mep/complex-relocs.exp: Likewise.
1010 * testsuite/gas/microblaze/relax_size.exp: Likewise.
1011 * testsuite/gas/microblaze/reloc_sym.exp: Likewise.
1012 * testsuite/gas/mt/relocs.exp: Likewise.
1013 * testsuite/gas/rx/rx.exp: Likewise.
1014
338d56a8
SC
10152020-06-03 Stephen Casner <casner@acm.org>
1016
1017 * doc/c-riscv.texi (RISC-V-Options): Fix non-ASCII apostrophe.
1018
bb7322c6
JW
10192020-06-02 Frédéric Pétrot <frederic.petrot@univ-grenoble-alpes.fr>
1020 Jim Wilson <jimw@sifive.com>
1021
1022 PR 26051
1023 * doc/c-riscv.texi (RISC-V-Formats): Add missing I format using
1024 simm12(rs1). Correct S format to use simm12(rs1). Drop SB and B
1025 formats using simm12(rs1). Correct SB and B to use rs1 and rs2.
1026 Move B before SB. Move J before UJ.
1027
c39c821c
AC
10282020-06-01 Alex Coplan <alex.coplan@arm.com>
1029
1030 * write.c (relax_segment): Fix handling of negative offset when
1031 relaxing an rs_org frag.
1032 * testsuite/gas/aarch64/org-neg.d: New test.
1033 * testsuite/gas/aarch64/org-neg.l: Error output for test.
1034 * testsuite/gas/aarch64/org-neg.s: Input for test.
1035 * testsuite/gas/arm/org-neg.d: New test.
1036 * testsuite/gas/arm/org-neg.l: Error output for test.
1037 * testsuite/gas/arm/org-neg.s: Input for test.
1038
66e3eb08
SC
10392020-05-28 Stephen Casner <casner@acm.org>
1040
1041 Fix unexpected failures in gas testsuite for pdp11-aout target.
1042 These are caused by the PDP11's mix of little-endian octets in
1043 shorts but shorts in big endian order for long or quad.
1044
1045 * config/tc-pdp11.c (md_number_to_chars): Implement .quad
1046 * testsuite/gas/all/gas.exp: Select alternate test scripts for
1047 pdp11, skip octa test completely.
1048 * testsuite/gas/all/eqv-dot-pdp11.s: Identical to eqv-dot.s
1049 * testsuite/gas/all/eqv-dot-pdp11.d: Match different octet order.
1050 * testsuite/gas/all/cond-pdp11.l: Match different octet order.
1051
9e85f042
NC
10522020-05-28 Alex Coplan <alex.coplan@arm.com>
1053
1054 * frags.c (frag_grow): Fix comment.
1055
1c912705
SC
10562020-05-27 Stephen Casner <casner@acm.org>
1057
1058 PR gas/26001
1059 * config/tc-pdp11.c (parse_reg): Distinguish register names from
1060 symbols that begin with a register name.
1061 * testsuite/gas/pdp11/pdp11.exp: Add test of such symbols.
1062 * testsuite/gas/pdp11/pr26001.s: Likewise.
1063 * testsuite/gas/pdp11/pr26001.d: Likewise.
1064
5c505568
SC
10652020-05-27 Simon Cook <simon.cook@embecosm.com>
1066
1067 * config/tc-riscv.c (riscv_init_csr_hash): NULL initilize next
1068 pointer when creating struct riscv_csr_extra.
1069
3c730740
L
10702020-05-26 H.J. Lu <hongjiu.lu@intel.com>
1071
1072 * testsuite/gas/i386/align-branch-9.d: Updated for PECOFF.
1073 * testsuite/gas/i386/inval-avx512f.s: Add .p2align for PECOFF.
1074 * testsuite/gas/i386/inval-avx512f.l: Updated.
1075
57b17940
SSF
10762020-05-26 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
1077
1078 * testsuite/gas/s390/zarch-z13.d: Add regexp checks for vector
1079 load/store instruction variants with alignment hints.
1080 * testsuite/gas/s390/zarch-z13.s: Emit new vector load/store
1081 instruction variants with alignment hints.
1082
e3fed0f2
L
10832020-05-26 H.J. Lu <hongjiu.lu@intel.com>
1084
1085 PR gas/26044
1086 * config/tc-xgate.c (md_apply_fix): Check BFD_RELOC_XGATE_PCREL_X
1087 instead of R_XGATE_PCREL_X.
1088 (xgate_parse_operand): Replace R_XGATE_PCREL_X with
1089 BFD_RELOC_XGATE_PCREL_X.
1090
8bbc5da5
L
10912020-05-26 H.J. Lu <hongjiu.lu@intel.com>
1092
1093 PR gas/26044
1094 * config/tc-visium.c (md_convert_frag): Replace fragP->fr_literal
1095 with &fragP->fr_literal[0].
1096
c4612b92
L
10972020-05-26 H.J. Lu <hongjiu.lu@intel.com>
1098
1099 PR gas/26044
1100 * config/tc-vax.c (md_estimate_size_before_relax): Replace
1101 fragP->fr_literal with &fragP->fr_literal[0].
1102 (md_convert_frag): Likewise.
1103
70b1b570
L
11042020-05-26 H.J. Lu <hongjiu.lu@intel.com>
1105
1106 PR gas/26044
1107 * config/tc-v850.c (md_convert_frag): Replace fragP->fr_literal
1108 with &fragP->fr_literal[0].
1109
e67e940f
L
11102020-05-26 H.J. Lu <hongjiu.lu@intel.com>
1111
1112 PR gas/26044
1113 * config/tc-crx.c (getreg_image): Change argument type to int.
1114 (md_convert_frag): Replace fragP->fr_literal with
1115 &fragP->fr_literal[0].
1116
a05e3e20
L
11172020-05-26 H.J. Lu <hongjiu.lu@intel.com>
1118
1119 PR gas/26044
1120 * onfig/tc-score.c (s3_do_macro_bcmp): Replace overlapping
1121 sprintf with memmove.
1122
c6412eee
L
11232020-05-25 H.J. Lu <hongjiu.lu@intel.com>
1124
1125 * config/tc-mcore.c (md_convert_frag): Replace fragP->fr_literal
1126 with &fragP->fr_literal[0].
1127
9fcc3457
L
11282020-05-25 H.J. Lu <hongjiu.lu@intel.com>
1129
1130 PR gas/26041
1131 * config/tc-cr16.c (md_assemble): Use memmove to concatenate
1132 2 overlapping strings.
1133
6c115e16
L
11342020-05-25 H.J. Lu <hongjiu.lu@intel.com>
1135
1136 * config/tc-cr16.c (md_convert_frag): Replace fragP->fr_literal
1137 with &fragP->fr_literal[0].
1138
a39d29cd
L
11392020-05-25 H.J. Lu <hongjiu.lu@intel.com>
1140
1141 * config/tc-csky.c (md_convert_frag): Replace fragp->fr_literal
1142 with &fragp->fr_literal[0].
1143 * config/tc-microblaze.c (md_apply_fix): Likewise.
1144 * config/tc-sh.c (md_convert_frag): Likewise.
1145
72393fd1
JW
11462020-05-24 Jim Wilson <jimw@sifive.com>
1147
1148 PR 26025
1149 * config/tc-riscv.c (riscv_pre_output_hook): Change s type from const
1150 asection to segT. New locals seg and subseg. Call subseg_set before
1151 fix_new_exp. Call subseg_set after loop to restore original values.
1152
9fbb53c7
AM
11532020-05-21 Alan Modra <amodra@gmail.com>
1154
1155 * atof-generic.c: Replace "if (x) free (x)" with "free (x)"
1156 throughout.
1157 * config/obj-elf.c: Likewise.
1158 * config/tc-aarch64.c: Likewise.
1159 * config/tc-arm.c: Likewise.
1160 * config/tc-m68k.c: Likewise.
1161 * config/tc-nios2.c: Likewise.
1162 * config/tc-tic30.c: Likewise.
1163 * ecoff.c: Likewise.
1164 * read.c: Likewise.
1165 * stabs.c: Likewise.
1166 * symbols.c: Likewise.
1167 * testsuite/gas/all/test-gen.c: Likewise.
1168
8f595e9b
NC
11692020-05-20 Nelson Chu <nelson.chu@sifive.com>
1170
1171 * testsuite/gas/riscv/priv-reg-fail-read-only-01.s: Updated.
1172 * config/tc-riscv.c (default_arch_with_ext, default_isa_spec):
1173 Static variables which are used to set the ISA extensions. You can
1174 use -march (or ELF build attributes) and -misa-spec to set them,
1175 respectively.
1176 (ext_version_hash): The hash table used to handle the extensions
1177 with versions.
1178 (init_ext_version_hash): Initialize the ext_version_hash according
1179 to riscv_ext_version_table.
1180 (riscv_get_default_ext_version): The callback function of
1181 riscv_parse_subset_t. According to the choosed ISA spec,
1182 get the default version for the specific extension.
1183 (riscv_set_arch): Set the callback function.
1184 (enum options, struct option md_longopts): Add new option -misa-spec.
1185 (md_parse_option): Do not call riscv_set_arch for -march. We will
1186 call it later in riscv_after_parse_args. Call riscv_get_isa_spec_class
1187 to set default_isa_spec class.
1188 (riscv_after_parse_args): Call init_ext_version_hash to initialize the
1189 ext_version_hash, and then call riscv_set_arch to set the architecture
1190 with versions according to default_arch_with_ext.
1191 * testsuite/gas/riscv/attribute-02.d: Set 0p0 as default version for
1192 x extensions.
1193 * testsuite/gas/riscv/attribute-03.d: Likewise.
1194 * testsuite/gas/riscv/attribute-09.d: New testcase. For i-ext, we
1195 already set it's version to 2p1 by march, so no need to use the default
1196 2p2 version. For m-ext, we do not set the version by -march and ELF arch
1197 attribute, so set the default 2p0 to it. For zicsr, it is not defined in
1198 ISA spec 2p2, so set 0p0 to it.
1199 * testsuite/gas/riscv/attribute-10.d: New testcase. The version of
1200 zicsr is 2p0 according to ISA spec 20191213.
1201 * config/tc-riscv.c (DEFAULT_RISCV_ARCH_WITH_EXT)
1202 (DEFAULT_RISCV_ISA_SPEC): Default configure option settings.
1203 You can set them by configure options --with-arch and
1204 --with-isa-spec, respectively.
1205 (riscv_set_default_isa_spec): New function used to set the
1206 default ISA spec.
1207 (md_parse_option): Call riscv_set_default_isa_spec rather than
1208 call riscv_get_isa_spec_class directly.
1209 (riscv_after_parse_args): If the -isa-spec is not set, then we
1210 set the default ISA spec according to DEFAULT_RISCV_ISA_SPEC by
1211 calling riscv_set_default_isa_spec.
1212 * testsuite/gas/riscv/attribute-01.d: Add -misa-spec=2.2, since
1213 the --with-isa-spec may be set to different ISA spec.
1214 * testsuite/gas/riscv/attribute-02.d: Likewise.
1215 * testsuite/gas/riscv/attribute-03.d: Likewise.
1216 * testsuite/gas/riscv/attribute-04.d: Likewise.
1217 * testsuite/gas/riscv/attribute-05.d: Likewise.
1218 * testsuite/gas/riscv/attribute-06.d: Likewise.
1219 * testsuite/gas/riscv/attribute-07.d: Likewise.
1220 * configure.ac: Add configure options, --with-arch and
1221 --with-isa-spec.
1222 * configure: Regenerated.
1223 * config.in: Regenerated.
1224 * config/tc-riscv.c (default_priv_spec): Static variable which is
1225 used to check if the CSR is valid for the chosen privilege spec. You
1226 can use -mpriv-spec to set it.
1227 (enum reg_class): We now get the CSR address from csr_extra_hash rather
1228 than reg_names_hash. Therefore, move RCLASS_CSR behind RCLASS_MAX.
1229 (riscv_init_csr_hashes): Only need to initialize one hash table
1230 csr_extra_hash.
1231 (riscv_csr_class_check): Change the return type to void. Don't check
1232 the ISA dependency if -mcsr-check isn't set.
1233 (riscv_csr_version_check): New function. Check and find the CSR address
1234 from csr_extra_hash, according to default_priv_spec. Report warning
1235 for the invalid CSR if -mcsr-check is set.
1236 (reg_csr_lookup_internal): Updated.
1237 (reg_lookup_internal): Likewise.
1238 (md_begin): Updated since DECLARE_CSR and DECLARE_CSR_ALIAS are changed.
1239 (enum options, struct option md_longopts): Add new GAS option -mpriv-spec.
1240 (md_parse_option): Call riscv_set_default_priv_version to set
1241 default_priv_spec.
1242 (riscv_after_parse_args): If -mpriv-spec isn't set, then set the default
1243 privilege spec to the newest one.
1244 (enum riscv_csr_class, struct riscv_csr_extra): Move them to
1245 include/opcode/riscv.h.
1246 * testsuite/gas/riscv/priv-reg-fail-fext.d: This test case just want
1247 to check the ISA dependency for CSR, so fix the spec version by adding
1248 -mpriv-spec=1.11.
1249 * testsuite/gas/riscv/priv-reg-fail-fext.l: Likewise. There are some
1250 version warnings for the test case.
1251 * gas/testsuite/gas/riscv/priv-reg-fail-read-only-01.d: Likewise.
1252 * gas/testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
1253 * gas/testsuite/gas/riscv/priv-reg-fail-read-only-02.d: Likewise.
1254 * gas/testsuite/gas/riscv/priv-reg-fail-rv32-only.d: Likewise.
1255 * gas/testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
1256 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9.d: New test case.
1257 Check whether the CSR is valid when privilege version 1.9 is choosed.
1258 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9.l: Likewise.
1259 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9p1.d: New test case.
1260 Check whether the CSR is valid when privilege version 1.9.1 is choosed.
1261 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
1262 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p10.d: New test case.
1263 Check whether the CSR is valid when privilege version 1.10 is choosed.
1264 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
1265 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p11.d: New test case.
1266 Check whether the CSR is valid when privilege version 1.11 is choosed.
1267 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
1268 * config/tc-riscv.c (DEFAULT_RISCV_ISA_SPEC): Default configure option
1269 setting. You can set it by configure option --with-priv-spec.
1270 (riscv_set_default_priv_spec): New function used to set the default
1271 privilege spec.
1272 (md_parse_option): Call riscv_set_default_priv_spec rather than
1273 call riscv_get_priv_spec_class directly.
1274 (riscv_after_parse_args): If -mpriv-spec isn't set, then we set the
1275 default privilege spec according to DEFAULT_RISCV_PRIV_SPEC by
1276 calling riscv_set_default_priv_spec.
1277 * testsuite/gas/riscv/csr-dw-regnums.d: Add -mpriv-spec=1.11, since
1278 the --with-priv-spec may be set to different privilege spec.
1279 * testsuite/gas/riscv/priv-reg.d: Likewise.
1280 * configure.ac: Add configure option --with-priv-spec.
1281 * configure: Regenerated.
1282 * config.in: Regenerated.
1283 * config/tc-riscv.c (explicit_attr): Rename explicit_arch_attr to
1284 explicit_attr. Set it to TRUE if any ELF attribute is found.
1285 (riscv_set_default_priv_spec): Try to set the default_priv_spec if
1286 the priv attributes are set.
1287 (md_assemble): Set the default_priv_spec according to the priv
1288 attributes when we start to assemble instruction.
1289 (riscv_write_out_attrs): Rename riscv_write_out_arch_attr to
1290 riscv_write_out_attrs. Update the arch and priv attributes. If we
1291 don't set the corresponding ELF attributes, then try to output the
1292 default ones.
1293 (riscv_set_public_attributes): If any ELF attribute or -march-attr
1294 options is set (explicit_attr is TRUE), then call riscv_write_out_attrs
1295 to update the arch and priv attributes.
1296 (s_riscv_attribute): Make sure all arch and priv attributes are set
1297 before any instruction.
1298 * testsuite/gas/riscv/attribute-01.d: Update the priv attributes if any
1299 ELF attribute or -march-attr is set. If the priv attributes are not
1300 set, then try to update them by the default setting (-mpriv-spec or
1301 --with-priv-spec).
1302 * testsuite/gas/riscv/attribute-02.d: Likewise.
1303 * testsuite/gas/riscv/attribute-03.d: Likewise.
1304 * testsuite/gas/riscv/attribute-04.d: Likewise.
1305 * testsuite/gas/riscv/attribute-06.d: Likewise.
1306 * testsuite/gas/riscv/attribute-07.d: Likewise.
1307 * testsuite/gas/riscv/attribute-08.d: Likewise.
1308 * testsuite/gas/riscv/attribute-09.d: Likewise.
1309 * testsuite/gas/riscv/attribute-10.d: Likewise.
1310 * testsuite/gas/riscv/attribute-unknown.d: Likewise.
1311 * testsuite/gas/riscv/attribute-05.d: Likewise. Also, the priv spec
1312 set by priv attributes must be supported.
1313 * testsuite/gas/riscv/attribute-05.s: Likewise.
1314 * testsuite/gas/riscv/priv-reg-fail-version-1p9.d: Likewise. Updated
1315 priv attributes according to the -mpriv-spec option.
1316 * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.d: Likewise.
1317 * testsuite/gas/riscv/priv-reg-fail-version-1p10.d: Likewise.
1318 * testsuite/gas/riscv/priv-reg-fail-version-1p11.d: Likewise.
1319 * testsuite/gas/riscv/priv-reg.d: Removed.
1320 * testsuite/gas/riscv/priv-reg-version-1p9.d: New test case. Dump the
1321 CSR according to the priv spec 1.9.
1322 * testsuite/gas/riscv/priv-reg-version-1p9p1.d: New test case. Dump the
1323 CSR according to the priv spec 1.9.1.
1324 * testsuite/gas/riscv/priv-reg-version-1p10.d: New test case. Dump the
1325 CSR according to the priv spec 1.10.
1326 * testsuite/gas/riscv/priv-reg-version-1p11.d: New test case. Dump the
1327 CSR according to the priv spec 1.11.
1328 * config/tc-riscv.c (md_show_usage): Add descriptions about
1329 the new GAS options.
1330 * doc/c-riscv.texi: Likewise.
1331
3d205eb4
PB
13322020-05-19 Peter Bergner <bergner@linux.ibm.com>
1333
1334 * testsuite/gas/ppc/power9.s <dcbf, dcbfl, dcbflp>: Add tests.
1335 * testsuite/gas/ppc/power9.d: Likewise.
1336 * testsuite/gas/ppc/power10.s <dcbf, dcbfps, dcbstps, hwsync, lwsync,
1337 pause_short, phwsync, plwsync, ptesync, stcisync, stncisync, stsync,
1338 sync, wait, waitrsv>: Add tests.
1339 * testsuite/gas/ppc/power10.d: Likewise.
1340
164446e0
AF
13412020-05-19 Alexander Fedotov <alfedotov@gmail.com>
1342
1343 PR 25992
1344 * config/tc-arm.c : Add arm_ext_v8r feature.
1345 (it_fsm_post_encode): Check arm_ext_v8r feature.
1346 (get_aeabi_cpu_arch_from_fset): Check arm_ext_v8r feature.
1347
69f57659
AM
13482020-05-19 Alan Modra <amodra@gmail.com>
1349
1350 * write.c (write_contents): Use bfd_get_filename rather than
1351 accessing bfd->filename directly. Use bfd_section_name rather
1352 than accessing section->name directly.
1353
0e1d094e
AM
13542020-05-19 Alan Modra <amodra@gmail.com>
1355
1356 * symbols.c (local_symbol_make): Init all of lsy_flags.
1357
d402189f
AM
13582020-05-18 Alan Modra <amodra@gmail.com>
1359
1360 * symbols.c (resolve_symbol_value): Invoke LOCAL_SYMBOL_CHECK
1361 before looking at add_symbol->sy_flags.
1362
503648e4 13632020-05-18 Hongtao Liu <hongtao.liu@intel.com>
1364
1365 * config/tc-i386.c: Not handle lret/iret.
1366 * testsuite/gas/i386/lfence-ret-a.d: Adjust testcase.
1367 * testsuite/gas/i386/lfence-ret-b.d: Ditto.
1368 * testsuite/gas/i386/lfence-ret-c.d: Ditto.
1369 * testsuite/gas/i386/lfence-ret-d.d: Ditto.
1370 * testsuite/gas/i386/lfence-ret.s: Ditto.
1371 * testsuite/gas/i386/x86-64-lfence-ret-a.d: Ditto.
1372 * testsuite/gas/i386/x86-64-lfence-ret-b.d: Ditto.
1373 * testsuite/gas/i386/x86-64-lfence-ret-c.d: Ditto.
1374 * testsuite/gas/i386/x86-64-lfence-ret-d.d: Ditto.
1375 * testsuite/gas/i386/x86-64-lfence-ret-e.d: Ditto.
1376 * testsuite/gas/i386/x86-64-lfence-ret.s: Ditto.
1377 * testsuite/gas/i386/x86-64-lfence-ret.e: Deleted.
1378
2a50b401
AM
13792020-05-15 Alan Modra <amodra@gmail.com>
1380 Alex Coplan <alex.coplan@arm.com>
1381
1382 * symbols.c (struct local_symbol): Update comment.
1383 (resolve_symbol_value): For resolved symbols equated to other
1384 symbols, verify that the referenced symbol is not a local_symbol
1385 before accessing sy_value. Don't leave symbol loops during
1386 finalize_syms resolution.
1387 * testsuite/gas/all/assign-bad-recursive.d: New test.
1388 * testsuite/gas/all/assign-bad-recursive.l: Error output for test.
1389 * testsuite/gas/all/assign-bad-recursive.s: Assembly for test.
1390 * testsuite/gas/all/gas.exp: Run it.
1391
9d95b8e9
NC
13922020-05-14 Nick Clifton <nickc@redhat.com>
1393
1394 * po/sv.po: Updated Swedish translation.
1395
3b646889
AM
13962020-05-11 Alan Modra <amodra@gmail.com>
1397
1398 * testsuite/gas/ppc/scalarquad.d,
1399 * testsuite/gas/ppc/scalarquad.s: New test.
1400 * testsuite/gas/ppc/ppc.exp: Run it.
1401
9cc4ce88
AM
14022020-05-11 Alan Modra <amodra@gmail.com>
1403
1404 * testsuite/gas/ppc/rightmost.d,
1405 * testsuite/gas/ppc/rightmost.s: New test.
1406 * testsuite/gas/ppc/ppc.exp: Run it.
1407
5d57bc3f
AM
14082020-05-11 Alan Modra <amodra@gmail.com>
1409
1410 * testsuite/gas/ppc/xvtlsbb.d,
1411 * testsuite/gas/ppc/xvtlsbb.s: New test.
1412 * testsuite/gas/ppc/ppc.exp: Run it.
1413
66ef5847
AM
14142020-05-11 Alan Modra <amodra@gmail.com>
1415
1416 * testsuite/gas/ppc/stringop.d,
1417 * testsuite/gas/ppc/stringop.s: New test.
1418 * testsuite/gas/ppc/ppc.exp: Run it.
1419
4f3e9537
PB
14202020-05-11 Peter Bergner <bergner@linux.ibm.com>
1421
1422 * testsuite/gas/ppc/set_bool.d,
1423 * testsuite/gas/ppc/set_bool.s: New test.
1424 * testsuite/gas/ppc/ppc.exp: Run it.
1425
ec40e91c
AM
14262020-05-11 Alan Modra <amodra@gmail.com>
1427
1428 * testsuite/gas/ppc/bitmanip.d,
1429 * testsuite/gas/ppc/bitmanip.s: New test.
1430 * testsuite/gas/ppc/ppc.exp: Run it.
1431
d7e97a76
AM
14322020-05-11 Alan Modra <amodra@gmail.com>
1433
1434 * testsuite/gas/ppc/genpcv.d,
1435 * testsuite/gas/ppc/genpcv.s: New test.
1436 * testsuite/gas/ppc/ppc.exp: Run it.
1437
fdefed7c
AM
14382020-05-11 Alan Modra <amodra@gmail.com>
1439
1440 * testsuite/gas/ppc/maskmanip.d,
1441 * testsuite/gas/ppc/maskmanip.s: New test.
1442 * testsuite/gas/ppc/ppc.exp: Run it.
1443
aa3c112f
AM
14442020-05-11 Alan Modra <amodra@gmail.com>
1445 Peter Bergner <bergner@linux.ibm.com>
1446
1447 * config/tc-ppc.c (pre_defined_registers): Add accumulators.
1448 (md_assemble): Check acc specified in correct operand.
1449 * testsuite/gas/ppc/outerprod.d,
1450 * testsuite/gas/ppc/outerprod.s,
1451 * testsuite/gas/ppc/vsx4.d,
1452 * testsuite/gas/ppc/vsx4.s: New tests.
1453 * testsuite/gas/ppc/ppc.exp: Run them.
1454
6edbfd3b
AM
14552020-05-11 Alan Modra <amodra@gmail.com>
1456
1457 * testsuite/gas/ppc/simd_perm.d,
1458 * testsuite/gas/ppc/simd_perm.s: New test.
1459 * testsuite/gas/ppc/ppc.exp: Run it.
1460
c7d7aea2
AM
14612020-05-11 Alan Modra <amodra@gmail.com>
1462
1463 * testsuite/gas/ppc/int128.d,
1464 * testsuite/gas/ppc/int128.s: New test.
1465 * testsuite/gas/ppc/ppc.exp: Run it.
1466
94ba9882
AM
14672020-05-11 Alan Modra <amodra@gmail.com>
1468
1469 * testsuite/gas/ppc/vsx_32byte.d,
1470 * testsuite/gas/ppc/vsx_32byte.s: New test.
1471 * testsuite/gas/ppc/ppc.exp: Run it.
1472
f4791f1a
AM
14732020-05-11 Alan Modra <amodra@gmail.com>
1474
1475 * testsuite/gas/ppc/vec_mul.s,
1476 * testsuite/gas/ppc/vec_mul.d: New test.
1477 * testsuite/gas/ppc/ppc.exp: Run it.
1478
3ff0a5ba
PB
14792020-05-11 Peter Bergner <bergner@linux.ibm.com>
1480
1481 * testsuite/gas/ppc/byte_rev.d,
1482 * testsuite/gas/ppc/byte_rev.s: New test.
1483 * testsuite/gas/ppc/ppc.exp: Run it.
1484
afef4fe9
PB
14852020-05-11 Peter Bergner <bergner@linux.ibm.com>
1486
1487 * testsuite/gas/ppc/power10.d: Add paste. tests.
1488 * testsuite/gas/ppc/power10.s: Likewise.
1489
1224c05d
PB
14902020-05-11 Peter Bergner <bergner@linux.ibm.com>
1491
1492 * testsuite/gas/ppc/power10.s: New test.
1493 * testsuite/gas/ppc/power10.d: Likewise.
1494 * testsuite/gas/ppc/ppc.exp: Run it.
1495
7c1f4227
AM
14962020-05-11 Alan Modra <amodra@gmail.com>
1497
1498 * config/tc-ppc.c (md_assemble): Update for PPC_OPCODE_POWER10
1499 renaming.
1500 * testsuite/gas/ppc/prefix-align.d: Use -mpower10/-Mpower10 in
1501 place of -mfuture/-Mfuture.
1502 * testsuite/gas/ppc/prefix-pcrel.d: Likewise.
1503 * testsuite/gas/ppc/prefix-reloc.d: Likewise.
1504
bfeaed38
NC
15052020-05-06 Nick Clifton <nickc@redhat.com>
1506
1507 * po/sv.po: Updated Swedish translation.
1508
6ef719c0
NC
15092020-05-06 Nick Clifton <nickc@redhat.com>
1510
1511 PR 25927
1512 * doc/as.texi (Preprocessing): Replace cross reference to not
1513 existant document with a URL to the equivalent page in the GCC
1514 manual.
1515
546cb2d8
NC
15162020-05-05 Nick Clifton <nickc@redhat.com>
1517
1518 * dwarf2dbg.c (out_dir_and_file_list): Add comments describing the
1519 construction of a DWARF-5 directory name table.
1520 * testsuite/gas/elf/pr25917.d: Update expected output.
1521
7d0bd487
GN
15222020-05-05 Gunther Nikl <gnikl@justmail.de>
1523
1524 * config/tc-rx.c (elf_flags): Initialize for non-linux targets.
1525 (md_parse_option): Remove initialization of elf_flags.
070b775f 1526
fe05f369
ASDV
15272020-05-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
1528
1529 PR gas/25863
1530 * config/tc-arm.c (do_mve_vmull): Fix scalar and NEON parsing of vmul.
1531 * testsuite/gas/arm/mve-scalar-vmult-it.d: New test.
1532 * testsuite/gas/arm/mve-scalar-vmult-it.s: New test.
1533
4706679d
NC
15342020-05-04 Nick Clifton <nickc@redhat.com>
1535
1536 PR 25917
1537 * dwarf2dbg.c (out_dir_and_file_list): Check for the directory
1538 table's existence before looking at its entries.
070b775f
NC
1539 Also do not emit a default directory entry if there are no
1540 directories in use.
1541
4706679d
NC
1542 * testsuite/gas/elf/pr25917.s: New test source file.
1543 * testsuite/gas/elf/pr25917.d: New test driver.
1544 * testsuite/gas/elf/elf.exp (run_elf_list_test): Run the new test.
1545
09c1e68a
AC
15462020-04-30 Alex Coplan <alex.coplan@arm.com>
1547
1548 * config/tc-aarch64.c (fix_insn): Implement for
1549 AARCH64_OPND_UNDEFINED.
1550 (parse_operands): Implement for AARCH64_OPND_UNDEFINED.
1551 * testsuite/gas/aarch64/udf.s: New.
1552 * testsuite/gas/aarch64/udf.d: New.
1553 * testsuite/gas/aarch64/udf-invalid.s: New.
1554 * testsuite/gas/aarch64/udf-invalid.l: New.
1555 * testsuite/gas/aarch64/udf-invalid.d: New.
1556
c578f16e
YS
15572020-04-30 Yoshinori Sato <ysato@users.sourceforge.jp>
1558
1559 * config/tc-rx.c (elf_flags): Reset default value.
1560 (md_parse_option): For rx-elf Initialize elf_flags with RX_ABI.
1561
935f1f4b
MF
15622020-04-29 Max Filippov <jcmvbkbc@gmail.com>
1563
1564 * config/tc-xtensa.c (XTENSA_MARCH_EARLIEST): Define macro as 0
1565 if it's not defined.
1566 (microarch_earliest): New static variable.
1567 (xg_translate_idioms): Translate "simcall" to "simcall 0" when
1568 simcall opcode has mandatory parameter.
1569 (xg_init_global_config): Initialize microarch_earliest.
1570
5c936ef5
NC
15712020-04-29 Nick Clifton <nickc@redhat.com>
1572
1573 PR 22699
1574 * config/tc-sh.c (build_Mytes): Change operand type IMM0_8 to
1575 IMM0_8S and add support for IMM0_8U.
1576 * testsuite/gas/sh/sh4a.s: Add test of a logical insn using an
1577 unsigned 8-bit immediate.
1578 * testsuite/gas/sh/sh4a.d: Extended expected disassembly.
241e541d 1579 * testsuite/gas/sh/sh4al-dsp.d: Update expected disassembly.
5c936ef5 1580
251dae91
TC
15812020-04-27 Tamar Christina <tamar.christina@arm.com>
1582
1583 * NEWS: Add news entry for big-obj.
1584 * config/tc-i386.c (i386_target_format): Support new format.
1585 * doc/c-i386.texi: Add i386 support.
1586 * testsuite/gas/pe/big-obj.d: Rename test to not be x64 specific.
1587 * testsuite/gas/pe/pe.exp (big-obj): Make test run on i386 as well.
1588
714e6c96
NC
15892020-04-27 Nick Clifton <nickc@redhat.com>
1590
1591 PR 25878
1592 * dwarf2dbg.c (struct file_entry): Add auto_assigned field.
1593 (assign_file_to_slot): New function. Fills in an entry in the
1594 files table.
1595 (allocate_filenum): Use new function.
1596 (allocate_filename_to_slot): Use new function. If the specified
1597 slot entry is already in use, but was chosen automatically then
1598 reassign the automatic entry.
1599
a09f656b 16002020-04-26 Hongtao Liu <hongtao.liu@intel.com
1601
1602 * config/tc-i386.c (lfence_before_ret_shl): New member.
1603 (load_insn_p): implict load for POP/POPA/POPF/XLATB, no load
1604 for Anysize insns.
1605 (insert_after_load): Issue warning for REP CMPS/SCAS.
1606 (insert_before_before): Handle iret, Handle
1607 -mlfence-before-ret=shl, Adjust operand size of or/not/shl to ret's,
1608 (md_parse_option): Change -mlfence-before-ret=[none|not|or] to
1609 -mlfence-before-ret=[none/not/or/shl/yes].
1610 Enable -mlfence-before-ret=shl when
1611 -mlfence-beofre-indirect-branch=all and no explict -mlfence-before-ret option.
1612 (md_show_usage): Ditto.
1613 * doc/c-i386.texi: Ditto.
1614 * testsuite/gas/i386/i386.exp: Add new testcases.
1615 * testsuite/gas/i386/lfence-load-b.d: New.
1616 * testsuite/gas/i386/lfence-load-b.e: New.
1617 * testsuite/gas/i386/lfence-load.d: Modified.
1618 * testsuite/gas/i386/lfence-load.e: New.
1619 * testsuite/gas/i386/lfence-load.s: Modified.
1620 * testsuite/gas/i386/lfence-ret-a.d: Modified.
1621 * testsuite/gas/i386/lfence-ret-b.d: Modified.
1622 * testsuite/gas/i386/lfence-ret-c.d: New.
1623 * testsuite/gas/i386/lfence-ret-d.d: New.
1624 * testsuite/gas/i386/lfence-ret.s: Modified.
1625 * testsuite/gas/i386/x86-64-lfence-load-b.d: New.
1626 * testsuite/gas/i386/x86-64-lfence-load.d: Modified.
1627 * testsuite/gas/i386/x86-64-lfence-load.s: Modified.
1628 * testsuite/gas/i386/x86-64-lfence-ret-a.d: Modified.
1629 * testsuite/gas/i386/x86-64-lfence-ret-b.d: Modified.
1630 * testsuite/gas/i386/x86-64-lfence-ret-c.d: New.
1631 * testsuite/gas/i386/x86-64-lfence-ret-d.d: New
1632 * testsuite/gas/i386/x86-64-lfence-ret-e.d: New.
1633 * testsuite/gas/i386/x86-64-lfence-ret.e: New.
1634 * testsuite/gas/i386/x86-64-lfence-ret.s: New.
1635
30ce8e47
MF
16362020-04-22 Max Filippov <jcmvbkbc@gmail.com>
1637
1638 PR ld/25861
1639 * config/tc-xtensa.c (md_apply_fix): Replace
1640 BFD_RELOC_XTENSA_DIFF{8,16,32} generation with
1641 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
1642 BFD_RELOC_XTENSA_NDIFF{8,16,32} generation.
1643 * testsuite/gas/xtensa/loc.d: Replace BFD_RELOC_XTENSA_DIFF16
1644 with BFD_RELOC_XTENSA_PDIFF16 in the expected output.
1645
31c89d60
AM
16462020-04-22 Alan Modra <amodra@gmail.com>
1647
1648 * config/obj-elf.c (elf_frob_symbol): Unconditionally remove
1649 symbol for ".symver .. remove".
1650 * doc/as.texi (.symver): Update.
1651 * testsuite/gas/symver/symver11.s: Make foo weak.
1652 * testsuite/gas/symver/symver11.d: Expect an error.
1653 * testsuite/gas/symver/symver7.d: Allow other random symbols.
1654
1d3eb556
L
16552020-04-21 H.J. Lu <hongjiu.lu@intel.com>
1656
1657 * testsuite/gas/symver/symver11.s: Add ".balign 8".
1658
bb2a1453
AS
16592020-04-21 Andreas Schwab <schwab@linux-m68k.org>
1660
1661 PR 25848
1662 * testsuite/gas/m68k/operands.s: Add tests for cmpi.
1663 * testsuite/gas/m68k/operands.d: Update.
1664 * testsuite/gas/m68k/op68000.d: Update for new error messages.
1665
c36876fe
TC
16662020-04-21 Tamar Christina <tamar.christina@arm.com>
1667
1668 PR binutils/24753
1669 * testsuite/gas/arm/pr24753.d: New test.
1670 * testsuite/gas/arm/pr24753.s: New test.
1671
6914be53
L
16722020-04-21 H.J. Lu <hongjiu.lu@intel.com>
1673
1674 PR gas/23840
1675 PR gas/25295
1676 * NEWS: Mention .symver extension.
1677 * config/obj-elf.c (obj_elf_find_and_add_versioned_name): New
1678 function.
1679 (obj_elf_symver): Call obj_elf_find_and_add_versioned_name to
1680 add a version name. Add local, hidden and remove visibility
1681 support.
1682 (elf_frob_symbol): Handle the list of version names. Update the
1683 original symbol to local, hidden or remove it from the symbol
1684 table.
1685 (elf_frob_file_before_adjust): Handle the list of version names.
1686 * config/obj-elf.h (elf_visibility): New.
1687 (elf_versioned_name_list): Likewise.
1688 (elf_obj_sy): Change local to bitfield. Add rename, bad_version
1689 and visibility. Change versioned_name pointer to struct
1690 elf_versioned_name_list.
1691 * doc/as.texi: Update .symver directive.
1692 * testsuite/gas/symver/symver.exp: Run all *.d tests. Add more
1693 error checking tests.
1694 * testsuite/gas/symver/symver6.d: New file.
1695 * testsuite/gas/symver/symver7.d: Likewise.
1696 * testsuite/gas/symver/symver7.s: Likewise.
1697 * testsuite/gas/symver/symver8.d: Likewise.
1698 * testsuite/gas/symver/symver8.s: Likewise.
1699 * testsuite/gas/symver/symver9.s: Likewise.
1700 * testsuite/gas/symver/symver9a.d: Likewise.
1701 * testsuite/gas/symver/symver9b.d: Likewise.
1702 * testsuite/gas/symver/symver10.s: Likewise.
1703 * testsuite/gas/symver/symver10a.d: Likewise.
1704 * testsuite/gas/symver/symver10b.d: Likewise.
1705 * testsuite/gas/symver/symver11.d: Likewise.
1706 * testsuite/gas/symver/symver11.s: Likewise.
1707 * testsuite/gas/symver/symver12.d: Likewise.
1708 * testsuite/gas/symver/symver12.s: Likewise.
1709 * testsuite/gas/symver/symver13.d: Likewise.
1710 * testsuite/gas/symver/symver13.s: Likewise.
1711 * testsuite/gas/symver/symver14.d: Likewise.
1712 * testsuite/gas/symver/symver14.l: Likewise.
1713 * testsuite/gas/symver/symver15.d: Likewise.
1714 * testsuite/gas/symver/symver15.l: Likewise.
1715 * testsuite/gas/symver/symver6.l: Removed.
1716 * testsuite/gas/symver/symver6.s: Updated.
1717
c2e5c986
SD
17182020-04-20 Sudakshina Das <sudi.das@arm.com>
1719
1720 * config/tc-aarch64.c (parse_barrier_psb): Update error messages
1721 to include TSB.
1722 * testsuite/gas/aarch64/system-2.d: Update -march and new tsb tests.
1723 * testsuite/gas/aarch64/system-2.s: Add new tsb tests.
1724 * testsuite/gas/aarch64/system.d: Update.
1725
8a6e1d1d
SD
17262020-04-20 Sudakshina Das <sudi.das@arm.com>
1727
1728 * testsuite/gas/aarch64/bti.d: Update -march option.
1729 * testsuite/gas/aarch64/illegal-bti.d: Remove.
1730 * testsuite/gas/aarch64/illegal-bti.l: Remove.
1731 * testsuite/gas/aarch64/illegal-ras-1.l: Remove esb.
1732 * testsuite/gas/aarch64/illegal-ras-1.s: Remove esb.
1733
49af2f5c
AM
17342020-04-17 Alan Modra <amodra@gmail.com>
1735
1736 * config/tc-bfin.h (TC_EQUAL_IN_INSN): Allow assignment to dot.
1737
8e4979ac
NC
17382020-04-16 Gagan Singh Sidhu <broly@mac.com>
1739 Nick Clifton <nickc@redhat.com>
1740
1741 PR 25803
1742 * config/obj-elf.c (obj_elf_type): Reject ifunc symbols on MIPS
1743 targets.
1744 * testsuite/gas/elf/elf.exp: Add MIPS targets to the list to skip
1745 for the type-2 test.
1746 * testsuite/gas/elf/type-noifunc.e: Update to allow for MIPS
1747 targets running this test.
1748
c54a9b56
DF
17492020-02-16 David Faust <david.faust@oracle.com>
1750
1751 * testsuite/gas/bpf/bpf.exp: Run jump32 tests.
1752 * testsuite/gas/bpf/jump32.s: New file.
1753 * testsuite/gas/bpf/jump32.d: Likewise.
1754
3071b197
L
17552020-04-08 H.J. Lu <hongjiu.lu@intel.com>
1756
1757 * doc/c-i386.texi: Correct -mlfence-before-indirect-branch=
1758 documentation.
1759
6a3ab923
GN
17602020-04-08 Gunther Nikl <gnikl@justmail.de>
1761
1762 * config/tc-moxie.h (MD_PCREL_FROM_SECTION): Delete define.
1763 (md_pcrel_from): Remove prototytpe.
d9f19885
GN
1764 * config/tc-m32c.h (MD_PCREL_FROM_SECTION): Delete duplicate
1765 define.
1766 (md_pcrel_from_section): Remove duplicate prototype.
9ad4cfa8
GN
1767 * tc.h (md_pcrel_from_section): Add prototype.
1768 * config/tc-aarch64.h (md_pcrel_from_section): Remove prototype.
1769 * config/tc-arc.h (md_pcrel_from_section): Likewise.
1770 * config/tc-arm.h (md_pcrel_from_section): Likewise.
1771 * config/tc-avr.h (md_pcrel_from_section): Likewise.
1772 * config/tc-bfin.h (md_pcrel_from_section): Likewise.
1773 * config/tc-bpf.h (md_pcrel_from_section): Likewise.
1774 * config/tc-csky.h (md_pcrel_from_section): Likewise.
1775 * config/tc-d10v.h (md_pcrel_from_section): Likewise.
1776 * config/tc-d30v.h (md_pcrel_from_section): Likewise.
1777 * config/tc-epiphany.h (md_pcrel_from_section): Likewise.
1778 * config/tc-fr30.h (md_pcrel_from_section): Likewise.
1779 * config/tc-frv.h (md_pcrel_from_section): Likewise.
1780 * config/tc-iq2000.h (md_pcrel_from_section): Likewise.
1781 * config/tc-lm32.h (md_pcrel_from_section): Likewise.
1782 * config/tc-m32c.h (md_pcrel_from_section): Likewise.
1783 * config/tc-m32r.h (md_pcrel_from_section): Likewise.
1784 * config/tc-mcore.h (md_pcrel_from_section): Likewise.
1785 * config/tc-mep.h (md_pcrel_from_section): Likewise.
1786 * config/tc-metag.h (md_pcrel_from_section): Likewise.
1787 * config/tc-microblaze.h (md_pcrel_from_section): Likewise.
1788 * config/tc-mmix.h (md_pcrel_from_section): Likewise.
1789 * config/tc-moxie.h (md_pcrel_from_section): Likewise.
1790 * config/tc-msp430.h (md_pcrel_from_section): Likewise.
1791 * config/tc-mt.h (md_pcrel_from_section): Likewise.
1792 * config/tc-or1k.h (md_pcrel_from_section): Likewise.
1793 * config/tc-ppc.h (md_pcrel_from_section): Likewise.
1794 * config/tc-rl78.h (md_pcrel_from_section): Likewise.
1795 * config/tc-rx.h (md_pcrel_from_section): Likewise.
1796 * config/tc-s390.h (md_pcrel_from_section): Likewise.
1797 * config/tc-sh.h (md_pcrel_from_section): Likewise.
1798 * config/tc-xc16x.h (md_pcrel_from_section): Likewise.
1799 * config/tc-xstormy16.h (md_pcrel_from_section): Likewise.
4c09b8c4
GN
1800 * config/tc-microblaze.h (md_begin, md_assemble, md_undefined_symbol,
1801 md_show_usage, md_convert_frag, md_operand, md_number_to_chars,
1802 md_estimate_size_before_relax, md_section_align, tc_gen_reloc,
1803 md_apply_fix3): Delete prototypes.
6a3ab923 1804
6e0e8b45
L
18052020-04-07 H.J. Lu <hongjiu.lu@intel.com>
1806
1807 * NEWS: Mention support for Intel SERIALIZE and TSXLDTRK
1808 instructions.
1809
266803a2
L
18102020-04-07 H.J. Lu <hongjiu.lu@intel.com>
1811
1812 * doc/c-z80.texi: Fix @xref warnings.
1813
bb651e8b
CL
18142020-04-07 Lili Cui <lili.cui@intel.com>
1815
1816 * config/tc-i386.c (cpu_arch): Add .TSXLDTRK.
1817 (cpu_noarch): Likewise.
1818 * doc/c-i386.texi: Document TSXLDTRK.
1819 * testsuite/gas/i386/i386.exp: Run TSXLDTRK tests.
1820 * testsuite/gas/i386/tsxldtrk.d: Likewise.
1821 * testsuite/gas/i386/tsxldtrk.s: Likewise.
1822 * testsuite/gas/i386/x86-64-tsxldtrk.d: Likewise.
1823
4b27d27c
L
18242020-04-02 Lili Cui <lili.cui@intel.com>
1825
1826 * config/tc-i386.c (cpu_arch): Add .serialize.
1827 (cpu_noarch): Likewise.
1828 * doc/c-i386.texi: Document serialize.
1829 * testsuite/gas/i386/i386.exp: Run serialize tests
1830 * testsuite/gas/i386/serialize.d: Likewise.
1831 * testsuite/gas/i386/x86-64-serialize.d: Likewise.
1832 * testsuite/gas/i386/serialize.s: Likewise.
1833
bb897477
RO
18342020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1835
1836 * testsuite/gas/elf/section12a.d: Use notarget instead of xfail.
1837 * testsuite/gas/elf/section12b.d: Likewise.
1838 * testsuite/gas/elf/section16a.d: Likewise.
1839 * testsuite/gas/elf/section16b.d: Likewise.
1840
59e28a97
GN
18412020-04-02 Gunther Nikl <gnikl@justmail.de>
1842
1843 * config/tc-m68k.c (m68k_ip): Fix range check for index register
1844 with a suppressed address register.
1845
efc3a950
L
18462020-04-01 H.J. Lu <hongjiu.lu@intel.com>
1847
1848 PR gas/25756
1849 * config/tc-i386.h (TC_FORCE_RELOCATION_ABS): New.
1850 * testsuite/gas/i386/localpic.s: Add a test for relocation
1851 against local absolute symbol.
1852 * testsuite/gas/i386/x86-64-localpic.s: Likewise.
1853 * testsuite/gas/i386/localpic.d: Updated.
1854 * testsuite/gas/i386/x86-64-localpic.d: Likewise.
1855 * testsuite/gas/i386/ilp32/x86-64-localpic.d: Likewise.
1856
15d47c3a
RO
18572020-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1858
1859 PR gas/25732
1860 * testsuite/gas/i386/solaris/x86-64-branch-2.d: New file.
1861 * testsuite/gas/i386/solaris/x86-64-branch-3.d: New file.
1862 * testsuite/gas/i386/solaris/x86-64-jump.d: Incorporate changes to
1863 testsuite/gas/i386/x86-64-jump.d.
1864 * gas/testsuite/gas/i386/solaris/x86-64-mpx-branch-1.d:
1865 Incorporate changes to
1866 gas/testsuite/gas/i386/x86-64-mpx-branch-1.d.
1867 * testsuite/gas/i386/solaris/x86-64-mpx-branch-2.d : Incorporate
1868 changes to testsuite/gas/i386/x86-64-mpx-branch-2.d.
1869 * testsuite/gas/i386/x86-64-branch-2.d: Skip on *-*-solaris*.
1870 * testsuite/gas/i386/x86-64-branch-3.d: Likewise.
1871
876678f0
MR
18722020-03-31 Maciej W. Rozycki <macro@linux-mips.org>
1873
1874 PR 25611
1875 PR 25614
1876 * dwarf2dbg.c: Do not include "bignum.h".
1877
d1a89da5
NC
18782020-03-30 Nelson Chu <nelson.chu@sifive.com>
1879
1880 * testsuite/gas/riscv/alias-csr.d: Move this to priv-reg-pseudo.
1881 * testsuite/gas/riscv/alias-csr.s: Likewise.
1882 * testsuite/gas/riscv/no-aliases-csr.d: Move this
1883 to priv-reg-pseudo-noalias.
1884 * testsuite/gas/riscv/bad-csr.d: Rename to priv-reg-fail-nonexistent.
1885 * testsuite/gas/riscv/bad-csr.l: Likewise.
1886 * testsuite/gas/riscv/bad-csr.s: Likewise.
1887 * testsuite/gas/riscv/satp.d: Removed. Already included in priv-reg.
1888 * testsuite/gas/riscv/satp.s: Likewise.
1889 * testsuite/gas/riscv/priv-reg-pseudo.d: New testcase for all pseudo
1890 csr instruction, including alias-csr testcase.
1891 * testsuite/gas/riscv/priv-reg-pseudo.s: Likewise.
1892 * testsuite/gas/riscv/priv-reg-pseudo-noalias.d: New testcase for all
1893 pseudo instruction with objdump -Mno-aliases.
1894 * testsuite/gas/riscv/priv-reg-fail-nonexistent.d: New testcase.
1895 * testsuite/gas/riscv/priv-reg-fail-nonexistent.l: Likewise.
1896 * testsuite/gas/riscv/priv-reg-fail-nonexistent.s: Likewise.
1897 * testsuite/gas/riscv/priv-reg.d: Update CSR to 1.11.
1898 * testsuite/gas/riscv/priv-reg.s: Likewise.
1899 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
1900 * testsuite/gas/riscv/csr-dw-regnums.d: Likewise.
1901 * testsuite/gas/riscv/csr-dw-regnums.s: Likewise.
1902
b7780957
J
19032020-03-25 J.W. Jagersma <jwjagersma@gmail.com>
1904
1905 * config/obj-coff.c (obj_coff_section): Set the bss flag on
1906 sections with the "b" attribute.
1907
d1023b5d
AM
19082020-03-22 Alan Modra <amodra@gmail.com>
1909
1910 * testsuite/gas/s12z/truncated.d: Update expected output.
1911
0d832e7f
SB
19122020-03-17 Sergey Belyashov <sergey.belyashov@gmail.com>
1913
1914 PR 25690
1915 * config/tc-z80.c (md_pseudo_table): Add xdef anf xref pseudo ops.
1916 * doc/c-z80.texi: Update documentation.
1917
327ef784
NC
19182020-03-17 Sergey Belyashov <sergey.belyashov@gmail.com>
1919
1920 PR 25641
1921 PR 25668
1922 PR 25633
1923 Fix disassembling ED+A4/AC/B4/BC opcodes.
1924 Fix assembling lines containing colonless label and instruction
1925 with first operand inside parentheses.
1926 Fix registration of unsupported by target CPU registers.
1927 * config/tc-z80.c: See above.
1928 * config/tc-z80.h: See above.
1929 * testsuite/gas/z80/colonless.d: Update test.
1930 * testsuite/gas/z80/colonless.s: Likewise.
1931 * testsuite/gas/z80/ez80_adl_all.d: Likewise.
1932 * testsuite/gas/z80/ez80_unsup_regs.d: Likewise.
1933 * testsuite/gas/z80/ez80_z80_all.d: Likewise.
1934 * testsuite/gas/z80/gbz80_unsup_regs.d: Likewise.
1935 * testsuite/gas/z80/r800_unsup_regs.d: Likewise.
1936 * testsuite/gas/z80/unsup_regs.s: Likewise.
1937 * testsuite/gas/z80/z180_unsup_regs.d: Likewise.
1938 * testsuite/gas/z80/z80.exp: Likewise.
1939 * testsuite/gas/z80/z80_strict_unsup_regs.d: Likewise.
1940 * testsuite/gas/z80/z80_unsup_regs.d: Likewise.
1941 * testsuite/gas/z80/z80n_unsup_regs.d: Likewise.
1942
66d1f7cc
AV
19432020-03-13 Andre Vieira <andre.simoesdiasvieira@arm.com>
1944
1945 PR 25660
1946 * config/tc-arm.c (operand_parse_code): Add OP_RNSDMQR and OP_oRNSDMQ.
1947 (parse_operands): Handle new operand codes.
1948 (do_neon_dyadic_long): Make shape check accept the scalar variants.
1949 (asm_opcode_insns): Fix operand codes for vaddl and vsubl.
1950 * testsuite/gas/arm/mve-vaddsub-it.s: New test.
1951 * testsuite/gas/arm/mve-vaddsub-it.d: New test.
1952 * testsuite/gas/arm/mve-vaddsub-it-bad.s: New test.
1953 * testsuite/gas/arm/mve-vaddsub-it-bad.l: New test.
1954 * testsuite/gas/arm/mve-vaddsub-it-bad.d: New test.
1955 * testsuite/gas/arm/nomve-vaddsub-it.d: New test.
1956
9e8f1c90
L
19572020-03-11 H.J. Lu <hongjiu.lu@intel.com>
1958
1959 * NEWS: Mention x86 assembler options for CVE-2020-0551.
1960
97b4a8f7
L
19612020-03-11 H.J. Lu <hongjiu.lu@intel.com>
1962
1963 * testsuite/gas/i386/i386.exp: Run new tests.
1964 * testsuite/gas/i386/lfence-byte.d: New file.
1965 * testsuite/gas/i386/lfence-byte.e: Likewise.
1966 * testsuite/gas/i386/lfence-byte.s: Likewise.
1967 * testsuite/gas/i386/lfence-indbr-a.d: Likewise.
1968 * testsuite/gas/i386/lfence-indbr-b.d: Likewise.
1969 * testsuite/gas/i386/lfence-indbr-c.d: Likewise.
1970 * testsuite/gas/i386/lfence-indbr.e: Likewise.
1971 * testsuite/gas/i386/lfence-indbr.s: Likewise.
1972 * testsuite/gas/i386/lfence-load.d: Likewise.
1973 * testsuite/gas/i386/lfence-load.s: Likewise.
1974 * testsuite/gas/i386/lfence-ret-a.d: Likewise.
1975 * testsuite/gas/i386/lfence-ret-b.d: Likewise.
1976 * testsuite/gas/i386/lfence-ret.s: Likewise.
1977 * testsuite/gas/i386/x86-64-lfence-byte.d: Likewise.
1978 * testsuite/gas/i386/x86-64-lfence-byte.e: Likewise.
1979 * testsuite/gas/i386/x86-64-lfence-byte.s: Likewise.
1980 * testsuite/gas/i386/x86-64-lfence-indbr-a.d: Likewise.
1981 * testsuite/gas/i386/x86-64-lfence-indbr-b.d: Likewise.
1982 * testsuite/gas/i386/x86-64-lfence-indbr-c.d: Likewise.
1983 * testsuite/gas/i386/x86-64-lfence-indbr.e: Likewise.
1984 * testsuite/gas/i386/x86-64-lfence-indbr.s: Likewise.
1985 * testsuite/gas/i386/x86-64-lfence-load.d: Likewise.
1986 * testsuite/gas/i386/x86-64-lfence-load.s: Likewise.
1987 * testsuite/gas/i386/x86-64-lfence-ret-a.d: Likewise.
1988 * testsuite/gas/i386/x86-64-lfence-ret-b.d: Likewise.
1989
ae531041
L
19902020-03-11 H.J. Lu <hongjiu.lu@intel.com>
1991
1992 * config/tc-i386.c (lfence_after_load): New.
1993 (lfence_before_indirect_branch_kind): New.
1994 (lfence_before_indirect_branch): New.
1995 (lfence_before_ret_kind): New.
1996 (lfence_before_ret): New.
1997 (last_insn): New.
1998 (load_insn_p): New.
1999 (insert_lfence_after): New.
2000 (insert_lfence_before): New.
2001 (md_assemble): Call insert_lfence_before and insert_lfence_after.
2002 Set last_insn.
2003 (OPTION_MLFENCE_AFTER_LOAD): New.
2004 (OPTION_MLFENCE_BEFORE_INDIRECT_BRANCH): New.
2005 (OPTION_MLFENCE_BEFORE_RET): New.
2006 (md_longopts): Add -mlfence-after-load=,
2007 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
2008 (md_parse_option): Handle -mlfence-after-load=,
2009 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
2010 (md_show_usage): Display -mlfence-after-load=,
2011 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
2012 (i386_cons_align): New.
2013 * config/tc-i386.h (i386_cons_align): New.
2014 (md_cons_align): New.
2015 * doc/c-i386.texi: Document -mlfence-after-load=,
2016 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
2017
5496f3c6
NC
20182020-03-11 Nick Clifton <nickc@redhat.com>
2019
2020 PR 25611
2021 PR 25614
2022 * dwarf2dbg.c (DWARF2_FILE_TIME_NAME): Default to -1.
2023 (DWARF2_FILE_SIZE_NAME): Default to -1.
2024 (DWARF2_LINE_VERSION): Default to the current dwarf level or 3,
2025 whichever is higher.
2026 (DWARF2_LINE_MAX_OPS_PER_INSN): Provide a default value of 1.
2027 (NUM_MD5_BYTES): Define.
2028 (struct file entry): Add md5 field.
2029 (get_filenum): Delete and replace with...
2030 (get_basename): New function.
2031 (get_directory_table_entry): New function.
2032 (allocate_filenum): New function.
2033 (allocate_filename_to_slot): New function.
2034 (dwarf2_where): Use new functions.
2035 (dwarf2_directive_filename): Add support for extended .file
2036 pseudo-op.
2037 (dwarf2_directive_loc): Allow the use of file number zero with
2038 DWARF 5 or higher.
2039 (out_file_list): Rename to...
2040 (out_dir_and_file_list): Add DWARF 5 support.
2041 (out_debug_line): Emit extra values into the section header for
2042 DWARF 5.
2043 (out_debug_str): Allow for file 0 to be used with DWARF 5.
2044 * doc/as.texi (.file): Update the description of this pseudo-op.
2045 * testsuite/gas/elf-dwarf-5-file0.s: Add more lines.
2046 * testsuite/gas/elf-dwarf-5-file0.d: Update expected dump output.
2047 * testsuite/gas/lns/lns-diag-1.l: Update expected error message.
2048 * NEWS: Mention the new feature.
2049
a6a1f5e0
AM
20502020-03-10 Alan Modra <amodra@gmail.com>
2051
2052 * config/tc-csky.c (get_operand_value): Rewrite 1 << 31 expressions
2053 to avoid signed overflow.
2054 * config/tc-mcore.c (md_assemble): Likewise.
2055 * config/tc-mips.c (gpr_read_mask, gpr_write_mask): Likewise.
2056 * config/tc-nds32.c (SET_ADDEND): Likewise.
2057 * config/tc-nios2.c (nios2_assemble_arg_R): Likewise.
2058
3fabc179
JB
20592020-03-09 Jan Beulich <jbeulich@suse.com>
2060
2061 * testsuite/gas/i386/avx.s: Add long-form VCMP[PS][SD] pseudos.
2062 * testsuite/gas/i386/avx.d, testsuite/gas/i386/avx-16bit.d,
2063 testsuite/gas/i386/avx-intel.d: Adjust expectations.
2064
190e5fc8
AM
20652020-03-07 Alan Modra <amodra@gmail.com>
2066
2067 * testsuite/gas/elf/dwarf-5-file0.s: Don't start directives in
2068 first column.
2069
84d9ab33
NC
20702020-03-06 Nick Clifton <nickc@redhat.com>
2071
2072 PR 25614
2073 * dwarf2dbg.c (dwarf2_directive_filename): Allow a file number of
2074 0 if the dwarf_level is 5 or more. Complain if a filename follows
2075 a file 0.
2076 * testsuite/gas/elf/dwarf-5-file0.s: New test.
2077 * testsuite/gas/elf/dwarf-5-file0.d: New test driver.
2078 * testsuite/gas/elf/elf.exp: Run the new test.
2079
2080 PR 25612
2081 * config/tc-ia64.h (DWARF2_VERISION): Fix typo.
2082 * doc/as.texi: Fix another typo.
2083
31bf1864
NC
20842020-03-06 Nick Clifton <nickc@redhat.com>
2085
2086 PR 25612
2087 * as.c (dwarf_level): Define.
2088 (show_usage): Add --gdwarf-3, --gdwarf-4 and --gdwarf-5.
2089 (parse_args): Add support for the new options.
2090 as.h (dwarf_level): Prototype.
2091 * dwarf2dbg.c (DWARF2_VERSION): Use dwarf_level as default version
2092 value.
2093 * config/tc-ia64.h (DWARF2_VERISION): Update definition.
2094 (DWARF2_LINE_VERSION): Remove definition.
2095 * doc/as.texi: Document the new options.
2096
3c968de5
NC
20972020-03-06 Nick Clifton <nickc@redhat.com>
2098
2099 PR 25572
2100 * as.c (main): Allow matching input and outputs when they are
2101 not regular files.
2102
bc49bfd8
JB
21032020-03-06 Jan Beulich <jbeulich@suse.com>
2104
2105 * config/tc-i386.c (match_mem_size): Generalize broadcast special
2106 casing.
2107 (check_VecOperands): Zap xmmword/ymmword/zmmword when more than
2108 one of byte/word/dword/qword is set alongside a SIMD register in
2109 a template's operand.
2110
4873e243
JB
21112020-03-06 Jan Beulich <jbeulich@suse.com>
2112
2113 * config/tc-i386.c (match_template): Extend code in logic
2114 rejecting certain suffixes in certain modes to also cover mask
2115 register use and VecSIB. Drop special casing of broadcast. Skip
2116 immediates in the check.
2117
e365e234
JB
21182020-03-06 Jan Beulich <jbeulich@suse.com>
2119
2120 * config/tc-i386.c (match_template): Fold duplicate code in
2121 logic rejecting certain suffixes in certain modes. Drop
2122 pointless "else".
2123
4ed21b58
JB
21242020-03-06 Jan Beulich <jbeulich@suse.com>
2125
2126 * config/tc-i386.c (process_suffix): Exlucde !vexw insns
2127 alongside !norex64 ones.
2128 * testsuite/gas/i386/x86-64-avx512bw.s: Test VPEXTR* and VPINSR*
2129 with both 32- and 64-bit GPR operands.
2130 * testsuite/gas/i386/x86-64-avx512f.s: Test VEXTRACTPS with both
2131 32- and 64-bit GPR operands.
2132 * testsuite/gas/i386/x86-64-avx512bw-intel.d,
2133 testsuite/gas/i386/x86-64-avx512bw.d,
2134 testsuite/gas/i386/x86-64-avx512f-intel.d,
2135 testsuite/gas/i386/x86-64-avx512f.d: Adjust expectations.
2136
643bb870
JB
21372020-03-06 Jan Beulich <jbeulich@suse.com>
2138
2139 * config/tc-i386.c (md_assemble): Drop use of rex64.
2140 (process_suffix): For REX.W for 64-bit CRC32.
2141
a23b33b3
JB
21422020-03-06 Jan Beulich <jbeulich@suse.com>
2143
2144 * config/tc-i386.c (i386_addressing_mode): For 32-bit
2145 addressing for MPX insns without base/index.
2146 * testsuite/gas/i386/mpx-16bit.s,
2147 * testsuite/gas/i386/mpx-16bit.d: New.
2148 * testsuite/gas/i386/i386.exp: Run new test.
2149
a0497384
JB
21502020-03-06 Jan Beulich <jbeulich@suse.com>
2151
2152 * testsuite/gas/i386/adx.s, testsuite/gas/i386/cet.s,
2153 testsuite/gas/i386/ept.s, testsuite/gas/i386/fsgs.s,
2154 testsuite/gas/i386/invpcid.s, testsuite/gas/i386/movdir.s,
2155 testsuite/gas/i386/ptwrite.s, testsuite/gas/i386/vmx.s,
2156 * testsuite/gas/i386/code16.s: Add CR, DR, and TR access cases
2157 as well as a BSWAP one.
2158 * testsuite/gas/i386/rdpid.s: Add 16-bit case.
2159 * testsuite/gas/i386/sse2-16bit.s: Cover more insns.
2160 * testsuite/gas/i386/adx-intel.d, testsuite/gas/i386/adx.d,
2161 testsuite/gas/i386/cet-intel.d, testsuite/gas/i386/cet.d,
2162 testsuite/gas/i386/code16.d, testsuite/gas/i386/ept-intel.d,
2163 testsuite/gas/i386/ept.d, testsuite/gas/i386/fsgs-intel.d,
2164 testsuite/gas/i386/fsgs.d, testsuite/gas/i386/invpcid-intel.d,
2165 testsuite/gas/i386/invpcid.d, testsuite/gas/i386/movdir-intel.d,
2166 testsuite/gas/i386/movdir.d, testsuite/gas/i386/ptwrite-intel.d,
2167 testsuite/gas/i386/ptwrite.d, testsuite/gas/i386/rdpid-intel.d,
2168 testsuite/gas/i386/rdpid.d, testsuite/gas/i386/sse2-16bit.d,
2169 testsuite/gas/i386/vmx.d: Adjust expectations.
2170
b630c145
JB
21712020-03-06 Jan Beulich <jbeulich@suse.com>
2172
2173 * config/tc-i386.c (md_assemble): Also exclude tpause and umwait
2174 from having their operands swapped.
2175 * testsuite/gas/i386/waitpkg.s,
2176 testsuite/gas/i386/x86-64-waitpkg.s: Add tpause and umwait
2177 3-operand cases as well as testing of 16-bit code generation.
2178 * testsuite/gas/i386/waitpkg.d,
2179 testsuite/gas/i386/waitpkg-intel.d,
2180 testsuite/gas/i386/x86-64-waitpkg.d,
2181 testsuite/gas/i386/x86-64-waitpkg-intel.d: Adjust expectations.
2182
de48783e
NC
21832020-03-04 Nelson Chu <nelson.chu@sifive.com>
2184
dee35d02
NC
2185 * config/tc-riscv.c (percent_op_utype): Support the modifier
2186 %got_pcrel_hi.
2187 * doc/c-riscv.texi: Add documentation.
2188 * testsuite/gas/riscv/no-relax-reloc.d: Add test case for the new
2189 modifier %got_pcrel_hi.
2190 * testsuite/gas/riscv/no-relax-reloc.s: Likewise.
2191 * testsuite/gas/riscv/relax-reloc.d: Likewise.
2192 * testsuite/gas/riscv/relax-reloc.s: Likewise.
2193
de48783e
NC
2194 * doc/c-riscv.texi (relocation modifiers): Add documentation.
2195 (RISC-V-Formats): Update the section name from "Instruction Formats"
2196 to "RISC-V Instruction Formats".
2197
749479c8
AO
21982020-03-04 Alexandre Oliva <oliva@adacore.com>
2199
2200 * config/tc-arm.c (md_apply_fix): Warn if a PC-relative load is
2201 detected in a section which does not have at least 4 byte
2202 alignment.
2203 * testsuite/gas/arm/armv8-ar-it-bad.s: Add alignment directive.
2204 * testsuite/gas/arm/ldr-t.s: Likewise.
2205 * testsuite/gas/arm/sp-pc-usage-t.s: Likewise.
2206 * testsuite/gas/arm/sp-pc-usage-t.d: Finish test at end of
2207 disassembly, ignoring any NOPs that may have been inserted because
2208 of section alignment.
2209 * testsuite/gas/arm/ldr-t.d: Likewise.
2210
a847e322
JB
22112020-03-04 Jan Beulich <jbeulich@suse.com>
2212
2213 * config/tc-i386.c (cpu_arch): Add .sev_es entry.
2214 * doc/c-i386.texi: Mention sev_es.
2215 * testsuite/gas/i386/arch-13.s: Add SEV-ES case.
2216 * testsuite/gas/i386/arch-13.d: Extend -march=. Adjust
2217 expectations.
2218 * testsuite/gas/i386/arch-13-znver1.d,
2219 testsuite/gas/i386/arch-13-znver2.d: Extend -march=.
2220
3cd7f3e3
L
22212020-03-03 H.J. Lu <hongjiu.lu@intel.com>
2222
2223 * config/tc-i386.c (match_template): Replace ignoresize and
2224 defaultsize with mnemonicsize.
2225 (process_suffix): Likewise.
2226
b8ba1385
SB
22272020-03-03 Sergey Belyashov <sergey.belyashov@gmail.com>
2228
2229 PR 25627
2230 * config/tc-z80.c (emit_ld_rr_m): Fix invalid compilation of
2231 instruction LD IY,(HL).
2232 * testsuite/gas/z80/ez80_adl_all.d: Update expected disassembly.
2233 * testsuite/gas/z80/ez80_adl_all.s: Add tests of the instruction.
2234 * testsuite/gas/z80/ez80_z80_all.d: Update expected disassembly.
2235 * testsuite/gas/z80/ez80_z80_all.s: Add tests of the instruction.
2236
10d97a0f
L
22372020-03-03 H.J. Lu <hongjiu.lu@intel.com>
2238
2239 PR gas/25622
2240 * testsuite/gas/i386/i386.exp: Run x86-64-default-suffix and
2241 x86-64-default-suffix-avx.
2242 * testsuite/gas/i386/noreg64.s: Remove cvtsi2sd, cvtsi2ss,
2243 vcvtsi2sd, vcvtsi2ss, vcvtusi2sd and vcvtusi2ss entries.
2244 * testsuite/gas/i386/noreg64.d: Updated.
2245 * testsuite/gas/i386/noreg64.l: Likewise.
2246 * testsuite/gas/i386/x86-64-default-suffix-avx.d: New file.
2247 * testsuite/gas/i386/x86-64-default-suffix.d: Likewise.
2248 * testsuite/gas/i386/x86-64-default-suffix.s: Likewise.
2249
8326546e
SB
22502020-03-03 Sergey Belyashov <sergey.belyashov@gmail.com>
2251
2252 PR 25604
2253 * config/tc-z80.c (contains_register): Prevent an illegal memory
2254 access when checking an expression for a register name.
2255
e3e896e6
AM
22562020-03-03 Alan Modra <amodra@gmail.com>
2257
2258 * config/obj-coff.h: Remove vestiges of coff-m68k and pe-mips
2259 support.
2260
a4dd6c97
AM
22612020-03-02 Alan Modra <amodra@gmail.com>
2262
2263 * config/tc-m32r.c (md_begin): Set SEC_SMALL_DATA on .scommon section.
2264 * config/tc-mips.c (s_change_sec): Set SEC_SMALL_DATA for .sdata
2265 and .sbss sections.
2266 * config/tc-score.c: Delete !BFD_ASSEMBLER code throughout.
2267 (s3_s_change_sec): Set SEC_SMALL_DATA for .sbss section.
2268 (s3_s_score_lcomm): Likewise.
2269 * config/tc-score7.c: Similarly.
2270 * read.c (bss_alloc): Set SEC_SMALL_DATA for .sbss section.
2271
dec7b24b
YS
22722020-02-28 YunQiang Su <syq@debian.org>
2273
2274 PR gas/25539
2275 * config/tc-mips.c (fix_loongson3_llsc): Compare label value
2276 to handle multi-labels.
2277 (has_label_name): New.
2278
cceb53b8
MM
22792020-02-26 Matthew Malcomson <matthew.malcomson@arm.com>
2280
2281 * config/tc-arm.c (enum pred_instruction_type): Remove
2282 NEUTRAL_IT_NO_VPT_INSN predication type.
2283 (cxn_handle_predication): Modify to require condition suffixes.
2284 (handle_pred_state): Remove NEUTRAL_IT_NO_VPT_INSN cases.
2285 * testsuite/gas/arm/cde-scalar.s: Update test.
2286 * testsuite/gas/arm/cde-warnings.l: Update test.
2287 * testsuite/gas/arm/cde-warnings.s: Update test.
2288
da3ec71f
AM
22892020-02-26 Alan Modra <amodra@gmail.com>
2290
2291 * config/tc-arm.c (reg_expected_msgs[REG_TYPE_RNB]): Don't use
2292 N_() on empty string.
2293
42135cad
AM
22942020-02-26 Alan Modra <amodra@gmail.com>
2295
2296 * read.c (read_a_source_file): Call strncpy with length one
2297 less than size of original_case_string.
2298
dc1e8a47
AM
22992020-02-26 Alan Modra <amodra@gmail.com>
2300
2301 * config/obj-elf.c: Indent labels correctly.
2302 * config/obj-macho.c: Likewise.
2303 * config/tc-aarch64.c: Likewise.
2304 * config/tc-alpha.c: Likewise.
2305 * config/tc-arm.c: Likewise.
2306 * config/tc-cr16.c: Likewise.
2307 * config/tc-crx.c: Likewise.
2308 * config/tc-frv.c: Likewise.
2309 * config/tc-i386-intel.c: Likewise.
2310 * config/tc-i386.c: Likewise.
2311 * config/tc-ia64.c: Likewise.
2312 * config/tc-mn10200.c: Likewise.
2313 * config/tc-mn10300.c: Likewise.
2314 * config/tc-nds32.c: Likewise.
2315 * config/tc-riscv.c: Likewise.
2316 * config/tc-s12z.c: Likewise.
2317 * config/tc-xtensa.c: Likewise.
2318 * config/tc-z80.c: Likewise.
2319 * read.c: Likewise.
2320 * symbols.c: Likewise.
2321 * write.c: Likewise.
2322
bd0cf5a6
NC
23232020-02-20 Nelson Chu <nelson.chu@sifive.com>
2324
54b2aec1
NC
2325 * config/tc-riscv.c (riscv_ip): New boolean insn_with_csr to indicate
2326 we are assembling instruction with CSR. Call riscv_csr_read_only_check
2327 after parsing all arguments.
2328 (enum csr_insn_type): New enum is used to classify the CSR instruction.
2329 (riscv_csr_insn_type, riscv_csr_read_only_check): New functions. These
2330 are used to check if we write a read-only CSR by the CSR instruction.
2331 * testsuite/gas/riscv/priv-reg-fail-read-only-01.s: New testcase. Test
2332 all CSR for the read-only CSR checking.
2333 * testsuite/gas/riscv/priv-reg-fail-read-only-01.d: Likewise.
2334 * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
2335 * testsuite/gas/riscv/priv-reg-fail-read-only-02.s: New testcase. Test
2336 all CSR instructions for the read-only CSR checking.
2337 * testsuite/gas/riscv/priv-reg-fail-read-only-02.d: Likewise.
2338 * testsuite/gas/riscv/priv-reg-fail-read-only-02.l: Likewise.
2339
2ca89224
NC
2340 * config/tc-riscv.c (struct riscv_set_options): New field csr_check.
2341 (riscv_opts): Initialize it.
2342 (reg_lookup_internal): Check the `riscv_opts.csr_check`
2343 before doing the CSR checking.
2344 (enum options): Add OPTION_CSR_CHECK and OPTION_NO_CSR_CHECK.
2345 (md_longopts): Add mcsr-check and mno-csr-check.
2346 (md_parse_option): Handle new enum option values.
2347 (s_riscv_option): Handle new long options.
2348 * doc/c-riscv.texi: Add description for the new .option and assembler
2349 options.
2350 * testsuite/gas/riscv/priv-reg-fail-fext.d: Add `-mcsr-check` to enable
2351 the CSR checking.
2352 * testsuite/gas/riscv/priv-reg-fail-rv32-only.d: Likewise.
2353
bd0cf5a6
NC
2354 * config/tc-riscv.c (csr_extra_hash): New.
2355 (enum riscv_csr_class): New enum. Used to decide
2356 whether or not this CSR is legal in the current ISA string.
2357 (struct riscv_csr_extra): New structure to hold all extra information
2358 of CSR.
2359 (riscv_init_csr_hashes): New. According to the DECLARE_CSR and
2360 DECLARE_CSR_ALIAS, insert CSR extra information into csr_extra_hash.
2361 Call hash_reg_name to insert CSR address into reg_names_hash.
2362 (reg_csr_lookup_internal, riscv_csr_class_check): New functions.
2363 Decide whether the CSR is valid according to the csr_extra_hash.
2364 (reg_lookup_internal): Call reg_csr_lookup_internal for CSRs.
2365 (init_opcode_hash): Update 'if (hash_error != NULL)' as hash_error is
2366 not a boolean. This is same as riscv_init_csr_hash, so keep the
2367 consistent usage.
2368 (md_begin): Call riscv_init_csr_hashes for each DECLARE_CSR.
2369 * testsuite/gas/riscv/csr-dw-regnums.d: Add -march=rv32if option.
2370 * testsuite/gas/riscv/priv-reg.d: Add f-ext by -march option.
2371 * testsuite/gas/riscv/priv-reg-fail-fext.d: New testcase. The source
2372 file is `priv-reg.s`, and the ISA is rv32i without f-ext, so the
2373 f-ext CSR are not allowed.
2374 * testsuite/gas/riscv/priv-reg-fail-fext.l: Likewise.
2375 * testsuite/gas/riscv/priv-reg-fail-rv32-only.d: New testcase. The
2376 source file is `priv-reg.s`, and the ISA is rv64if, so the
2377 rv32-only CSR are not allowed.
2378 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
2379
10a95fcc
AM
23802020-02-21 Alan Modra <amodra@gmail.com>
2381
2382 * config/tc-pdp11.c (md_apply_fix): Handle BFD_RELOC_32.
2383 (tc_gen_reloc): Only give a BAD_CASE assertion on pcrel relocs.
2384
dda2980f
AM
23852020-02-21 Alan Modra <amodra@gmail.com>
2386
2387 PR 25569
2388 * config/obj-aout.c (obj_aout_frob_file_before_fix): Don't loop
2389 on section size adjustment, instead perform another write if
2390 exec header size is larger than section size.
2391
bd3380bc
NC
23922020-02-19 Nelson Chu <nelson.chu@sifive.com>
2393
2394 * doc/c-riscv.texi: Add the doc entries for -march-attr/
2395 -mno-arch-attr command line options.
2396
fa164239
JW
23972020-02-19 Nelson Chu <nelson.chu@sifive.com>
2398
2399 * testsuite/gas/riscv/c-add-addi.d: New testcase.
2400 * testsuite/gas/riscv/c-add-addi.s: Likewise.
2401
fcaaac0a
SB
24022020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
2403
2404 PR 25576
2405 * config/tc-z80.c (md_parse_option): Do not use an underscore
2406 prefix for local labels in SDCC compatability mode.
2407 (z80_start_line_hook): Remove SDCC dollar label support.
2408 * testsuite/gas/z80/sdcc.d: Update expected disassembly.
2409 * testsuite/gas/z80/sdcc.s: Likewise.
2410
24112020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
2412
2413 PR 25517
2414 * config/tc-z80.c: Add -march option.
2415 * doc/as.texi: Update Z80 documentation.
2416 * doc/c-z80.texi: Likewise.
2417 * testsuite/gas/z80/ez80_adl_all.d: Update command line.
2418 * testsuite/gas/z80/ez80_adl_suf.d: Likewise.
2419 * testsuite/gas/z80/ez80_pref_dis.d: Likewise.
2420 * testsuite/gas/z80/ez80_z80_all.d: Likewise.
2421 * testsuite/gas/z80/ez80_z80_suf.d: Likewise.
2422 * testsuite/gas/z80/gbz80_all.d: Likewise.
2423 * testsuite/gas/z80/r800_extra.d: Likewise.
2424 * testsuite/gas/z80/r800_ii8.d: Likewise.
2425 * testsuite/gas/z80/r800_z80_doc.d: Likewise.
2426 * testsuite/gas/z80/sdcc.d: Likewise.
2427 * testsuite/gas/z80/z180.d: Likewise.
2428 * testsuite/gas/z80/z180_z80_doc.d: Likewise.
2429 * testsuite/gas/z80/z80_doc.d: Likewise.
2430 * testsuite/gas/z80/z80_ii8.d: Likewise.
2431 * testsuite/gas/z80/z80_in_f_c.d: Likewise.
2432 * testsuite/gas/z80/z80_op_ii_ld.d: Likewise.
2433 * testsuite/gas/z80/z80_out_c_0.d: Likewise.
2434 * testsuite/gas/z80/z80_sli.d: Likewise.
2435 * testsuite/gas/z80/z80n_all.d: Likewise.
2436 * testsuite/gas/z80/z80n_reloc.d: Likewise.
2437
a7e12755
L
24382020-02-19 H.J. Lu <hongjiu.lu@intel.com>
2439
2440 * config/tc-i386.c (output_insn): Mark cvtpi2ps and cvtpi2pd
2441 with GNU_PROPERTY_X86_FEATURE_2_MMX.
2442 * testsuite/gas/i386/i386.exp: Run property-3 and
2443 x86-64-property-3.
2444 * testsuite/gas/i386/property-3.d: New file.
2445 * testsuite/gas/i386/property-3.s: Likewise.
2446 * testsuite/gas/i386/x86-64-property-3.d: Likewise.
2447
272a84b1
L
24482020-02-17 H.J. Lu <hongjiu.lu@intel.com>
2449
2450 * config/tc-i386.c (cpu_arch): Add .popcnt.
2451 * doc/c-i386.texi: Remove abm and .abm. Add popcnt and .popcnt.
2452 Add a tab before @samp{.sse4a}.
2453
c8f8eebc
JB
24542020-02-17 Jan Beulich <jbeulich@suse.com>
2455
2456 * config/tc-i386.c (process_suffix): Don't try to guess a suffix
2457 for AddrPrefixOpReg templates. Combine the two pieces of
2458 addrprefixopreg handling. Reject 16-bit address reg in 64-bit
2459 mode.
2460
eedb0f2c
JB
24612020-02-17 Jan Beulich <jbeulich@suse.com>
2462
2463 PR gas/14439
2464 * config/tc-i386.c (md_assemble): Also suppress operand
2465 swapping for MONITOR{,X} and MWAIT{,X}.
2466 * testsuite/gas/i386/sse3.s, testsuite/gas/i386/x86-64-sse3.s:
2467 Add Intel syntax monitor/mwait tests.
2468 * testsuite/gas/i386/sse3.d, testsuite/gas/i386/x86-64-sse3.d:
2469 Adjust expectations.
2470 *testsuite/gas/i386/sse3-intel.d,
2471 testsuite/gas/i386/x86-64-sse3-intel.d: New.
2472 * testsuite/gas/i386/i386.exp: Run new tests.
2473
b9915cbc
JB
24742020-02-17 Jan Beulich <jbeulich@suse.com>
2475
2476 PR gas/6518
2477 * config/tc-i386.c (process_suffix): Re-work Intel-syntax
2478 [XYZ]MMWord memory operand ambiguity recognition logic (largely
2479 re-indentation).
2480 * testsuite/gas/i386/avx512dq-inval.s: Add vcvtqq2ps/vcvtuqq2ps
2481 cases.
2482 * testsuite/gas/i386/inval-avx512f.s: Also test vcvtneps2bf16.
2483 * testsuite/gas/i386/avx512dq-inval.l,
2484 testsuite/gas/i386/inval-avx.l,
2485 testsuite/gas/i386/inval-avx512f.l: Adjust expectations.
2486 * testsuite/gas/i386/avx512vl-ambig.s,
2487 testsuite/gas/i386/avx512vl-ambig.l: New.
2488 * testsuite/gas/i386/i386.exp: Run new test.
2489
af5c13b0
L
24902020-02-16 H.J. Lu <hongjiu.lu@intel.com>
2491
2492 * config/tc-i386.c (cpu_arch): Add .sse4a and nosse4a. Restore
2493 nosse4.
2494 * doc/c-i386.texi: Document sse4a and nosse4a.
2495
07d98387
L
24962020-02-14 H.J. Lu <hongjiu.lu@intel.com>
2497
2498 * doc/c-i386.texi: Remove the old movsx and movzx documentation
2499 for AT&T syntax.
2500
65fca059
JB
25012020-02-14 Jan Beulich <jbeulich@suse.com>
2502
2503 PR gas/25438
2504 * config/tc-i386.c (md_assemble): Move movsx/movzx special
2505 casing ...
2506 (process_suffix): ... here. Consider just the first operand
2507 initially.
2508 (check_long_reg): Drop opcode 0x63 special case again.
2509 * testsuite/gas/i386/i386.s, testsuite/gas/i386/iamcu-1.s,
2510 testsuite/gas/i386/ilp32/x86-64.s, testsuite/gas/i386/x86_64.s:
2511 Move ambiguous operand size tests ...
2512 * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
2513 testsuite/gas/i386/noreg64.s: ... here.
2514 * testsuite/gas/i386/i386.d, testsuite/gas/i386/i386-intel.d
2515 testsuite/gas/i386/iamcu-1.d, testsuite/gas/i386/ilp32/x86-64.d,
2516 testsuite/gas/i386/k1om.d, testsuite/gas/i386/l1om.d,
2517 testsuite/gas/i386/movx16.l, testsuite/gas/i386/movx32.l,
2518 testsuite/gas/i386/movx64.l, testsuite/gas/i386/noreg16.d,
2519 testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg64.d,
2520 testsuite/gas/i386/x86-64-movsxd.d,
2521 testsuite/gas/i386/x86-64-movsxd-intel.d,
2522 testsuite/gas/i386/x86_64.d, testsuite/gas/i386/x86_64-intel.d:
2523 Adjust expectations.
2524 * testsuite/gas/i386/movx16.s, testsuite/gas/i386/movx16.l,
2525 testsuite/gas/i386/movx32.s, testsuite/gas/i386/movx32.l,
2526 testsuite/gas/i386/movx64.s, testsuite/gas/i386/movx64.l: New.
2527 * testsuite/gas/i386/i386.exp: Run new tests.
2528
b6773884
JB
25292020-02-14 Jan Beulich <jbeulich@suse.com>
2530
2531 * config/tc-i386.c (process_operands): Also skip segment
2532 override prefix emission if it matches an already present one.
2533 * testsuite/gas/i386/prefix32.s: Add double segment override
2534 cases.
2535 * testsuite/gas/i386/prefix32.l: Adjust expectations.
2536
92334ad2
JB
25372020-02-14 Jan Beulich <jbeulich@suse.com>
2538
2539 * config/tc-i386.c (process_operands): Drop ineffectual segment
2540 overrides when optimizing.
2541 * testsuite/gas/i386/lea-optimize.d: New.
2542 * testsuite/gas/i386/i386.exp: Run new test.
2543
25442020-02-14 Jan Beulich <jbeulich@suse.com>
514a8bb0
JB
2545
2546 * config/tc-i386.c (process_operands): Also check insn prefix
2547 for ineffectual segment override warning. Don't cover possible
2548 VEX/EVEX encoded insns there.
2549 * testsuite/gas/i386/lea.s, testsuite/gas/i386/lea.d,
2550 testsuite/gas/i386/lea.e: New.
2551 * testsuite/gas/i386/i386.exp: Run new test.
2552
0e6724de
L
25532020-02-14 H.J. Lu <hongjiu.lu@intel.com>
2554
2555 PR gas/25438
2556 * doc/c-i386.texi: Document movsx, movsxd and movzx for AT&T
2557 syntax.
2558
292676c1
L
25592020-02-13 Fangrui Song <maskray@google.com>
2560 H.J. Lu <hongjiu.lu@intel.com>
2561
2562 PR gas/25551
2563 * config/tc-i386.c (tc_i386_fix_adjustable): Don't check
2564 BFD_RELOC_386_PLT32 nor BFD_RELOC_X86_64_PLT32.
2565 * testsuite/gas/i386/i386.exp: Run relax-5 and x86-64-relax-4.
2566 * testsuite/gas/i386/relax-5.d: New file.
2567 * testsuite/gas/i386/relax-5.s: Likewise.
2568 * testsuite/gas/i386/x86-64-relax-4.d: Likewise.
2569 * testsuite/gas/i386/x86-64-relax-4.s: Likewise.
2570
7deea9aa
JB
25712020-02-13 Jan Beulich <jbeulich@suse.com>
2572
2573 * config/tc-i386.c (cpu_noarch): Use CPU_ANY_SSE4_FLAGS in
2574 "nosse4" entry.
2575
6c0946d0
JB
25762020-02-12 Jan Beulich <jbeulich@suse.com>
2577
2578 * config/tc-i386.c (avx512): New (at file scope), moved from
2579 (check_VecOperands): ... here.
2580 (process_suffix): Add [XYZ]MMword operand size handling.
2581 * testsuite/gas/i386/avx512dq-inval.s: Add VFPCLASS tests.
2582 * testsuite/gas/i386/noavx512-2.s: Add Intel syntax VFPCLASS
2583 tests.
2584 * testsuite/gas/i386/avx512dq-inval.l,
2585 testsuite/gas/i386/noavx512-2.l: Adjust expectations.
2586
5990e377
JB
25872020-02-12 Jan Beulich <jbeulich@suse.com>
2588
2589 PR gas/24546
2590 * config/tc-i386.c (match_template): Apply AMD64 check to 64-bit
2591 code only.
2592 * config/tc-i386-intel.c (i386_intel_operand): Also handle
2593 CALL/JMP in O_tbyte_ptr case.
2594 * doc/c-i386.texi: Mention far call and full pointer load ISA
2595 differences.
2596 * testsuite/gas/i386/x86-64-branch-3.s,
2597 testsuite/gas/i386/x86-64-intel64.s: Add 64-bit far call cases.
2598 * testsuite/gas/i386/x86-64-branch-3.d,
2599 testsuite/gas/i386/x86-64-intel64.d: Adjust expectations.
2600 * testsuite/gas/i386/x86-64-branch-5.l,
2601 testsuite/gas/i386/x86-64-branch-5.s: New.
2602 * testsuite/gas/i386/i386.exp: Run new test.
2603
9706160a
JB
26042020-02-12 Jan Beulich <jbeulich@suse.com>
2605
2606 PR gas/25438
2607 * config/tc-i386.c (REGISTER_WARNINGS): Delete.
2608 (check_byte_reg): Skip only source operand of CRC32. Drop Non-
2609 64-bit-only warning.
2610 (check_word_reg): Consistently error on mismatching register
2611 size and suffix.
2612 * testsuite/gas/i386/general.s: Replace dword GPR with word one
2613 for movw. Replace suffix / GPR for orb.
2614 * testsuite/gas/i386/inval.s: Add tests for movw with dword and
2615 byte GPRs as well as ones for inb/outb with a word accumulator.
2616 * testsuite/gas/i386/general.l, testsuite/gas/i386/intelbad.l,
2617 testsuite/gas/i386/inval.l: Adjust expectations.
2618
5de4d9ef
JB
26192020-02-12 Jan Beulich <jbeulich@suse.com>
2620
2621 * config/tc-i386.c (operand_type_register_match): Also fall
2622 through initial two if()-s when the template allows for a GPR
2623 operand. Adjust comment.
2624
50128d0c
JB
26252020-02-11 Jan Beulich <jbeulich@suse.com>
2626
2627 (struct _i386_insn): New field "short_form".
2628 (optimize_encoding): Drop setting of shortform field.
2629 (process_suffix): Set i.short_form. Replace shortform use.
2630 (process_operands): Replace shortform use.
2631
1ed818b4
MM
26322020-02-11 Matthew Malcomson <matthew.malcomson@arm.com>
2633
2634 * config/tc-arm.c (vcx_handle_register_arguments): Remove `for`
2635 loop initial declaration.
2636
5aae9ae9
MM
26372020-02-10 Matthew Malcomson <matthew.malcomson@arm.com>
2638
2639 * config/tc-arm.c (NEON_MAX_TYPE_ELS): Increment to account for
2640 instructions that can have 5 arguments.
2641 (enum operand_parse_code): Add new operands.
2642 (parse_operands): Account for new operands.
2643 (S5): New macro.
2644 (enum neon_shape_el): Introduce P suffixes for coprocessor.
2645 (neon_select_shape): Account for P suffix.
2646 (LOW1): Move macro to global position.
2647 (HI4): Move macro to global position.
2648 (vcx_assign_vec_d): New.
2649 (vcx_assign_vec_m): New.
2650 (vcx_assign_vec_n): New.
2651 (enum vcx_reg_type): New.
2652 (vcx_get_reg_type): New.
2653 (vcx_size_pos): New.
2654 (vcx_vec_pos): New.
2655 (vcx_handle_shape): New.
2656 (vcx_ensure_register_in_range): New.
2657 (vcx_handle_register_arguments): New.
2658 (vcx_handle_insn_block): New.
2659 (vcx_handle_common_checks): New.
2660 (do_vcx1): New.
2661 (do_vcx2): New.
2662 (do_vcx3): New.
2663 * testsuite/gas/arm/cde-missing-fp.d: New test.
2664 * testsuite/gas/arm/cde-missing-fp.l: New test.
2665 * testsuite/gas/arm/cde-missing-mve.d: New test.
2666 * testsuite/gas/arm/cde-missing-mve.l: New test.
2667 * testsuite/gas/arm/cde-mve-or-neon.d: New test.
2668 * testsuite/gas/arm/cde-mve-or-neon.s: New test.
2669 * testsuite/gas/arm/cde-mve.s: New test.
2670 * testsuite/gas/arm/cde-warnings.l:
2671 * testsuite/gas/arm/cde-warnings.s:
2672 * testsuite/gas/arm/cde.d:
2673 * testsuite/gas/arm/cde.s:
2674
4934a27c
MM
26752020-02-10 Stam Markianos-Wright <stam.markianos-wright@arm.com>
2676 Matthew Malcomson <matthew.malcomson@arm.com>
2677
2678 * config/tc-arm.c (arm_ext_cde*): New feature sets for each
2679 CDE coprocessor that can be enabled.
2680 (enum pred_instruction_type): New pred type.
2681 (BAD_NO_VPT): New error message.
2682 (BAD_CDE): New error message.
2683 (BAD_CDE_COPROC): New error message.
2684 (enum operand_parse_code): Add new immediate operands.
2685 (parse_operands): Account for new immediate operands.
2686 (check_cde_operand): New.
2687 (cde_coproc_enabled): New.
2688 (cde_coproc_pos): New.
2689 (cde_handle_coproc): New.
2690 (cxn_handle_predication): New.
2691 (do_custom_instruction_1): New.
2692 (do_custom_instruction_2): New.
2693 (do_custom_instruction_3): New.
2694 (do_cx1): New.
2695 (do_cx1a): New.
2696 (do_cx1d): New.
2697 (do_cx1da): New.
2698 (do_cx2): New.
2699 (do_cx2a): New.
2700 (do_cx2d): New.
2701 (do_cx2da): New.
2702 (do_cx3): New.
2703 (do_cx3a): New.
2704 (do_cx3d): New.
2705 (do_cx3da): New.
2706 (handle_pred_state): Define new IT block behaviour.
2707 (insns): Add newn CX*{,d}{,a} instructions.
2708 (CDE_EXTENSIONS,armv8m_main_ext_table,armv8_1m_main_ext_table):
2709 Define new cdecp extension strings.
2710 * doc/c-arm.texi: Document new cdecp extension arguments.
2711 * testsuite/gas/arm/cde-scalar.d: New test.
2712 * testsuite/gas/arm/cde-scalar.s: New test.
2713 * testsuite/gas/arm/cde-warnings.d: New test.
2714 * testsuite/gas/arm/cde-warnings.l: New test.
2715 * testsuite/gas/arm/cde-warnings.s: New test.
2716 * testsuite/gas/arm/cde.d: New test.
2717 * testsuite/gas/arm/cde.s: New test.
2718
4b5aaf5f
L
27192020-02-10 H.J. Lu <hongjiu.lu@intel.com>
2720
2721 PR gas/25516
2722 * config/tc-i386.c (intel64): Renamed to ...
2723 (isa64): This.
2724 (match_template): Accept Intel64 only instruction by default.
2725 (i386_displacement): Updated.
2726 (md_parse_option): Updated.
2727 * c-i386.texi: Update -mamd64/-mintel64 documentation.
2728 * testsuite/gas/i386/i386.exp: Run x86-64-sysenter. Pass
2729 -mamd64 to x86-64-sysenter-amd.
2730 * testsuite/gas/i386/x86-64-sysenter.d: New file.
2731
33176d91
AM
27322020-02-10 Alan Modra <amodra@gmail.com>
2733
2734 * config/obj-elf.c (obj_elf_change_section): Error for section
2735 type, attr or entsize changes in assembly.
2736 * testsuite/gas/elf/elf.exp: Pass -Z to gas for section5 test.
2737 * testsuite/gas/elf/section5.l: Update.
2738
82194874
AM
27392020-02-10 Alan Modra <amodra@gmail.com>
2740
2741 * output-file.c (output_file_close): Do a normal close when
2742 flag_always_generate_output.
2743 * write.c (write_object_file): Don't stop output when
2744 flag_always_generate_output.
2745
9fc0b501
SB
27462020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
2747
2748 PR 25469
2749 * config/tc-z80.c: Add -gbz80 command line option to generate code
2750 for the GameBoy Z80. Add support for generating DWARF.
2751 * config/tc-z80.h: Add support for DWARF debug information
2752 generation.
2753 * doc/c-z80.texi: Document new command line option.
2754 * testsuite/gas/z80/gbz80_all.d: New file.
2755 * testsuite/gas/z80/gbz80_all.s: New file.
2756 * testsuite/gas/z80/z80.exp: Run the new tests.
2757 * testsuite/gas/z80/z80n_all.d: New file.
2758 * testsuite/gas/z80/z80n_all.s: New file.
2759 * testsuite/gas/z80/z80n_reloc.d: New file.
2760
b7d07216
L
27612020-02-06 H.J. Lu <hongjiu.lu@intel.com>
2762
2763 PR gas/25381
2764 * config/obj-elf.c (get_section): Also check
2765 linked_to_symbol_name.
2766 (obj_elf_change_section): Also set map_head.linked_to_symbol_name.
2767 (obj_elf_parse_section_letters): Handle the 'o' flag.
2768 (build_group_lists): Renamed to ...
2769 (build_additional_section_info): This. Set elf_linked_to_section
2770 from map_head.linked_to_symbol_name.
2771 (elf_adjust_symtab): Updated.
2772 * config/obj-elf.h (elf_section_match): Add linked_to_symbol_name.
2773 * doc/as.texi: Document the 'o' flag.
2774 * testsuite/gas/elf/elf.exp: Run PR gas/25381 tests.
2775 * testsuite/gas/elf/section18.d: New file.
2776 * testsuite/gas/elf/section18.s: Likewise.
2777 * testsuite/gas/elf/section19.d: Likewise.
2778 * testsuite/gas/elf/section19.s: Likewise.
2779 * testsuite/gas/elf/section20.d: Likewise.
2780 * testsuite/gas/elf/section20.s: Likewise.
2781 * testsuite/gas/elf/section21.d: Likewise.
2782 * testsuite/gas/elf/section21.l: Likewise.
2783 * testsuite/gas/elf/section21.s: Likewise.
2784
5eb617a7
L
27852020-02-06 H.J. Lu <hongjiu.lu@intel.com>
2786
2787 * NEWS: Mention x86 assembler options to align branches for
2788 binutils 2.34.
2789
986ac314
L
27902020-02-06 H.J. Lu <hongjiu.lu@intel.com>
2791
2792 * testsuite/gas/i386/i386.exp: Run unique and x86-64-unique
2793 only for ELF targets.
2794 * testsuite/gas/i386/unique.d: Don't xfail.
2795 * testsuite/gas/i386/x86-64-unique.d: Likewise.
2796
19234a6d
AM
27972020-02-06 Alan Modra <amodra@gmail.com>
2798
2799 * testsuite/gas/i386/unique.d: xfail for non-elf targets.
2800 * testsuite/gas/i386/x86-64-unique.d: Likewise.
2801
02e0be69
AM
28022020-02-06 Alan Modra <amodra@gmail.com>
2803
2804 * testsuite/gas/elf/section12a.d: Use supports_gnu_osabi in
2805 xfail, and rename test.
2806 * testsuite/gas/elf/section12b.d: Likewise.
2807 * testsuite/gas/elf/section16a.d: Likewise.
2808 * testsuite/gas/elf/section16b.d: Likewise.
2809
a8c4d40b
L
28102020-02-02 H.J. Lu <hongjiu.lu@intel.com>
2811
2812 PR gas/25380
2813 * config/obj-elf.c (section_match): Removed.
2814 (get_section): Also match SEC_ASSEMBLER_SECTION_ID and
2815 section_id.
2816 (obj_elf_change_section): Replace info and group_name arguments
2817 with match_p. Also update the section ID and flags from match_p.
2818 (obj_elf_section): Handle "unique,N". Update call to
2819 obj_elf_change_section.
2820 * config/obj-elf.h (elf_section_match): New.
2821 (obj_elf_change_section): Updated.
2822 * config/tc-arm.c (start_unwind_section): Update call to
2823 obj_elf_change_section.
2824 * config/tc-ia64.c (obj_elf_vms_common): Likewise.
2825 * config/tc-microblaze.c (microblaze_s_data): Likewise.
2826 (microblaze_s_sdata): Likewise.
2827 (microblaze_s_rdata): Likewise.
2828 (microblaze_s_bss): Likewise.
2829 * config/tc-mips.c (s_change_section): Likewise.
2830 * config/tc-msp430.c (msp430_profiler): Likewise.
2831 * config/tc-rx.c (parse_rx_section): Likewise.
2832 * config/tc-tic6x.c (tic6x_start_unwind_section): Likewise.
2833 * doc/as.texi: Document "unique,N" in .section directive.
2834 * testsuite/gas/elf/elf.exp: Run "unique,N" tests.
2835 * testsuite/gas/elf/section15.d: New file.
2836 * testsuite/gas/elf/section15.s: Likewise.
2837 * testsuite/gas/elf/section16.s: Likewise.
2838 * testsuite/gas/elf/section16a.d: Likewise.
2839 * testsuite/gas/elf/section16b.d: Likewise.
2840 * testsuite/gas/elf/section17.d: Likewise.
2841 * testsuite/gas/elf/section17.l: Likewise.
2842 * testsuite/gas/elf/section17.s: Likewise.
2843 * testsuite/gas/i386/unique.d: Likewise.
2844 * testsuite/gas/i386/unique.s: Likewise.
2845 * testsuite/gas/i386/x86-64-unique.d: Likewise.
2846 * testsuite/gas/i386/i386.exp: Run unique and x86-64-unique.
2847
575d37ae
L
28482020-02-02 H.J. Lu <hongjiu.lu@intel.com>
2849
2850 * testsuite/gas/elf/section13.s: Replace @nobits with %nobits.
2851
2384096c
G
28522020-02-01 Anthony Green <green@moxielogic.com>
2853
2854 * config/tc-moxie.c (md_begin): Don't force big-endian mode.
2855
95441c43
SL
28562020-01-31 Sandra Loosemore <sandra@codesourcery.com>
2857
2858 * config/tc-nios2.c (nios2_cons): Handle %gotoff as well as
2859 %tls_ldo.
2860
d465d695
AV
28612020-01-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
2862
2863 PR gas/25472
2864 * config/tc-arm.c (armv8m_main_ext_table): Refactored +dsp adding.
2865 (armv8_1m_main_ext_table): Refactored +dsp adding and enabled dsp for
2866 +mve.
2867 * testsuite/gas/arm/mve_dsp.d: New test.
2868
d26cc8a9
NC
28692020-01-31 Nick Clifton <nickc@redhat.com>
2870
2871 * config/tc-s390.c (s390_elf_suffix): Return ELF_SUFFIX_NONE
2872 rather than BFD_RELOC_NONE.
2873
90e9955a
SP
28742020-01-31 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2875
2876 * config/tc-arm.c (fldmias): Moved inside "THUMB_VARIANT & arm_ext_v6t2"
2877 to support VLDMIA instruction for MVE.
2878 (fldmdbs): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VLDMDB
2879 instruction for MVE.
2880 (fstmias): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VSTMIA
2881 instruction for MVE.
2882 (fstmdbs): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VSTMDB
2883 instruction for MVE.
2884 * testsuite/gas/arm/mve-ldst.d: New test.
2885 * testsuite/gas/arm/mve-ldst.s: Likewise.
2886
53943f32
NC
28872020-01-31 Nick Clifton <nickc@redhat.com>
2888
2889 * po/fr.po: Updated French translation.
2890 * po/ru.po: Updated Russian translation.
2891
c3036ed0
RS
28922020-01-31 Richard Sandiford <richard.sandiford@arm.com>
2893
2894 * testsuite/gas/aarch64/sve-bfloat-movprfx.s: Use .h rather than
2895 .s for the movprfx.
2896 * testsuite/gas/aarch64/sve-bfloat-movprfx.d: Update accordingly.
2897 * testsuite/gas/aarch64/sve-movprfx_28.d,
2898 * testsuite/gas/aarch64/sve-movprfx_28.l,
2899 * testsuite/gas/aarch64/sve-movprfx_28.s: New test.
2900
2ae4c703
JB
29012020-01-30 Jan Beulich <jbeulich@suse.com>
2902
2903 * config/tc-i386.c (output_disp): Tighten base_opcode check.
2904 * testsuite/gas/i386/got.s: Add LSL, MOVLPS, and BNDCN cases.
2905 * testsuite/gas/i386/got-no-relax.d, testsuite/gas/i386/got.d:
2906 Adjust expectations.
2907
bd434cc4
JM
29082020-01-30 Jose E. Marchesi <jose.marchesi@oracle.com>
2909
2910 * testsuite/gas/bpf/alu.d: Update expected opcode for `neg'.
2911 * testsuite/gas/bpf/alu-be.d: Likewise.
2912 * testsuite/gas/bpf/alu32.d: Likewise for `neg32'.
2913 * testsuite/gas/bpf/alu32-be.d: Likewise.
2914
aeab2b26
JB
29152020-01-30 Jan Beulich <jbeulich@suse.com>
2916
2917 * testsuite/gas/i386/x86-64-branch-2.s,
2918 testsuite/gas/i386/x86-64-branch-4.s,
2919 testsuite/gas/i386/x86-64-branch.s: Add RETW cases.
2920 * testsuite/gas/i386/ilp32/x86-64-branch.d,
2921 testsuite/gas/i386/x86-64-branch-2.d,
2922 testsuite/gas/i386/x86-64-branch-4.l,
2923 testsuite/gas/i386/x86-64-branch.d: Adjust expectations.
2924
873494c8
JB
29252020-01-30 Jan Beulich <jbeulich@suse.com>
2926
2927 * config/tc-i386.c (process_suffix): .
2928 testsuite/gas/i386/noreg64.s: Add IRET and LRET cases.
2929 testsuite/gas/i386/x86-64-opcode.s: Add suffix to IRET and LRET.
2930 Add LRETQ case.
2931 testsuite/gas/i386/x86-64-suffix.s: Drop IRET case without
2932 suffix.
2933 testsuite/gas/i386/x86_64.s: Add RETF cases.
2934 * testsuite/gas/i386/k1om.d, testsuite/gas/i386/l1om.d,
2935 testsuite/gas/i386/noreg64.d, testsuite/gas/i386/noreg64.l,
2936 testsuite/gas/i386/x86-64-opcode.d,
2937 testsuite/gas/i386/x86-64-suffix-intel.d,
2938 testsuite/gas/i386/x86-64-suffix.d,
2939 testsuite/gas/i386/x86_64-intel.d
2940 testsuite/gas/i386/x86_64.d: Adjust expectations.
2941 * testsuite/gas/i386/x86-64-suffix.e,
2942 testsuite/gas/i386/x86_64.e: New.
2943
62b3f548
JB
29442020-01-30 Jan Beulich <jbeulich@suse.com>
2945
2946 * config/tc-i386.c (process_suffix): Redo and move FLDENV et al
2947 special case.
2948
bc31405e
L
29492020-01-27 H.J. Lu <hongjiu.lu@intel.com>
2950
2951 PR binutils/25445
2952 * config/tc-i386.c (check_long_reg): Also convert to QWORD for
2953 movsxd.
2954 * doc/c-i386.texi: Add a node for AMD64 vs. Intel64 ISA
2955 differences. Document movslq and movsxd.
2956 * testsuite/gas/i386/i386.exp: Run PR binutils/25445 tests.
2957 * testsuite/gas/i386/x86-64-movsxd-intel.d: New file.
2958 * testsuite/gas/i386/x86-64-movsxd-intel64-intel.d: Likewise.
2959 * testsuite/gas/i386/x86-64-movsxd-intel64-inval.l: Likewise.
2960 * testsuite/gas/i386/x86-64-movsxd-intel64-inval.s: Likewise.
2961 * testsuite/gas/i386/x86-64-movsxd-intel64.d: Likewise.
2962 * testsuite/gas/i386/x86-64-movsxd-intel64.s: Likewise.
2963 * testsuite/gas/i386/x86-64-movsxd-inval.l: Likewise.
2964 * testsuite/gas/i386/x86-64-movsxd-inval.s: Likewise.
2965 * testsuite/gas/i386/x86-64-movsxd.d: Likewise.
2966 * testsuite/gas/i386/x86-64-movsxd.s: Likewise.
2967
e3696f67
AM
29682020-01-27 Alan Modra <amodra@gmail.com>
2969
2970 * testsuite/gas/all/gas.exp: Replace case statements with switch
2971 statements.
2972 * testsuite/gas/elf/elf.exp: Likewise.
2973 * testsuite/gas/macros/macros.exp: Likewise.
2974 * testsuite/lib/gas-defs.exp: Likewise.
2975
7568c93b
TC
29762020-01-27 Tamar Christina <tamar.christina@arm.com>
2977
2978 PR 25403
2979 * testsuite/gas/aarch64/armv8_4-a.d: Add cfinv.
2980 * testsuite/gas/aarch64/armv8_4-a.s: Likewise.
2981
403d1bd9
JW
29822020-01-22 Maxim Blinov <maxim.blinov@embecosm.com>
2983
2984 * testsuite/gas/riscv/march-ok-s.d: sx is no longer valid and
2985 s exts must be known, so rename *ok* to *fail*.
2986 * testsuite/gas/riscv/march-ok-sx.d: Likewise.
2987 * testsuite/gas/riscv/march-ok-s-with-version: Likewise.
2988 * testsuite/gas/riscv/march-fail-s.l: Expected error messages for
2989 above change.
2990 * testsuite/gas/riscv/march-fail-sx.l: Likewise.
2991 * testsuite/gas/riscv/march-fail-sx-with-version.l: Likewise.
2992
be4c5e58
L
29932020-01-22 H.J. Lu <hongjiu.lu@intel.com>
2994
2995 PR gas/25438
2996 * config/tc-i386.c (check_long_reg): Always disallow double word
2997 suffix in mnemonic with word general register.
2998 * testsuite/gas/i386/general.s: Replace word general register
2999 with double word general register for movl.
3000 * testsuite/gas/i386/inval.s: Add tests for movl with word general
3001 register.
3002 * testsuite/gas/i386/general.l: Updated.
3003 * testsuite/gas/i386/inval.l: Likewise.
3004
9e7028aa
AM
30052020-01-22 Alan Modra <amodra@gmail.com>
3006
3007 * config/tc-ppc.c (parse_tls_arg): Handle tls arg for
3008 __tls_get_addr_desc and __tls_get_addr_opt.
3009
e3ed17f3
JB
30102020-01-21 Jan Beulich <jbeulich@suse.com>
3011
3012 * testsuite/gas/i386/inval-crc32.s,
3013 testsuite/gas/i386/x86-64-inval-crc32.s: Add alignment directive.
3014 * testsuite/gas/i386/inval-crc32.l,
3015 testsuite/gas/i386/x86-64-inval-crc32.l: Adjust expectations.
3016
1a035124
JB
30172020-01-21 Jan Beulich <jbeulich@suse.com>
3018
3019 * config/tc-i386.c (process_suffix): Merge CRC32 handling into
3020 generic code path. Deal with No_lSuf being set in a template.
3021 * testsuite/gas/i386/inval-crc32.l,
3022 testsuite/gas/i386/x86-64-inval-crc32.l: Expect warning(s)
3023 instead of error(s) when operand size is ambiguous.
3024 * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
3025 testsuite/gas/i386/noreg64.s: Add CRC32 tests.
3026 * testsuite/gas/i386/noreg16.d, testsuite/gas/i386/noreg16.l,
3027 testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg32.l,
3028 testsuite/gas/i386/noreg64.d, testsuite/gas/i386/noreg64.l:
3029 Adjust expectations.
3030
c006a730
JB
30312020-01-21 Jan Beulich <jbeulich@suse.com>
3032
3033 * config/tc-i386.c (process_suffix): Drop SYSRET special case
3034 and an intel_syntax check. Re-write lack-of-suffix processing
3035 logic.
3036 * doc/c-i386.texi: Document operand size defaults for suffix-
3037 less AT&T syntax insns.
3038 * testsuite/gas/i386/bundle.s, testsuite/gas/i386/lock-1.s,
3039 testsuite/gas/i386/opcode.s, testsuite/gas/i386/sse3.s,
3040 testsuite/gas/i386/x86-64-avx-scalar.s,
3041 testsuite/gas/i386/x86-64-avx.s,
3042 testsuite/gas/i386/x86-64-bundle.s,
3043 testsuite/gas/i386/x86-64-intel64.s,
3044 testsuite/gas/i386/x86-64-lock-1.s,
3045 testsuite/gas/i386/x86-64-opcode.s,
3046 testsuite/gas/i386/x86-64-sse2avx.s,
3047 testsuite/gas/i386/x86-64-sse3.s: Add missing suffixes.
3048 * testsuite/gas/i386/nops.s, testsuite/gas/i386/sse-noavx.s,
3049 testsuite/gas/i386/x86-64-nops.s,
3050 testsuite/gas/i386/x86-64-ptwrite.s,
3051 testsuite/gas/i386/x86-64-simd.s,
3052 testsuite/gas/i386/x86-64-sse-noavx.s,
3053 testsuite/gas/i386/x86-64-suffix.s: Drop bogus suffix-less
3054 insns.
3055 * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
3056 testsuite/gas/i386/noreg64.s: Add further tests.
3057 * testsuite/gas/i386/ilp32/x86-64-nops.d,
3058 testsuite/gas/i386/nops.d, testsuite/gas/i386/noreg16.d,
3059 testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg64.d,
3060 testsuite/gas/i386/sse-noavx.d,
3061 testsuite/gas/i386/x86-64-intel64.d,
3062 testsuite/gas/i386/x86-64-nops.d,
3063 testsuite/gas/i386/x86-64-opcode.d,
3064 testsuite/gas/i386/x86-64-ptwrite-intel.d,
3065 testsuite/gas/i386/x86-64-ptwrite.d,
3066 testsuite/gas/i386/x86-64-simd-intel.d,
3067 testsuite/gas/i386/x86-64-simd-suffix.d,
3068 testsuite/gas/i386/x86-64-simd.d,
3069 testsuite/gas/i386/x86-64-sse-noavx.d
3070 testsuite/gas/i386/x86-64-suffix.d,
3071 testsuite/gas/i386/x86-64-suffix-intel.d: Adjust expectations.
3072 * testsuite/gas/i386/noreg16.l, testsuite/gas/i386/noreg32.l,
3073 testsuite/gas/i386/noreg64.l: New.
3074 * testsuite/gas/i386/i386.exp: Run new tests.
3075
c906a69a
JB
30762020-01-21 Jan Beulich <jbeulich@suse.com>
3077
3078 * testsuite/gas/i386/avx512_bf16_vl.s,
3079 testsuite/gas/i386/x86-64-avx512_bf16_vl.s: Add broadcast forms
3080 of VCVTNEPS2BF16{X,Y}. Add operand-size less Intel syntax
3081 broadcast forms of VCVTNEPS2BF16.
3082 * testsuite/gas/i386/avx512_bf16_vl.d,
3083 testsuite/gas/i386/x86-64-avx512_bf16_vl.d: Adjust expectations.
3084
26916852
NC
30852020-01-20 Nick Clifton <nickc@redhat.com>
3086
3087 * po/uk.po: Updated Ukranian translation.
3088
14470f07
L
30892020-01-20 H.J. Lu <hongjiu.lu@intel.com>
3090
3091 PR ld/25416
3092 * config/tc-i386.c (output_insn): Add a dummy REX_OPCODE prefix
3093 for lea with R_X86_64_GOTPC32_TLSDESC relocation when generating
3094 x32 object.
3095 * testsuite/gas/i386/ilp32/x32-tls.d: Updated.
3096 * testsuite/gas/i386/ilp32/x32-tls.s: Add tests for lea with
3097 R_X86_64_GOTPC32_TLSDESC relocation.
3098
1b1bb2c6
NC
30992020-01-18 Nick Clifton <nickc@redhat.com>
3100
3101 * configure: Regenerate.
3102 * po/gas.pot: Regenerate.
3103
ae774686
NC
31042020-01-18 Nick Clifton <nickc@redhat.com>
3105
3106 Binutils 2.34 branch created.
3107
42e04b36
L
31082020-01-17 H.J. Lu <hongjiu.lu@intel.com>
3109
3110 * config/tc-i386.c (_i386_insn): Replace vex_encoding_vex2
3111 with vex_encoding_vex.
3112 (parse_insn): Likewise.
3113 * doc/c-i386.texi: Replace {vex2} with {vex}. Update {vex}
3114 and {vex3} documentation.
3115 * testsuite/gas/i386/pseudos.s: Replace 3 {vex2} tests with
3116 {vex}.
3117 * testsuite/gas/i386/x86-64-pseudos.s: Likewise.
3118
2da2eaf4
AV
31192020-01-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
3120
3121 PR 25376
3122 * config/tc-arm.c (mve_ext, mve_fp_ext): Use CORE_HIGH.
3123 (armv8_1m_main_ext_table): Use CORE_HIGH for mve.
3124 * testsuite/arm/armv8_1-m-fpu-mve-1.s: New.
3125 * testsuite/arm/armv8_1-m-fpu-mve-1.d: New.
3126 * testsuite/arm/armv8_1-m-fpu-mve-2.s: New.
3127 * testsuite/arm/armv8_1-m-fpu-mve-2.d: New.
3128
45a4bb20
JB
31292020-01-16 Jan Beulich <jbeulich@suse.com>
3130
3131 * config/tc-i386.c (match_template): Drop found_cpu_match local
3132 variable.
3133
4814632e
JB
31342020-01-16 Jan Beulich <jbeulich@suse.com>
3135
3136 * testsuite/gas/i386/avx512dq-inval.l,
3137 testsuite/gas/i386/avx512dq-inval.s: New.
3138 * testsuite/gas/i386/i386.exp: Run new test.
3139
131cb553
JL
31402020-01-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3141
3142 * config/tc-msp430.c (CHECK_RELOC_MSP430): Always generate 430X
3143 relocations when the target is 430X, except when extracting part of an
3144 expression.
3145 (msp430_srcoperand): Adjust comment.
3146 Initialize the expp member of the msp430_operand_s struct as
3147 appropriate.
3148 (msp430_dstoperand): Likewise.
3149 * testsuite/gas/msp430/msp430.exp: Run new test.
3150 * testsuite/gas/msp430/reloc-lo-430x.d: New test.
3151 * testsuite/gas/msp430/reloc-lo-430x.s: New test.
3152
c24d0e8d
AM
31532020-01-15 Alan Modra <amodra@gmail.com>
3154
3155 * configure.tgt: Add sparc-*-freebsd case.
3156
e44925ae
LC
31572020-01-14 Lili Cui <lili.cui@intel.com>
3158
3159 * testsuite/gas/i386/align-branch-1a.d: Updated for Darwin.
3160 * testsuite/gas/i386/align-branch-1b.d: Likewise.
3161 * testsuite/gas/i386/align-branch-1c.d: Likewise.
3162 * testsuite/gas/i386/align-branch-1d.d: Likewise.
3163 * testsuite/gas/i386/align-branch-1e.d: Likewise.
3164 * testsuite/gas/i386/align-branch-1f.d: Likewise.
3165 * testsuite/gas/i386/align-branch-1g.d: Likewise.
3166 * testsuite/gas/i386/align-branch-1h.d: Likewise.
3167 * testsuite/gas/i386/align-branch-1i.d: Likewise.
3168 * testsuite/gas/i386/align-branch-5.d: Likewise.
3169 * testsuite/gas/i386/x86-64-align-branch-1a.d: Likewise.
3170 * testsuite/gas/i386/x86-64-align-branch-1b.d: Likewise.
3171 * testsuite/gas/i386/x86-64-align-branch-1c.d: Likewise.
3172 * testsuite/gas/i386/x86-64-align-branch-1d.d: Likewise.
3173 * testsuite/gas/i386/x86-64-align-branch-1e.d: Likewise.
3174 * testsuite/gas/i386/x86-64-align-branch-1f.d: Likewise.
3175 * testsuite/gas/i386/x86-64-align-branch-1g.d: Likewise.
3176 * testsuite/gas/i386/x86-64-align-branch-1h.d: Likewise.
3177 * testsuite/gas/i386/x86-64-align-branch-1i.d: Likewise.
3178 * testsuite/gas/i386/x86-64-align-branch-5.d: Likewise.
3179 * testsuite/gas/i386/i386.exp: Skip x86-64-align-branch-2a,
3180 x86-64-align-branch-2b and x86-64-align-branch-2c on Darwin.
3181
7a6bf3be
SB
31822020-01-14 Sergey Belyashov <sergey.belyashov@gmail.com>
3183
3184 PR 25377
3185 * config/tc-z80.c: Add support for half precision, single
3186 precision and double precision floating point values.
3187 * config/tc-z80.h b/gas/config/tc-z80.h: Disable string escapes.
3188 * doc/as.texi: Add new z80 command line options.
3189 * doc/c-z80.texi: Document new z80 command line options.
3190 * testsuite/gas/z80/ez80_pref_dis.s: New test.
3191 * testsuite/gas/z80/ez80_pref_dis.d: New test driver.
3192 * testsuite/gas/z80/z80.exp: Run the new test.
3193 * testsuite/gas/z80/fp_math48.d: Use correct command line option.
3194 * testsuite/gas/z80/fp_zeda32.d: Likewise.
3195 * testsuite/gas/z80/strings.d: Update expected output.
3196
82e9597c
MM
31972020-01-13 Matthew Malcomson <matthew.malcomson@arm.com>
3198
3199 * config/tc-aarch64.c (f64mm, f32mm): Add sve as a feature
3200 dependency.
3201
5e4f7e05
CZ
32022020-01-13 Claudiu Zissulescu <claziss@gmail.com>
3203
3204 * config/tc-arc.c (arc_select_cpu): Re-init the bfd if we change
3205 the CPU.
3206 * config/tc-arc.h: Add header if/defs.
3207 * testsuite/gas/arc/pseudos.d: Improve matching pattern.
3208
febda64f
AM
32092020-01-13 Alan Modra <amodra@gmail.com>
3210
3211 * testsuite/gas/wasm32/allinsn.d: Update expected output.
3212
5496abe1
AM
32132020-01-13 Alan Modra <amodra@gmail.com>
3214
3215 * config/tc-tic4x.c (tic4x_operands_match): Correct tic3x trap
3216 insertion.
3217
ec4181f2
AM
32182020-01-10 Alan Modra <amodra@gmail.com>
3219
3220 * testsuite/gas/elf/pr14891.s: Don't start directives in first column.
3221 * testsuite/gas/elf/pr21661.d: Don't run on hpux.
3222
40c75bc8
SB
32232020-01-03 Sergey Belyashov <sergey.belyashov@gmail.com>
3224
3225 PR 25224
3226 * config/tc-z80.c (emit_ld_m_rr): Use integer types when checking
3227 opcode byte values.
3228 (emit_ld_r_r): Likewise.
3229 (emit_ld_rr_m): Likewise.
3230 (emit_ld_rr_nn): Likewise.
3231
72aea328
JB
32322020-01-09 Jan Beulich <jbeulich@suse.com>
3233
3234 * config/tc-i386.c (optimize_encoding): Add
3235 is_any_vex_encoding() invocations. Drop respective
3236 i.tm.extension_opcode == None checks.
3237
3f93af61
JB
32382020-01-09 Jan Beulich <jbeulich@suse.com>
3239
3240 * config/tc-i386.c (md_assemble): Check RegRex is clear during
3241 REX transformations. Correct comment indentation.
3242
7697afb6
JB
32432020-01-09 Jan Beulich <jbeulich@suse.com>
3244
3245 * config/tc-i386.c (optimize_encoding): Generalize register
3246 transformation for TEST optimization.
3247
d835a58b
JB
32482020-01-09 Jan Beulich <jbeulich@suse.com>
3249
3250 * testsuite/gas/i386/x86-64-sysenter-amd.s,
3251 testsuite/gas/i386/x86-64-sysenter-amd.d,
3252 testsuite/gas/i386/x86-64-sysenter-amd.l,
3253 testsuite/gas/i386/x86-64-sysenter-intel.d,
3254 testsuite/gas/i386/x86-64-sysenter-mixed.d: New.
3255 * testsuite/gas/i386/i386.exp: Run new tests.
3256
915808f6
NC
32572020-01-08 Nick Clifton <nickc@redhat.com>
3258
3259 PR 25284
3260 * doc/as.texi (Align): Document the fact that all arguments can be
3261 omitted.
3262 (Balign): Likewise.
3263 (P2align): Likewise.
3264
f1f28025
NC
32652020-01-08 Nick Clifton <nickc@redhat.com>
3266
3267 PR 14891
3268 * config/obj-elf.c (obj_elf_section): Fail if the section name is
3269 already defined as a different symbol type.
3270 * testsuite/gas/elf/pr14891.s: New test source file.
3271 * testsuite/gas/elf/pr14891.d: New test driver.
3272 * testsuite/gas/elf/pr14891.s: New test expected error output.
3273 * testsuite/gas/elf/elf.exp: Run the new test.
3274
030a2e78
AM
32752020-01-08 Alan Modra <amodra@gmail.com>
3276
3277 * config/tc-z8k.c (md_begin): Make idx unsigned.
3278 (get_specific): Likewise for this_index.
3279
2a1ebfb2
CZ
32802020-01-07 Claudiu Zissulescu <claziss@synopsys.com>
3281
3282 * onfig/tc-arc.c (parse_reloc_symbol): New function.
3283 (tokenize_arguments): Clean up, use parse_reloc_symbol function.
3284 (md_operand): Set X_md to absent.
3285 (arc_parse_name): Check for X_md.
3286
16d87673
SB
32872020-01-03 Sergey Belyashov <sergey.belyashov@gmail.com>
3288
3289 PR 25311
3290 * as.h (TC_STRING_ESCAPES): Provide a default definition.
3291 * app.c (do_scrub_chars): Use TC_STRING_ESCAPES instead of
3292 NO_STRING_ESCAPES.
3293 * read.c (next_char_of_string): Likewise.
3294 * config/tc-ppc.h (TC_STRING_ESCAPES): Define.
3295 * config/tc-z80.h (TC_STRING_ESCAPES): Define.
3296
a2322019
NC
32972020-01-03 Nick Clifton <nickc@redhat.com>
3298
3299 * po/sv.po: Updated Swedish translation.
3300
5437a02a
JB
33012020-01-03 Jan Beulich <jbeulich@suse.com>
3302
3303 * testsuite/gas/aarch64/f64mm.s: Scale index of LD1RO{H,W,D}.
3304 * testsuite/gas/aarch64/f64mm.d: Adjust expectations.
3305
567dfba2
JB
33062020-01-03 Jan Beulich <jbeulich@suse.com>
3307
3308 * testsuite/gas/aarch64/i8mm.s: Add 128-bit form tests for
3309 by-element usdot. Add 64-bit form tests for by-element sudot.
3310 * testsuite/gas/aarch64/i8mm.d: Adjust expectations.
3311
8c45011a
JB
33122020-01-03 Jan Beulich <jbeulich@suse.com>
3313
3314 * testsuite/gas/aarch64/f64mm.s: Drop 'i' from uzip<n>.
3315 * testsuite/gas/aarch64/f64mm.d: Adjust expectations.
3316
f4950f76
JB
33172020-01-03 Jan Beulich <jbeulich@suse.com>
3318
3319 * testsuite/gas/aarch64/f64mm.d,
3320 testsuite/gas/aarch64/sve-movprfx-mm.d: Adjust expectations.
3321
6655dba2
SB
33222020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
3323
3324 * config/tc-z80.c: Add new architectures: Z180 and eZ80. Add
3325 support for assembler code generated by SDCC. Add new relocation
3326 types. Add z80-elf target support.
3327 * config/tc-z80.h: Add z80-elf target support. Enable dollar local
3328 labels. Local labels starts from ".L".
3329 * NEWS: Mention the new support.
3330 * testsuite/gas/all/fwdexp.d: Fix failure due to symbol conflict.
3331 * testsuite/gas/all/fwdexp.s: Likewise.
3332 * testsuite/gas/all/cond.l: Likewise.
3333 * testsuite/gas/all/cond.s: Likewise.
3334 * testsuite/gas/all/fwdexp.d: Likewise.
3335 * testsuite/gas/all/fwdexp.s: Likewise.
3336 * testsuite/gas/elf/section2.e-mips: Likewise.
3337 * testsuite/gas/elf/section2.l: Likewise.
3338 * testsuite/gas/elf/section2.s: Likewise.
3339 * testsuite/gas/macros/app1.d: Likewise.
3340 * testsuite/gas/macros/app1.s: Likewise.
3341 * testsuite/gas/macros/app2.d: Likewise.
3342 * testsuite/gas/macros/app2.s: Likewise.
3343 * testsuite/gas/macros/app3.d: Likewise.
3344 * testsuite/gas/macros/app3.s: Likewise.
3345 * testsuite/gas/macros/app4.d: Likewise.
3346 * testsuite/gas/macros/app4.s: Likewise.
3347 * testsuite/gas/macros/app4b.s: Likewise.
3348 * testsuite/gas/z80/suffix.d: Fix failure on ELF target.
3349 * testsuite/gas/z80/z80.exp: Add new tests
3350 * testsuite/gas/z80/dollar.d: New file.
3351 * testsuite/gas/z80/dollar.s: New file.
3352 * testsuite/gas/z80/ez80_adl_all.d: New file.
3353 * testsuite/gas/z80/ez80_adl_all.s: New file.
3354 * testsuite/gas/z80/ez80_adl_suf.d: New file.
3355 * testsuite/gas/z80/ez80_isuf.s: New file.
3356 * testsuite/gas/z80/ez80_z80_all.d: New file.
3357 * testsuite/gas/z80/ez80_z80_all.s: New file.
3358 * testsuite/gas/z80/ez80_z80_suf.d: New file.
3359 * testsuite/gas/z80/r800_extra.d: New file.
3360 * testsuite/gas/z80/r800_extra.s: New file.
3361 * testsuite/gas/z80/r800_ii8.d: New file.
3362 * testsuite/gas/z80/r800_z80_doc.d: New file.
3363 * testsuite/gas/z80/z180.d: New file.
3364 * testsuite/gas/z80/z180.s: New file.
3365 * testsuite/gas/z80/z180_z80_doc.d: New file.
3366 * testsuite/gas/z80/z80_doc.d: New file.
3367 * testsuite/gas/z80/z80_doc.s: New file.
3368 * testsuite/gas/z80/z80_ii8.d: New file.
3369 * testsuite/gas/z80/z80_ii8.s: New file.
3370 * testsuite/gas/z80/z80_in_f_c.d: New file.
3371 * testsuite/gas/z80/z80_in_f_c.s: New file.
3372 * testsuite/gas/z80/z80_op_ii_ld.d: New file.
3373 * testsuite/gas/z80/z80_op_ii_ld.s: New file.
3374 * testsuite/gas/z80/z80_out_c_0.d: New file.
3375 * testsuite/gas/z80/z80_out_c_0.s: New file.
3376 * testsuite/gas/z80/z80_reloc.d: New file.
3377 * testsuite/gas/z80/z80_reloc.s: New file.
3378 * testsuite/gas/z80/z80_sli.d: New file.
3379 * testsuite/gas/z80/z80_sli.s: New file.
3380
a65b5de6
SN
33812020-01-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
3382
3383 * config/tc-arm.c (parse_reg_list): Use REG_TYPE_RN instead of
3384 REGLIST_RN.
3385
b14ce8bf
AM
33862020-01-01 Alan Modra <amodra@gmail.com>
3387
3388 Update year range in copyright notice of all files.
3389
0b114740 3390For older changes see ChangeLog-2019
3499769a 3391\f
0b114740 3392Copyright (C) 2020 Free Software Foundation, Inc.
3499769a
AM
3393
3394Copying and distribution of this file, with or without modification,
3395are permitted in any medium without royalty provided the copyright
3396notice and this notice are preserved.
3397
3398Local Variables:
3399mode: change-log
3400left-margin: 8
3401fill-column: 74
3402version-control: never
3403End: