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