AArch64: Fix error checking for SIMD udot (by element)
[external/binutils.git] / gas / ChangeLog
1 2018-10-16  Matthew Malcomson  <matthew.malcomson@arm.com>
2
3         * testsuite/gas/aarch64/illegal-dotproduct.d: New test.
4         * testsuite/gas/aarch64/illegal-dotproduct.l: New test.
5         * testsuite/gas/aarch64/illegal-dotproduct.s: New test.
6
7
8 2018-10-15  Alan Modra  <amodra@gmail.com>
9
10         PR 23534
11         * as.c (main): Exit with fatal error if bfd_init returns an
12         unexpected value.
13
14 2018-10-11  Jan Beulich  <jbeulich@suse.com>
15
16         * testsuite/gas/i386/xmmword.s: Add MOVQ / VMOVQ cases.
17         * testsuite/gas/i386/xmmword.l: Adjust expectations.
18
19 2018-10-10  Jan Beulich  <jbeulich@suse.com>
20
21         * config/tc-i386.c (parse_insn, process_suffix): Replace
22         opcode_modifier.size<N> uses.
23
24 2018-10-09  Sudakshina Das  <sudi.das@arm.com>
25
26         * config/tc-aarch64.c (aarch64_features): Add new "ssbs".
27         * doc/c-aarch64.texi: Document the same.
28         * testsuite/gas/aarch64/ssbs-illegal1.d: New test.
29         * testsuite/gas/aarch64/ssbs-illegal1.l: New test.
30         * testsuite/gas/aarch64/ssbs-illegal2.d: New test.
31         * testsuite/gas/aarch64/ssbs-illegal2.l: New test.
32         * testsuite/gas/aarch64/ssbs.s: New test.
33         * testsuite/gas/aarch64/ssbs1.d: Test with +ssbs
34         * testsuite/gas/aarch64/ssbs2.d: Test with armv8.5-a.
35
36 2018-10-09  Sudakshina Das  <sudi.das@arm.com>
37
38         * testsuite/gas/aarch64/sysreg-4.s: Test registers
39         scxtnum_el[0,1,2,3,12] and id_pfr2_el1.
40         * testsuite/gas/aarch64/sysreg-4.d: Likewise.
41         * testsuite/gas/aarch64/illegal-sysreg-4.l: Likewise.
42
43 2018-10-09  Sudakshina Das  <sudi.das@arm.com>
44
45         * config/tc-aarch64.c (parse_bti_operand): New.
46         (process_omitted_operand): Add case for AARCH64_OPND_BTI_TARGET.
47         (parse_operands): Likewise.
48         * testsuite/gas/aarch64/system.d: Update for BTI.
49         * testsuite/gas/aarch64/bti.s: New.
50         * testsuite/gas/aarch64/bti.d: New.
51         * testsuite/gas/aarch64/illegal-bti.d: New.
52         * testsuite/gas/aarch64/illegal-bti.l: New.
53
54 2018-10-09  Sudakshina Das  <sudi.das@arm.com>
55
56         * config/tc-aarch64.c (aarch64_features): New "rng" option.
57         * doc/c-aarch64.texi: Document the same.
58         * testsuite/gas/aarch64/sysreg-4.s: Test both instructions.
59         * testsuite/gas/aarch64/sysreg-4.d: Likewise.
60         * testsuite/gas/aarch64/illegal-sysreg-4.l: Likewise.
61
62 2018-10-09  Sudakshina Das  <sudi.das@arm.com>
63
64         * testsuite/gas/aarch64/sysreg-4.s: Test instruction.
65         * testsuite/gas/aarch64/sysreg-4.d: Likewise.
66         * testsuite/gas/aarch64/illegal-sysreg-4.l: Likewise.
67
68 2018-10-09  Sudakshina Das  <sudi.das@arm.com>
69
70         * config/tc-aarch64.c (aarch64_sys_regs_sr_hsh): New.
71         (parse_operands): Add entry for AARCH64_OPND_SYSREG_SR.
72         (md_begin): Allocate and initialize aarch64_sys_regs_sr_hsh
73         with aarch64_sys_regs_sr.
74         (aarch64_features): Add new "predres" option for older
75         architectures.
76         * doc/c-aarch64.texi: Document the same.
77         * testsuite/gas/aarch64/sysreg-4.s: New.
78         * testsuite/gas/aarch64/sysreg-4.d: New.
79         * testsuite/gas/aarch64/illegal-sysreg-4.d: New.
80         * testsuite/gas/aarch64/illegal-sysreg-4.l: New.
81         * testsuite/gas/aarch64/predres.s: New.
82         * testsuite/gas/aarch64/predres.d: New.
83
84 2018-10-09  Sudakshina Das  <sudi.das@arm.com>
85
86         * config/tc-aarch64.c (aarch64_features): Add new "sb" option
87         for older architectures.
88         * doc/c-aarch64.texi: Document the same.
89         * testsuite/gas/aarch64/sb.s: New.
90         * testsuite/gas/aarch64/sb.d: New.
91
92 2018-10-09  Sudakshina Das  <sudi.das@arm.com>
93
94         * testsuite/gas/aarch64/armv8_5-a-dp.s: New.
95         * testsuite/gas/aarch64/armv8_5-a-dp.d: New.
96
97 2018-10-09  Sudakshina Das  <sudi.das@arm.com>
98
99         * config/tc-aarch64.c (aarch64_archs): New entry for armv8.5-a.
100         * doc/c-aarch64.texi: Add documentation for the same.
101
102 2018-10-05  H.J. Lu  <hongjiu.lu@intel.com>
103
104
105         * testsuite/gas/i386/se1.s: Add enclv.
106         * testsuite/gas/i386/x86-64-se1.s: Likewise.
107         * testsuite/gas/i386/se1.d: Updated.
108         * testsuite/gas/i386/x86-64-se1.d: Likewise.
109
110 2018-10-05  Sudakshina Das  <sudi.das@arm.com>
111
112         * config/tc-arm.c (arm_ext_predres): New.
113         (insns): Add new cfprctx, dvprctx and cpprctx instructions.
114         (arm_extensions): Add "predres".
115         * doc/c-arm.texi: Document the above.
116         * testsuite/gas/arm/predres-bad.d: New test.
117         * testsuite/gas/arm/predres-bad.l: New test.
118         * testsuite/gas/arm/predres.s: New test.
119         * testsuite/gas/arm/predres1.d: New test.
120         * testsuite/gas/arm/predres2.d: New test.
121
122 2018-10-05  Sudakshina Das  <sudi.das@arm.com>
123
124         * config/tc-arm.c (arm_ext_sb): New.
125         (insns): Add new sb instruction.
126         (arm_extensions): Add "sb".
127         * doc/c-arm.texi: Document the above.
128         * testsuite/gas/arm/sb-bad.d: New test.
129         * testsuite/gas/arm/sb-bad.l: New test.
130         * testsuite/gas/arm/sb-thumb1.d: New test.
131         * testsuite/gas/arm/sb-thumb2.d: New test.
132         * testsuite/gas/arm/sb.s: New test.
133         * testsuite/gas/arm/sb1.d: New test.
134         * testsuite/gas/arm/sb2.d: New test.
135
136 2018-10-05  Sudakshina Das  <sudi.das@arm.com>
137
138         * config/tc-arm.c (arm_archs): New entry for armv8.5-a.
139         (cpu_arch_ver): Likewise.
140         * doc/c-arm.texi: Add documentation for the same.
141         * testsuite/gas/arm/attr-march-armv8_5-a.d: New.
142
143 2018-10-05  Stafford Horne  <shorne@gmail.com>
144
145         * doc/Makefile.am (CPU_DOCS): Add entry for OpenRISC.
146         * doc/Makefile.in: Regenerated.
147         * doc/all.texi: Set OPENRISC.
148         * doc/as.texi: Document OpenRISC.
149         * doc/c-or1k.texi: New file.
150
151 2018-10-05  Stafford Horne  <shorne@gmail.com>
152
153         * testsuite/gas/or1k/allinsn.s: Add instruction tests for
154         l.muld, l.muldu, l.macu, l.msb, l.msbu.
155         * testsuite/gas/or1k/allinsn.d: Add test results for new
156         instructions.
157
158 2018-10-05  Richard Henderson  <rth@twiddle.net>
159
160         * config/tc-or1k.c (or1k_apply_fix): Add BFD_RELOC_OR1K_TLS_GD_PG21,
161         BFD_RELOC_OR1K_TLS_GD_LO13, BFD_RELOC_OR1K_TLS_LDM_PG21,
162         BFD_RELOC_OR1K_TLS_LDM_LO13, BFD_RELOC_OR1K_TLS_IE_PG21,
163         BFD_RELOC_OR1K_TLS_IE_LO13.
164         * testsuite/gas/or1k/allinsn.s: Add test for l.adrp.
165         * testsuite/gas/or1k/allinsn.d: Add test results for new
166         instructions.
167         * testsuite/gas/or1k/reloc-1.s: Add tests to generate
168         R_OR1K_PLTA26, R_OR1K_GOT_PG21, R_OR1K_TLS_GD_PG21, R_OR1K_TLS_LDM_PG21,
169         R_OR1K_TLS_IE_PG21, R_OR1K_LO13, R_OR1K_GOT_LO13, R_OR1K_TLS_GD_LO13,
170         R_OR1K_TLD_LDM_LO13, R_OR1K_TLS_IE_LO13, R_OR1K_LO13, R_OR1K_SLO13
171         relocations.
172         * testsuite/gas/or1k/reloc-1.d: Add relocation results for
173         tests.
174         * testsuite/gas/or1k/reloc-2.s: Add negative tests for store to
175         gotpo().
176         * testsuite/gas/or1k/reloc-2.l: Add expected error test results.
177
178 2018-10-05  Richard Henderson  <rth@twiddle.net>
179
180         * testsuite/gas/or1k/allinsn.d (l_ha): Add result for ha() relocation.
181         * testsuite/gas/or1k/allinsn.s (l_ha): Add test for ha() relocations.
182         * testsuite/gas/or1k/allinsn.exp: Renamed to or1k.exp.
183         * testsuite/gas/or1k/or1k.exp: Add reloc-2 list test.
184         * testsuite/gas/or1k/reloc-1.d: New file.
185         * testsuite/gas/or1k/reloc-1.s: New file.
186         * testsuite/gas/or1k/reloc-2.l: New file.
187         * testsuite/gas/or1k/reloc-2.s: New file.
188
189 2018-10-03  Tamar Christina  <tamar.christina@arm.com>
190
191         * testsuite/gas/aarch64/sve-movprfx_1.d: New test.
192         * testsuite/gas/aarch64/sve-movprfx_1.s: New test.
193         * testsuite/gas/aarch64/sve-movprfx_10.d: New test.
194         * testsuite/gas/aarch64/sve-movprfx_10.l: New test.
195         * testsuite/gas/aarch64/sve-movprfx_10.s: New test.
196         * testsuite/gas/aarch64/sve-movprfx_11.d: New test.
197         * testsuite/gas/aarch64/sve-movprfx_11.s: New test.
198         * testsuite/gas/aarch64/sve-movprfx_12.d: New test.
199         * testsuite/gas/aarch64/sve-movprfx_12.s: New test.
200         * testsuite/gas/aarch64/sve-movprfx_13.d: New test.
201         * testsuite/gas/aarch64/sve-movprfx_13.l: New test.
202         * testsuite/gas/aarch64/sve-movprfx_13.s: New test.
203         * testsuite/gas/aarch64/sve-movprfx_14.d: New test.
204         * testsuite/gas/aarch64/sve-movprfx_14.l: New test.
205         * testsuite/gas/aarch64/sve-movprfx_14.s: New test.
206         * testsuite/gas/aarch64/sve-movprfx_15.d: New test.
207         * testsuite/gas/aarch64/sve-movprfx_15.l: New test.
208         * testsuite/gas/aarch64/sve-movprfx_15.s: New test.
209         * testsuite/gas/aarch64/sve-movprfx_16.d: New test.
210         * testsuite/gas/aarch64/sve-movprfx_16.s: New test.
211         * testsuite/gas/aarch64/sve-movprfx_17.d: New test.
212         * testsuite/gas/aarch64/sve-movprfx_17.l: New test.
213         * testsuite/gas/aarch64/sve-movprfx_17.s: New test.
214         * testsuite/gas/aarch64/sve-movprfx_18.d: New test.
215         * testsuite/gas/aarch64/sve-movprfx_18.l: New test.
216         * testsuite/gas/aarch64/sve-movprfx_18.s: New test.
217         * testsuite/gas/aarch64/sve-movprfx_19.d: New test.
218         * testsuite/gas/aarch64/sve-movprfx_19.s: New test.
219         * testsuite/gas/aarch64/sve-movprfx_2.d: New test.
220         * testsuite/gas/aarch64/sve-movprfx_2.l: New test.
221         * testsuite/gas/aarch64/sve-movprfx_2.s: New test.
222         * testsuite/gas/aarch64/sve-movprfx_20.d: New test.
223         * testsuite/gas/aarch64/sve-movprfx_20.l: New test.
224         * testsuite/gas/aarch64/sve-movprfx_20.s: New test.
225         * testsuite/gas/aarch64/sve-movprfx_21.d: New test.
226         * testsuite/gas/aarch64/sve-movprfx_21.s: New test.
227         * testsuite/gas/aarch64/sve-movprfx_22.d: New test.
228         * testsuite/gas/aarch64/sve-movprfx_22.l: New test.
229         * testsuite/gas/aarch64/sve-movprfx_22.s: New test.
230         * testsuite/gas/aarch64/sve-movprfx_23.d: New test.
231         * testsuite/gas/aarch64/sve-movprfx_23.l: New test.
232         * testsuite/gas/aarch64/sve-movprfx_23.s: New test.
233         * testsuite/gas/aarch64/sve-movprfx_24.d: New test.
234         * testsuite/gas/aarch64/sve-movprfx_24.l: New test.
235         * testsuite/gas/aarch64/sve-movprfx_24.s: New test.
236         * testsuite/gas/aarch64/sve-movprfx_25.d: New test.
237         * testsuite/gas/aarch64/sve-movprfx_25.l: New test.
238         * testsuite/gas/aarch64/sve-movprfx_25.s: New test.
239         * testsuite/gas/aarch64/sve-movprfx_26.d: New test.
240         * testsuite/gas/aarch64/sve-movprfx_26.l: New test.
241         * testsuite/gas/aarch64/sve-movprfx_26.s: New test.
242         * testsuite/gas/aarch64/sve-movprfx_3.d: New test.
243         * testsuite/gas/aarch64/sve-movprfx_3.l: New test.
244         * testsuite/gas/aarch64/sve-movprfx_3.s: New test.
245         * testsuite/gas/aarch64/sve-movprfx_4.d: New test.
246         * testsuite/gas/aarch64/sve-movprfx_4.l: New test.
247         * testsuite/gas/aarch64/sve-movprfx_4.s: New test.
248         * testsuite/gas/aarch64/sve-movprfx_5.d: New test.
249         * testsuite/gas/aarch64/sve-movprfx_5.s: New test.
250         * testsuite/gas/aarch64/sve-movprfx_6.d: New test.
251         * testsuite/gas/aarch64/sve-movprfx_6.l: New test.
252         * testsuite/gas/aarch64/sve-movprfx_6.s: New test.
253         * testsuite/gas/aarch64/sve-movprfx_7.d: New test.
254         * testsuite/gas/aarch64/sve-movprfx_7.l: New test.
255         * testsuite/gas/aarch64/sve-movprfx_7.s: New test.
256         * testsuite/gas/aarch64/sve-movprfx_8.d: New test.
257         * testsuite/gas/aarch64/sve-movprfx_8.l: New test.
258         * testsuite/gas/aarch64/sve-movprfx_8.s: New test.
259         * testsuite/gas/aarch64/sve-movprfx_9.d: New test.
260         * testsuite/gas/aarch64/sve-movprfx_9.l: New test.
261         * testsuite/gas/aarch64/sve-movprfx_9.s: New test.
262
263 2018-10-03  Tamar Christina  <tamar.christina@arm.com>
264
265         * testsuite/gas/aarch64/sve-movprfx.d: New test.
266         * testsuite/gas/aarch64/sve-movprfx.s: New test.
267         * testsuite/gas/aarch64/sve.d: Refactor.
268         * testsuite/gas/aarch64/sve.s: Refactor.
269         * testsuite/gas/aarch64/sysreg-diagnostic.d: Update.
270
271 2018-10-03  Tamar Christina  <tamar.christina@arm.com>
272
273         * config/tc-aarch64.c (force_automatic_sequence_close,
274         aarch64_frob_section): New.
275         * config/tc-aarch64.h (tc_frob_section, aarch64_frob_section): New.
276
277 2018-10-03  Tamar Christina  <tamar.christina@arm.com>
278
279         * config/tc-aarch64.c (output_operand_error_report): Order warnings.
280
281 2018-10-03  Tamar Christina  <tamar.christina@arm.com>
282
283         * config/tc-aarch64.c (now_instr_sequence):
284         (*insn_sequence, now_instr_sequence): New.
285         (output_operand_error_record, do_encode): Add insn_sequence.
286         (md_assemble): Update insn_sequence.
287         (try_to_encode_as_unscaled_ldst, fix_mov_imm_insn, fix_insn):
288         Pass insn_sequence.
289         * config/tc-aarch64.h (struct aarch64_segment_info_type):
290         Add insn_sequence.
291
292 2018-10-02  Palmer Dabbelt  <palmer@sifive.com>
293
294         * testsuite/gas/riscv/fence-tso.d: New file.
295         * testsuite/gas/riscv/fence-tso.s: Likewise.
296
297 2018-09-26  Sandra Loosemore  <sandra@codesourcery.com>
298
299         * testsuite/gas/all/gas.exp: Skip "Output file must be distinct
300         from input" test on Windows host.
301
302 2018-09-21  H.J. Lu  <hongjiu.lu@intel.com>
303
304         PR gas/23691
305         * Makefile.am (bfin-parse.c): Depend on $(srcdir)/../bfd/reloc.c.
306         (rl78-parse.c): Likewise.
307         (rx-parse.c): Likewise.
308         * Makefile.in: Regenerated.
309
310 2018-09-21  Alan Modra  <amodra@gmail.com>
311
312         * testsuite/gas/avr/large-debug-line-table.d: Update.
313
314 2018-09-20  H.J. Lu  <hongjiu.lu@intel.com>
315
316         PR binutils/23695
317         * testsuite/gas/elf/dwarf2-11.d: Update expected outputs of
318         "readelf -wL".
319         * testsuite/gas/elf/dwarf2-12.d: Likewise.
320         * testsuite/gas/elf/dwarf2-13.d: Likewise.
321         * testsuite/gas/elf/dwarf2-14.d: Likewise.
322         * testsuite/gas/elf/dwarf2-15.d: Likewise.
323         * testsuite/gas/elf/dwarf2-16.d: Likewise.
324         * testsuite/gas/elf/dwarf2-17.d: Likewise.
325         * testsuite/gas/elf/dwarf2-18.d: Likewise.
326         * testsuite/gas/elf/dwarf2-5.d: Likewise.
327         * testsuite/gas/elf/dwarf2-6.d: Likewise.
328         * testsuite/gas/elf/dwarf2-7.d: Likewise.
329
330 2018-09-20  Maciej W. Rozycki  <macro@linux-mips.org>
331
332         * config/tc-s12z.c (lex_opr): Use an auxiliary unsigned variable
333         in encoding a constant operand.
334
335 2018-09-20  Maciej W. Rozycki  <macro@linux-mips.org>
336
337         * config/tc-ppc.c (ppc_dwsect): Use `valueT' rather than
338         `offsetT' as the type of `flag'.
339
340 2018-09-20  Maciej W. Rozycki  <macro@linux-mips.org>
341
342         * config/tc-arc.c (md_number_to_chars_midend): Append `ull' to
343         large constants.
344
345 2018-09-20  Nelson Chu <nelson.chu1990@gmail.com>
346
347         * config/tc-nds32.c: Remove the unused target features.
348         (nds32_relax_relocs, md_pseudo_table, nds32_elf_record_fixup_exp,
349         nds32_set_elf_flags_by_insn, nds32_insert_relax_entry,
350         nds32_apply_fix): Likewise.
351         (nds32_no_ex9_begin): Removed.
352         * config/tc-nds32.c (add_mapping_symbol_for_align,
353         make_mapping_symbol, add_mapping_symbol): New functions.
354         * config/tc-nds32.h (enum mstate): New.
355         (nds32_segment_info_type): Likewise.
356         * configure.ac (--enable-dsp-ext, --enable-zol-ext): New options.
357         * config.in: Regenerated.
358         * configure: Regenerated.
359         * config/tc-nds32.c (nds32_dx_regs):
360         Set the value according to the configuration.
361         (nds32_perf_ext, nds32_perf_ext2, nds32_string_ext, nds32_audio_ext):
362         Likewise.
363         (nds32_dsp_ext): New variable. Set the value according to the
364         configuration.
365         (nds32_zol_ext): Likewise.
366         (asm_desc, nds32_pseudo_opcode_table): Make them static.
367         (nds32_set_elf_flags_by_insn): Updated.
368         (nds32_check_insn_available): Updated.
369         (nds32_str_tolower): New function.
370         * config/tc-nds32.c (relax_table): Updated.
371         (md_begin): Updated.
372         (md_assemble): Use XNEW macro to allocate space for `insn.info',
373         and then remember to free it.
374         (md_section_align): Cast (-1) to ValueT.
375         (nds32_get_align): Cast (~0U) to addressT.
376         (nds32_relax_branch_instructions): Updated.
377         (md_convert_frag): Add new local variable `final_r_type'.
378         (invalid_prev_frag): Add new bfd_boolean parameter `relax'.
379         All callers changed.
380         * config/tc-nds32.c (struct nds32_relocs_pattern): Add `insn' field.
381         (struct nds32_hint_map): Add `option_list' field.
382         (struct suffix_name, suffix_table): Remove the unused `pic' field.
383         (do_pseudo_b, do_pseudo_bal): Remove the suffix checking.
384         (do_pseudo_la_internal, do_pseudo_pushpopm): Indent.
385         (relax_hint_bias, relax_hint_id_current): New static variables.
386         (reset_bias, relax_hint_begin): New variables.
387         (nds_itoa): New function.
388         (CLEAN_REG, GET_OPCODE): New macros.
389         (struct relax_hint_id): New.
390         (nds32_relax_hint): For .relax_hint directive, we can use `begin'
391         and `end' to mark the relax pattern without giving exactly id number.
392         (nds32_elf_append_relax_relocs): Handle the case that the .relax_hint
393         directives are attached to pseudo instruction.
394         (nds32_elf_save_pseudo_pattern): Change the second parameter from
395         instruction's opcode to byte code.
396         (nds32_elf_build_relax_relation): Add new bfd_boolean parameter
397         `pseudo_hint'.
398         (nds32_lookup_pseudo_opcode): Fix the overflow issue.
399         (enum nds32_insn_type): Add N32_RELAX_ALU1 and N32_RELAX_16BIT.
400         (nds32_elf_record_fixup_exp, relax_ls_table, hint_map,
401         nds32_find_reloc_table, nds32_match_hint_insn, nds32_parse_name):
402         Updated.
403         * config/tc-nds32.h (MAX_RELAX_NUM): Extend it to 6.
404         (enum nds32_relax_hint_type): Merge NDS32_RELAX_HINT_LA and
405         NDS32_RELAX_HINT_LS into NDS32_RELAX_HINT_LALS. Add
406         NDS32_RELAX_HINT_LA_PLT, NDS32_RELAX_HINT_LA_GOT and
407         NDS32_RELAX_HINT_LA_GOTOFF.
408         * config/tc-nds32.h (relax_ls_table): Add floating load/store
409         to gp relax pattern.
410         (hint_map, nds32_find_reloc_table): Likewise.
411         * configure.ac: Define NDS32_LINUX_TOOLCHAIN.
412         * configure: Regenerated.
413         * config.in: Regenerated.
414         * config/tc-nds32.h (enum nds32_ramp): Updated.
415         (enum nds32_relax_hint_type): Likewise.
416         * config/tc-nds32.c: Include "errno.h" and "limits.h".
417         (relax_ls_table): Add TLS relax patterns.
418         (nds32_elf_append_relax_relocs): Attach BFD_RELOC_NDS32_GROUP on
419         each instructions of TLS patterns.
420         (nds32_elf_record_fixup_exp): Updated.
421         (nds32_apply_fix): Likewise.
422         (suffix_table): Add TLSDESC suffix.
423
424 2018-09-18 Tamar Christina  <tamar.christina@arm.com>
425
426         * config/tc-aarch64.c (output_operand_error_report): Apply filtering to
427         current instead of head message.
428
429 2018-09-17  Kito Cheng  <kito@andestech.com>
430
431         * testsuite/gas/riscv/bge.d: New.
432         * testsuite/gas/riscv/bge.s: Likewise.
433
434 2018-09-17  H.J. Lu  <hongjiu.lu@intel.com>
435
436         PR gas/23670
437         * testsuite/gas/i386/evex-lig-2.d: New file.
438         * testsuite/gas/i386/evex-lig-2.s: Likewise.
439         * testsuite/gas/i386/x86-64-evex-lig-2.d: Likewise.
440         * testsuite/gas/i386/x86-64-evex-lig-2.s: Likewise.
441         * testsuite/gas/i386/i386.exp: Run evex-lig-2 and
442         x86-64-evex-lig-2.
443
444 2018-09-17  H.J. Lu  <hongjiu.lu@intel.com>
445
446         PR gas/23665
447         * testsuite/gas/i386/avx-scalar.s: Remove vmovq and vmovd tests.
448         * testsuite/gas/i386/x86-64-avx-scalar.s: Likewise.
449         * testsuite/gas/i386/avx-scalar-intel.d: Updated.
450         * testsuite/gas/i386/avx-scalar.d: Likewise.
451         * testsuite/gas/i386/x86-64-avx-scalar-intel.d: Likewise.
452         * testsuite/gas/i386/x86-64-avx-scalar.d: Likewise.
453         * testsuite/gas/i386/i386.exp: Run avx-scalar2 and
454         x86-64-avx-scalar2.
455         * testsuite/gas/i386/avx-scalar-2.d: New file.
456         * testsuite/gas/i386/avx-scalar-2.s: Likewise.
457         * testsuite/gas/i386/x86-64-avx-scalar-2.d: Likewise.
458         * testsuite/gas/i386/x86-64-avx-scalar-2.s: Likewise.
459
460 2018-09-17  H.J. Lu  <hongjiu.lu@intel.com>
461
462         * gas/NEWS: Mention -mvexwig=[0|1] option.
463         * config/tc-i386.c (vexwig): New.
464         (build_vex_prefix): Set the VEX.W bit for -mvexwig=1 for WIG
465         VEX instructions.
466         (OPTION_MVEXWIG): New.
467         (md_longopts): Add -mvexwig=.
468         (md_parse_option): Handle OPTION_MVEXWIG.
469         (md_show_usage): Show -mvexwig=[0|1].
470         * doc/c-i386.texi: Document -mvexwig=[0|1].
471         * testsuite/gas/i386/avx-wig.d: New file.
472         * testsuite/gas/i386/avx-wig.s: Likewise.
473         * testsuite/gas/i386/avx2-wig.d: Likewise.
474         * testsuite/gas/i386/avx2-wig.s: Likewise.
475         * testsuite/gas/i386/x86-64-avx-wig.d: Likewise.
476         * testsuite/gas/i386/x86-64-avx-wig.s: Likewise.
477         * testsuite/gas/i386/x86-64-avx2-wig.d: Likewise.
478         * testsuite/gas/i386/x86-64-avx2-wig.s: Likewise.
479         * testsuite/gas/i386/i386.exp: Run avx-wig, avx2-wig,
480         x86-64-avx-wig and x86-64-avx2-wig.
481
482 2018-09-17  Alan Modra  <amodra@gmail.com>
483
484         * testsuite/gas/arm/arch7.d: Delete notarget.
485         * testsuite/gas/arm/arch7a-mp.d: Likewise.
486         * testsuite/gas/arm/arch7em.d: Likewise.
487         * testsuite/gas/arm/archv8m-main-dsp-5.d: Likewise.
488         * testsuite/gas/arm/barrier.d: Likewise.
489         * testsuite/gas/arm/bignum1.d: Likewise.
490         * testsuite/gas/arm/thumb32.d: Likewise.
491         * testsuite/gas/elf/dwarf2-1.d: Likewise.
492         * testsuite/gas/elf/dwarf2-2.d: Likewise.
493         * testsuite/gas/elf/dwarf2-4.d: Likewise.
494         * testsuite/gas/elf/group2.d: Likewise.
495         * testsuite/gas/arm/mapshort-elf.d: Only notarget pe and wince.
496         * testsuite/gas/elf/dwarf2-3.d: Delete notarget, xfail ft32 and h8300.
497         * testsuite/gas/elf/dwarf2-6.d: Delete notarget, xfail a few.
498
499 2018-09-17  Alan Modra  <amodra@gmail.com>
500
501         * testsuite/gas/all/gas.exp (redef3): Don't xfail for hppa.
502         (octa): Run for hppa.
503         * testsuite/gas/elf/elf.exp (common1, common2): Likewise.
504         * testsuite/gas/elf/symver.d: Delete notarget.
505
506 2018-09-17  Nick Clifton  <nickc@redhat.com>
507
508         * testuite/gas/elf/group0a.d: Add extra details to the test
509         name.
510         * testuite/gas/elf/group0b.d: Likewise.
511         * testuite/gas/elf/group1a.d: Likewise.
512         * testuite/gas/elf/group1b.d: Likewise.
513         * testuite/gas/elf/group0b.d: Likewise.
514         * testuite/gas/elf/section9.d: Likewise.
515         * testuite/gas/i386/ilp32/lns/lns-common-1.d: Likewise.
516         * testuite/gas/i386/ilp32/lns/lns-duplicate-1.d: Likewise.
517
518 2018-09-15  H.J. Lu  <hongjiu.lu@intel.com>
519
520         PR gas/23665
521         * testsuite/gas/i386/avx-scalar-intel.d: Updated.
522         * testsuite/gas/i386/avx-scalar.d: Likewise.
523         * testsuite/gas/i386/x86-64-avx-scalar-intel.d: Likewise.
524         * testsuite/gas/i386/x86-64-avx-scalar.d: Likewise.
525
526 2018-09-15  Alan Modra  <amodra@gmail.com>
527
528         * testsuite/config/default.exp: Make tmpdir.
529         * testsuite/lib/gas-defs.exp (run_dump_test): Delete.
530         (get_standard_section_names, slurp_options): Delete.
531
532 2018-09-15  Alan Modra  <amodra@gmail.com>
533
534         * testsuite/gas/mips/aent-2.d,
535         * testsuite/gas/mips/aent-mdebug-2.d,
536         * testsuite/gas/mips/attr-gnu-4-0.d,
537         * testsuite/gas/mips/attr-gnu-4-1.d,
538         * testsuite/gas/mips/attr-gnu-4-2.d,
539         * testsuite/gas/mips/attr-gnu-4-3.d,
540         * testsuite/gas/mips/attr-gnu-4-5.d,
541         * testsuite/gas/mips/attr-gnu-4-6.d,
542         * testsuite/gas/mips/attr-gnu-4-7.d,
543         * testsuite/gas/mips/attr-none-double.d,
544         * testsuite/gas/mips/attr-none-o32-fp64-nooddspreg.d,
545         * testsuite/gas/mips/attr-none-o32-fp64.d,
546         * testsuite/gas/mips/attr-none-o32-fpxx.d,
547         * testsuite/gas/mips/attr-none-single-float.d,
548         * testsuite/gas/mips/attr-none-soft-float.d,
549         * testsuite/gas/mips/elf-rel27.d,
550         * testsuite/gas/mips/loc-swap-2.d,
551         * testsuite/gas/mips/loc-swap-3.d,
552         * testsuite/gas/mips/loc-swap.d,
553         * testsuite/gas/mips/micromips@loc-swap-2.d,
554         * testsuite/gas/mips/micromips@loc-swap.d,
555         * testsuite/gas/mips/micromips@stabs-symbol-type.d,
556         * testsuite/gas/mips/mips16-intermix.d,
557         * testsuite/gas/mips/mips16@loc-swap-2.d,
558         * testsuite/gas/mips/mips16@loc-swap.d,
559         * testsuite/gas/mips/mips16@stabs-symbol-type.d,
560         * testsuite/gas/mips/mips16e@loc-swap.d,
561         * testsuite/gas/mips/no-odd-spreg.d,
562         * testsuite/gas/mips/odd-spreg.d,
563         * testsuite/gas/mips/r6-attr-none-double.d,
564         * testsuite/gas/mips/stabs-symbol-type.d,
565         * testsuite/lib/gas-defs.exp (run_dump_test): Replace PROG
566         with DUMPPROG.
567
568 2018-09-15  Alan Modra  <amodra@gmail.com>
569
570         * testsuite/gas/elf/symver.d,
571         * testsuite/gas/ft32/insn.d,
572         * testsuite/gas/ft32/insnsc.d,
573         * testsuite/gas/i386/ilp32/elf/symver.d,
574         * testsuite/gas/lm32/csr.d,
575         * testsuite/gas/lm32/insn.d,
576         * testsuite/gas/m68hc11/9s12x-exg-sex-tfr.d,
577         * testsuite/gas/m68hc11/9s12x-mov.d,
578         * testsuite/gas/m68hc11/hexprefix.d,
579         * testsuite/gas/m68hc11/insns9s12x.d,
580         * testsuite/gas/m68hc11/insns9s12xg.d,
581         * testsuite/gas/mep/dj1.be.d,
582         * testsuite/gas/mep/dj1.le.d,
583         * testsuite/gas/mips/set-arch.d,
584         * testsuite/gas/mips/tls-o32.d,
585         * testsuite/gas/nios2/branch-r2.d,
586         * testsuite/gas/nios2/branch.d,
587         * testsuite/gas/pdp11/absreloc.d,
588         * testsuite/gas/pdp11/opcode.d,
589         * testsuite/gas/pdp11/pr14480.d,
590         * testsuite/gas/pdp11/pr23481.d,
591         * testsuite/gas/ppc/xcoff-dwsect-1-32.d,
592         * testsuite/gas/ppc/xcoff-dwsect-1-64.d,
593         * testsuite/gas/rx/abs.d,
594         * testsuite/gas/rx/adc.d,
595         * testsuite/gas/rx/add.d,
596         * testsuite/gas/rx/and.d,
597         * testsuite/gas/rx/bclr.d,
598         * testsuite/gas/rx/bcnd.d,
599         * testsuite/gas/rx/bmcnd.d,
600         * testsuite/gas/rx/bnot.d,
601         * testsuite/gas/rx/bra.d,
602         * testsuite/gas/rx/brk.d,
603         * testsuite/gas/rx/bset.d,
604         * testsuite/gas/rx/bsr.d,
605         * testsuite/gas/rx/btst.d,
606         * testsuite/gas/rx/clrpsw.d,
607         * testsuite/gas/rx/cmp.d,
608         * testsuite/gas/rx/dbt.d,
609         * testsuite/gas/rx/div.d,
610         * testsuite/gas/rx/divu.d,
611         * testsuite/gas/rx/emaca.d,
612         * testsuite/gas/rx/emsba.d,
613         * testsuite/gas/rx/emul.d,
614         * testsuite/gas/rx/emula.d,
615         * testsuite/gas/rx/emulu.d,
616         * testsuite/gas/rx/fadd.d,
617         * testsuite/gas/rx/fcmp.d,
618         * testsuite/gas/rx/fdiv.d,
619         * testsuite/gas/rx/fmul.d,
620         * testsuite/gas/rx/fsqrt.d,
621         * testsuite/gas/rx/fsub.d,
622         * testsuite/gas/rx/ftoi.d,
623         * testsuite/gas/rx/ftou.d,
624         * testsuite/gas/rx/gprel.d,
625         * testsuite/gas/rx/int.d,
626         * testsuite/gas/rx/itof.d,
627         * testsuite/gas/rx/jmp.d,
628         * testsuite/gas/rx/jsr.d,
629         * testsuite/gas/rx/machi.d,
630         * testsuite/gas/rx/maclh.d,
631         * testsuite/gas/rx/maclo.d,
632         * testsuite/gas/rx/max.d,
633         * testsuite/gas/rx/min.d,
634         * testsuite/gas/rx/mov.d,
635         * testsuite/gas/rx/movco.d,
636         * testsuite/gas/rx/movli.d,
637         * testsuite/gas/rx/movu.d,
638         * testsuite/gas/rx/msbhi.d,
639         * testsuite/gas/rx/msblh.d,
640         * testsuite/gas/rx/msblo.d,
641         * testsuite/gas/rx/mul.d,
642         * testsuite/gas/rx/mulhi.d,
643         * testsuite/gas/rx/mullh.d,
644         * testsuite/gas/rx/mullo.d,
645         * testsuite/gas/rx/mvfacgu.d,
646         * testsuite/gas/rx/mvfachi.d,
647         * testsuite/gas/rx/mvfaclo.d,
648         * testsuite/gas/rx/mvfacmi.d,
649         * testsuite/gas/rx/mvfc.d,
650         * testsuite/gas/rx/mvfcp.d,
651         * testsuite/gas/rx/mvtacgu.d,
652         * testsuite/gas/rx/mvtachi.d,
653         * testsuite/gas/rx/mvtaclo.d,
654         * testsuite/gas/rx/mvtc.d,
655         * testsuite/gas/rx/mvtcp.d,
656         * testsuite/gas/rx/neg.d,
657         * testsuite/gas/rx/nop.d,
658         * testsuite/gas/rx/not.d,
659         * testsuite/gas/rx/opecp.d,
660         * testsuite/gas/rx/or.d,
661         * testsuite/gas/rx/pop.d,
662         * testsuite/gas/rx/popc.d,
663         * testsuite/gas/rx/popm.d,
664         * testsuite/gas/rx/pr19665.d,
665         * testsuite/gas/rx/pr22737.d,
666         * testsuite/gas/rx/push.d,
667         * testsuite/gas/rx/pushc.d,
668         * testsuite/gas/rx/pushm.d,
669         * testsuite/gas/rx/r-bcc.d,
670         * testsuite/gas/rx/r-bra.d,
671         * testsuite/gas/rx/racl.d,
672         * testsuite/gas/rx/racw.d,
673         * testsuite/gas/rx/rdacl.d,
674         * testsuite/gas/rx/rdacw.d,
675         * testsuite/gas/rx/revl.d,
676         * testsuite/gas/rx/revw.d,
677         * testsuite/gas/rx/rmpa.d,
678         * testsuite/gas/rx/rolc.d,
679         * testsuite/gas/rx/rorc.d,
680         * testsuite/gas/rx/rotl.d,
681         * testsuite/gas/rx/rotr.d,
682         * testsuite/gas/rx/round.d,
683         * testsuite/gas/rx/rte.d,
684         * testsuite/gas/rx/rtfi.d,
685         * testsuite/gas/rx/rts.d,
686         * testsuite/gas/rx/rtsd.d,
687         * testsuite/gas/rx/sat.d,
688         * testsuite/gas/rx/satr.d,
689         * testsuite/gas/rx/sbb.d,
690         * testsuite/gas/rx/sccnd.d,
691         * testsuite/gas/rx/scmpu.d,
692         * testsuite/gas/rx/setpsw.d,
693         * testsuite/gas/rx/shar.d,
694         * testsuite/gas/rx/shll.d,
695         * testsuite/gas/rx/shlr.d,
696         * testsuite/gas/rx/smovb.d,
697         * testsuite/gas/rx/smovf.d,
698         * testsuite/gas/rx/smovu.d,
699         * testsuite/gas/rx/sstr.d,
700         * testsuite/gas/rx/stnz.d,
701         * testsuite/gas/rx/stz.d,
702         * testsuite/gas/rx/sub.d,
703         * testsuite/gas/rx/suntil.d,
704         * testsuite/gas/rx/swhile.d,
705         * testsuite/gas/rx/tst.d,
706         * testsuite/gas/rx/utof.d,
707         * testsuite/gas/rx/wait.d,
708         * testsuite/gas/rx/xchg.d,
709         * testsuite/gas/rx/xor.d,
710         * testsuite/gas/s12z/abs.d,
711         * testsuite/gas/s12z/adc-imm.d,
712         * testsuite/gas/s12z/adc-opr.d,
713         * testsuite/gas/s12z/add-imm.d,
714         * testsuite/gas/s12z/add-opr.d,
715         * testsuite/gas/s12z/and-imm.d,
716         * testsuite/gas/s12z/and-opr.d,
717         * testsuite/gas/s12z/and-or-cc.d,
718         * testsuite/gas/s12z/bfext-special.d,
719         * testsuite/gas/s12z/bfext.d,
720         * testsuite/gas/s12z/bit-manip.d,
721         * testsuite/gas/s12z/bit.d,
722         * testsuite/gas/s12z/bra-expression-defined.d,
723         * testsuite/gas/s12z/bra-expression-undef.d,
724         * testsuite/gas/s12z/bra.d,
725         * testsuite/gas/s12z/brclr-symbols.d,
726         * testsuite/gas/s12z/brset-clr-opr-imm-rel.d,
727         * testsuite/gas/s12z/brset-clr-opr-reg-rel.d,
728         * testsuite/gas/s12z/brset-clr-reg-imm-rel.d,
729         * testsuite/gas/s12z/brset-clr-reg-reg-rel.d,
730         * testsuite/gas/s12z/clb.d,
731         * testsuite/gas/s12z/clr-opr.d,
732         * testsuite/gas/s12z/clr.d,
733         * testsuite/gas/s12z/cmp-imm.d,
734         * testsuite/gas/s12z/cmp-opr-inc.d,
735         * testsuite/gas/s12z/cmp-opr-rdirect.d,
736         * testsuite/gas/s12z/cmp-opr-reg.d,
737         * testsuite/gas/s12z/cmp-opr-rindirect.d,
738         * testsuite/gas/s12z/cmp-opr-sxe4.d,
739         * testsuite/gas/s12z/cmp-opr-xys.d,
740         * testsuite/gas/s12z/cmp-s-imm.d,
741         * testsuite/gas/s12z/cmp-s-opr.d,
742         * testsuite/gas/s12z/cmp-xy.d,
743         * testsuite/gas/s12z/com-opr.d,
744         * testsuite/gas/s12z/complex-shifts.d,
745         * testsuite/gas/s12z/db-tb-cc-opr.d,
746         * testsuite/gas/s12z/db-tb-cc-reg.d,
747         * testsuite/gas/s12z/dbCC.d,
748         * testsuite/gas/s12z/dec-opr.d,
749         * testsuite/gas/s12z/dec.d,
750         * testsuite/gas/s12z/div.d,
751         * testsuite/gas/s12z/eor.d,
752         * testsuite/gas/s12z/exg.d,
753         * testsuite/gas/s12z/ext24-ld-xy.d,
754         * testsuite/gas/s12z/inc-opr.d,
755         * testsuite/gas/s12z/inc.d,
756         * testsuite/gas/s12z/inh.d,
757         * testsuite/gas/s12z/jmp.d,
758         * testsuite/gas/s12z/jsr.d,
759         * testsuite/gas/s12z/ld-imm-page2.d,
760         * testsuite/gas/s12z/ld-imm.d,
761         * testsuite/gas/s12z/ld-immu18.d,
762         * testsuite/gas/s12z/ld-large-direct.d,
763         * testsuite/gas/s12z/ld-opr.d,
764         * testsuite/gas/s12z/ld-s-opr.d,
765         * testsuite/gas/s12z/ld-small-direct.d,
766         * testsuite/gas/s12z/lea-immu18.d,
767         * testsuite/gas/s12z/lea.d,
768         * testsuite/gas/s12z/mac.d,
769         * testsuite/gas/s12z/min-max.d,
770         * testsuite/gas/s12z/mod.d,
771         * testsuite/gas/s12z/mov.d,
772         * testsuite/gas/s12z/mul-imm.d,
773         * testsuite/gas/s12z/mul-opr-opr.d,
774         * testsuite/gas/s12z/mul-opr.d,
775         * testsuite/gas/s12z/mul-reg.d,
776         * testsuite/gas/s12z/mul.d,
777         * testsuite/gas/s12z/neg-opr.d,
778         * testsuite/gas/s12z/not-so-simple-shifts.d,
779         * testsuite/gas/s12z/opr-18u.d,
780         * testsuite/gas/s12z/opr-expr.d,
781         * testsuite/gas/s12z/opr-ext-18.d,
782         * testsuite/gas/s12z/opr-idx-24-reg.d,
783         * testsuite/gas/s12z/opr-idx3-reg.d,
784         * testsuite/gas/s12z/opr-idx3-xysp-24.d,
785         * testsuite/gas/s12z/opr-indirect-expr.d,
786         * testsuite/gas/s12z/opr-symbol.d,
787         * testsuite/gas/s12z/or-imm.d,
788         * testsuite/gas/s12z/or-opr.d,
789         * testsuite/gas/s12z/p2-mul.d,
790         * testsuite/gas/s12z/page2-inh.d,
791         * testsuite/gas/s12z/psh-pul.d,
792         * testsuite/gas/s12z/qmul.d,
793         * testsuite/gas/s12z/rotate.d,
794         * testsuite/gas/s12z/sat.d,
795         * testsuite/gas/s12z/sbc-imm.d,
796         * testsuite/gas/s12z/sbc-opr.d,
797         * testsuite/gas/s12z/shift.d,
798         * testsuite/gas/s12z/simple-shift.d,
799         * testsuite/gas/s12z/single-ops.d,
800         * testsuite/gas/s12z/specd6.d,
801         * testsuite/gas/s12z/st-large-direct.d,
802         * testsuite/gas/s12z/st-opr.d,
803         * testsuite/gas/s12z/st-s-opr.d,
804         * testsuite/gas/s12z/st-small-direct.d,
805         * testsuite/gas/s12z/st-xy.d,
806         * testsuite/gas/s12z/sub-imm.d,
807         * testsuite/gas/s12z/sub-opr.d,
808         * testsuite/gas/s12z/tfr.d,
809         * testsuite/gas/s12z/trap.d,
810         * testsuite/gas/sh/fdpic.d,
811         * testsuite/gas/sh/sh2a-pic.d,
812         * testsuite/gas/sh/sh2a.d: Don't match object file name.
813         * testsuite/gas/wasm32/disass-2.d,
814         * testsuite/gas/wasm32/disass.d: Likewise, and tidy regexps.
815
816 2018-09-15  Alan Modra  <amodra@gmail.com>
817
818         * testsuite/gas/aarch64/armv8_2-a-crypto-fp16-illegal.d,
819         * testsuite/gas/aarch64/armv8_2-a-illegal.d,
820         * testsuite/gas/aarch64/armv8_4-a-illegal.d,
821         * testsuite/gas/aarch64/armv8_4-a-registers-illegal.d,
822         * testsuite/gas/aarch64/deprecated.d,
823         * testsuite/gas/aarch64/diagnostic.d,
824         * testsuite/gas/aarch64/illegal-2.d,
825         * testsuite/gas/aarch64/illegal-by-element.d,
826         * testsuite/gas/aarch64/illegal-crypto-nofp.d,
827         * testsuite/gas/aarch64/illegal-fcmla.d,
828         * testsuite/gas/aarch64/illegal-fjcvtzs.d,
829         * testsuite/gas/aarch64/illegal-fp16-nofp.d,
830         * testsuite/gas/aarch64/illegal-ldapr.d,
831         * testsuite/gas/aarch64/illegal-ldraa.d,
832         * testsuite/gas/aarch64/illegal-lse.d,
833         * testsuite/gas/aarch64/illegal-nofp-armv8_3.d,
834         * testsuite/gas/aarch64/illegal-nofp16.d,
835         * testsuite/gas/aarch64/illegal-ras-1.d,
836         * testsuite/gas/aarch64/illegal-sysreg-2.d,
837         * testsuite/gas/aarch64/illegal-sysreg-3.d,
838         * testsuite/gas/aarch64/illegal.d,
839         * testsuite/gas/aarch64/legacy_reg_names.d,
840         * testsuite/gas/aarch64/pan-illegal.d,
841         * testsuite/gas/aarch64/pr22529.d,
842         * testsuite/gas/aarch64/rm-simd-ext.d,
843         * testsuite/gas/aarch64/sve-invalid.d,
844         * testsuite/gas/aarch64/sve-reg-diagnostic.d,
845         * testsuite/gas/aarch64/sve-sysreg-invalid.d,
846         * testsuite/gas/aarch64/sysreg-diagnostic.d,
847         * testsuite/gas/aarch64/verbose-error.d,
848         * testsuite/gas/all/byte.d,
849         * testsuite/gas/all/org-1.d,
850         * testsuite/gas/all/org-2.d,
851         * testsuite/gas/all/org-3.d,
852         * testsuite/gas/all/sleb128-9.d,
853         * testsuite/gas/arc/asm-errors-2.d,
854         * testsuite/gas/arc/asm-errors-3.d,
855         * testsuite/gas/arc/asm-errors.d,
856         * testsuite/gas/arc/attr-rf16.d,
857         * testsuite/gas/arc/relocs-errors.d,
858         * testsuite/gas/arc/textinsn-errors.d,
859         * testsuite/gas/arm/addsw-bad.d,
860         * testsuite/gas/arm/addthumb2err.d,
861         * testsuite/gas/arm/adr-invalid.d,
862         * testsuite/gas/arm/arch7em-bad-1.d,
863         * testsuite/gas/arm/arch7em-bad-2.d,
864         * testsuite/gas/arm/arch7em-bad-3.d,
865         * testsuite/gas/arm/arch7m-bad.d,
866         * testsuite/gas/arm/archv6s-m-bad.d,
867         * testsuite/gas/arm/archv6t2-bad.d,
868         * testsuite/gas/arm/arm-idiv-bad.d,
869         * testsuite/gas/arm/arm-it-bad-2.d,
870         * testsuite/gas/arm/arm-it-bad-3.d,
871         * testsuite/gas/arm/arm-it-bad.d,
872         * testsuite/gas/arm/arm3-bad.d,
873         * testsuite/gas/arm/arm7-bad.d,
874         * testsuite/gas/arm/armv1-bad.d,
875         * testsuite/gas/arm/armv1.d,
876         * testsuite/gas/arm/armv2-mp-bad.d,
877         * testsuite/gas/arm/armv8-2-fp16-scalar-bad.d,
878         * testsuite/gas/arm/armv8-2-fp16-simd-warning-thumb.d,
879         * testsuite/gas/arm/armv8-2-fp16-simd-warning.d,
880         * testsuite/gas/arm/armv8-a+rdma-warning.d,
881         * testsuite/gas/arm/armv8-a-bad.d,
882         * testsuite/gas/arm/armv8-a-it-bad.d,
883         * testsuite/gas/arm/armv8-r-bad.d,
884         * testsuite/gas/arm/armv8-r-it-bad.d,
885         * testsuite/gas/arm/armv8_2-a-fp16-illegal.d,
886         * testsuite/gas/arm/armv8_3-a-fp-bad.d,
887         * testsuite/gas/arm/armv8_3-a-simd-bad.d,
888         * testsuite/gas/arm/barrier-bad-thumb.d,
889         * testsuite/gas/arm/barrier-bad.d,
890         * testsuite/gas/arm/bl-local-v4t.d,
891         * testsuite/gas/arm/blx-bl-convert.d,
892         * testsuite/gas/arm/blx-local.d,
893         * testsuite/gas/arm/branch-reloc.d,
894         * testsuite/gas/arm/copro-arm_v2plus-arm_v1.d,
895         * testsuite/gas/arm/copro-arm_v5plus-arm_v4.d,
896         * testsuite/gas/arm/copro-arm_v5teplus-arm_v5.d,
897         * testsuite/gas/arm/copro-arm_v6plus-arm_v5te.d,
898         * testsuite/gas/arm/copro-thumb_v6t2plus-thumb_v4t-1.d,
899         * testsuite/gas/arm/copro-thumb_v6t2plus-thumb_v4t-2.d,
900         * testsuite/gas/arm/copro-thumb_v6t2plus-thumb_v4t-3.d,
901         * testsuite/gas/arm/copro-thumb_v6t2plus-thumb_v4t-4.d,
902         * testsuite/gas/arm/crc32-armv8-a-bad.d,
903         * testsuite/gas/arm/crc32-armv8-r-bad.d,
904         * testsuite/gas/arm/depr-swp.d,
905         * testsuite/gas/arm/dest-unpredictable.d,
906         * testsuite/gas/arm/dotprod-illegal.d,
907         * testsuite/gas/arm/dotprod-legacy-arch.d,
908         * testsuite/gas/arm/forbid-armv7-idiv-ext.d,
909         * testsuite/gas/arm/group-reloc-alu-encoding-bad.d,
910         * testsuite/gas/arm/group-reloc-alu-parsing-bad.d,
911         * testsuite/gas/arm/group-reloc-ldc-encoding-bad.d,
912         * testsuite/gas/arm/group-reloc-ldc-parsing-bad.d,
913         * testsuite/gas/arm/group-reloc-ldr-encoding-bad.d,
914         * testsuite/gas/arm/group-reloc-ldr-parsing-bad.d,
915         * testsuite/gas/arm/group-reloc-ldrs-encoding-bad.d,
916         * testsuite/gas/arm/group-reloc-ldrs-parsing-bad.d,
917         * testsuite/gas/arm/insn-error-a.d,
918         * testsuite/gas/arm/insn-error-t.d,
919         * testsuite/gas/arm/inst-po-2.d,
920         * testsuite/gas/arm/iwmmxt-bad.d,
921         * testsuite/gas/arm/iwmmxt-bad2.d,
922         * testsuite/gas/arm/ld-sp-warn-cortex-m3.d,
923         * testsuite/gas/arm/ld-sp-warn-cortex-m4.d,
924         * testsuite/gas/arm/ld-sp-warn-v7.d,
925         * testsuite/gas/arm/ld-sp-warn-v7a.d,
926         * testsuite/gas/arm/ld-sp-warn-v7em.d,
927         * testsuite/gas/arm/ld-sp-warn-v7m.d,
928         * testsuite/gas/arm/ld-sp-warn-v7r.d,
929         * testsuite/gas/arm/ld-sp-warn.d,
930         * testsuite/gas/arm/ldgesb-bad.d,
931         * testsuite/gas/arm/ldgesh-bad.d,
932         * testsuite/gas/arm/ldr-bad.d,
933         * testsuite/gas/arm/ldr-t-bad.d,
934         * testsuite/gas/arm/ldrd-unpredictable.d,
935         * testsuite/gas/arm/ldsgeb.d,
936         * testsuite/gas/arm/ldsgeh.d,
937         * testsuite/gas/arm/missing.d,
938         * testsuite/gas/arm/mrs-msr-arm-v7-a-bad.d,
939         * testsuite/gas/arm/mrs-msr-thumb-v7-m-bad.d,
940         * testsuite/gas/arm/msr-imm-bad.d,
941         * testsuite/gas/arm/msr-reg-bad.d,
942         * testsuite/gas/arm/mul-overlap.d,
943         * testsuite/gas/arm/neon-addressing-bad.d,
944         * testsuite/gas/arm/neon-cond-bad.d,
945         * testsuite/gas/arm/neon-ldst-align-bad.d,
946         * testsuite/gas/arm/neon-ldst-es-bad.d,
947         * testsuite/gas/arm/neon-suffix-bad.d,
948         * testsuite/gas/arm/neon-vmov-bad.d,
949         * testsuite/gas/arm/noarm.d,
950         * testsuite/gas/arm/pr18256.d,
951         * testsuite/gas/arm/pr18347.d,
952         * testsuite/gas/arm/pr20429.d,
953         * testsuite/gas/arm/pr22773.d,
954         * testsuite/gas/arm/r15-bad.d,
955         * testsuite/gas/arm/reloc-bad.d,
956         * testsuite/gas/arm/req.d,
957         * testsuite/gas/arm/shift-bad-pc.d,
958         * testsuite/gas/arm/shift-bad.d,
959         * testsuite/gas/arm/simd_by_scalar_low_regbank.d,
960         * testsuite/gas/arm/simd_by_scalar_low_regbank_thumb.d,
961         * testsuite/gas/arm/sp-pc-validations-bad-t-v8a.d,
962         * testsuite/gas/arm/sp-pc-validations-bad-t.d,
963         * testsuite/gas/arm/sp-pc-validations-bad.d,
964         * testsuite/gas/arm/sp-usage-thumb2-relax-on-v7.d,
965         * testsuite/gas/arm/srs-arm.d,
966         * testsuite/gas/arm/srs-t2.d,
967         * testsuite/gas/arm/strex-bad-t.d,
968         * testsuite/gas/arm/t16-bad.d,
969         * testsuite/gas/arm/thumb-b-bad.d,
970         * testsuite/gas/arm/thumb-w-bad.d,
971         * testsuite/gas/arm/thumb2_bad_reg.d,
972         * testsuite/gas/arm/thumb2_it_bad.d,
973         * testsuite/gas/arm/thumb2_it_bad_auto.d,
974         * testsuite/gas/arm/thumb2_ldmstm_bad.d,
975         * testsuite/gas/arm/thumb2_ldstd_unpredictable.d,
976         * testsuite/gas/arm/thumb2_mul-bad.d,
977         * testsuite/gas/arm/thumb2_str-bad.d,
978         * testsuite/gas/arm/thumb32.d,
979         * testsuite/gas/arm/udf-bad.d,
980         * testsuite/gas/arm/udf.d,
981         * testsuite/gas/arm/undefined.d,
982         * testsuite/gas/arm/undefined_coff.d,
983         * testsuite/gas/arm/vcmp-zero-bad.d,
984         * testsuite/gas/arm/vcvt-bad.d,
985         * testsuite/gas/arm/vfp-bad.d,
986         * testsuite/gas/arm/vfp-bad_t2.d,
987         * testsuite/gas/arm/vfpv3-d16-bad.d,
988         * testsuite/gas/arm/vldm-thumb-bad.d,
989         * testsuite/gas/arm/vldmw-arm-bad.d,
990         * testsuite/gas/arm/vldmw-thumb-bad.d,
991         * testsuite/gas/arm/vstr-arm-bad.d,
992         * testsuite/gas/arm/vstr-thumb-bad.d,
993         * testsuite/gas/arm/weakdef-2.d,
994         * testsuite/gas/avr/pr21621.d,
995         * testsuite/gas/elf/bad-bss.d,
996         * testsuite/gas/elf/bad-group.d,
997         * testsuite/gas/elf/bad-group.err,
998         * testsuite/gas/elf/bad-section-flag.d,
999         * testsuite/gas/elf/bad-section-flag.err,
1000         * testsuite/gas/elf/bad-size.d,
1001         * testsuite/gas/elf/bad-size.err,
1002         * testsuite/gas/elf/common1.d,
1003         * testsuite/gas/elf/common2.d,
1004         * testsuite/gas/elf/common5a.d,
1005         * testsuite/gas/elf/common5b.d,
1006         * testsuite/gas/elf/common5c.d,
1007         * testsuite/gas/elf/common5d.d,
1008         * testsuite/gas/elf/dwarf2-10.d,
1009         * testsuite/gas/elf/dwarf2-8.d,
1010         * testsuite/gas/elf/dwarf2-9.d,
1011         * testsuite/gas/elf/pr21661.d,
1012         * testsuite/gas/elf/pseudo.d,
1013         * testsuite/gas/elf/section13.d,
1014         * testsuite/gas/i386/bad-size.d,
1015         * testsuite/gas/i386/bundle-bad.d,
1016         * testsuite/gas/i386/ilp32/x86-64-sse-check-warn.d,
1017         * testsuite/gas/i386/intel-intel.d,
1018         * testsuite/gas/i386/intel.d,
1019         * testsuite/gas/i386/intelok.d,
1020         * testsuite/gas/i386/mpx-add-bnd-prefix.d,
1021         * testsuite/gas/i386/sse-check-warn.d,
1022         * testsuite/gas/i386/string-ok.d,
1023         * testsuite/gas/i386/vgather-check-warn.d,
1024         * testsuite/gas/i386/x86-64-mpx-add-bnd-prefix.d,
1025         * testsuite/gas/i386/x86-64-sse-check-warn.d,
1026         * testsuite/gas/i386/x86-64-vgather-check-warn.d,
1027         * testsuite/gas/mips/addiu-error.d,
1028         * testsuite/gas/mips/branch-extern-3.d,
1029         * testsuite/gas/mips/branch-extern-4.d,
1030         * testsuite/gas/mips/branch-local-2.d,
1031         * testsuite/gas/mips/branch-local-3.d,
1032         * testsuite/gas/mips/branch-local-5.d,
1033         * testsuite/gas/mips/branch-local-6.d,
1034         * testsuite/gas/mips/branch-local-n32-2.d,
1035         * testsuite/gas/mips/branch-local-n32-3.d,
1036         * testsuite/gas/mips/branch-local-n32-5.d,
1037         * testsuite/gas/mips/branch-local-n32-6.d,
1038         * testsuite/gas/mips/branch-local-n64-2.d,
1039         * testsuite/gas/mips/branch-local-n64-3.d,
1040         * testsuite/gas/mips/branch-local-n64-5.d,
1041         * testsuite/gas/mips/branch-local-n64-6.d,
1042         * testsuite/gas/mips/branch-section-3.d,
1043         * testsuite/gas/mips/branch-section-4.d,
1044         * testsuite/gas/mips/branch-weak-3.d,
1045         * testsuite/gas/mips/branch-weak-4.d,
1046         * testsuite/gas/mips/break-error.d,
1047         * testsuite/gas/mips/crc-err.d,
1048         * testsuite/gas/mips/crc64-err.d,
1049         * testsuite/gas/mips/ginv-err.d,
1050         * testsuite/gas/mips/interaptiv-mr2@isa-override-1.d,
1051         * testsuite/gas/mips/interaptiv-mr2@isa-override-2.d,
1052         * testsuite/gas/mips/isa-override-2.d,
1053         * testsuite/gas/mips/lui-1.d,
1054         * testsuite/gas/mips/lui-2.d,
1055         * testsuite/gas/mips/macro-warn-1-n32.d,
1056         * testsuite/gas/mips/macro-warn-1.d,
1057         * testsuite/gas/mips/macro-warn-2.d,
1058         * testsuite/gas/mips/macro-warn-3.d,
1059         * testsuite/gas/mips/macro-warn-4.d,
1060         * testsuite/gas/mips/micromips-branch-delay.d,
1061         * testsuite/gas/mips/micromips-branch-relax-insn32-pic.d,
1062         * testsuite/gas/mips/micromips-branch-relax-insn32.d,
1063         * testsuite/gas/mips/micromips-branch-relax-pic.d,
1064         * testsuite/gas/mips/micromips-branch-relax.d,
1065         * testsuite/gas/mips/micromips-compact.d,
1066         * testsuite/gas/mips/micromips-insn32.d,
1067         * testsuite/gas/mips/micromips-noinsn32.d,
1068         * testsuite/gas/mips/micromips-size-1.d,
1069         * testsuite/gas/mips/micromips-trap.d,
1070         * testsuite/gas/mips/micromips-warn-branch-delay.d,
1071         * testsuite/gas/mips/micromips.d,
1072         * testsuite/gas/mips/micromips@addiu-error.d,
1073         * testsuite/gas/mips/micromips@mips5-fp.d,
1074         * testsuite/gas/mips/micromips@msa-relax.d,
1075         * testsuite/gas/mips/micromips@relax-at.d,
1076         * testsuite/gas/mips/micromips@relax-offset.d,
1077         * testsuite/gas/mips/micromips@relax.d,
1078         * testsuite/gas/mips/mips-gp32-fp64-pic.d,
1079         * testsuite/gas/mips/mips-gp32-fp64.d,
1080         * testsuite/gas/mips/mips-gp64-fp32-pic.d,
1081         * testsuite/gas/mips/mips-gp64-fp32.d,
1082         * testsuite/gas/mips/mips-gp64-fp64.d,
1083         * testsuite/gas/mips/mips16-32@mips16-insn-e.d,
1084         * testsuite/gas/mips/mips16-32@mips16-insn-t.d,
1085         * testsuite/gas/mips/mips16-32@mips16-macro-e.d,
1086         * testsuite/gas/mips/mips16-32@mips16-macro-t.d,
1087         * testsuite/gas/mips/mips16-32@mips16-macro.d,
1088         * testsuite/gas/mips/mips16-64@mips16-insn-e.d,
1089         * testsuite/gas/mips/mips16-64@mips16-insn-t.d,
1090         * testsuite/gas/mips/mips16-absolute-reloc-2.d,
1091         * testsuite/gas/mips/mips16-absolute-reloc-3.d,
1092         * testsuite/gas/mips/mips16-branch-addend-5.d,
1093         * testsuite/gas/mips/mips16-branch-unextended-1.d,
1094         * testsuite/gas/mips/mips16-branch-unextended-2.d,
1095         * testsuite/gas/mips/mips16-insn-e.d,
1096         * testsuite/gas/mips/mips16-insn-t.d,
1097         * testsuite/gas/mips/mips16-jal-t.d,
1098         * testsuite/gas/mips/mips16-macro-e.d,
1099         * testsuite/gas/mips/mips16-macro-t.d,
1100         * testsuite/gas/mips/mips16-pcrel-2.d,
1101         * testsuite/gas/mips/mips16-pcrel-3.d,
1102         * testsuite/gas/mips/mips16-pcrel-4.d,
1103         * testsuite/gas/mips/mips16-pcrel-5.d,
1104         * testsuite/gas/mips/mips16-pcrel-absolute-n64-4.d,
1105         * testsuite/gas/mips/mips16-pcrel-absolute-n64-6.d,
1106         * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-4.d,
1107         * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-6.d,
1108         * testsuite/gas/mips/mips16-pcrel-addend-n64-8.d,
1109         * testsuite/gas/mips/mips16-pcrel-addend-n64-9.d,
1110         * testsuite/gas/mips/mips16-pcrel-addend-pic-8.d,
1111         * testsuite/gas/mips/mips16-pcrel-addend-pic-9.d,
1112         * testsuite/gas/mips/mips16-pcrel-delay-0.d,
1113         * testsuite/gas/mips/mips16-pcrel-delay-1.d,
1114         * testsuite/gas/mips/mips16-pcrel-n64-0.d,
1115         * testsuite/gas/mips/mips16-pcrel-n64-1.d,
1116         * testsuite/gas/mips/mips16-pcrel-pic-0.d,
1117         * testsuite/gas/mips/mips16-pcrel-pic-1.d,
1118         * testsuite/gas/mips/mips16-reg-error.d,
1119         * testsuite/gas/mips/mips16-relax-unextended-1.d,
1120         * testsuite/gas/mips/mips16-relax-unextended-2.d,
1121         * testsuite/gas/mips/mips16-reloc-error.d,
1122         * testsuite/gas/mips/mips16-sdrasp.d,
1123         * testsuite/gas/mips/mips16@addiu-error.d,
1124         * testsuite/gas/mips/mips16e-32@mips16-insn-e.d,
1125         * testsuite/gas/mips/mips16e-32@mips16-insn-t.d,
1126         * testsuite/gas/mips/mips16e-32@mips16-macro-e.d,
1127         * testsuite/gas/mips/mips16e-32@mips16-macro-t.d,
1128         * testsuite/gas/mips/mips16e-32@mips16-macro.d,
1129         * testsuite/gas/mips/mips16e-32@mips16e-64.d,
1130         * testsuite/gas/mips/mips16e2-32@mips16-insn-e.d,
1131         * testsuite/gas/mips/mips16e2-32@mips16-insn-t.d,
1132         * testsuite/gas/mips/mips16e2-32@mips16-macro-e.d,
1133         * testsuite/gas/mips/mips16e2-32@mips16-macro-t.d,
1134         * testsuite/gas/mips/mips16e2-32@mips16-macro.d,
1135         * testsuite/gas/mips/mips16e2-32@mips16e-64.d,
1136         * testsuite/gas/mips/mips16e2-copy-err.d,
1137         * testsuite/gas/mips/mips16e2-imm-error.d,
1138         * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16-insn-e.d,
1139         * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16-insn-t.d,
1140         * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16-macro-e.d,
1141         * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16-macro-t.d,
1142         * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16-macro.d,
1143         * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16-sub.d,
1144         * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16e-64-sub.d,
1145         * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16e-64.d,
1146         * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16e-sub.d,
1147         * testsuite/gas/mips/mips16e2-mt-err.d,
1148         * testsuite/gas/mips/mips16e2-reloc-error.d,
1149         * testsuite/gas/mips/mips16e2@lui-2.d,
1150         * testsuite/gas/mips/mips16e2@mips16-pcrel-2.d,
1151         * testsuite/gas/mips/mips16e2@mips16-pcrel-delay-0.d,
1152         * testsuite/gas/mips/mips16e2@mips16-pcrel-delay-1.d,
1153         * testsuite/gas/mips/mips1@isa-override-2.d,
1154         * testsuite/gas/mips/mips1@relax-offset.d,
1155         * testsuite/gas/mips/mips2@isa-override-2.d,
1156         * testsuite/gas/mips/mips32-mt.d,
1157         * testsuite/gas/mips/mips32@isa-override-2.d,
1158         * testsuite/gas/mips/mips32r2@isa-override-2.d,
1159         * testsuite/gas/mips/mips32r3@isa-override-2.d,
1160         * testsuite/gas/mips/mips32r5@isa-override-2.d,
1161         * testsuite/gas/mips/mips32r6@isa-override-2.d,
1162         * testsuite/gas/mips/mips5-fp.d,
1163         * testsuite/gas/mips/mips64-mips3d-incl.d,
1164         * testsuite/gas/mips/mips64-mips3d.d,
1165         * testsuite/gas/mips/mipsr6@mips5-fp.d,
1166         * testsuite/gas/mips/msa-relax.d,
1167         * testsuite/gas/mips/octeon3@isa-override-1.d,
1168         * testsuite/gas/mips/octeon3@isa-override-2.d,
1169         * testsuite/gas/mips/option-pic-relax-2.d,
1170         * testsuite/gas/mips/option-pic-relax-3.d,
1171         * testsuite/gas/mips/option-pic-relax-4.d,
1172         * testsuite/gas/mips/option-pic-relax-5.d,
1173         * testsuite/gas/mips/org-1.d,
1174         * testsuite/gas/mips/org-10.d,
1175         * testsuite/gas/mips/org-4.d,
1176         * testsuite/gas/mips/org-5.d,
1177         * testsuite/gas/mips/org-6.d,
1178         * testsuite/gas/mips/r3000@isa-override-2.d,
1179         * testsuite/gas/mips/r3000@relax-offset.d,
1180         * testsuite/gas/mips/r3900@isa-override-2.d,
1181         * testsuite/gas/mips/r3900@relax-offset.d,
1182         * testsuite/gas/mips/reginfo-2-n32.d,
1183         * testsuite/gas/mips/reginfo-2.d,
1184         * testsuite/gas/mips/relax-at.d,
1185         * testsuite/gas/mips/relax-offset.d,
1186         * testsuite/gas/mips/relax-swap1-mips1.d,
1187         * testsuite/gas/mips/relax-swap1-mips2.d,
1188         * testsuite/gas/mips/relax-swap2.d,
1189         * testsuite/gas/mips/relax.d,
1190         * testsuite/gas/mips/save-err.d,
1191         * testsuite/gas/mips/set-arch.d,
1192         * testsuite/gas/mips/xpa-err.d,
1193         * testsuite/gas/mips/xpa-virt-err.d,
1194         * testsuite/gas/msp430/bad.d,
1195         * testsuite/gas/msp430/errata_warns.d,
1196         * testsuite/gas/msp430/pr22133.d,
1197         * testsuite/gas/ppc/lsp-checks.d,
1198         * testsuite/gas/ppc/misalign.d,
1199         * testsuite/gas/ppc/spe2-checks.d,
1200         * testsuite/gas/riscv/bad-csr.d,
1201         * testsuite/gas/riscv/c-addi16sp-fail.d,
1202         * testsuite/gas/riscv/c-addi4spn-fail.d,
1203         * testsuite/gas/riscv/c-fld-fsd-fail.d,
1204         * testsuite/gas/riscv/c-lui-fail.d,
1205         * testsuite/gas/riscv/c-nonzero-imm.d,
1206         * testsuite/gas/riscv/c-nonzero-reg.d,
1207         * testsuite/gas/riscv/fence-fail.d,
1208         * testsuite/gas/riscv/lla64-fail.d,
1209         * testsuite/gas/riscv/rouding-fail.d,
1210         * testsuite/gas/sh/pcrel-hms.d,
1211         * testsuite/gas/sh/pcrel.d,
1212         * testsuite/gas/sparc/dcti-couples-v8.d,
1213         * testsuite/gas/sparc/dcti-couples-v9c.d,
1214         * testsuite/gas/tic6x/arch-invalid-1.d,
1215         * testsuite/gas/tic6x/arch-invalid-2.d,
1216         * testsuite/gas/tic6x/dir-junk.d,
1217         * testsuite/gas/tic6x/insns-bad-1.d,
1218         * testsuite/gas/tic6x/insns-bad-2.d,
1219         * testsuite/gas/tic6x/parallel-bad-1.d,
1220         * testsuite/gas/tic6x/parallel-bad-2.d,
1221         * testsuite/gas/tic6x/parallel-bad-3.d,
1222         * testsuite/gas/tic6x/parallel-bad-4.d,
1223         * testsuite/gas/tic6x/predicate-bad-1.d,
1224         * testsuite/gas/tic6x/predicate-bad-2.d,
1225         * testsuite/gas/tic6x/predicate-bad-3.d,
1226         * testsuite/gas/tic6x/reloc-bad-1.d,
1227         * testsuite/gas/tic6x/reloc-bad-2.d,
1228         * testsuite/gas/tic6x/reloc-bad-3.d,
1229         * testsuite/gas/tic6x/reloc-bad-4.d,
1230         * testsuite/gas/tic6x/reloc-bad-5.d,
1231         * testsuite/gas/tic6x/reloc-bad-6.d,
1232         * testsuite/gas/tic6x/resource-func-unit-1.d,
1233         * testsuite/gas/tic6x/resource-func-unit-2.d,
1234         * testsuite/gas/tic6x/sploop-bad-1.d,
1235         * testsuite/gas/tic6x/sploop-bad-2.d,
1236         * testsuite/gas/tic6x/sploop-bad-3.d,
1237         * testsuite/gas/tic6x/sploop-bad-4.d,
1238         * testsuite/gas/tic6x/sploop-bad-5.d,
1239         * testsuite/gas/tic6x/sploop-bad-6.d,
1240         * testsuite/gas/tic6x/sploop-bad-7.d,
1241         * testsuite/gas/tic6x/unwind-bad-1.d,
1242         * testsuite/gas/tic6x/unwind-bad-2.d,
1243         * testsuite/lib/gas-defs.exp (run_dump_tests): Replace stderr
1244         and error-output with warning_output and error_output.
1245         (slurp_options): Accept underscore rather than dash.
1246
1247 2018-09-15  Alan Modra  <amodra@gmail.com>
1248
1249         * testsuite/gas/aarch64/codealign.d,
1250         * testsuite/gas/aarch64/litpool.d,
1251         * testsuite/gas/aarch64/mapmisc.d,
1252         * testsuite/gas/aarch64/mapping.d,
1253         * testsuite/gas/aarch64/mapping2.d,
1254         * testsuite/gas/aarch64/mapping3.d,
1255         * testsuite/gas/aarch64/mapping4.d,
1256         * testsuite/gas/all/align.d,
1257         * testsuite/gas/all/fill-1.d,
1258         * testsuite/gas/all/incbin.d,
1259         * testsuite/gas/all/redef2.d,
1260         * testsuite/gas/all/redef3.d,
1261         * testsuite/gas/all/relax.d,
1262         * testsuite/gas/all/sleb128-2.d,
1263         * testsuite/gas/all/sleb128-4.d,
1264         * testsuite/gas/all/sleb128-5.d,
1265         * testsuite/gas/all/sleb128-7.d,
1266         * testsuite/gas/all/sleb128-9.d,
1267         * testsuite/gas/all/weakref1.d,
1268         * testsuite/gas/all/weakref1g.d,
1269         * testsuite/gas/all/weakref1l.d,
1270         * testsuite/gas/all/weakref1u.d,
1271         * testsuite/gas/all/weakref1w.d,
1272         * testsuite/gas/arm/abs12.d,
1273         * testsuite/gas/arm/arch4t.d,
1274         * testsuite/gas/arm/arch7.d,
1275         * testsuite/gas/arm/arch7a-mp.d,
1276         * testsuite/gas/arm/arch7em.d,
1277         * testsuite/gas/arm/archv8m-main-dsp-5.d,
1278         * testsuite/gas/arm/armv8a-automatic-hlt.d,
1279         * testsuite/gas/arm/armv8a-automatic-lda.d,
1280         * testsuite/gas/arm/attr-syntax.d,
1281         * testsuite/gas/arm/automatic-bw.d,
1282         * testsuite/gas/arm/automatic-cbz.d,
1283         * testsuite/gas/arm/automatic-clrex.d,
1284         * testsuite/gas/arm/automatic-lda.d,
1285         * testsuite/gas/arm/automatic-ldaex.d,
1286         * testsuite/gas/arm/automatic-ldaexb.d,
1287         * testsuite/gas/arm/automatic-ldrex.d,
1288         * testsuite/gas/arm/automatic-ldrexd.d,
1289         * testsuite/gas/arm/automatic-movw.d,
1290         * testsuite/gas/arm/automatic-sdiv.d,
1291         * testsuite/gas/arm/automatic-strexb.d,
1292         * testsuite/gas/arm/barrier-thumb.d,
1293         * testsuite/gas/arm/barrier.d,
1294         * testsuite/gas/arm/bignum1.d,
1295         * testsuite/gas/arm/blx-bad.d,
1296         * testsuite/gas/arm/blx-local.s,
1297         * testsuite/gas/arm/crc32-armv8-a-bad.d,
1298         * testsuite/gas/arm/crc32-armv8-a.d,
1299         * testsuite/gas/arm/crc32-armv8-r-bad.d,
1300         * testsuite/gas/arm/crc32-armv8-r.d,
1301         * testsuite/gas/arm/eabi_attr_1.d,
1302         * testsuite/gas/arm/fp-save.d,
1303         * testsuite/gas/arm/local_function.d,
1304         * testsuite/gas/arm/local_label_coff.d,
1305         * testsuite/gas/arm/local_label_wince.d,
1306         * testsuite/gas/arm/mapping.d,
1307         * testsuite/gas/arm/mapping2.d,
1308         * testsuite/gas/arm/mapping3.d,
1309         * testsuite/gas/arm/mapping4.d,
1310         * testsuite/gas/arm/mapshort-elf.d,
1311         * testsuite/gas/arm/mask_1-armv8-a.d,
1312         * testsuite/gas/arm/mask_1-armv8-r.d,
1313         * testsuite/gas/arm/mrs-msr-thumb-v6t2.d,
1314         * testsuite/gas/arm/mrs-msr-thumb-v7-m.d,
1315         * testsuite/gas/arm/mrs-msr-thumb-v7e-m.d,
1316         * testsuite/gas/arm/nomapping.d,
1317         * testsuite/gas/arm/pic.d,
1318         * testsuite/gas/arm/pic_vxworks.d,
1319         * testsuite/gas/arm/plt-1.d,
1320         * testsuite/gas/arm/reloc-bad.d,
1321         * testsuite/gas/arm/reloc-fdpic.d,
1322         * testsuite/gas/arm/t2-branch-global.d,
1323         * testsuite/gas/arm/thumb.d,
1324         * testsuite/gas/arm/thumb2_ldr_immediate_armv6.d,
1325         * testsuite/gas/arm/thumb2_ldr_immediate_highregs_armv6t2.d,
1326         * testsuite/gas/arm/thumb2_pool.d,
1327         * testsuite/gas/arm/thumb2_vpool.d,
1328         * testsuite/gas/arm/thumb2_vpool_be.d,
1329         * testsuite/gas/arm/thumb32.d,
1330         * testsuite/gas/arm/thumbver.d,
1331         * testsuite/gas/arm/tls.d,
1332         * testsuite/gas/arm/tls_vxworks.d,
1333         * testsuite/gas/arm/undefined_coff.d,
1334         * testsuite/gas/arm/unwind.d,
1335         * testsuite/gas/arm/unwind_vxworks.d,
1336         * testsuite/gas/arm/v4bx.d,
1337         * testsuite/gas/arm/vfma1.d,
1338         * testsuite/gas/arm/vldm-arm.d,
1339         * testsuite/gas/arm/weakdef-1.d,
1340         * testsuite/gas/arm/weakdef-2.d,
1341         * testsuite/gas/arm/wince.d,
1342         * testsuite/gas/arm/wince_inst.d,
1343         * testsuite/gas/elf/bignums.d,
1344         * testsuite/gas/elf/common5a.d,
1345         * testsuite/gas/elf/common5b.d,
1346         * testsuite/gas/elf/common5c.d,
1347         * testsuite/gas/elf/common5d.d,
1348         * testsuite/gas/elf/dwarf2-1.d,
1349         * testsuite/gas/elf/dwarf2-10.d,
1350         * testsuite/gas/elf/dwarf2-11.d,
1351         * testsuite/gas/elf/dwarf2-12.d,
1352         * testsuite/gas/elf/dwarf2-13.d,
1353         * testsuite/gas/elf/dwarf2-14.d,
1354         * testsuite/gas/elf/dwarf2-15.d,
1355         * testsuite/gas/elf/dwarf2-16.d,
1356         * testsuite/gas/elf/dwarf2-17.d,
1357         * testsuite/gas/elf/dwarf2-18.d,
1358         * testsuite/gas/elf/dwarf2-2.d,
1359         * testsuite/gas/elf/dwarf2-3.d,
1360         * testsuite/gas/elf/dwarf2-4.d,
1361         * testsuite/gas/elf/dwarf2-5.d,
1362         * testsuite/gas/elf/dwarf2-6.d,
1363         * testsuite/gas/elf/dwarf2-7.d,
1364         * testsuite/gas/elf/dwarf2-8.d,
1365         * testsuite/gas/elf/dwarf2-9.d,
1366         * testsuite/gas/elf/group0c.d,
1367         * testsuite/gas/elf/group1a.d,
1368         * testsuite/gas/elf/group2.d,
1369         * testsuite/gas/elf/groupautoa.d,
1370         * testsuite/gas/elf/ifunc-1.d,
1371         * testsuite/gas/elf/section11.d,
1372         * testsuite/gas/elf/section4.d,
1373         * testsuite/gas/elf/section7.d,
1374         * testsuite/gas/elf/syms.d,
1375         * testsuite/gas/elf/symver.d,
1376         * testsuite/gas/i386/iamcu-1.d,
1377         * testsuite/gas/i386/iamcu-2.d,
1378         * testsuite/gas/i386/iamcu-3.d,
1379         * testsuite/gas/i386/iamcu-4.d,
1380         * testsuite/gas/i386/iamcu-5.d,
1381         * testsuite/gas/i386/ilp32/rex.d,
1382         * testsuite/gas/i386/k1om.d,
1383         * testsuite/gas/i386/l1om.d,
1384         * testsuite/gas/i386/rex.d,
1385         * testsuite/gas/mach-o/sections-3.d,
1386         * testsuite/gas/macros/irp.d,
1387         * testsuite/gas/macros/repeat.d,
1388         * testsuite/gas/macros/rept.d,
1389         * testsuite/gas/macros/semi.d,
1390         * testsuite/gas/macros/test2.d,
1391         * testsuite/gas/macros/test3.d,
1392         * testsuite/gas/macros/vararg.d,
1393         * testsuite/gas/mips/jal-svr4pic-local.d,
1394         * testsuite/gas/mips/micromips@jal-svr4pic-local.d,
1395         * testsuite/gas/mips/mips1@jal-svr4pic-local.d,
1396         * testsuite/gas/mips/r3000@jal-svr4pic-local.d,
1397         * testsuite/gas/ppc/machine.d,
1398         * testsuite/lib/gas-defs.exp (run_dump_test): Replace not-target
1399         and not-skip with notarget and noskip.
1400
1401 2018-09-15  Alan Modra  <amodra@gmail.com>
1402
1403         * testsuite/gas/mri/char.d: Don't objcopy to srec, objdump instead.
1404         * testsuite/gas/mri/float.d: Likewise.
1405         * testsuite/lib/gas-defs.exp (run_dump_test): Remove support
1406         for objcopy as a dump tool.
1407
1408 2018-09-14  H.J. Lu  <hongjiu.lu@intel.com>
1409
1410         PR gas/23642
1411         * testsuite/gas/i386/evex-wig2.d: New file.
1412         * testsuite/gas/i386/evex-wig2.s: Likewise.
1413         * testsuite/gas/i386/x86-64-evex-wig2.d: Likewise.
1414         * testsuite/gas/i386/x86-64-evex-wig2.s: Likewise.
1415         * testsuite/gas/i386/i386.exp: Run evex-wig2 and
1416         x86-64-evex-wig2.
1417
1418 2018-09-14  H.J. Lu  <hongjiu.lu@intel.com>
1419
1420         PR gas/23642
1421         * config/tc-i386.c (build_vex_prefix): Check VEXWIG when setting
1422         the VEX.W bit.
1423         (build_evex_prefix): Check VEXWIG when setting the EVEX.W bit.
1424
1425 2018-09-14  H.J. Lu  <hongjiu.lu@intel.com>
1426
1427         PR binutils/23655
1428         * testsuite/gas/i386/evex.d: Updated.
1429
1430 2018-09-14  H.J. Lu  <hongjiu.lu@intel.com>
1431
1432         PR binutils/23655
1433         * testsuite/gas/i386/evex.d: New file.
1434         * testsuite/gas/i386/evex.s: Likewise.
1435         * testsuite/gas/i386/i386.exp: Run evex.
1436
1437 2018-09-10  Lifang Xia <lifang_xia@c-sky.com>
1438
1439         * config/tc-csky.c (md_apply_fix): Transmit BFD_RELOC_32_PCREL to
1440         BFD_RELOC_CKCORE_PCREL32.
1441         (tc_gen_reloc): Trasmit BFD_RELOC_CKCORE_ADDR32 to
1442         BFD_RELOC_CKCORE_PCREL32 while pc-relative.
1443         * config/tc-csky.h (DIFF_EXPR_OK): Define to enable PC relative diff
1444         relocs.
1445
1446 2018-09-14  Jan Beulich  <jbeulich@suse.com>
1447
1448         * config/tc-i386.c (process_suffix): Simplify CRC32 special
1449         casing code.
1450
1451 2018-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1452
1453         * config/tc-i386.c (build_vex_prefix): Swap destination and
1454         source only if there are more than 1 register operand.
1455
1456 2018-09-13  Jan Beulich  <jbeulich@suse.com>
1457
1458         * config/tc-i386.c (operand_size_match): Also deal with three
1459         operand case.
1460         (match_template): Also allow operand reversal for three operand
1461         templates.
1462
1463 2018-09-13  Jan Beulich  <jbeulich@suse.com>
1464
1465         * config/tc-i386.c (operand_size_match): Mirror
1466         .reg/.regsimd/.acc handling from forward to reverse case.
1467         (build_vex_prefix): Check first and last operand types are equal
1468         and also consider .d for swapping operands for VEX2 encoding.
1469         (match_template): Clear found_reverse_match on every iteration.
1470         Use Opcode_SIMD_FloatD and Opcode_SIMD_IntD.
1471         * testsuite/gas/i386/pseudos.s,
1472         testsuite/gas/i386/x86-64-pseudos.s: Add kmov* tests.
1473         * testsuite/gas/i386/pseudos.d,
1474         testsuite/gas/i386/x86-64-pseudos.d: Adjust expectations.
1475
1476 2018-09-13  Jan Beulich  <jbeulich@suse.com>
1477
1478         testsuite/gas/i386/ilp32/x86-64-opts.d,
1479         testsuite/gas/i386/ilp32/x86-64-opts-intel.d,
1480         testsuite/gas/i386/ilp32/x86-64-sse2avx-opts.d,
1481         testsuite/gas/i386/ilp32/x86-64-sse2avx-opts-intel.d: Refer to
1482         non-ILP32 output.
1483
1484 2018-09-13  Jan Beulich  <jbeulich@suse.com>
1485
1486         * config/tc-i386.c (dir_encoding_swap): New enumerator.
1487         (parse_insn): Use it.
1488         (match_template): Re-write reversal check.
1489         * testsuite/gas/i386/pseudos.s: Add various move, ALU, and FPU
1490         tests.
1491         * testsuite/gas/i386/x86-64-pseudos.s: Likewise.
1492         * testsuite/gas/i386/pseudos.d,
1493         testsuite/gas/i386/x86-64-pseudos.d: Adjust expectations.
1494
1495 2018-09-13  Jan Beulich  <jbeulich@suse.com>
1496
1497         * config/tc-i386.c (parse_insn): Extend comment ahead of pseudo-
1498         suffix handling.
1499
1500 2018-09-13  Jan Beulich  <jbeulich@suse.com>
1501
1502         * testsuite/gas/i386/x86-64-mpx.s: And BNDMK case with RIP-
1503         relative memory operand.
1504         * testsuite/gas/i386/x86-64-mpx.d: Adjust expectations.
1505
1506 2018-09-13  Nick Clifton  <nickc@redhat.com>
1507
1508         * dwarf2dbg.c (generic_dwarf2_emit_offset): Use memset to
1509         initialise expression structure.
1510         (set_or_check_view): Likewise.
1511         (out_set_addr): Likewise.
1512         (emit_fixed_inc_line_addr): Likewise.
1513         (relax_inc_line_addr): Likewise.
1514         (out_debug_line): Likewise.
1515         (out_debug_ranges): Likewise.
1516         (out_debug_aranges): Likewise.
1517         (out_debug_info): Likewise.
1518
1519 2018-09-06  Alan Modra  <amodra@gmail.com>
1520
1521         PR 23570
1522         * config/tc-avr.c: Revert 2018-09-03 change.
1523
1524 2018-09-04  Daniel Cederman  <cederman@gaisler.com>
1525
1526         * config/tc-sparc.c (md_assemble): Allow non-fpop2 instructions
1527             before floating point branches for Sparc V8 and earlier.
1528         * testsuite/gas/sparc/sparc.exp: Execute the new test.
1529         * testsuite/gas/sparc/v8branch.d: New test.
1530         * testsuite/gas/sparc/v8branch.s: New test.
1531
1532 2018-09-03  Nick Clifton  <nickc@redhat.com>
1533
1534         PR gas/23570
1535         * config/tc-avr.c (md_pseudo_table): Add entry for "secction".
1536         (avr_set_section): New function.  Ensures that the .noinit section
1537         gets the NOBITS ELF section type.
1538
1539 2018-08-31  Kito Cheng  <kito@andestech.com>
1540
1541         * testsuite/gas/riscv/c-fld-fsd-fail.d: New.
1542         * testsuite/gas/riscv/c-fld-fsd-fail.l: Likewise.
1543         * testsuite/gas/riscv/c-fld-fsd-fail.s: Likewise.
1544
1545 2018-08-31  H.J. Lu  <hongjiu.lu@intel.com>
1546
1547         * testsuite/gas/elf/section14.d: Change skip to xfail.
1548         * testsuite/lib/gas-defs.exp (run_dump_test): Add xfail support.
1549
1550 2018-08-31  Alan Modra  <amodra@gmail.com>
1551
1552         * config/tc-ppc.h (TC_FORCE_RELOCATION_SUB_LOCAL): Allow ADDR16
1553         HIGH, HIGHA, HIGHER, HIGHERA, HIGHEST, and HIGHESTA relocs.
1554         Group 16-bit relocs.
1555         * config/tc-ppc.c (md_apply_fix): Translate those ADDR16 relocs
1556         to REL16 when pcrel.  Sort relocs.
1557
1558 2018-08-31  H.J. Lu  <hongjiu.lu@intel.com>
1559
1560         * testsuite/gas/elf/elf.exp: Pass -mx86-used-note=no to
1561         assembler for section2 test on ELF/x86 targets.
1562
1563 2018-08-31  H.J. Lu  <hongjiu.lu@intel.com>
1564
1565         * testsuite/gas/cfi/cfi-label.d: Pass -mx86-used-note=no to
1566         assembler.
1567
1568 2018-08-31  H.J. Lu  <hongjiu.lu@intel.com>
1569
1570         * testsuite/gas/i386/bss.d: Pass -mx86-used-note=no to assembler.
1571         * testsuite/gas/i386/ilp32/quad.d: Likewise.
1572         * testsuite/gas/i386/ilp32/reloc64.d: Likewise.
1573         * testsuite/gas/i386/ilp32/x86-64-size-1.d: Likewise.
1574         * testsuite/gas/i386/ilp32/x86-64-size-3.d: Likewise.
1575         * testsuite/gas/i386/ilp32/x86-64-size-5.d: Likewise.
1576         * testsuite/gas/i386/ilp32/x86-64-unwind.d: Likewise.
1577         * testsuite/gas/i386/property-1.d: Likewise.
1578         * testsuite/gas/i386/relax.d: Likewise.
1579         * testsuite/gas/i386/reloc64.d: Likewise.
1580         * testsuite/gas/i386/size-1.d: Likewise.
1581         * testsuite/gas/i386/size-3.d: Likewise.
1582         * testsuite/gas/i386/x86-64-property-1.d: Likewise.
1583         * testsuite/gas/i386/x86-64-size-1.d: Likewise.
1584         * testsuite/gas/i386/x86-64-size-3.d: Likewise.
1585         * testsuite/gas/i386/x86-64-size-5.d: Likewise.
1586         * testsuite/gas/i386/x86-64-unwind.d: Likewise.
1587         * testsuite/gas/i386/divide.d: Append "#pass".
1588
1589 2018-08-31  H.J. Lu  <hongjiu.lu@intel.com>
1590
1591         * NEWS: Mention -mx86-used-note=[no|yes].
1592         * configure.ac: Add --enable-x86-used-note.  Define
1593         DEFAULT_X86_USED_NOTE.
1594         * config.in: Regenerated.
1595         * configure: Likewise.
1596         * config/tc-i386.c (x86_isa_1_used): New.
1597         (x86_feature_2_used): Likewise.
1598         (x86_used_note): Likewise.
1599         (_i386_insn): Add has_regmmx, has_regxmm, has_regymm and
1600         has_regzmm.
1601         (build_modrm_byte): Set i.has_regmmx, i.has_regzmm.
1602         i.has_regymm and i.has_regxmm.
1603         (x86_cleanup): New function.
1604         (output_insn): Update x86_isa_1_used and x86_feature_2_used.
1605         (OPTION_X86_USED_NOTE): New.
1606         (md_longopts): Add -mx86-used-note=.
1607         (md_parse_option): Handle OPTION_X86_USED_NOTE.
1608         (md_show_usage): Display -mx86-used-note=.
1609         * config/tc-i386.h (x86_cleanup): New prototype.
1610         (md_cleanup): New.
1611         * doc/c-i386.texi: Document -mx86-used-note=.
1612
1613 2018-08-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
1614
1615         * testsuite/gas/sparc/leon.d: Disassemble v8 code also in sparc64
1616         targets.
1617
1618 2018-08-30  Kito Cheng  <kito@andestech.com>
1619
1620         * config/tc-riscv.c (riscv_subset_supports): New argument:
1621         xlen_required.
1622         (riscv_multi_subset_supports): New function, able to check more
1623         than one extension.
1624         (riscv_ip): Use riscv_multi_subset_supports instead of
1625         riscv_subset_supports.
1626         (riscv_set_arch): Update call-site for riscv_subset_supports.
1627         (riscv_after_parse_args): Likewise.
1628
1629 2018-08-30  H.J. Lu  <hongjiu.lu@intel.com>
1630
1631         * testsuite/gas/elf/section14.d: Skip h8300 targets.
1632
1633 2018-08-30  H.J. Lu  <hongjiu.lu@intel.com>
1634
1635         * testsuite/gas/elf/elf.exp: Run section14.
1636         * testsuite/gas/elf/section14.d: New file.
1637         * testsuite/gas/elf/section14.s: Likewise.
1638
1639 2018-08-29  Daniel Cederman  <cederman@gaisler.com>
1640
1641         * testsuite/gas/sparc/leon.d: New test.
1642         * testsuite/gas/sparc/leon.s: New test.
1643         * testsuite/gas/sparc/sparc.exp: Execute the pwrpsr test.
1644
1645 2018-08-29  Chenghua Xu  <paul.hua.gm@gmail.com>
1646
1647         * config/tc-mips.c (ISA_HAS_ODD_SINGLE_FPR): Exclude CPU_GS264E.
1648         (mips_cpu_info_table): Add gs264e descriptors.
1649         * doc/as.texi (march table): Add gs264e.
1650
1651 2018-08-29  Chenghua Xu  <paul.hua.gm@gmail.com>
1652
1653         * config/tc-mips.c (ISA_HAS_ODD_SINGLE_FPR): Exclude CPU_GS464E.
1654         (mips_cpu_info_table): Add gs464e descriptors.
1655         * doc/as.texi (march table): Add gs464e.
1656
1657 2018-08-29  Chenghua Xu  <paul.hua.gm@gmail.com>
1658
1659         * config/tc-mips.c (ISA_HAS_ODD_SINGLE_FPR): Rename
1660         CPU_LOONGSON_3A to CPU_GS464.
1661         (mips_cpu_info_table): Add gs464 descriptors, Keep
1662         loongson3a as an alias of gs464 for compatibility.
1663         * doc/as.texi (march table): Rename loongson3a to gs464.
1664         * testsuite/gas/mips/loongson-3a-mmi.d: Set "ISA Extension"
1665         flag to None.
1666
1667 2018-08-29  Chenghua Xu  <paul.hua.gm@gmail.com>
1668
1669         * NEWS: Mention Loongson EXTensions R2 (EXT2) support.
1670         * config/tc-mips.c (options): Add OPTION_LOONGSON_EXT2 and
1671         OPTION_NO_LOONGSON_EXT2.
1672         (md_longopts): Likewise.
1673         (mips_ases): Define availability for EXT.
1674         (mips_convert_ase_flags): Map ASE_LOONGSON_EXT2 to
1675         AFL_ASE_LOONGSON_EXT2.
1676         (md_show_usage): Add help for -mloongson-ext2 and
1677         -mno-loongson-ext2.
1678         * doc/as.texi: Document -mloongson-ext2, -mno-loongson-ext2.
1679         * doc/c-mips.texi: Document -mloongson-ext2, -mno-loongson-ext2,
1680         .set loongson-ext2 and .set noloongson-ext2.
1681         * testsuite/gas/mips/loongson-ext2.d: New test.
1682         * testsuite/gas/mips/loongson-ext2.s: New test.
1683         * testsuite/gas/mips/mips.exp: Run loongson-ext2 test.
1684
1685 2018-08-29  Chenghua Xu  <paul.hua.gm@gmail.com>
1686
1687          * NEWS: Mention Loongson EXTensions (EXT) support.
1688          * config/tc-mips.c (options): Add OPTION_LOONGSON_EXT and
1689          OPTION_NO_LOONGSON_EXT.
1690          (md_longopts): Likewise.
1691          (mips_ases): Define availability for EXT.
1692          (mips_convert_ase_flags): Map ASE_LOONGSON_EXT to
1693          AFL_ASE_LOONGSON_EXT.
1694          (mips_cpu_info_table): Add ASE_LOONGSON_EXT for loongson3a.
1695          (md_show_usage): Add help for -mloongson-ext and
1696          -mno-loongson-ext.
1697          * doc/as.texi: Document -mloongson-ext, -mno-loongson-ext.
1698          * doc/c-mips.texi: Document -mloongson-ext, -mno-loongson-ext,
1699          .set loongson-ext and .set noloongson-ext.
1700          * testsuite/gas/mips/loongson-mmi.d: Add ASE flag.
1701
1702 2018-08-29  Chenghua Xu  <paul.hua.gm@gmail.com>
1703
1704         * NEWS: Mention Loongson Content Address Memory (CAM)
1705         support.
1706         * config/tc-mips.c (options): Add OPTION_LOONGSON_CAM and
1707         OPTION_NO_LOONGSON_CAM.
1708         (md_longopts): Likewise.
1709         (mips_ases): Define availability for CAM.
1710         (mips_convert_ase_flags): Map ASE_LOONGSON_CAM to
1711         AFL_ASE_LOONGSON_CAM.
1712         (mips_cpu_info_table): Add ASE_LOONGSON_CAM for loongson3a.
1713         (md_show_usage): Add help for -mloongson-cam and
1714         -mno-loongson-cam.
1715         * doc/as.texi: Document -mloongson-cam, -mno-loongson-cam.
1716         * doc/c-mips.texi: Document -mloongson-cam, -mno-loongson-cam,
1717         .set loongson-cam and .set noloongson-cam.
1718         * testsuite/gas/mips/loongson-3a-2.d: Move cam test to ...
1719         * testsuite/gas/mips/loongson-cam.d: Here.  Add ISA/ASE
1720         flag verification.
1721         * testsuite/gas/mips/loongson-3a-2.s: Move cam test to ...
1722         * testsuite/gas/mips/loongson-cam.s: Here.
1723         * testsuite/gas/mips/loongson-3a-mmi.d: Add ASE flag.
1724         * testsuite/gas/mips/mips.exp: Run loongson-cam test.
1725
1726 2018-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1727
1728         * testsuite/gas/i386/i386.exp: Run property-1 and
1729         x86-64-property-1.
1730         * testsuite/gas/i386/property-1.d: New file.
1731         * testsuite/gas/i386/property-1.s: Likewise.
1732         * testsuite/gas/i386/x86-64-property-1.d: Likewise.
1733
1734 2018-08-23  Kito Cheng  <kito@andestech.com>
1735
1736         * config/tc-riscv.c (arg_lookup): Checking
1737         length before look up.
1738         * testsuite/gas/riscv/fence-fail.d: New file.
1739         * testsuite/gas/riscv/fence-fail.l: Likewise.
1740         * testsuite/gas/riscv/fence-fail.s: Likewise.
1741         * testsuite/gas/riscv/rouding-fail.d: Likewise.
1742         * testsuite/gas/riscv/rouding-fail.l: Likewise.
1743         * testsuite/gas/riscv/rouding-fail.s: Likewise.
1744
1745 2018-08-23  H.J. Lu  <hongjiu.lu@intel.com>
1746
1747         PR ld/23536
1748         * Makefile.am (development.exp): New target.
1749         (EXTRA_DEJAGNU_SITE_CONFIG): New.
1750         (DISTCLEANFILES): Add development.exp.
1751         * Makefile.in: Regenerated.
1752
1753 2018-08-22  Alan Modra  <amodra@gmail.com>
1754
1755         * dw2gencfi.c (emit_expr_encoded, output_fde): Warning fixes.
1756
1757 2018-08-21  Arnold Metselaar  <arnold.metsel@gmail.com>
1758
1759         * config/tc-z80.c: Correct treatment of undocumented instruction
1760         sli/sll.
1761         (emit_mr): Add argument unportable.
1762         (emit_bit): Adapt call to emit_mr.
1763         (emit_mr_z80): New function.
1764         (emit_mr_unport): New function.
1765         (instab[]): Replace emit_mr with emit_mr_z80 or emit_mr_unportable
1766         as appropriate.
1767
1768 2018-08-21  Andreas Schwab  <schwab@suse.de>
1769
1770         * read.c (do_repeat_with_expander): Use memmove instead of strcpy
1771         on unterminated string buffer.
1772
1773 2018-08-21  Alan Modra  <amodra@gmail.com>
1774
1775         * config/tc-ppc.c (md_assemble): Delay counting of optional
1776         operands until one is encountered.  Allow for the possibility
1777         of optional base regs, ie. PPC_OPERAND_PARENS.  Call
1778         ppc_optional_operand_value with extra args.
1779
1780 2018-08-21  Alan Modra  <amodra@gmail.com>
1781
1782         * testsuite/gas/s12z/bit-manip-invalid.d: Correct regexps.
1783
1784 2018-08-18  John Darrington  <john@darrington.wattle.id.au>
1785
1786         * testsuite/gas/s12z/bit-manip-invalid.d: New file.
1787         * testsuite/gas/s12z/bit-manip-invalid.s: New file.
1788         * testsuite/gas/s12z/s12z.exp: Add them.
1789
1790 2018-08-14  H.J. Lu  <hongjiu.lu@intel.com>
1791
1792         * testsuite/gas/i386/evex-no-scale-64.d: Updated.
1793         * testsuite/gas/i386/x86-64-addr32-intel.d: Likewise.
1794         * testsuite/gas/i386/x86-64-addr32.d: Likewise.
1795         * testsuite/gas/i386/ilp32/x86-64-addr32-intel.d: Likewise.
1796         * testsuite/gas/i386/ilp32/x86-64-addr32.d: Likewise.
1797         * testsuite/gas/i386/x86-64-addr32.s: Add %eiz tests.
1798
1799 2018-08-14  Robert Yang  <liezhi.yang@windriver.com>
1800
1801         * as.c (main): Improve check for input file matching output file.
1802
1803 2018-08-11  H.J. Lu  <hongjiu.lu@intel.com>
1804
1805         * config/tc-i386.c (cpu_arch): Add .cmov and .fxsr.
1806         (cpu_noarch): Add nocmov and nofxsr.
1807         * doc/c-i386.texi: Document cmov and fxsr.
1808
1809 2018-08-10  H.J. Lu  <hongjiu.lu@intel.com>
1810
1811         * config/tc-i386.c (md_show_usage): Don't display --32/--64/--x32
1812         if BFD64 is undefined.
1813         * testsuite/gas/i386/i386.exp (gas_bfd64_check): New.
1814         Run code64-inval if gas_bfd64_check fails.
1815
1816 2018-08-10  H.J. Lu  <hongjiu.lu@intel.com>
1817
1818         * testsuite/gas/i386/evex-no-scale.s: Removed.
1819         * testsuite/gas/i386/evex-no-scale-32.d: Don't use
1820         evex-no-scale.s.
1821         * testsuite/gas/i386/evex-no-scale-64.d: Likewise.
1822         * testsuite/gas/i386/evex-no-scale-32.s: New file.
1823         * testsuite/gas/i386/evex-no-scale-64.s: Likewise.
1824
1825 2018-08-09  H.J. Lu  <hongjiu.lu@intel.com>
1826
1827         * as.c (show_usage): Display default option for --elf-stt-common=.
1828
1829 2018-08-09  H.J. Lu  <hongjiu.lu@intel.com>
1830
1831         * config/tc-i386.c (md_show_usage): Display default options.
1832
1833 2018-08-07  James Patrick Conlon  <cptjustice@gmail.com>
1834             Nick Clifton  <nickc@redhat.com>
1835
1836         PR 23481
1837         * config/tc-pdp11.c (parse_op_noreg): Check for deferred register
1838         addressing before assuming non-deferred addressing.
1839         * testsuite/gas/pdp11/pr23481.s: New test source file.
1840         * testsuite/gas/pdp11/pr23481.d: New test driver file.
1841         * testsuite/gas/pdp11/pdp11.exp: Run the new test.
1842
1843 2018-08-06  Claudiu Zissulescu  <claziss@synopsys.com>
1844
1845         * config/tc-arc.c (rf16_only): New static variable.
1846         (autodetect_attributes): Check if we are rf16 compliant.
1847         (arc_set_public_attributes): Fix and emit the warning is required.
1848         * testsuite/gas/arc/attr-rf16.d: New file.
1849         * testsuite/gas/arc/attr-rf16.err: Likewise.
1850         * testsuite/gas/arc/attr-rf16.s: Likewise.
1851
1852 2018-08-06  Claudiu Zissulescu  <claziss@synopsys.com>
1853
1854         * config/tc-arc.c (arc_set_public_attributes): Add
1855         Tag_ARC_ATR_version.
1856         (arc_convert_symbolic_attribute): Likewise.
1857         * testsuite/gas/arc/attr-arc600.d: Update test.
1858         * testsuite/gas/arc/attr-arc600_mul32x16.d: Likewise.
1859         * testsuite/gas/arc/attr-arc600_norm.d: Likewise.
1860         * testsuite/gas/arc/attr-arc601.d: Likewise.
1861         * testsuite/gas/arc/attr-arc601_mul32x16.d: Likewise.
1862         * testsuite/gas/arc/attr-arc601_mul64.d: Likewise.
1863         * testsuite/gas/arc/attr-arc601_norm.d: Likewise.
1864         * testsuite/gas/arc/attr-arc700.d: Likewise.
1865         * testsuite/gas/arc/attr-arcem.d: Likewise.
1866         * testsuite/gas/arc/attr-archs.d: Likewise.
1867         * testsuite/gas/arc/attr-autodetect-1.d: Likewise.
1868         * testsuite/gas/arc/attr-cpu-a601.d: Likewise.
1869         * testsuite/gas/arc/attr-cpu-a700.d: Likewise.
1870         * testsuite/gas/arc/attr-cpu-em.d: Likewise.
1871         * testsuite/gas/arc/attr-cpu-hs.d: Likewise.
1872         * testsuite/gas/arc/attr-em.d: Likewise.
1873         * testsuite/gas/arc/attr-em4.d: Likewise.
1874         * testsuite/gas/arc/attr-em4_dmips.d: Likewise.
1875         * testsuite/gas/arc/attr-em4_fpuda.d: Likewise.
1876         * testsuite/gas/arc/attr-em4_fpus.d: Likewise.
1877         * testsuite/gas/arc/attr-hs.d: Likewise.
1878         * testsuite/gas/arc/attr-hs34.d: Likewise.
1879         * testsuite/gas/arc/attr-hs38.d: Likewise.
1880         * testsuite/gas/arc/attr-hs38_linux.d: Likewise.
1881         * testsuite/gas/arc/attr-mul64.d: Likewise.
1882         * testsuite/gas/arc/attr-name.d: Likewise.
1883         * testsuite/gas/arc/attr-nps400.d: Likewise.
1884         * testsuite/gas/arc/attr-override-mcpu.d: Likewise.
1885         * testsuite/gas/arc/attr-quarkse_em.d: Likewise.
1886
1887 2018-08-06  Claudiu Zissulescu  <claziss@synopsys.com>
1888
1889         * config/tc-arc.c (find_opcode_match): Accept uppercase aux-regs
1890         names.
1891         * testsuite/gas/arc/ld2.d: Update test.
1892         * testsuite/gas/arc/taux.d: Likewise.
1893         * testsuite/gas/arc/taux.s: Likewise.
1894
1895 2018-08-06  Jan Beulich  <jbeulich@suse.com>
1896
1897         * config/tc-i386.c (build_modrm_byte): Use RegIP and RegIZ.
1898         (output_disp): Use RegIP.
1899         (i386_addressing_mode): Drop uses of RegEip and RegEiz.
1900         (i386_index_check): Replace uses of RegEip/RegEiz.
1901         (parse_real_register): Use RegIZ.
1902         * config/tc-i386-intel.c (i386_intel_simplify_register): Use
1903         RegIZ.
1904         * testsuite/gas/i386/x86-64-mpx-inval-2.l: Adjust expectations.
1905
1906 2018-08-05  H.J. Lu  <hongjiu.lu@intel.com>
1907
1908         * testsuite/gas/i386/i386.exp: Run evex-no-scale-32 and
1909         evex-no-scale-64 only for ELF targets.
1910         * testsuite/gas/i386/prefix32.s: Append ".p2align 4,0".
1911         * testsuite/gas/i386/prefix64.s: Likewise.
1912         * testsuite/gas/i386/prefix32.l: Updated.
1913         * testsuite/gas/i386/prefix64.l: Likewise.
1914
1915 2018-08-05  Alan Modra  <amodra@gmail.com>
1916
1917         * config/tc-ppc.c (ppc_elf_suffix): Support @notoc.
1918         (ppc_force_relocation, ppc_fix_adjustable): Handle REL24_NOTOC.
1919
1920 2018-08-03  Dimitar Dimitrov  <dimitar@dinux.eu>
1921
1922         * config/tc-pru.c (pru_regname_to_dw2regnum): Return the starting HW
1923         byte-register number.
1924         (pru_frame_initial_instructions): Use byte-numbering for FP index.
1925         * config/tc-pru.h (DWARF2_DEFAULT_RETURN_COLUMN): Use number from
1926         latest GCC.
1927         (DWARF2_CIE_DATA_ALIGNMENT): Set to -1.
1928
1929 2018-08-03  Jan Beulich  <jbeulich@suse.com>
1930
1931         * config/tc-i386.c (Operand_Mem): Define.
1932         (operand_size_match): Use it.
1933         (check_VecOperands): Likewise.
1934         (i386_att_operand): Likewise.
1935         (swap_2_operands): Also swap flags fields.
1936         * config/tc-i386-intel.c (i386_intel_operand): Likewise.
1937
1938 2018-08-01  James Patrick Conlon  <cptjustice@gmail.com>
1939             Nick Clifton  <nickc@redhat.com>
1940
1941         PR 14480
1942         * config/tc-pdp11.c (parse_op_noreg): Check for and handle auto
1943         increment deferred.
1944         * testsuite/gas/pdp11/pr14480.d: New test driver file.
1945         * testsuite/gas/pdp11/pr14480.s: New test source file file.
1946         * testsuite/gas/pdp11/pdp11.exp: Run the new test.
1947
1948 2018-08-01  Nick Clifton  <nickc@redhat.com>
1949
1950         * config/tc-ns32k.c (addr_mode): Replace "Drop through" comment
1951         with "Fall through" so that it will be recognised by gcc's switch
1952         statment error checker.
1953
1954 2018-08-01  Alan Modra  <amodra@gmail.com>
1955
1956         * po/POTFILES.in: Regenerate.
1957
1958 2018-07-31  Jan Beulich  <jbeulich@suse.com>
1959
1960         * config/tc-i386.c (optimize_encoding): Also handle kandnd,
1961         kandnq, kxord, and kxorq.
1962         * testsuite/gas/i386/optimize-1.s: Add kandn and kxor tests.
1963         * testsuite/gas/i386/optimize-1.d,
1964         testsuite/gas/i386/optimize-4.d,
1965         testsuite/gas/i386/optimize-5.d: Adjust expectations.
1966
1967 2018-07-31  Jan Beulich  <jbeulich@suse.com>
1968
1969         * config/tc-i386.c (check_VecOperands): Convert masking handling
1970         to switch(), to deal with DYNAMIC_MASKING.
1971
1972 2018-07-31  Jan Beulich  <jbeulich@suse.com>
1973
1974         * testsuite/gas/i386/inval-avx512f.s: Add invalid zeroing-
1975         masking tests.
1976         * testsuite/gas/i386/inval-avx512f.l: Adjust expectations.
1977
1978 2018-07-31  Jan Beulich  <jbeulich@suse.com>
1979
1980         * testsuite/gas/i386/sg.s, testsuite/gas/i386/sg.l: New.
1981         * testsuite/gas/i386/i386.exp: Run new test.
1982         * testsuite/gas/i386/avx512f.s, testsuite/gas/i386/avx512f_vl.s,
1983         testsuite/gas/i386/avx512pf.s,
1984         testsuite/gas/i386/x86-64-avx512f.s,
1985         testsuite/gas/i386/x86-64-avx512f_vl.s,
1986         testsuite/gas/i386/x86-64-avx512pf.s: Drop unnessecary operand
1987         size specifiers from scatter/gather insns in Intel mode.
1988
1989 2018-07-31  Jan Beulich  <jbeulich@suse.com>
1990
1991         * config/tc-i386.c (is_any_vex_encoding): New.
1992         (process_immext, process_suffix): Use it.
1993         (md_assemble): Likewise. Reject DATA_PREFIX with VEX/XOP/EVEX
1994         insn.
1995         * testsuite/gas/i386/prefix32.s, testsuite/gas/i386/prefix32.l,
1996         testsuite/gas/i386/prefix64.s, testsuite/gas/i386/prefix64.l
1997          New.
1998         * testsuite/gas/i386/i386.exp: Run new tests.
1999
2000 2018-07-31  Jan Beulich  <jbeulich@suse.com>
2001
2002         * config/tc-i386.c (parse_real_register): Use cpuavx512f instead
2003         of cpuvrex.
2004
2005 2018-07-30  Jan Beulich  <jbeulich@suse.com>
2006
2007         PR gas/23465
2008         * config/tc-i386.c (output_disp): Restrict scaling.
2009         * testsuite/gas/i386/evex-no-scale.s,
2010           testsuite/gas/i386/evex-no-scale-32.d
2011           testsuite/gas/i386/evex-no-scale-64.d: New.
2012         * testsuite/gas/i386/i386.exp: Run new tests.
2013
2014 2018-07-30  Andrew Jenner  <andrew@codesourcery.com>
2015
2016         * Makefile.am (TARGET_CPU_CFILES): Add entry for C-SKY.
2017         (TARGET_CPU_HFILES, TARGET_ENV_HFILES): Likewise.
2018         * Makefile.in: Regenerated.
2019         * config/tc-csky.c: New file.
2020         * config/tc-csky.h: New file.
2021         * config/te-csky_abiv1.h: New file.
2022         * config/te-csky_abiv1_linux.h: New file.
2023         * config/te-csky_abiv2.h: New file.
2024         * config/te-csky_abiv2_linux.h: New file.
2025         * configure.tgt: Add C-SKY.
2026         * doc/Makefile.am (CPU_DOCS): Add entry for C-SKY.
2027         * doc/Makefile.in: Regenerated.
2028         * doc/all.texi: Set CSKY feature.
2029         * doc/as.texi (Overview): Add C-SKY options.
2030         (Machine Dependencies): Likewise.
2031         * doc/c-csky.texi: New file.
2032         * testsuite/gas/csky/*: New test cases.
2033         * NEWS: Mention the support.
2034
2035 2018-07-29  John David Anglin  <danglin@gcc.gnu.org>
2036
2037         * config/tc-hppa.c: Include "struc-symbol.h".
2038         (pa_build_unwind_subspace): Use call_info->start_symbol->sy_frag
2039         instead of frag_now for local symbol replacement.
2040
2041 2018-07-27  Jim Wilson  <jimw@sifive.com>
2042
2043         * configure.tgt (riscv*): Accept as alias for riscv32*.
2044
2045 2018-07-26  H.J. Lu  <hongjiu.lu@intel.com>
2046
2047         PR gas/23453
2048         * config/tc-i386.c (parse_operands): Check for more than 2
2049         memory references.
2050         * testsuite/gas/i386/inval.s: Add a movsd test with 3 memory
2051         references.
2052         * testsuite/gas/i386/x86-64-inval.s: Likewise.
2053         * testsuite/gas/i386/inval.l: Updated.
2054         * testsuite/gas/i386/x86-64-inval.l: Likewise.
2055
2056 2018-07-26  H.J. Lu  <hongjiu.lu@intel.com>
2057
2058         * config/tc-i386.c (check_VecOperations): Initialize
2059         broadcast_op.bytes to 0.
2060
2061 2018-07-26  Alex Chadwick  <Alex.Chadwick@cl.cam.ac.uk>
2062
2063         * config/tc-ppc.c (md_show_usage): Add -mgekko and -mbroadway.
2064         * doc/as.texi (Target PowerPC options): Add -mgekko and -mbroadway.
2065         * doc/c-ppc.texi (PowerPC-Opts): Likewise.
2066         * testsuite/gas/ppc/broadway.d,
2067         * testsuite/gas/ppc/broadway.s: New test for broadway.
2068         * testsuite/gas/ppc/ppc.exp: Run new test.
2069
2070 2018-07-26  Alan Modra  <amodra@gmail.com>
2071
2072         * config/tc-ppc.c (ppc_elf_localentry): Allow .localentry values
2073         of 1 and 7 to directly set value into STO_PPC64_LOCAL_MASK bits.
2074
2075 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
2076
2077         * config/tc-i386.c (Broadcast_Operation): Add bytes.
2078         (build_evex_prefix): Use i.broadcast->bytes.
2079         (match_broadcast_size): New function.
2080         (check_VecOperands): Use the broadcast field to compute the
2081         number of bytes to broadcast directly.  Set i.broadcast->bytes.
2082         Use match_broadcast_size.
2083
2084 2018-07-25  Thomas Preud'homme  <thomas.preudhomme@linaro.org>
2085
2086         * doc/c-arm.texi (.arch directive): Clarify that name must not include
2087         an extension.
2088         (.cpu directive): Likewise.
2089
2090 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
2091
2092         * config/tc-i386.c (build_vex_prefix): Use unsigned int to
2093         iterate through multi-length vector operands.
2094         (build_evex_prefix): Likewise.
2095
2096 2018-07-24  Jan Beulich  <jbeulich@suse.com>
2097
2098         * config/tc-i386.c (check_VecOperands): Handle EVEXLIG when
2099         deriving i.memshift.
2100         * testsuite/gas/i386/cvtsi2sX.s, testsuite/gas/i386/cvtsi2sX.l:
2101         New.
2102         * testsuite/gas/i386/i386.exp: Run new test.
2103         * testsuite/gas/i386/avx512f.d,
2104         testsuite/gas/i386/evex-lig256.d,
2105         testsuite/gas/i386/evex-lig512.d,,
2106         testsuite/gas/i386/x86-64-avx512f.d,
2107         testsuite/gas/i386/x86-64-evex-lig256.d,
2108         testsuite/gas/i386/x86-64-evex-lig512.d: Adjust expectations.
2109
2110 2018-07-23  H.J. Lu  <hongjiu.lu@intel.com>
2111
2112         * testsuite/gas/i386/inval-avx512f.s: Add a test for missing
2113         broadcast.
2114         * testsuite/gas/i386/x86-64-inval-avx512f.s: Likewise.
2115         * testsuite/gas/i386/inval-avx512f.l: Updated.
2116         * testsuite/gas/i386/x86-64-inval-avx512f.l: Likewise.
2117
2118 2018-07-23  H.J. Lu  <hongjiu.lu@intel.com>
2119
2120         * config/tc-i386.c (i386_error): Remove
2121         broadcast_not_on_src_operand.
2122         (match_template): Likewse.
2123
2124 2018-07-23  Claudiu Zissulescu <claziss@synopsys.com>
2125
2126         * testsuite/gas/arc/st.d: Fix test.
2127
2128 2018-07-23  Claudiu Zissulescu <claziss@synopsys.com>
2129
2130         * config/tc-arc.c (tokenize_extinsn): Convert to lower case the
2131         name of extension instructions.
2132         * testsuite/gas/arc/textinsn_case.d: New file.
2133         * testsuite/gas/arc/textinsn_case.s: Likewise.
2134
2135 2018-07-22  H.J. Lu  <hongjiu.lu@intel.com>
2136
2137         * config/tc-i386.c (build_vex_prefix): Determine vector
2138         length from the last multi-length vector operand.
2139         (build_evex_prefix): Likewise.
2140
2141 2018-07-20  H.J. Lu  <hongjiu.lu@intel.com>
2142
2143         * config/tc-i386.c (match_simd_size): Break long line.
2144         (match_mem_size): Likewise.
2145
2146 2018-07-20  H.J. Lu  <hongjiu.lu@intel.com>
2147
2148         * config/tc-i386.c (match_reg_size): Renamed to ...
2149         (match_operand_size): This.  Update comments.
2150         (match_simd_size): Update comments.  Replace match_reg_size
2151         with match_operand_size.
2152         (match_mem_size): Likewise.
2153         (operand_size_match): Replace match_reg_size with
2154         match_operand_size.
2155
2156 2018-07-20  Chenghua Xu  <paul.hua.gm@gmail.com>
2157             Maciej W. Rozycki  <macro@mips.com>
2158
2159         * NEWS: Mention MultiMedia extensions Instructions (MMI)
2160         support.
2161         * config/tc-mips.c (options): Add OPTION_LOONGSON_MMI and
2162         OPTION_NO_LOONGSON_MMI.
2163         (md_longopts): Likewise.
2164         (mips_ases): Define availability for MMI.
2165         (mips_convert_ase_flags): Map ASE_LOONGSON_MMI to
2166         AFL_ASE_LOONGSON_MMI.
2167         (mips_cpu_info_table): Add ASE_LOONGSON_MMI for loongson2f/3a.
2168         (md_show_usage): Add help for -mloongson-mmi and
2169         -mno-loongson-mmi.
2170         * doc/as.texi: Document -mloongson-mmi, -mno-loongson-mmi.
2171         * doc/c-mips.texi: Document -mloongson-mmi, -mno-loongson-mmi,
2172         .set loongson-mmi and .set noloongson-mmi.
2173         * testsuite/gas/mips/loongson-2f.d: Move mmi test to ...
2174         * testsuite/gas/mips/loongson-2f-mmi.d: Here.  Add ISA/ASE
2175         flag verification.
2176         * testsuite/gas/mips/loongson-2f.s: Move mmi test to ...
2177         * testsuite/gas/mips/loongson-2f-mmi.s: Here.
2178         * testsuite/gas/mips/loongson-3a.d: Move mmi test to ...
2179         * testsuite/gas/mips/loongson-3a-mmi.d: Here.  Add ISA/ASE
2180         flag verification.
2181         * testsuite/gas/mips/loongson-3a.s: Move mmi test to ...
2182         * testsuite/gas/mips/loongson-3a-mmi.s: Here.
2183         * testsuite/gas/mips/mips.exp: Run loongson-2f-mmi and
2184         loongson-3a-mmi tests.
2185
2186 2018-07-20  Jose E. Marchesi  <jose.marchesi@oracle.com>
2187             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2188
2189         * testsuite/gas/sparc/sparc.exp (set_tests_arch): New proc.
2190         Prefix v9c, v9d, v9v, v9m, v9m8 tests with corresponding
2191         set_tests_arch.
2192
2193 2018-07-19  Jan Beulich  <jbeulich@suse.com>
2194
2195         * config/tc-i386.c (build_evex_prefix): Derive vector length
2196         from broadcast specification if necessary.
2197         (match_template): Also exclude broadcast when checking whether
2198         to reject 32-bit operands on pre-386.
2199
2200 2018-07-19  Jan Beulich  <jbeulich@suse.com>
2201
2202         * testsuite/gas/i386/noavx512-2.l: Adjust expectations.
2203
2204 2018-07-19  Jan Beulich  <jbeulich@suse.com>
2205
2206         * config/tc-i386.c (is_evex_encoding): Also check disp8memshift.
2207         (optimize_encoding): Also cover templates without cpuavx512vl
2208         allowing for zmmword and having a ymmword actual.
2209         (check_VecOperands): Handle DISP8_SHIFT_VL.
2210         * testsuite/gas/i386/noavx512-2.l: Adjust expectations.
2211
2212 2018-07-18  Maciej W. Rozycki  <macro@mips.com>
2213
2214         * testsuite/gas/mips/loongson-2e.d: Correct whitespace issues.
2215         * testsuite/gas/mips/loongson-2f.d: Likewise.
2216         * testsuite/gas/mips/loongson-2f-2.d: Likewise.
2217         * testsuite/gas/mips/loongson-2f-3.d: Likewise.
2218         * testsuite/gas/mips/loongson-3a.d: Likewise.
2219         * testsuite/gas/mips/loongson-3a-2.d: Likewise.
2220         * testsuite/gas/mips/loongson-2e.s: Likewise.
2221         * testsuite/gas/mips/loongson-2f.s: Likewise.
2222         * testsuite/gas/mips/loongson-2f-3.s: Likewise.
2223         * testsuite/gas/mips/loongson-3a.s: Likewise.
2224         * testsuite/gas/mips/loongson-3a-2.s: Likewise.
2225
2226 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
2227
2228         PR gas/23418
2229         * testsuite/gas/i386/xmmword.s: Add tests for vcvtps2qq,
2230         vcvtps2uqq, vcvttps2qq and vcvttps2uqq.
2231         * testsuite/gas/i386/xmmword.l: Updated.
2232
2233 2018-07-16  Jan Beulich  <jbeulich@suse.com>
2234
2235         * config/tc-i386.c (match_reg_size): Split second parameter
2236         into two.
2237         (match_simd_size): Likewise.
2238         (match_mem_size): Likewise.
2239         (MATCH_STRAIGHT, MATCH_REVERSE): Define.
2240         (operand_size_match): Change return type. New local variable
2241         "match". Always check for reverse match when opcode_modifier.d
2242         is set.
2243         (match_template) New local variable "size_match". Skip further
2244         matching if operand_size_match() did not report a respective
2245         match.
2246         * testsuite/gas/i386/inval.s: Add control register reads/writes.
2247         * testsuite/gas/i386/inval.l: Adjust expectations.
2248
2249 2018-07-13  Nick Clifton  <nickc@redhat.com>
2250
2251         * testsuite/gas/elf/missing-build-notes.s: New test.  Checks that
2252         relocs are correctly generated for missing build notes.
2253         * testsuite/gas/elf/missing-build-notes.d: New file.  Expected
2254         output from objdump.
2255         * testsuite/gas/elf/elf.exp: Run the new test.
2256
2257 2018-07-13  Nick Clifton  <nickc@redhat.com>
2258
2259         * config/tc-arm.c (do_neon_mov): When converting an integer
2260         immediate into a floating point value, check that the conversion
2261         is valid.  Also warn if the immediate is valid as both a floating
2262         point value and a bit pattern.
2263         * testsuite/gas/arm/vfp-mov-enc.s: Add instructions that use
2264         floating point bit patterns.
2265         * testsuite/gas/arm/vfp-mov-enc.d: Add regexps for the disassembly
2266         of the new insns.
2267
2268 2018-07-12  Sudakshina Das  <sudi.das@arm.com>
2269
2270         * testsuite/gas/aarch64/system.s: Add test for ssbb
2271         and pssbb.
2272         * testsuite/gas/aarch64/system.d: Update accordingly
2273         and remove explicit addresses.
2274
2275 2018-07-11  Tamar Christina  <tamar.christina@arm.com>
2276
2277         PR binutils/23192
2278         * testsuite/gas/aarch64/illegal-by-element.s: New.
2279         * testsuite/gas/aarch64/illegal-by-element.d: New.
2280         * testsuite/gas/aarch64/illegal-by-element.l: New.
2281
2282 2018-07-11  Sudakshina Das  <sudi.das@arm.com>
2283
2284         * config/tc-arm.c (insns): Add new ssbb and pssbb instructions.
2285         * testsuite/gas/arm/csdb.s: Add new tests for ssbb and pssbb.
2286         * testsuite/gas/arm/csdb.d: Likewise
2287         * testsuite/gas/arm/thumb2_it_bad.s: Likewise.
2288         * testsuite/gas/arm/thumb2_it_bad.l: Likewise.
2289         * testsuite/gas/arm/barrier.d: Update with ssbb.
2290         * testsuite/gas/arm/barrier-thumb.d: Likewise.
2291
2292 2018-07-11  Jan Beulich  <jbeulich@suse.com>
2293
2294         * config/tc-i386.c (inoutportreg, reg16_inoutportreg): Delete.
2295         (i386_att_operand): Replace uses of reg16_inoutportreg and
2296         inoutportreg.
2297
2298 2018-07-11  Jan Beulich  <jbeulich@suse.com>
2299
2300         * config/tc-i386.c (output_insn): Remove check_prefix label and
2301         fold remaining expression.
2302
2303 2018-07-11  Jan Beulich  <jbeulich@suse.com>
2304
2305         * testsuite/gas/i386/cet.s, testsuite/gas/i386/x86-64-cet.s:
2306         Add Intel cases with operand size specifiers.
2307         * testsuite/gas/i386/cet-intel.d, testsuite/gas/i386/cet.d,
2308         testsuite/gas/i386/x86-64-cet-intel.d,
2309         testsuite/gas/i386/x86-64-cet.d: Adjust expectations.
2310
2311 2018-07-11  Jan Beulich  <jbeulich@suse.com>
2312
2313         * config/tc-i386.c (md_assemble): Also replace an already
2314         present REP prefix.
2315         * testsuite/gas/i386/mpx-add-bnd-prefix.s,
2316         testsuite/gas/i386/x86-64-mpx-add-bnd-prefix.s: Test RET with
2317         all REP flavors.
2318         * testsuite/gas/i386/mpx-add-bnd-prefix.d,
2319         testsuite/gas/i386/x86-64-mpx-add-bnd-prefix.d: Adjust
2320         expectations.
2321         * testsuite/gas/i386/mpx-add-bnd-prefix.e,
2322         testsuite/gas/i386/x86-64-mpx-add-bnd-prefix.e: New.
2323
2324 2018-07-09  Jeff Law  <law@redhat.com>
2325
2326         * testsuite/nds32/ji-jr.d: Fix name tag.
2327
2328 2018-07-06  Tamar Christina  <tamar.christina@arm.com>
2329
2330         PR binutils/23369
2331         * testsuite/gas/aarch64/msr.d (csselr_el1,
2332         vsesr_el2, osdtrrx_el1, osdtrtx_el1, pmsidr_el1): New.
2333         * testsuite/gas/aarch64/msr.s: Likewise.
2334
2335 2018-07-06  Nick Clifton  <nickc@redhat.com>
2336
2337         * write.c (maybe_generate_build_notes): Bias reloc offsets by the
2338         number of notes already generated.
2339
2340 2018-07-05  Nick Clifton  <nickc@redhat.com>
2341
2342         * po/ru.po: Updated Russian translation.
2343
2344 2018-07-02  Maciej W. Rozycki  <macro@mips.com>
2345
2346         * config/tc-mips.c (macro_build) <'i', 'j'>: Also accept
2347         BFD_RELOC_16, BFD_RELOC_MIPS_GOT16, BFD_RELOC_MIPS_CALL16,
2348         BFD_RELOC_MIPS_GOT_HI16, BFD_RELOC_MIPS_GOT_LO16,
2349         BFD_RELOC_MIPS_CALL_HI16, BFD_RELOC_MIPS_CALL_LO16,
2350         BFD_RELOC_MIPS_SUB, BFD_RELOC_MIPS_GOT_PAGE,
2351         BFD_RELOC_MIPS_HIGHEST, BFD_RELOC_MIPS_GOT_DISP,
2352         BFD_RELOC_MIPS_TLS_GD, BFD_RELOC_MIPS_TLS_LDM,
2353         BFD_RELOC_MIPS_TLS_DTPREL_HI16, BFD_RELOC_MIPS_TLS_DTPREL_LO16,
2354         BFD_RELOC_MIPS_TLS_GOTTPREL, BFD_RELOC_MIPS_TLS_TPREL_HI16 and
2355         BFD_RELOC_MIPS_TLS_TPREL_LO16 relocations if in the microMIPS
2356         mode.
2357         * testsuite/gas/mips/elf-rel28-lldscd-n32.d: New test.
2358         * testsuite/gas/mips/elf-rel28-lldscd-micromips-n32.d: New test.
2359         * testsuite/gas/mips/elf-rel28-lldscd-n64.d: New test.
2360         * testsuite/gas/mips/elf-rel28-lldscd-micromips-n64.d: New test.
2361         * testsuite/gas/mips/elf-rel28.s: Add instruction selection.
2362         * testsuite/gas/mips/mips.exp: Run the new tests.
2363
2364 2018-07-02  Maciej W. Rozycki  <macro@mips.com>
2365
2366         * testsuite/gas/mips/elf-rel28-micromips-n32.d: New test.
2367         * testsuite/gas/mips/elf-rel28-micromips-n64.d: New test.
2368         * testsuite/gas/mips/mips.exp: Run the new tests.
2369
2370 2018-07-02  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2371
2372         * config/tc-arm.c (cpu_arch_ver): Use symbolic TAG_CPU_ARCH macros
2373         rather than hardcode their values.
2374
2375 2018-07-02  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2376
2377         * NEWS: Use command-line consistently when used in a compount word.
2378         * doc/as.texi: Likewise.
2379         * doc/c-aarch64.texi: Likewise.
2380         * doc/c-alpha.texi: Likewise.
2381         * doc/c-arc.texi: Likewise.
2382         * doc/c-arm.texi: Likewise.
2383         * doc/c-avr.texi: Likewise.
2384         * doc/c-bfin.texi: Likewise.
2385         * doc/c-cris.texi: Likewise.
2386         * doc/c-epiphany.texi: Likewise.
2387         * doc/c-i386.texi: Likewise.
2388         * doc/c-ia64.texi: Likewise.
2389         * doc/c-lm32.texi: Likewise.
2390         * doc/c-m32r.texi: Likewise.
2391         * doc/c-m68k.texi: Likewise.
2392         * doc/c-mips.texi: Likewise.
2393         * doc/c-mmix.texi: Likewise.
2394         * doc/c-msp430.texi: Likewise.
2395         * doc/c-mt.texi: Likewise.
2396         * doc/c-nios2.texi: Likewise.
2397         * doc/c-ppc.texi: Likewise.
2398         * doc/c-pru.texi: Likewise.
2399         * doc/c-rl78.texi: Likewise.
2400         * doc/c-rx.texi: Likewise.
2401         * doc/c-tic6x.texi: Likewise.
2402         * doc/c-v850.texi: Likewise.
2403         * doc/c-vax.texi: Likewise.
2404         * doc/c-visium.texi: Likewise.
2405         * doc/c-xstormy16.texi: Likewise.
2406         * doc/c-xtensa.texi: Likewise.
2407         * doc/c-z80.texi: Likewise.
2408         * doc/c-z8k.texi: Likewise.
2409         * doc/internals.texi: Likewise.
2410
2411 2018-06-29  Jim Wilson  <jimw@sifive.com>
2412
2413         * config/tc-riscv.c (md_begin): Call hash_reg_name for "fp".
2414
2415 2018-06-29  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2416
2417         * config/tc-aarch64.c (warn_unpredictable_ldst): Add unpredictable
2418         cases for ldxp, stlxrb, stlxrh, stlxr.
2419         * testsuite/gas/aarch64/diagnostic.s: New tests.
2420         * testsuite/gas/aarch64/diagnostic.l: Adjust.
2421
2422 2018-06-29  Tamar Christina  <tamar.christina@arm.com>
2423
2424         PR binutils/23192
2425         * config/tc-aarch64.c (process_omitted_operand, parse_operands): Add
2426         AARCH64_OPND_Em16
2427         * testsuite/gas/aarch64/advsimd-armv8_3.s: Expand tests to cover upper
2428         16 registers.
2429         * testsuite/gas/aarch64/advsimd-armv8_3.d: Likewise.
2430         * testsuite/gas/aarch64/advsimd-compnum.s: Likewise.
2431         * testsuite/gas/aarch64/advsimd-compnum.d: Likewise.
2432         * testsuite/gas/aarch64/sve.d: Likewise.
2433
2434 2018-06-27  Alan Modra  <amodra@gmail.com>
2435
2436         * configure.ac: Specify extra_objects with leading "config/"
2437         for xtensa-relax.o and te-vms.o.  Use case statements to unique
2438         extra_objects.  Formatting.
2439         * configure: Regenerate.
2440
2441 2018-06-26  Nick Clifton  <nickc@redhat.com>
2442
2443         * po/uk.po: Updated Ukranian translation.
2444
2445 2018-06-26  Nick Clifton  <nickc@redhat.com>
2446
2447         PR 23335
2448         * config/tc-msp430.c (check_reg): Only accept register name
2449         strings that do not end in an alphanumeric character.
2450         * testsuite/gas/msp430/msp430x.d: Update expected disassembly.
2451
2452 2018-06-24  Nick Clifton  <nickc@redhat.com>
2453
2454         * configure: Regenerate.
2455         * po/gas.pot: Regenerate.
2456
2457 2018-06-24  Nick Clifton  <nickc@redhat.com>
2458
2459         2.31 branch created.
2460         * NEWS: Add marker for 2.31.
2461
2462 2018-06-22  Tamar Christina  <tamar.christina@arm.com>
2463
2464         * testsuite/gas/aarch64/addsub.s: Add negs to zero reg test.
2465         * testsuite/gas/aarch64/addsub.d: Likewise.
2466
2467 2018-06-21  Alan Modra  <amodra@gmail.com>
2468
2469         * doc/Makefile.am (AUTOMAKE_OPTIONS): Add "foreign".
2470         * doc/Makefile.in: Regenerate.
2471
2472 2018-06-20  Nick Clifton  <nickc@redhat.com>
2473
2474         PR 21458
2475         * tc-arm.c (do_adr): Only set the bottom bit of an imported thumb
2476         function symbol address if -mthumb-interwork is active.
2477         (do_adrl): Likewise.
2478         * doc/c-arm.texi: Update descriptions of the -mthumb-interwork
2479         option and the ADR and ADRL pseudo-ops.
2480         * NEWS: Mention the new behaviour of the ADR and ADRL pseudo-ops.
2481         * testsuite/gas/arm/pr21458.d: Add -mthumb-interwork option to
2482         assembler command line.
2483         * testsuite/gas/arm/adr.d: Likewise.
2484         * testsuite/gas/arm/adrl.d: Likewise.
2485
2486 2018-06-20  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2487
2488         PR gas/23305
2489         * config/tc-riscv.c (riscv_ip): Add format specifier 'B' for
2490         constants and symbols.
2491         * testsuite/gas/riscv/lla32.d: New file.
2492         * testsuite/gas/riscv/lla32.s: Likewise.
2493         * testsuite/gas/riscv/lla64-fail.d: Likewise.
2494         * testsuite/gas/riscv/lla64-fail.l: Likewise.
2495         * testsuite/gas/riscv/lla64-fail.s: Likewise.
2496         * testsuite/gas/riscv/lla64.d: Likewise.
2497         * testsuite/gas/riscv/lla64.s: Likewise.
2498
2499 2018-06-19  Simon Marchi  <simon.marchi@ericsson.com>
2500
2501         * Makefile.am (AUTOMAKE_OPTIONS): Remove 1.11, add subdir-objects.
2502         (TARG_CPU_O, OBJ_FORMAT_O, ATOF_TARG_O): Add config/ prefix.
2503         * configure.ac (TARG_CPU_O, OBJ_FORMAT_O, ATOF_TARG_O, emfiles,
2504         extra_objects): Add config/ prefix.
2505         * doc/as.texinfo: Rename to...
2506         * doc/as.texi: ... this.
2507         * doc/Makefile.am: Rename as.texinfo to as.texi throughout.
2508         Remove DISTCLEANFILES hack.
2509         (AUTOMAKE_OPTIONS): Remove 1.8, cygnus, add no-texinfo.tex and
2510         info-in-builddir.
2511         * Makefile.in: Re-generate.
2512         * aclocal.m4: Re-generate.
2513         * config.in: Re-generate.
2514         * configure: Re-generate.
2515         * doc/Makefile.in: Re-generate.
2516
2517 2018-06-14  Faraz Shahbazker  <Faraz.Shahbazker@mips.com>
2518
2519         * NEWS: Mention MIPS Global INValidate ASE support.
2520         * config/tc-mips.c (options): Add OPTION_GINV and OPTION_NO_GINV.
2521         (md_longopts): Likewise.
2522         (mips_ases): Define availability for GINV.
2523         (mips_convert_ase_flags): Map ASE_GINV to AFL_ASE_GINV.
2524         (md_show_usage): Add help for -mginv and -mno-ginv.
2525         * doc/as.texinfo: Document -mginv, -mno-ginv.
2526         * doc/c-mips.texi: Document -mginv, -mno-ginv, .set ginv and
2527         .set noginv.
2528         * testsuite/gas/mips/ase-errors-1.s: Add error checks for GINV
2529         ASE.
2530         * testsuite/gas/mips/ase-errors-2.s: Likewise.
2531         * testsuite/gas/mips/ase-errors-1.l: Likewise.
2532         * testsuite/gas/mips/ase-errors-2.l: Likewise.
2533         * testsuite/gas/mips/ginv.d: New test.
2534         * testsuite/gas/mips/ginv-err.d: New test.
2535         * testsuite/gas/mips/ginv-err.l: New test stderr output.
2536         * testsuite/gas/mips/ginv.s: New test source.
2537         * testsuite/gas/mips/ginv-err.s: New test source.
2538         * testsuite/gas/mips/mips.exp: Run the new tests.
2539
2540 2018-06-13  Scott Egerton  <scott.egerton@imgtec.com>
2541             Faraz Shahbazker  <Faraz.Shahbazker@mips.com>
2542             Maciej W. Rozycki  <macro@mips.com>
2543
2544         * NEWS: Mention CRC ASE support.
2545         * config/tc-mips.c (options): Add OPTION_CRC and OPTION_NO_CRC.
2546         (md_longopts): Likewise.
2547         (md_show_usage): Add help for -mcrc and -mno-crc.
2548         (mips_ases): Define availability for CRC and CRC64.
2549         (mips_convert_ase_flags): Map ASE_CRC to AFL_ASE_CRC.
2550         * doc/as.texinfo: Document -mcrc, -mno-crc.
2551         * doc/c-mips.texi: Document -mcrc, -mno-crc, .set crc and
2552         .set no-crc.
2553         * testsuite/gas/mips/ase-errors-1.l: Add error checks for CRC
2554         ASE.
2555         * testsuite/gas/mips/ase-errors-2.l: Likewise.
2556         * testsuite/gas/mips/ase-errors-1.s: Likewise.
2557         * testsuite/gas/mips/ase-errors-2.s: Likewise.
2558         * testsuite/gas/mips/crc.d: New test.
2559         * testsuite/gas/mips/crc64.d: New test.
2560         * testsuite/gas/mips/crc-err.d: New test.
2561         * testsuite/gas/mips/crc64-err.d: New test.
2562         * testsuite/gas/mips/crc-err.l: New test stderr output.
2563         * testsuite/gas/mips/crc64-err.l: New test stderr output.
2564         * testsuite/gas/mips/crc.s: New test source.
2565         * testsuite/gas/mips/crc64.s: New test source.
2566         * testsuite/gas/mips/crc-err.s: New test source.
2567         * testsuite/gas/mips/crc64-err.s: New test source.
2568         * testsuite/gas/mips/mips.exp: Run the new tests.
2569
2570 2018-06-11  Maciej W. Rozycki  <macro@mips.com>
2571
2572         * config/tc-mips.c (md_show_usage): Correct help text for `-O0'
2573         and `-O'.  Mention `-O1'.  Add `-O2' and its description.
2574
2575 2018-06-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2576
2577         * config/tc-arm.c (arm_cpus): Add Cortex-A76 entry.
2578         * doc/c-arm.texi (-mcpu): Document cortex-a76.
2579
2580 2018-06-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2581
2582         * config/tc-aarch64.c (aarch64_cpus): Add Cortex-A76 entry.
2583         * doc/c-aarch64.texi (-mcpu): Document cortex-a76.
2584
2585 2018-06-08  Egeyar Bagcioglu  <egeyar.bagcioglu@oracle.com>
2586
2587         PR 20319
2588         * testsuite/gas/aarch64/illegal-3.s: Test if unallocated FMOV encodings
2589         are detected as undefined.
2590         * testsuite/gas/aarch64/illegal-3.d: Likewise.
2591         * testsuite/gas/aarch64/illegal.s: Test if FMOV instructions that are
2592         changing the size from 32 bits to 64 bits and vice versa trigger an
2593         error.
2594         * testsuite/gas/aarch64/illegal.l: Likewise.
2595
2596 2018-06-08  Tamar Christina  <tamar.christina@arm.com>
2597
2598         PR binutils/21446
2599         * tc-aarch64.c (record_operand_error, record_operand_error_with_data):
2600           Initialize non_fatal.
2601
2602 2018-06-06  Sameera Deshpande  <sameera.deshpande@linaro.org>
2603
2604         * config/tc-aarch64.c (aarch64_cpus): Add support of ARMv8.4 in
2605         saphira.
2606
2607 2018-06-05  Alan Modra  <amodra@gmail.com>
2608
2609         * Makefile.in: Regenerate.
2610
2611 2018-06-04  Volodymyr Arbatov  <arbatov@cadence.com>
2612
2613         * config/tc-xtensa.c (elf32xtensa_separate_props): New
2614         declaration.
2615         (option_separate_props, option_no_separate_props): New
2616         enumeration constants.
2617         (md_longopts): Add separate-prop-tables option.
2618         (md_parse_option): Add cases for option_separate_props and
2619         option_no_separate_props.
2620         (md_show_usage): Add help for [no-]separate-prop-tables options.
2621
2622 2018-06-01  H.J. Lu  <hongjiu.lu@intel.com>
2623
2624         * configure: Regenerated.
2625
2626 2018-06-01  Alexandre Oliva <aoliva@redhat.com>
2627
2628         * dwarf2dbg.c (dwarf2_consume_line_info): Drop view.
2629
2630 2018-06-01  Jan Beulich  <jbeulich@suse.com>
2631
2632         * testsuite/gas/i386/ilp32/x86-64-opcode.d,
2633         testsuite/gas/i386/x86-64-opcode.d: Adjust expectations.
2634
2635 2018-06-01  Jan Beulich  <jbeulich@suse.com>
2636
2637         * config/tc-i386.c (add_prefix): Check REX bits individually.
2638         * testsuite/gas/i386/rex.s: Add tests for overriding individual
2639         REX bits, including when others are already set.
2640         * testsuite/gas/i386/ilp32/rex.d, testsuite/gas/i386/rex.d:
2641         Adjust expectations.
2642
2643 2018-06-01  Jan Beulich  <jbeulich@suse.com>
2644
2645         * config/tc-i386.c (control): Delete.
2646         (parse_real_register): Simply check "control" bit. Re-wrap.
2647
2648 2018-06-01  Jan Beulich  <jbeulich@suse.com>
2649
2650         * config/tc-i386.c (build_modrm_byte): Drop REX_B from condition
2651         checking for the need of emitting LOCK. Check "control" bit just
2652         once.
2653
2654 2018-06-01  Jan Beulich  <jbeulich@suse.com>
2655
2656         *  testsuite/gas/i386/invpcid.s,
2657         testsuite/gas/i386/x86-64-invpcid.s: Add test with explicit
2658         "oword ptr".
2659         * testsuite/gas/i386/invpcid.d,
2660         testsuite/gas/i386/invpcid-intel.d,
2661         testsuite/gas/i386/x86-64-invpcid.d,
2662         testsuite/gas/i386/x86-64-invpcid-intel.d: Adjust expectations.
2663
2664 2018-05-30  Amit Pawar  <amit.pawar@amd.com>
2665
2666         * config/tc-i386.c (cpu_flag_init): Add CPU_ZNVER2_FLAGS.
2667         * doc/c-i386.texi : Document znver2.
2668         * gas/testsuite/gas/i386/arch-13.s: Updated for znver2.
2669         * gas/testsuite/gas/i386/arch-13.d: Updated.
2670         * gas/testsuite/gas/i386/arch-13-znver1.d: Updated.
2671         * gas/testsuite/gas/i386/arch-13-znver2.d: New file.
2672         * gas/testsuite/gas/i386/x86-64-arch-3.s: Updated for znver2.
2673         * gas/testsuite/gas/i386/x86-64-arch-3.d: Updated.
2674         * gas/testsuite/gas/i386/x86-64-arch-3-znver1.d: Updated.
2675         * gas/testsuite/gas/i386/x86-64-arch-3-znver2.d: New file.
2676         * gas/testsuite/gas/i386/i386.exp: Updated for new test.
2677
2678 2018-05-25  Alan Modra  <amodra@gmail.com>
2679
2680         * po/POTFILES.in: Regenerate.
2681
2682 2018-05-24  Jim Wilson  <jimw@sifive.com>
2683
2684         PR gas/23219
2685         * config/tc-riscv.c (riscv_frag_align_code): Move frag_more call after
2686         !riscv_opts.relax check.
2687         (riscv_handle_align): Rewrite !riscv_opts.relax support.
2688         * config/tc-riscv (MAX_MEM_FOR_RS_ALIGN_CODE): Update.
2689         * testsuite/gas/riscv/no-relax-align.d: New
2690         * testsuite/gas/riscv/no-relax-align.s: New
2691         * testsuite/gas/riscv/no-relax-align-2.d: New
2692         * testsuite/gas/riscv/no-relax-align-2.s: New
2693
2694 2018-05-21  Peter Bergner  <bergner@vnet.ibm.com.com>
2695
2696         * config/tc-ppc.c (md_assemble): Delete handling of fake operands.
2697         * testsuite/gas/ppc/common.s (crmove, cror, or., or, nor., nor): Add
2698         test of extended mnemonics.
2699         * testsuite/gas/ppc/common.d: Likewise.  Don't match instruction offset.
2700         * testsuite/gas/ppc/spe.s (evor, evnor): Add test of extended mnemonics.
2701         * testsuite/gas/ppc/spe.d: Likewise.  Don't match instruction offset.
2702
2703 2018-05-18  Kito Cheng  <kito.cheng@gmail.com>
2704             Monk Chiang  <sh.chiang04@gmail.com>
2705             Jim Wilson <jimw@sifive.com>
2706
2707         * config/tc-riscv.c (rve_abi): New.
2708         (riscv_set_options): Add rve field.  Initialize it.
2709         (riscv_set_rve) New function.
2710         (riscv_set_arch): Support 'e' ISA subset.
2711         (reg_lookup_internal): If rve, check register is available.
2712         (riscv_set_abi): New parameter rve.
2713         (md_parse_option): Pass new argument to riscv_set_abi.
2714         (riscv_after_parse_args): Call riscv_set_rve.  If rve_abi, set
2715         EF_RISCV_RVE.
2716         * doc/c-riscv.texi (-mabi): Document new ilp32e argument.
2717
2718 2018-05-18  John Darrington  <john@darrington.wattle.id.au>
2719
2720         * Makefile.am: Add support for s12z target.
2721         * Makefile.in: Regenerate.
2722         * NEWS: Mention the new support.
2723         * config/tc-s12z.c: New file.
2724         * config/tc-s12z.h: New file.
2725         * configure.tgt: Add  s12z support.
2726         * doc/Makefile.am: Likewise.
2727         * doc/Makefile.in: Regenerate.
2728         * doc/all.texi: Add s12z documentation.
2729         * doc/as.textinfo: Likewise.
2730         * doc/c-s12z.texi: New file.
2731         * testsuite/gas/s12z: New directory.
2732         * testsuite/gas/s12z/abs.d: New file.
2733         * testsuite/gas/s12z/abs.s: New file.
2734         * testsuite/gas/s12z/adc-imm.d: New file.
2735         * testsuite/gas/s12z/adc-imm.s: New file.
2736         * testsuite/gas/s12z/adc-opr.d: New file.
2737         * testsuite/gas/s12z/adc-opr.s: New file.
2738         * testsuite/gas/s12z/add-imm.d: New file.
2739         * testsuite/gas/s12z/add-imm.s: New file.
2740         * testsuite/gas/s12z/add-opr.d: New file.
2741         * testsuite/gas/s12z/add-opr.s: New file.
2742         * testsuite/gas/s12z/and-imm.d: New file.
2743         * testsuite/gas/s12z/and-imm.s: New file.
2744         * testsuite/gas/s12z/and-opr.d: New file.
2745         * testsuite/gas/s12z/and-opr.s: New file.
2746         * testsuite/gas/s12z/and-or-cc.d: New file.
2747         * testsuite/gas/s12z/and-or-cc.s: New file.
2748         * testsuite/gas/s12z/bfext-special.d: New file.
2749         * testsuite/gas/s12z/bfext-special.s: New file.
2750         * testsuite/gas/s12z/bfext.d: New file.
2751         * testsuite/gas/s12z/bfext.s: New file.
2752         * testsuite/gas/s12z/bit-manip.d: New file.
2753         * testsuite/gas/s12z/bit-manip.s: New file.
2754         * testsuite/gas/s12z/bit.d: New file.
2755         * testsuite/gas/s12z/bit.s: New file.
2756         * testsuite/gas/s12z/bra-expression-defined.d: New file.
2757         * testsuite/gas/s12z/bra-expression-defined.s: New file.
2758         * testsuite/gas/s12z/bra-expression-undef.d: New file.
2759         * testsuite/gas/s12z/bra-expression-undef.s: New file.
2760         * testsuite/gas/s12z/bra.d: New file.
2761         * testsuite/gas/s12z/bra.s: New file.
2762         * testsuite/gas/s12z/brclr-symbols.d: New file.
2763         * testsuite/gas/s12z/brclr-symbols.s: New file.
2764         * testsuite/gas/s12z/brset-clr-opr-imm-rel.d: New file.
2765         * testsuite/gas/s12z/brset-clr-opr-imm-rel.s: New file.
2766         * testsuite/gas/s12z/brset-clr-opr-reg-rel.d: New file.
2767         * testsuite/gas/s12z/brset-clr-opr-reg-rel.s: New file.
2768         * testsuite/gas/s12z/brset-clr-reg-imm-rel.d: New file.
2769         * testsuite/gas/s12z/brset-clr-reg-imm-rel.s: New file.
2770         * testsuite/gas/s12z/brset-clr-reg-reg-rel.d: New file.
2771         * testsuite/gas/s12z/brset-clr-reg-reg-rel.s: New file.
2772         * testsuite/gas/s12z/clb.d: New file.
2773         * testsuite/gas/s12z/clb.s: New file.
2774         * testsuite/gas/s12z/clr-opr.d: New file.
2775         * testsuite/gas/s12z/clr-opr.s: New file.
2776         * testsuite/gas/s12z/clr.d: New file.
2777         * testsuite/gas/s12z/clr.s: New file.
2778         * testsuite/gas/s12z/cmp-imm.d: New file.
2779         * testsuite/gas/s12z/cmp-imm.s: New file.
2780         * testsuite/gas/s12z/cmp-opr-inc.d: New file.
2781         * testsuite/gas/s12z/cmp-opr-inc.s: New file.
2782         * testsuite/gas/s12z/cmp-opr-rdirect.d: New file.
2783         * testsuite/gas/s12z/cmp-opr-rdirect.s: New file.
2784         * testsuite/gas/s12z/cmp-opr-reg.d: New file.
2785         * testsuite/gas/s12z/cmp-opr-reg.s: New file.
2786         * testsuite/gas/s12z/cmp-opr-rindirect.d: New file.
2787         * testsuite/gas/s12z/cmp-opr-rindirect.s: New file.
2788         * testsuite/gas/s12z/cmp-opr-sxe4.d: New file.
2789         * testsuite/gas/s12z/cmp-opr-sxe4.s: New file.
2790         * testsuite/gas/s12z/cmp-opr-xys.d: New file.
2791         * testsuite/gas/s12z/cmp-opr-xys.s: New file.
2792         * testsuite/gas/s12z/cmp-s-imm.d: New file.
2793         * testsuite/gas/s12z/cmp-s-imm.s: New file.
2794         * testsuite/gas/s12z/cmp-s-opr.d: New file.
2795         * testsuite/gas/s12z/cmp-s-opr.s: New file.
2796         * testsuite/gas/s12z/cmp-xy.d: New file.
2797         * testsuite/gas/s12z/cmp-xy.s: New file.
2798         * testsuite/gas/s12z/com-opr.d: New file.
2799         * testsuite/gas/s12z/com-opr.s: New file.
2800         * testsuite/gas/s12z/complex-shifts.d: New file.
2801         * testsuite/gas/s12z/complex-shifts.s: New file.
2802         * testsuite/gas/s12z/db-tb-cc-opr.d: New file.
2803         * testsuite/gas/s12z/db-tb-cc-opr.s: New file.
2804         * testsuite/gas/s12z/db-tb-cc-reg.d: New file.
2805         * testsuite/gas/s12z/db-tb-cc-reg.s: New file.
2806         * testsuite/gas/s12z/dbCC.d: New file.
2807         * testsuite/gas/s12z/dbCC.s: New file.
2808         * testsuite/gas/s12z/dec-opr.d: New file.
2809         * testsuite/gas/s12z/dec-opr.s: New file.
2810         * testsuite/gas/s12z/dec.d: New file.
2811         * testsuite/gas/s12z/dec.s: New file.
2812         * testsuite/gas/s12z/div.d: New file.
2813         * testsuite/gas/s12z/div.s: New file.
2814         * testsuite/gas/s12z/eor.d: New file.
2815         * testsuite/gas/s12z/eor.s: New file.
2816         * testsuite/gas/s12z/exg.d: New file.
2817         * testsuite/gas/s12z/exg.s: New file.
2818         * testsuite/gas/s12z/ext24-ld-xy.d: New file.
2819         * testsuite/gas/s12z/ext24-ld-xy.s: New file.
2820         * testsuite/gas/s12z/inc-opr.d: New file.
2821         * testsuite/gas/s12z/inc-opr.s: New file.
2822         * testsuite/gas/s12z/inc.d: New file.
2823         * testsuite/gas/s12z/inc.s: New file.
2824         * testsuite/gas/s12z/inh.d: New file.
2825         * testsuite/gas/s12z/inh.s: New file.
2826         * testsuite/gas/s12z/jmp.d: New file.
2827         * testsuite/gas/s12z/jmp.s: New file.
2828         * testsuite/gas/s12z/jsr.d: New file.
2829         * testsuite/gas/s12z/jsr.s: New file.
2830         * testsuite/gas/s12z/ld-imm-page2.d: New file.
2831         * testsuite/gas/s12z/ld-imm-page2.s: New file.
2832         * testsuite/gas/s12z/ld-imm.d: New file.
2833         * testsuite/gas/s12z/ld-imm.s: New file.
2834         * testsuite/gas/s12z/ld-immu18.d: New file.
2835         * testsuite/gas/s12z/ld-immu18.s: New file.
2836         * testsuite/gas/s12z/ld-large-direct.d: New file.
2837         * testsuite/gas/s12z/ld-large-direct.s: New file.
2838         * testsuite/gas/s12z/ld-opr.d: New file.
2839         * testsuite/gas/s12z/ld-opr.s: New file.
2840         * testsuite/gas/s12z/ld-s-opr.d: New file.
2841         * testsuite/gas/s12z/ld-s-opr.s: New file.
2842         * testsuite/gas/s12z/ld-small-direct.d: New file.
2843         * testsuite/gas/s12z/ld-small-direct.s: New file.
2844         * testsuite/gas/s12z/lea-immu18.d: New file.
2845         * testsuite/gas/s12z/lea-immu18.s: New file.
2846         * testsuite/gas/s12z/lea.d: New file.
2847         * testsuite/gas/s12z/lea.s: New file.
2848         * testsuite/gas/s12z/mac.d: New file.
2849         * testsuite/gas/s12z/mac.s: New file.
2850         * testsuite/gas/s12z/min-max.d: New file.
2851         * testsuite/gas/s12z/min-max.s: New file.
2852         * testsuite/gas/s12z/mod.d: New file.
2853         * testsuite/gas/s12z/mod.s: New file.
2854         * testsuite/gas/s12z/mov.d: New file.
2855         * testsuite/gas/s12z/mov.s: New file.
2856         * testsuite/gas/s12z/mul-imm.d: New file.
2857         * testsuite/gas/s12z/mul-imm.s: New file.
2858         * testsuite/gas/s12z/mul-opr-opr.d: New file.
2859         * testsuite/gas/s12z/mul-opr-opr.s: New file.
2860         * testsuite/gas/s12z/mul-opr.d: New file.
2861         * testsuite/gas/s12z/mul-opr.s: New file.
2862         * testsuite/gas/s12z/mul-reg.d: New file.
2863         * testsuite/gas/s12z/mul-reg.s: New file.
2864         * testsuite/gas/s12z/mul.d: New file.
2865         * testsuite/gas/s12z/mul.s: New file.
2866         * testsuite/gas/s12z/neg-opr.d: New file.
2867         * testsuite/gas/s12z/neg-opr.s: New file.
2868         * testsuite/gas/s12z/not-so-simple-shifts.d: New file.
2869         * testsuite/gas/s12z/not-so-simple-shifts.s: New file.
2870         * testsuite/gas/s12z/opr-18u.d: New file.
2871         * testsuite/gas/s12z/opr-18u.s: New file.
2872         * testsuite/gas/s12z/opr-expr.d: New file.
2873         * testsuite/gas/s12z/opr-expr.s: New file.
2874         * testsuite/gas/s12z/opr-ext-18.d: New file.
2875         * testsuite/gas/s12z/opr-ext-18.s: New file.
2876         * testsuite/gas/s12z/opr-idx-24-reg.d: New file.
2877         * testsuite/gas/s12z/opr-idx-24-reg.s: New file.
2878         * testsuite/gas/s12z/opr-idx3-reg.d: New file.
2879         * testsuite/gas/s12z/opr-idx3-reg.s: New file.
2880         * testsuite/gas/s12z/opr-idx3-xysp-24.d: New file.
2881         * testsuite/gas/s12z/opr-idx3-xysp-24.s: New file.
2882         * testsuite/gas/s12z/opr-indirect-expr.d: New file.
2883         * testsuite/gas/s12z/opr-indirect-expr.s: New file.
2884         * testsuite/gas/s12z/opr-symbol.d: New file.
2885         * testsuite/gas/s12z/opr-symbol.s: New file.
2886         * testsuite/gas/s12z/or-imm.d: New file.
2887         * testsuite/gas/s12z/or-imm.s: New file.
2888         * testsuite/gas/s12z/or-opr.d: New file.
2889         * testsuite/gas/s12z/or-opr.s: New file.
2890         * testsuite/gas/s12z/p2-mul.d: New file.
2891         * testsuite/gas/s12z/p2-mul.s: New file.
2892         * testsuite/gas/s12z/page2-inh.d: New file.
2893         * testsuite/gas/s12z/page2-inh.s: New file.
2894         * testsuite/gas/s12z/psh-pul.d: New file.
2895         * testsuite/gas/s12z/psh-pul.s: New file.
2896         * testsuite/gas/s12z/qmul.d: New file.
2897         * testsuite/gas/s12z/qmul.s: New file.
2898         * testsuite/gas/s12z/rotate.d: New file.
2899         * testsuite/gas/s12z/rotate.s: New file.
2900         * testsuite/gas/s12z/s12z.exp: New file.
2901         * testsuite/gas/s12z/sat.d: New file.
2902         * testsuite/gas/s12z/sat.s: New file.
2903         * testsuite/gas/s12z/sbc-imm.d: New file.
2904         * testsuite/gas/s12z/sbc-imm.s: New file.
2905         * testsuite/gas/s12z/sbc-opr.d: New file.
2906         * testsuite/gas/s12z/sbc-opr.s: New file.
2907         * testsuite/gas/s12z/shift.d: New file.
2908         * testsuite/gas/s12z/shift.s: New file.
2909         * testsuite/gas/s12z/simple-shift.d: New file.
2910         * testsuite/gas/s12z/simple-shift.s: New file.
2911         * testsuite/gas/s12z/single-ops.d: New file.
2912         * testsuite/gas/s12z/single-ops.s: New file.
2913         * testsuite/gas/s12z/specd6.d: New file.
2914         * testsuite/gas/s12z/specd6.s: New file.
2915         * testsuite/gas/s12z/st-large-direct.d: New file.
2916         * testsuite/gas/s12z/st-large-direct.s: New file.
2917         * testsuite/gas/s12z/st-opr.d: New file.
2918         * testsuite/gas/s12z/st-opr.s: New file.
2919         * testsuite/gas/s12z/st-s-opr.d: New file.
2920         * testsuite/gas/s12z/st-s-opr.s: New file.
2921         * testsuite/gas/s12z/st-small-direct.d: New file.
2922         * testsuite/gas/s12z/st-small-direct.s: New file.
2923         * testsuite/gas/s12z/st-xy.d: New file.
2924         * testsuite/gas/s12z/st-xy.s: New file.
2925         * testsuite/gas/s12z/sub-imm.d: New file.
2926         * testsuite/gas/s12z/sub-imm.s: New file.
2927         * testsuite/gas/s12z/sub-opr.d: New file.
2928         * testsuite/gas/s12z/sub-opr.s: New file.
2929         * testsuite/gas/s12z/tfr.d: New file.
2930         * testsuite/gas/s12z/tfr.s: New file.
2931         * testsuite/gas/s12z/trap.d: New file.
2932         * testsuite/gas/s12z/trap.s: New file.
2933
2934 2018-05-16  Maciej W. Rozycki  <macro@mips.com>
2935
2936         * tc-nds32.c (md_assemble): Rename `expr' local variable to
2937         `insn_expr'.
2938
2939 2018-05-15  Tamar Christina  <tamar.christina@arm.com>
2940
2941         PR binutils/21446
2942         * testsuite/gas/aarch64/illegal-sysreg-2.s: Fix pmbidr_el1 test.
2943         * testsuite/gas/aarch64/illegal-sysreg-2.l: Likewise.
2944         * testsuite/gas/aarch64/illegal-sysreg-2.d: Likewise.
2945         * testsuite/gas/aarch64/sysreg-diagnostic.s: New.
2946         * testsuite/gas/aarch64/sysreg-diagnostic.l: New.
2947         * testsuite/gas/aarch64/sysreg-diagnostic.d: New.
2948
2949 2018-05-15  Tamar Christina  <tamar.christina@arm.com>
2950
2951         PR binutils/21446
2952         * config/tc-aarch64.c (print_operands): Indicate no notes.
2953         (output_operand_error_record): Support non-fatal errors.
2954         (output_operand_error_report, warn_unpredictable_ldst, md_assemble):
2955         Likewise.
2956
2957 2018-05-15  Tamar Christina  <tamar.christina@arm.com>
2958
2959         PR binutils/21446
2960         * config/tc-aarch64.c (parse_sys_reg): Return register flags.
2961         (parse_operands): Fill in register flags.
2962
2963 2018-05-14  Nick Clifton  <nickc@redhat.com>
2964
2965         * write.c (maybe_generate_build_notes): Generate notes on a
2966         per-code-section basis.  Skip linkonce sections.
2967
2968 2018-05-14  Nick Clifton  <nickc@redhat.com>
2969
2970         PR 23153
2971         * as.c (main): When checking for an output file that is also an
2972         input file, also check that the inode is not zero.
2973
2974 2018-05-12  Alan Modra  <amodra@gmail.com>
2975
2976         * config/tc-score.c (s3_do_macro_bcmp): Don't use fixed size
2977         buffers.
2978         (s3_do_macro_bcmpz): Likewise.
2979
2980 2018-05-10  Tamar Christina  <tamar.christina@arm.com>
2981
2982         * config/tc-aarch64.c (parse_aarch64_imm_float): Remove restrictions.
2983         * testsuite/gas/aarch64/diagnostic.s: Move fmov int test to..
2984         * testsuite/gas/aarch64/fpmov.s: Here.
2985         * testsuite/gas/aarch64/fpmov.d: Update results with fmov.
2986         * testsuite/gas/aarch64/diagnostic.l: Remove fmov values.
2987         * testsuite/gas/aarch64/sve-invalid.s: Update test files.
2988         * testsuite/gas/aarch64/sve-invalid.l: Likewise
2989
2990 2018-05-10  Tamar Christina  <tamar.christina@arm.com>
2991
2992         * gas/config/tc-arm.c (do_neon_mov): Allow integer literal for float
2993         immediate.
2994         * testsuite/gas/arm/vfp-mov-enc.s: New.
2995         * testsuite/gas/arm/vfp-mov-enc.d: New.
2996
2997 2018-05-09  Max Filippov  <jcmvbkbc@gmail.com>
2998
2999         * config/tc-xtensa.c (xtensa_is_init_fini): New function.
3000         (xtensa_move_literals): Only attempt to assign literal pool to
3001         literals with tc_frag_data.is_literal mark and not in .init or
3002         .fini sections.
3003         Join nested 'if' conditions to simplify function structure.
3004         (xtensa_switch_to_non_abs_literal_fragment): Use
3005         xtensa_is_init_fini to test for .init/.fini sections.
3006         * testsuite/gas/xtensa/all.exp (auto-litpools-3)
3007         (auto-litpools-4, text-section-literals-1): New tests.
3008         * testsuite/gas/xtensa/auto-litpools-3.d: New test results.
3009         * testsuite/gas/xtensa/auto-litpools-3.s: New test source.
3010         * testsuite/gas/xtensa/auto-litpools-4.d: New test results.
3011         * testsuite/gas/xtensa/auto-litpools-4.s: New test source.
3012         * testsuite/gas/xtensa/text-section-literals-1.d: New test results.
3013         * testsuite/gas/xtensa/text-section-literals-1.s: New test source.
3014
3015 2018-05-09  Dimitar Dimitrov  <dimitar@dinux.eu>
3016
3017         * config/tc-pru.c (md_apply_fix): Make LDI32 relocation conformant
3018         to TI ABI.
3019         (pru_assemble_arg_i): Likewise.
3020         (output_insn_ldi32): Likewise.
3021         * testsuite/gas/pru/ldi.d: Update test for the now fixed LDI32.
3022         * gas/config/tc-pru.c (pru_assemble_arg_b): Check imm8 operand range.
3023         * gas/testsuite/gas/pru/illegal2.l: New test.
3024         * gas/testsuite/gas/pru/illegal2.s: New test.
3025         * gas/testsuite/gas/pru/pru.exp: Register new illegal2 test.
3026
3027 2018-05-08  Jim Wilson  <jimw@sifive.com>
3028
3029         * testsuite/gas/riscv/c-zero-imm.d: Add more tests.
3030         * testsuite/gas/riscv/c-zero-imm.s: Likewise.
3031         * testsuite/gas/riscv/c-zero-reg.d: Fix typo in test.  Add disabled
3032         future test for RV128 support.
3033         * testsuite/gas/riscv/c-zero-reg.s: Likewise.
3034
3035 2018-05-07  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
3036             H.J. Lu  <hongjiu.lu@intel.com>
3037
3038         * config/tc-i386.c (cpu_arch): Add .movdir, .movdir64b.
3039         (cpu_noarch): Likewise.
3040         (process_suffix): Add check for register size.
3041         * doc/c-i386.texi: Document movdiri, movdir64b.
3042         * testsuite/gas/i386/i386.exp: Run MOVDIR{I,64B} tests.
3043         * testsuite/gas/i386/movdir-intel.d: New file.
3044         * testsuite/gas/i386/movdir.d: Likewise.
3045         * testsuite/gas/i386/movdir.s: Likewise.
3046         * testsuite/gas/i386/movdir64b-reg.s: Likewise.
3047         * testsuite/gas/i386/movdir64b-reg.l: Likewise.
3048         * testsuite/gas/i386/x86-64-movdir-intel.d: Likewise.
3049         * testsuite/gas/i386/x86-64-movdir.d: Likewise.
3050         * testsuite/gas/i386/x86-64-movdir.s: Likewise.
3051         * testsuite/gas/i386/x86-64-movdir64b-reg.s: Likewise.
3052         * testsuite/gas/i386/x86-64-movdir64b-reg.l: Likewise.
3053
3054 2018-05-07  H.J. Lu  <hongjiu.lu@intel.com>
3055
3056         * config/tc-i386.c (process_suffix): Check addrprefixopreg
3057         instead of addrprefixop0.
3058
3059 2018-05-07  Peter Bergner  <bergner@vnet.ibm.com.com>
3060
3061         * config/tc-ppc.c (ppc_setup_opcodes) <powerpc_opcodes>: Rewrite code
3062         to dump the entire opcode table.
3063         (ppc_setup_opcodes) <spe2_opcodes>: Likewise.
3064         (ppc_setup_opcodes) <vle_opcodes>: Likewise.  Fix calculation of
3065         opcode index.
3066
3067 2018-05-06  H.J. Lu  <hongjiu.lu@intel.com>
3068
3069         * testsuite/gas/i386/xmmhi32.d: Also allow dir32 relocation.
3070
3071 2018-05-06  H.J. Lu  <hongjiu.lu@intel.com>
3072
3073         * testsuite/gas/i386/avx512f-plain.s: Append ".p2align 4,0".
3074         * testsuite/gas/i386/avx512vl-plain.s: Likewise.
3075         * testsuite/gas/i386/bnd.s: Likewise.
3076         * testsuite/gas/i386/stN.s: Likewise.
3077         * testsuite/gas/i386/avx512f-plain.l: Updated.
3078         * testsuite/gas/i386/avx512vl-plain.l: Likewise.
3079         * testsuite/gas/i386/bnd.l: Likewise.
3080         * testsuite/gas/i386/stN.l: Likewise.
3081
3082 2018-05-04  Alan Modra  <amodra@gmail.com>
3083
3084         * config/obj-evax.c (shorten_identifier): Use memcpy in place
3085         of strncpy.
3086         * config/obj-macho.c (obj_mach_o_make_or_get_sect): Ensure
3087         segname and sectname fields are NUL terminated.
3088
3089 2018-05-01  Nick Clifton  <nickc@redhat.com>
3090
3091         * po/es.po: Updated Spanish translation.
3092
3093 2018-04-27  Maciej W. Rozycki  <macro@mips.com>
3094
3095         * testsuite/lib/gas-defs.exp (run_dump_test): Use `match_target'
3096         in place of `istarget' for matching with `target', `not-target',
3097         `skip' and `not-skip' options.
3098
3099 2018-04-26  Nick Clifton  <nickc@redhat.com>
3100
3101         * as.c (flag_generate_build_notes): New variable.
3102         (show_usage): Add entry for --generate-missing-build-notes.
3103         (parse_args): Parse --generate-missing-build-notes.
3104         * as.h: Export flag_generate_build_notes.
3105         * symbols.c (save_symbol_name): Ensure that the name parameter is
3106         not NULL.
3107         * write.c (create_obj_attrs_section): Reformat.
3108         (create_note_reloc): New function - creates a relocation for a
3109         field in a GNU Build attribute note.
3110         (maybe_generate_build_notes): New function - created GNU Build
3111         attribute notes if none are present in the output file.
3112         (write_object_file): Call maybe_generate_build_notes.
3113         * configure.ac (--enable-generate-build-notes): New option.
3114         * NEWS: Announce the new feature.
3115         * doc/as.textinfo: Document the new option.
3116         * config.in: Regenerate.
3117         * configure: Regenerate.
3118
3119 2018-04-26  Jan Beulich  <jbeulich@suse.com>
3120
3121         * config/tc-i386.c (check_VecOperands): Add AVX512VL check. Set
3122         .baseindex.
3123         (match_template): Don't set suffix_check when Intel syntax and
3124         broadcast. Make check_register a per-operand bitmap.
3125
3126 2018-04-26  Jan Beulich  <jbeulich@suse.com>
3127
3128         * config/tc-i386.c (optimize_encoding): Check for zeroing
3129         masking.
3130         * testsuite/gas/i386/optimize-1.d,
3131         testsuite/gas/i386/optimize-4.d,
3132         testsuite/gas/i386/optimize-5.d,
3133         testsuite/gas/i386/x86-64-optimize-2.d,
3134         testsuite/gas/i386/x86-64-optimize-5.d,
3135         testsuite/gas/i386/x86-64-optimize-6.d: Adjust expectations.
3136
3137 2018-04-26  Jan Beulich  <jbeulich@suse.com>
3138
3139         * config/tc-i386.c (parse_real_register): Check .cpuvrex before
3140         recording EVEX encoding. Don't check previously specified
3141         encoding.
3142         * testsuite/gas/i386/xmmhi32.s: Add {x,y,z}mm{16,24} cases.
3143         * testsuite/gas/i386/xmmhi32.d: Adjust expectations.
3144         * testsuite/gas/i386/xmmhi64.s, testsuite/gas/i386/xmmhi64.d:
3145         New.
3146         * testsuite/gas/i386/i386.exp: Run new test.
3147
3148 2018-04-26  Jan Beulich  <jbeulich@suse.com>
3149
3150         * testsuite/gas/i386/xsave.s: Add AVX, LWP, MPX, and PKU
3151         dependency tests.
3152         * testsuite/gas/i386/xsave.d,
3153         testsuite/gas/i386/xsave-intel.d: Adjust expecations.
3154
3155 2018-04-26  Jan Beulich  <jbeulich@suse.com>
3156
3157         * config/tc-i386.c (parse_real_register): Re-write {,x,y,z}mm
3158         and mask register handling.
3159         * testsuite/gas/i386/avx512f-ymm.s, testsuite/gas/i386/avx512f-ymm.d,
3160         testsuite/gas/i386/xmmhi32.s, testsuite/gas/i386/xmmhi32.d: New.
3161         * testsuite/gas/i386/i386.exp: Run new tests.
3162
3163 2018-04-26  Jan Beulich  <jbeulich@suse.com>
3164
3165         * config/tc-i386.c (parse_real_register): Check bnd<N>
3166         registers.
3167         * testsuite/gas/i386/bnd.s, testsuite/gas/i386/bnd.l: New.
3168         * testsuite/gas/i386/i386.exp: Run new test.
3169
3170 2018-04-26  Jan Beulich  <jbeulich@suse.com>
3171
3172         * config/tc-i386.c (parse_real_register): Check FPU register
3173         earlier.
3174         * testsuite/gas/i386/fpu.s, testsuite/gas/i386/fpu.l,
3175         testsuite/gas/i386/stN.s, testsuite/gas/i386/stN.l: New.
3176         * testsuite/gas/i386/i386.exp: Run new tests.
3177
3178 2018-04-26  Jan Beulich  <jbeulich@suse.com>
3179
3180         * config/tc-i386.c (build_modrm_byte): Use tabs for indentation.
3181
3182 2018-04-26  Jan Beulich  <jbeulich@suse.com>
3183
3184         * config/tc-i386.c (build_modrm_byte): Move and fold
3185         source/reg_slot calculations.
3186
3187 2018-04-26  Jan Beulich  <jbeulich@suse.com>
3188
3189         * config/tc-i386.c (build_modrm_byte): Drop .veximmext uses.
3190         Move part of the remaining assertion.
3191
3192 2018-04-26  Jan Beulich  <jbeulich@suse.com>
3193
3194         * config/tc-i386.c (build_modrm_byte): Extend assertion in
3195         vex_3_sources handling to cover more cases.
3196
3197 2018-04-26  Jan Beulich  <jbeulich@suse.com>
3198
3199         * config/tc-i386.c (build_modrm_byte): Drop code dealing with
3200         .veximmext and .immext set at the same time. Drop code dealing
3201         with .cpufma when .vexsources == VEX3SOURCES.
3202
3203 2018-04-25  Christophe Lyon  <christophe.lyon@st.com>
3204         Mickaël Guêné  <mickael.guene@st.com>
3205
3206         * config/tc-arm.c (reloc_names): Add TLSGD_FDPIC, TLSLDM_FDPIC,
3207         GOTTPOFF_FDIC relocations.
3208         (md_apply_fix): Handle the new TLS FDPIC relocations.
3209         (tc_gen_reloc): Likewise.
3210         (arm_fix_adjustable): Likewise.
3211
3212 2018-04-25  Christophe Lyon  <christophe.lyon@st.com>
3213         Mickaël Guêné  <mickael.guene@st.com>
3214
3215         * config/tc-arm.c (reloc_names): Add gotfuncdesc, gotofffuncdesc,
3216         funcdesc.
3217         (md_apply_fix): Support the new relocations.
3218         (tc_gen_reloc): Likewise.
3219         * testsuite/gas/arm/reloc-fdpic.d: New.
3220         * testsuite/gas/arm/reloc-fdpic.s: New.
3221
3222 2018-04-25  Christophe Lyon  <christophe.lyon@st.com>
3223         Mickaël Guêné  <mickael.guene@st.com>
3224
3225         * config/tc-arm.c (arm_fdpic): New.
3226         (elf32_arm_target_format): Support FDPIC.
3227         (OPTION_FDPIC): New.
3228         (md_longopts): Support FDPIC.
3229         (md_parse_option): Likewise.
3230         (md_show_usage): Likewise.
3231
3232 2018-04-25  Tamar Christina  <tamar.christina@arm.com>
3233
3234         * testsuite/gas/aarch64/rdma.s: Test for larger register numbers.
3235         * testsuite/gas/aarch64/rdma.d: Update results.
3236         * testsuite/gas/aarch64/rdma-directive.d: Likewise.
3237
3238 2018-04-25  Nick Clifton  <nickc@redhat.com>
3239
3240         * po/es.po: Updated Spanish translation.
3241
3242 2018-04-25  Alan Modra  <amodra@gmail.com>
3243
3244         * Makefile.am: Remove arm-aout and arm-coff support.
3245         * config/tc-arm.c: Likewise.
3246         * config/tc-arm.h: Likewise.
3247         * configure.tgt: Likewise.
3248         * testsuite/gas/aarch64/codealign.d: Likewise.
3249         * testsuite/gas/aarch64/mapping.d: Likewise.
3250         * testsuite/gas/aarch64/mapping2.d: Likewise.
3251         * testsuite/gas/arm/adds-thumb1-reloc-local-armv7-m.d: Likewise.
3252         * testsuite/gas/arm/adds-thumb1-reloc-local.d: Likewise.
3253         * testsuite/gas/arm/addsw-bad.d: Likewise.
3254         * testsuite/gas/arm/align.d: Likewise.
3255         * testsuite/gas/arm/align64.d: Likewise.
3256         * testsuite/gas/arm/arch7.d: Likewise.
3257         * testsuite/gas/arm/arch7a-mp.d: Likewise.
3258         * testsuite/gas/arm/arch7em.d: Likewise.
3259         * testsuite/gas/arm/archv8m-main-dsp-5.d: Likewise.
3260         * testsuite/gas/arm/arm-it-auto-2.d: Likewise.
3261         * testsuite/gas/arm/arm-it-auto-3.d: Likewise.
3262         * testsuite/gas/arm/arm-it-auto.d: Likewise.
3263         * testsuite/gas/arm/arm-it-bad-2.d: Likewise.
3264         * testsuite/gas/arm/arm-it.d: Likewise.
3265         * testsuite/gas/arm/armv7e-m+fpv5-d16.d: Likewise.
3266         * testsuite/gas/arm/armv7e-m+fpv5-sp-d16.d: Likewise.
3267         * testsuite/gas/arm/armv8-2-fp16-scalar-thumb.d: Likewise.
3268         * testsuite/gas/arm/armv8-2-fp16-scalar.d: Likewise.
3269         * testsuite/gas/arm/armv8-2-fp16-simd-thumb.d: Likewise.
3270         * testsuite/gas/arm/armv8-2-fp16-simd.d: Likewise.
3271         * testsuite/gas/arm/armv8-a+crypto.d: Likewise.
3272         * testsuite/gas/arm/armv8-a+fp.d: Likewise.
3273         * testsuite/gas/arm/armv8-a+ras.d: Likewise.
3274         * testsuite/gas/arm/armv8-a+rdma-warning.d: Likewise.
3275         * testsuite/gas/arm/armv8-a+rdma.d: Likewise.
3276         * testsuite/gas/arm/armv8-a+simd.d: Likewise.
3277         * testsuite/gas/arm/armv8-a-barrier-thumb.d: Likewise.
3278         * testsuite/gas/arm/armv8-r+fp.d: Likewise.
3279         * testsuite/gas/arm/armv8-r+simd.d: Likewise.
3280         * testsuite/gas/arm/armv8-r-barrier-thumb.d: Likewise.
3281         * testsuite/gas/arm/armv8_1-a+simd.d: Likewise.
3282         * testsuite/gas/arm/armv8_2+rdma.d: Likewise.
3283         * testsuite/gas/arm/armv8_2-a.d: Likewise.
3284         * testsuite/gas/arm/armv8_3-a-fp.d: Likewise.
3285         * testsuite/gas/arm/armv8_3-a-simd.d: Likewise.
3286         * testsuite/gas/arm/armv8a-automatic-hlt.d: Likewise.
3287         * testsuite/gas/arm/armv8a-automatic-lda.d: Likewise.
3288         * testsuite/gas/arm/attr-syntax.d: Likewise.
3289         * testsuite/gas/arm/automatic-bw.d: Likewise.
3290         * testsuite/gas/arm/automatic-cbz.d: Likewise.
3291         * testsuite/gas/arm/automatic-clrex.d: Likewise.
3292         * testsuite/gas/arm/automatic-lda.d: Likewise.
3293         * testsuite/gas/arm/automatic-ldaex.d: Likewise.
3294         * testsuite/gas/arm/automatic-ldaexb.d: Likewise.
3295         * testsuite/gas/arm/automatic-ldrex.d: Likewise.
3296         * testsuite/gas/arm/automatic-ldrexd.d: Likewise.
3297         * testsuite/gas/arm/automatic-movw.d: Likewise.
3298         * testsuite/gas/arm/automatic-sdiv.d: Likewise.
3299         * testsuite/gas/arm/automatic-strexb.d: Likewise.
3300         * testsuite/gas/arm/barrier-bad-thumb.d: Likewise.
3301         * testsuite/gas/arm/barrier-bad.d: Likewise.
3302         * testsuite/gas/arm/barrier-thumb.d: Likewise.
3303         * testsuite/gas/arm/barrier.d: Likewise.
3304         * testsuite/gas/arm/bignum1.d: Likewise.
3305         * testsuite/gas/arm/blx-bad.d: Likewise.
3306         * testsuite/gas/arm/blx-bl-convert.d: Likewise.
3307         * testsuite/gas/arm/blx-local.s: Likewise.
3308         * testsuite/gas/arm/crc32-armv8-a-bad.d: Likewise.
3309         * testsuite/gas/arm/crc32-armv8-a.d: Likewise.
3310         * testsuite/gas/arm/crc32-armv8-r-bad.d: Likewise.
3311         * testsuite/gas/arm/crc32-armv8-r.d: Likewise.
3312         * testsuite/gas/arm/dis-data.d: Likewise.
3313         * testsuite/gas/arm/dis-data2.d: Likewise.
3314         * testsuite/gas/arm/dis-data3.d: Likewise.
3315         * testsuite/gas/arm/eabi_attr_1.d: Likewise.
3316         * testsuite/gas/arm/fp-save.d: Likewise.
3317         * testsuite/gas/arm/group-reloc-alu-encoding-bad.d: Likewise.
3318         * testsuite/gas/arm/group-reloc-alu-parsing-bad.d: Likewise.
3319         * testsuite/gas/arm/group-reloc-alu.d: Likewise.
3320         * testsuite/gas/arm/group-reloc-ldc-encoding-bad.d: Likewise.
3321         * testsuite/gas/arm/group-reloc-ldc-parsing-bad.d: Likewise.
3322         * testsuite/gas/arm/group-reloc-ldc.d: Likewise.
3323         * testsuite/gas/arm/group-reloc-ldr-encoding-bad.d: Likewise.
3324         * testsuite/gas/arm/group-reloc-ldr-parsing-bad.d: Likewise.
3325         * testsuite/gas/arm/group-reloc-ldr.d: Likewise.
3326         * testsuite/gas/arm/group-reloc-ldrs-encoding-bad.d: Likewise.
3327         * testsuite/gas/arm/group-reloc-ldrs-parsing-bad.d: Likewise.
3328         * testsuite/gas/arm/group-reloc-ldrs.d: Likewise.
3329         * testsuite/gas/arm/insn-error-a.d: Likewise.
3330         * testsuite/gas/arm/insn-error-t.d: Likewise.
3331         * testsuite/gas/arm/inst-po-2.d: Likewise.
3332         * testsuite/gas/arm/inst-po-3.d: Likewise.
3333         * testsuite/gas/arm/inst-po-be.d: Likewise.
3334         * testsuite/gas/arm/inst-po.d: Likewise.
3335         * testsuite/gas/arm/ldconst.d: Likewise.
3336         * testsuite/gas/arm/ldgesb-bad.d: Likewise.
3337         * testsuite/gas/arm/ldgesh-bad.d: Likewise.
3338         * testsuite/gas/arm/ldst-offset0.d: Likewise.
3339         * testsuite/gas/arm/local_function.d: Likewise.
3340         * testsuite/gas/arm/local_label_coff.d: Likewise.
3341         * testsuite/gas/arm/local_label_elf.d: Likewise.
3342         * testsuite/gas/arm/mapping.d: Likewise.
3343         * testsuite/gas/arm/mapping2.d: Likewise.
3344         * testsuite/gas/arm/mapping3.d: Likewise.
3345         * testsuite/gas/arm/mapping4.d: Likewise.
3346         * testsuite/gas/arm/mapshort-elf.d: Likewise.
3347         * testsuite/gas/arm/mask_1-armv8-a.d: Likewise.
3348         * testsuite/gas/arm/mask_1-armv8-r.d: Likewise.
3349         * testsuite/gas/arm/movs-thumb1-reloc-local-armv7-m.d: Likewise.
3350         * testsuite/gas/arm/movs-thumb1-reloc-local.d: Likewise.
3351         * testsuite/gas/arm/movw-local.d: Likewise.
3352         * testsuite/gas/arm/mrs-msr-thumb-v6t2.d: Likewise.
3353         * testsuite/gas/arm/mrs-msr-thumb-v7-m.d: Likewise.
3354         * testsuite/gas/arm/mrs-msr-thumb-v7e-m.d: Likewise.
3355         * testsuite/gas/arm/msr-imm-bad.d: Likewise.
3356         * testsuite/gas/arm/msr-reg-bad.d: Likewise.
3357         * testsuite/gas/arm/msr-reg-thumb.d: Likewise.
3358         * testsuite/gas/arm/nomapping.d: Likewise.
3359         * testsuite/gas/arm/nops.d: Likewise.
3360         * testsuite/gas/arm/pic.d: Likewise.
3361         * testsuite/gas/arm/pinsn.d: Likewise.
3362         * testsuite/gas/arm/plt-1.d: Likewise.
3363         * testsuite/gas/arm/pr21458.d: Likewise.
3364         * testsuite/gas/arm/pr9722.d: Likewise.
3365         * testsuite/gas/arm/strex-t.d: Likewise.
3366         * testsuite/gas/arm/t2-branch-global.d: Likewise.
3367         * testsuite/gas/arm/target-reloc-1.d: Likewise.
3368         * testsuite/gas/arm/thumb-b-bad.d: Likewise.
3369         * testsuite/gas/arm/thumb-w-bad.d: Likewise.
3370         * testsuite/gas/arm/thumb-w-good.d: Likewise.
3371         * testsuite/gas/arm/thumb.d: Likewise.
3372         * testsuite/gas/arm/thumb2_it.d: Likewise.
3373         * testsuite/gas/arm/thumb2_it_auto.d: Likewise.
3374         * testsuite/gas/arm/thumb2_it_search.d: Likewise.
3375         * testsuite/gas/arm/thumb2_ldmstm.d: Likewise.
3376         * testsuite/gas/arm/thumb2_ldr_immediate_armv6.d: Likewise.
3377         * testsuite/gas/arm/thumb2_ldr_immediate_armv6t2.d: Likewise.
3378         * testsuite/gas/arm/thumb2_ldr_immediate_highregs_armv6t2.d: Likewise.
3379         * testsuite/gas/arm/thumb2_pool.d: Likewise.
3380         * testsuite/gas/arm/thumb2_vpool.d: Likewise.
3381         * testsuite/gas/arm/thumb2_vpool_be.d: Likewise.
3382         * testsuite/gas/arm/thumb32.d: Likewise.
3383         * testsuite/gas/arm/thumbver.d: Likewise.
3384         * testsuite/gas/arm/tls.d: Likewise.
3385         * testsuite/gas/arm/tls_vxworks.d: Likewise.
3386         * testsuite/gas/arm/undefined.d: Likewise.
3387         * testsuite/gas/arm/undefined_coff.d: Likewise.
3388         * testsuite/gas/arm/unwind.d: Likewise.
3389         * testsuite/gas/arm/v4bx.d: Likewise.
3390         * testsuite/gas/arm/vcmp-noprefix-imm.d: Likewise.
3391         * testsuite/gas/arm/vcvt-bad.d: Likewise.
3392         * testsuite/gas/arm/vfma1.d: Likewise.
3393         * testsuite/gas/arm/vldconst.d: Likewise.
3394         * testsuite/gas/arm/vldconst_be.d: Likewise.
3395         * testsuite/gas/arm/vldm-arm.d: Likewise.
3396         * testsuite/gas/arm/vldr.d: Likewise.
3397         * testsuite/gas/arm/weakdef-1.d: Likewise.
3398         * testsuite/gas/arm/weakdef-2.d: Likewise.
3399         * config/te-riscix.h: Delete.
3400         * Makefile.in: Regenerate.
3401         * po/POTFILES.in: Regenerate.
3402
3403 2018-04-23  Alan Modra  <amodra@gmail.com>
3404
3405         * stabs.c (generate_asm_file): Use memcpy rather than strncpy.
3406         Remove call to strlen inside loop.
3407         * config/tc-cr16.c (getreg_image): Warning fix.
3408         * config/tc-crx.c (getreg_image): Warning fix.
3409
3410 2018-04-20  Kito Cheng  <kito.cheng@gmail.com>
3411
3412         * config/tc-riscv.c (options): Add OPTION_RELAX and
3413         OPTION_NO_RELAX.
3414         (md_longopts): New option -mrelax and -mno-relax.
3415         (md_parse_option): Handle -mrelax and -mno-relax.
3416         * doc/c-riscv.texi: Document for -mrelax and -mno-relax.
3417         * testsuite/gas/riscv/no-relax-reloc.d: New.
3418         * testsuite/gas/riscv/no-relax-reloc.s: New.
3419         * testsuite/gas/riscv/relax-reloc.d: New.
3420         * testsuite/gas/riscv/relax-reloc.s: New.
3421
3422 2018-04-20  Nick Clifton  <nickc@redhat.com>
3423
3424         * po/es.po: Updated Spanish translation.
3425
3426 2018-04-18  Alan Modra  <amodra@gmail.com>
3427
3428         * Makefile.am: Remove support for assorted i386 aout and coff targets.
3429         * config/obj-elf.c: Likewise.
3430         * config/tc-i386.h: Likewise.
3431         * configure.ac: Likewise.
3432         * configure.tgt: Likewise.
3433         * config/te-dynix.h: Delete.
3434         * config/te-i386aix.h: Delete.
3435         * config/te-mach.h: Delete.
3436         * Makefile.in: Regenerate.
3437         * config.in: Regenerate.
3438         * configure: Regenerate.
3439         * po/POTFILES.in: Regenerate.
3440
3441 2018-04-18  Alan Modra  <amodra@gmail.com>
3442
3443         * configure.tgt: Remove *-*-bsd* entry.
3444
3445 2018-04-17 Andrew Sadek  <andrew.sadek.se@gmail.com>
3446
3447         Microblaze Target: PIC data text relative
3448
3449         * gas/config/tc-microblaze.c (Handle new relocs directives in
3450         assembler): Handle new relocs from compiler output.
3451         (imm_types): add new imm types for data text relative addressing
3452         TEXT_OFFSET, TEXT_PC_OFFSET
3453         (md_convert_frag): conversion for BFD_RELOC_MICROBLAZE_64_TEXTPCREL,
3454         BFD_RELOC_MICROBLAZE_64_TEXTPCREL
3455         (md_apply_fix): apply fix for BFD_RELOC_MICROBLAZE_64_TEXTPCREL,
3456         BFD_RELOC_MICROBLAZE_64_TEXTPCREL
3457         (md_estimate_size_before_relax): estimate size for
3458         BFD_RELOC_MICROBLAZE_64_TEXTPCREL,
3459         BFD_RELOC_MICROBLAZE_64_TEXTPCREL
3460         (tc_gen_reloc): generate relocations for
3461         BFD_RELOC_MICROBLAZE_64_TEXTPCREL,
3462         BFD_RELOC_MICROBLAZE_64_TEXTPCREL
3463
3464 2018-04-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
3465
3466         * testsuite/gas/i386/nops.s: Revert back deleted lines and
3467         change encoding to 0x0f1c /1 to map to NOP.
3468         * testsuite/gas/i386/x86-64-nops.s: Likewise.
3469         * testsuite/gas/i386/nops.d: Likewise.
3470         * testsuite/gas/i386/x86-64-nops.d: Likewise.
3471         * testsuite/gas/i386/ilp32/x86-64-nops.d: Likewis.
3472
3473 2018-04-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
3474
3475         * config/tc-i386.c (cpu_arch): Add .cldemote.
3476         * doc/c-i386.texi: Document cldemote/.cldemote.
3477         * testsuite/gas/i386/cldemote-intel.d: New.
3478         * testsuite/gas/i386/cldemote.d: Likewise.
3479         * testsuite/gas/i386/cldemote.s: Likewise.
3480         * testsuite/gas/i386/i386.exp: Run new tests.
3481         * testsuite/gas/i386/x86-64-cldemote-intel.d: New.
3482         * testsuite/gas/i386/x86-64-cldemote.d: Likewise.
3483         * testsuite/gas/i386/x86-64-cldemote.s: Likewise.
3484         * testsuite/gas/i386/ilp32/x86-64-nops.d: Remove 0x0f1c
3485         NOP encoding that maps to cldemote.
3486         * testsuite/gas/i386/nops.d: Likewise.
3487         * testsuite/gas/i386/nops.s: Likewise.
3488         * testsuite/gas/i386/x86-64-nops.d: Likewise.
3489         * testsuite/gas/i386/x86-64-nops.s: Likewise.
3490
3491 2018-04-16  Nick Clifton  <nickc@redhat.com>
3492
3493         PR 23054
3494         * cond.c (s_ifsef): Replace use of obstack_copy with obstack_alloc
3495         followed by memcpy.
3496         (s_if, s_ifb, s_ifc, s_ifeqs): Likewise.
3497         * obj-elf.c (elf_adjust_symtab): Check for local symbols before
3498         attempting to dereference the sy_next field of a symbol.
3499         * stabs.c (get_stab_string_offset): Fail if there is no string
3500         following the stab directive.
3501
3502 2018-04-16  Alan Modra  <amodra@gmail.com>
3503
3504         * Makefile.am: Remove arm-epoc-pe support.
3505         * config/tc-arm.h: Likewise.
3506         * configure.tgt: Likewise.
3507         * testsuite/gas/all/gas.exp: Likewise.
3508         * testsuite/gas/arm/local_label_coff.d: Likewise.
3509         * testsuite/gas/arm/undefined.d: Likewise.
3510         * testsuite/gas/arm/undefined_coff.d: Likewise.
3511         * config/te-epoc-pe.h: Delete.
3512         * Makefile.in: Regenerate.
3513         * po/POTFILES.in: Regenerate.
3514
3515 2018-04-16  Alan Modra  <amodra@gmail.com>
3516
3517         * Makefile.am: Remove sparc-aout and sparc-coff support.
3518         * config/obj-coff.h: Likewise.
3519         * config/tc-sparc.c: Likewise.
3520         * config/tc-sparc.h: Likewise.
3521         * configure.tgt: Likewise.
3522         * config/te-sparcaout.h: Delete.
3523         * testsuite/gas/sun4/addend.d: Delete.
3524         * testsuite/gas/sun4/addend.exp: Delete.
3525         * testsuite/gas/sun4/addend.s: Delete.
3526         * Makefile.in: Regenerate.
3527         * po/POTFILES.in: Regenerate.
3528
3529 2018-04-16  Alan Modra  <amodra@gmail.com>
3530
3531         * Makefile.am: Remove m68k-aout and m68k-coff support.
3532         * config/tc-m68k.c: Likewise.
3533         * config/tc-m68k.h: Likewise.
3534         * configure.ac: Likewise.
3535         * configure.tgt: Likewise.
3536         * testsuite/gas/all/weakref1u.d: Likewise.
3537         * testsuite/gas/m68k/all.exp: Likewise.
3538         * testsuite/gas/m68k/br-isaa.d: Likewise.
3539         * testsuite/gas/m68k/br-isab.d: Likewise.
3540         * testsuite/gas/m68k/br-isac.d: Likewise.
3541         * config/te-psos.h: Delete.
3542         * config/te-sun3.h: Delete.
3543         * testsuite/gas/m68k-coff/gas.exp: Delete.
3544         * testsuite/gas/m68k-coff/p2389.s: Delete.
3545         * testsuite/gas/m68k-coff/p2389a.s: Delete.
3546         * testsuite/gas/m68k-coff/p2430.s: Delete.
3547         * testsuite/gas/m68k-coff/p2430a.s: Delete.
3548         * testsuite/gas/m68k-coff/t1.s: Delete.
3549         * testsuite/gas/m68k/p3041.d: Delete.
3550         * testsuite/gas/m68k/p3041.s: Delete.
3551         * testsuite/gas/m68k/p3041data.d: Delete.
3552         * testsuite/gas/m68k/p3041data.s: Delete.
3553         * testsuite/gas/m68k/p3041pcrel.d: Delete.
3554         * testsuite/gas/m68k/p3041pcrel.s: Delete.
3555         * testsuite/gas/m68k/t2.d: Delete.
3556         * Makefile.in: Regenerate.
3557         * config.in: Regenerate.
3558         * configure: Regenerate.
3559         * po/POTFILES.in: Regenerate.
3560
3561 2018-04-16  Alan Modra  <amodra@gmail.com>
3562
3563         * Makefile.am: Remove sh5 and sh64 support.
3564         * config/tc-sh.c: Likewise.
3565         * configure.tgt: Likewise.
3566         * doc/Makefile.am: Likewise.
3567         * doc/as.texinfo: Likewise.
3568         * testsuite/gas/cfi/cfi.exp: Likewise.
3569         * testsuite/gas/sh/basic.exp: Likewise.
3570         * config/tc-sh64.c: Delete.
3571         * config/tc-sh64.h: Delete.
3572         * doc/c-sh64.texi: Delete.
3573         * testsuite/gas/sh/sh64/abi-32.d: Delete.
3574         * testsuite/gas/sh/sh64/abi-32.s: Delete.
3575         * testsuite/gas/sh/sh64/abi-64.d: Delete.
3576         * testsuite/gas/sh/sh64/abi-64.s: Delete.
3577         * testsuite/gas/sh/sh64/basic-1.d: Delete.
3578         * testsuite/gas/sh/sh64/basic-1.s: Delete.
3579         * testsuite/gas/sh/sh64/case-1.d: Delete.
3580         * testsuite/gas/sh/sh64/case-1.s: Delete.
3581         * testsuite/gas/sh/sh64/case-noexp-1.d: Delete.
3582         * testsuite/gas/sh/sh64/crange1-1.d: Delete.
3583         * testsuite/gas/sh/sh64/crange1-2.d: Delete.
3584         * testsuite/gas/sh/sh64/crange1.s: Delete.
3585         * testsuite/gas/sh/sh64/crange2-1.d: Delete.
3586         * testsuite/gas/sh/sh64/crange2-2.d: Delete.
3587         * testsuite/gas/sh/sh64/crange2-noexp-1.d: Delete.
3588         * testsuite/gas/sh/sh64/crange2.s: Delete.
3589         * testsuite/gas/sh/sh64/crange3-1.d: Delete.
3590         * testsuite/gas/sh/sh64/crange3.s: Delete.
3591         * testsuite/gas/sh/sh64/crange4-1.d: Delete.
3592         * testsuite/gas/sh/sh64/crange4.s: Delete.
3593         * testsuite/gas/sh/sh64/crange5-1.d: Delete.
3594         * testsuite/gas/sh/sh64/crange5.s: Delete.
3595         * testsuite/gas/sh/sh64/creg-1.d: Delete.
3596         * testsuite/gas/sh/sh64/creg-1.s: Delete.
3597         * testsuite/gas/sh/sh64/creg-2.d: Delete.
3598         * testsuite/gas/sh/sh64/creg-2.s: Delete.
3599         * testsuite/gas/sh/sh64/datal-1.s: Delete.
3600         * testsuite/gas/sh/sh64/datal-2.d: Delete.
3601         * testsuite/gas/sh/sh64/datal-2.s: Delete.
3602         * testsuite/gas/sh/sh64/datal-3.s: Delete.
3603         * testsuite/gas/sh/sh64/datal32-1.d: Delete.
3604         * testsuite/gas/sh/sh64/datal32-3.d: Delete.
3605         * testsuite/gas/sh/sh64/datal64-1.d: Delete.
3606         * testsuite/gas/sh/sh64/datal64-3.d: Delete.
3607         * testsuite/gas/sh/sh64/eh-1.d: Delete.
3608         * testsuite/gas/sh/sh64/eh-1.s: Delete.
3609         * testsuite/gas/sh/sh64/endian-1.d: Delete.
3610         * testsuite/gas/sh/sh64/endian-1.s: Delete.
3611         * testsuite/gas/sh/sh64/endian-2.d: Delete.
3612         * testsuite/gas/sh/sh64/endian-2.s: Delete.
3613         * testsuite/gas/sh/sh64/err-1.s: Delete.
3614         * testsuite/gas/sh/sh64/err-2.s: Delete.
3615         * testsuite/gas/sh/sh64/err-3.s: Delete.
3616         * testsuite/gas/sh/sh64/err-4.s: Delete.
3617         * testsuite/gas/sh/sh64/err-abi-32.s: Delete.
3618         * testsuite/gas/sh/sh64/err-abi-64.s: Delete.
3619         * testsuite/gas/sh/sh64/err-dsp.s: Delete.
3620         * testsuite/gas/sh/sh64/err-movi-noexp-1.s: Delete.
3621         * testsuite/gas/sh/sh64/err-noexp-cmd1.s: Delete.
3622         * testsuite/gas/sh/sh64/err-pt-1.s: Delete.
3623         * testsuite/gas/sh/sh64/err-pt32-cmd1.s: Delete.
3624         * testsuite/gas/sh/sh64/err-pt32-cmd2.s: Delete.
3625         * testsuite/gas/sh/sh64/err-pt32-cmd3.s: Delete.
3626         * testsuite/gas/sh/sh64/err-ptb-1.s: Delete.
3627         * testsuite/gas/sh/sh64/err-ptb-2.s: Delete.
3628         * testsuite/gas/sh/sh64/err.exp: Delete.
3629         * testsuite/gas/sh/sh64/immexpr1.s: Delete.
3630         * testsuite/gas/sh/sh64/immexpr2.s: Delete.
3631         * testsuite/gas/sh/sh64/immexpr32-1.d: Delete.
3632         * testsuite/gas/sh/sh64/immexpr32-2.d: Delete.
3633         * testsuite/gas/sh/sh64/immexpr64-1.d: Delete.
3634         * testsuite/gas/sh/sh64/immexpr64-2.d: Delete.
3635         * testsuite/gas/sh/sh64/lineno.d: Delete.
3636         * testsuite/gas/sh/sh64/lineno.s: Delete.
3637         * testsuite/gas/sh/sh64/localcom-1.d: Delete.
3638         * testsuite/gas/sh/sh64/localcom-1.s: Delete.
3639         * testsuite/gas/sh/sh64/mix-1.d: Delete.
3640         * testsuite/gas/sh/sh64/mix-1.s: Delete.
3641         * testsuite/gas/sh/sh64/mix-noexp-1.d: Delete.
3642         * testsuite/gas/sh/sh64/movi-1.s: Delete.
3643         * testsuite/gas/sh/sh64/movi-2.s: Delete.
3644         * testsuite/gas/sh/sh64/movi-3.d: Delete.
3645         * testsuite/gas/sh/sh64/movi-3.s: Delete.
3646         * testsuite/gas/sh/sh64/movi32-1.d: Delete.
3647         * testsuite/gas/sh/sh64/movi32-2.d: Delete.
3648         * testsuite/gas/sh/sh64/movi32-noexp-2.d: Delete.
3649         * testsuite/gas/sh/sh64/movi64-1.d: Delete.
3650         * testsuite/gas/sh/sh64/movi64-2.d: Delete.
3651         * testsuite/gas/sh/sh64/movi64-2.s: Delete.
3652         * testsuite/gas/sh/sh64/movi64-3.d: Delete.
3653         * testsuite/gas/sh/sh64/movi64-noexp-2.d: Delete.
3654         * testsuite/gas/sh/sh64/pt-1.d: Delete.
3655         * testsuite/gas/sh/sh64/pt-1.s: Delete.
3656         * testsuite/gas/sh/sh64/pt-2.s: Delete.
3657         * testsuite/gas/sh/sh64/pt-noexp-1.d: Delete.
3658         * testsuite/gas/sh/sh64/pt32-1.d: Delete.
3659         * testsuite/gas/sh/sh64/pt32-noexp-2.d: Delete.
3660         * testsuite/gas/sh/sh64/pt64-1.d: Delete.
3661         * testsuite/gas/sh/sh64/pt64-32-1.d: Delete.
3662         * testsuite/gas/sh/sh64/pt64-32-2.d: Delete.
3663         * testsuite/gas/sh/sh64/pt64-noexp-2.d: Delete.
3664         * testsuite/gas/sh/sh64/ptc-1.s: Delete.
3665         * testsuite/gas/sh/sh64/ptc32-1.d: Delete.
3666         * testsuite/gas/sh/sh64/ptc32-noexp-1.d: Delete.
3667         * testsuite/gas/sh/sh64/ptc64-1.d: Delete.
3668         * testsuite/gas/sh/sh64/ptc64-32-1.d: Delete.
3669         * testsuite/gas/sh/sh64/ptc64-noexp-1.d: Delete.
3670         * testsuite/gas/sh/sh64/ptext-1.s: Delete.
3671         * testsuite/gas/sh/sh64/ptext32-1.d: Delete.
3672         * testsuite/gas/sh/sh64/ptext32-noexp-1.d: Delete.
3673         * testsuite/gas/sh/sh64/ptext64-1.d: Delete.
3674         * testsuite/gas/sh/sh64/ptext64-32-1.d: Delete.
3675         * testsuite/gas/sh/sh64/ptext64-noexp-1.d: Delete.
3676         * testsuite/gas/sh/sh64/rel-1.s: Delete.
3677         * testsuite/gas/sh/sh64/rel-2.s: Delete.
3678         * testsuite/gas/sh/sh64/rel-3.s: Delete.
3679         * testsuite/gas/sh/sh64/rel-4.s: Delete.
3680         * testsuite/gas/sh/sh64/rel-5.s: Delete.
3681         * testsuite/gas/sh/sh64/rel32-1.d: Delete.
3682         * testsuite/gas/sh/sh64/rel32-2.d: Delete.
3683         * testsuite/gas/sh/sh64/rel32-3.d: Delete.
3684         * testsuite/gas/sh/sh64/rel32-4.d: Delete.
3685         * testsuite/gas/sh/sh64/rel32-5.d: Delete.
3686         * testsuite/gas/sh/sh64/rel64-1.d: Delete.
3687         * testsuite/gas/sh/sh64/rel64-2.d: Delete.
3688         * testsuite/gas/sh/sh64/rel64-3.d: Delete.
3689         * testsuite/gas/sh/sh64/rel64-4.d: Delete.
3690         * testsuite/gas/sh/sh64/rel64-5.d: Delete.
3691         * testsuite/gas/sh/sh64/relax-1.d: Delete.
3692         * testsuite/gas/sh/sh64/relax-1.s: Delete.
3693         * testsuite/gas/sh/sh64/relax-2.d: Delete.
3694         * testsuite/gas/sh/sh64/relax-2.s: Delete.
3695         * testsuite/gas/sh/sh64/relax-3.d: Delete.
3696         * testsuite/gas/sh/sh64/relax-3.s: Delete.
3697         * testsuite/gas/sh/sh64/sh64.exp: Delete.
3698         * testsuite/gas/sh/sh64/shift-1.s: Delete.
3699         * testsuite/gas/sh/sh64/shift-2.s: Delete.
3700         * testsuite/gas/sh/sh64/shift-3.s: Delete.
3701         * testsuite/gas/sh/sh64/shift32-1.d: Delete.
3702         * testsuite/gas/sh/sh64/shift32-3.d: Delete.
3703         * testsuite/gas/sh/sh64/shift32-noexp-3.d: Delete.
3704         * testsuite/gas/sh/sh64/shift64-1.d: Delete.
3705         * testsuite/gas/sh/sh64/shift64-2.d: Delete.
3706         * testsuite/gas/sh/sh64/shift64-3.d: Delete.
3707         * testsuite/gas/sh/sh64/shift64-noexp-3.d: Delete.
3708         * testsuite/gas/sh/sh64/syntax-1.d: Delete.
3709         * testsuite/gas/sh/sh64/syntax-1.s: Delete.
3710         * testsuite/gas/sh/sh64/syntax-2.d: Delete.
3711         * testsuite/gas/sh/sh64/syntax-2.s: Delete.
3712         * testsuite/gas/sh/sh64/ua-1.s: Delete.
3713         * testsuite/gas/sh/sh64/ua32-1.d: Delete.
3714         * testsuite/gas/sh/sh64/ua64-1.d: Delete.
3715         * Makefile.in: Regenerate.
3716         * doc/Makefile.in: Regenerate.
3717         * po/POTFILES.in: Regenerate.
3718
3719 2018-04-16  Alan Modra  <amodra@gmail.com>
3720
3721         * config/tc-sh.c: Remove sh-symbianelf support.
3722         * config/tc-sh.h: Likewise.
3723         * configure.ac: Likewise.
3724         * configure.tgt: Likewise.
3725         * testsuite/gas/sh/reg-prefix.d: Likewise.
3726         * testsuite/gas/sh/sh2a-pic.d: Likewise.
3727         * config.in: Regenerate.
3728         * configure: Regenerate.
3729
3730 2018-04-16  Alan Modra  <amodra@gmail.com>
3731
3732         * configure.ac: Remove m88k support.
3733         * config.in: Regenerate.
3734         * configure: Regenerate.
3735
3736 2018-04-16  Alan Modra  <amodra@gmail.com>
3737
3738         * Makefile.am: Remove i370 support.
3739         * app.c: Likewise.
3740         * config/obj-elf.c: Likewise.
3741         * configure.tgt: Likewise.
3742         * doc/Makefile.am: Likewise.
3743         * doc/as.texinfo: Likewise.
3744         * testsuite/gas/all/gas.exp: Likewise.
3745         * testsuite/gas/elf/warn-2.s: Likewise.
3746         * testsuite/gas/lns/lns.exp: Likewise.
3747         * config/tc-i370.c: Delete.
3748         * config/tc-i370.h: Delete.
3749         * doc/c-i370.texi: Delete.
3750         * Makefile.in: Regenerate.
3751         * doc/Makefile.in: Regenerate.
3752         * po/POTFILES.in: Regenerate.
3753
3754 2018-04-16  Alan Modra  <amodra@gmail.com>
3755
3756         * config/obj-coff.h: Remove h8500 support.
3757
3758 2018-04-16  Alan Modra  <amodra@gmail.com>
3759
3760         * config/obj-coff.h: Remove h8300-coff support.
3761         * config/tc-h8300.c: Likewise.
3762         * config/tc-h8300.h: Likewise.
3763         * testsuite/gas/h8300/h8300.exp: Likewise.
3764         * testsuite/gas/h8300/branch-coff.s: Delete.
3765         * testsuite/gas/h8300/branchh-coff.s: Delete.
3766         * testsuite/gas/h8300/branchs-coff.s: Delete.
3767         * testsuite/gas/h8300/ffxx1-coff.d: Delete.
3768         * testsuite/gas/h8300/ffxx1-coff.s: Delete.
3769         * testsuite/gas/h8300/h8300-coff.exp: Delete.
3770
3771 2018-04-16  Alan Modra  <amodra@gmail.com>
3772
3773         * app.c: Remove IEEE 695 support.
3774         * symbols.c: Likewise.
3775
3776 2018-04-16  Alan Modra  <amodra@gmail.com>
3777
3778         * Makefile.am: Remove netware support.
3779         * config/tc-i386.c: Likewise.
3780         * configure.tgt: Likewise.
3781         * config/te-netware.h: Delete.
3782         * Makefile.in: Regenerate.
3783         * po/POTFILES.in: Regenerate.
3784
3785 2018-04-15  H.J. Lu  <hongjiu.lu@intel.com>
3786
3787         * testsuite/gas/i386/x86-64-waitpkg.s: Add 32-bit registers
3788         tests for tpause and umwait.
3789         * testsuite/gas/i386/x86-64-waitpkg-intel.d: Updated.
3790         * testsuite/gas/i386/x86-64-waitpkg.d: Likewise.
3791
3792 2018-04-12  John Darrington  <john@darrington.wattle.id.au>
3793
3794         * as.c (main): Fail if the output is the same as one of the input
3795         files.
3796         * testsuite/gas/all/gas.exp: Test the new feature.
3797
3798 2018-04-12  Nick Clifton  <nickc@redhat.com>
3799
3800         * po/es.po: Updated Spanish translation.
3801         * po/ru.po: Updated Russian translation.
3802
3803 2018-04-11  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
3804
3805         * config/tc-i386.c (cpu_arch): Add WAITPKG.
3806         (cpu_noarch): Likewise.
3807         * doc/c-i386.texi: Document WAITPKG.
3808         * i386/i386.exp: Run WAITPKG tests.
3809         * testsuite/gas/i386/waitpkg-intel.d: New test.
3810         * testsuite/gas/i386/waitpkg.d: Likewise.
3811         * testsuite/gas/i386/waitpkg.s: Likewise.
3812         * testsuite/gas/i386/x86-64-waitpkg-intel.d: Likewise.
3813         * testsuite/gas/i386/x86-64-waitpkg.d: Likewise.
3814         * testsuite/gas/i386/x86-64-waitpkg.s: Likewise.
3815
3816 2018-04-11  Alan Modra  <amodra@gmail.com>
3817
3818         * config/aout_gnu.h: Delete.
3819         * config/tc-i860.c: Delete.
3820         * config/tc-i860.h: Delete.
3821         * config/tc-i960.c: Delete.
3822         * config/tc-i960.h: Delete.
3823         * doc/c-i860.texi: Delete.
3824         * doc/c-i960.texi: Delete.
3825         * testsuite/gas/i860/README.i860: Delete.
3826         * testsuite/gas/i860/bitwise.d: Delete.
3827         * testsuite/gas/i860/bitwise.s: Delete.
3828         * testsuite/gas/i860/branch.d: Delete.
3829         * testsuite/gas/i860/branch.s: Delete.
3830         * testsuite/gas/i860/bte.d: Delete.
3831         * testsuite/gas/i860/bte.s: Delete.
3832         * testsuite/gas/i860/dir-align01.d: Delete.
3833         * testsuite/gas/i860/dir-align01.s: Delete.
3834         * testsuite/gas/i860/dir-intel01.d: Delete.
3835         * testsuite/gas/i860/dir-intel01.s: Delete.
3836         * testsuite/gas/i860/dir-intel02.d: Delete.
3837         * testsuite/gas/i860/dir-intel02.s: Delete.
3838         * testsuite/gas/i860/dir-intel03-err.l: Delete.
3839         * testsuite/gas/i860/dir-intel03-err.s: Delete.
3840         * testsuite/gas/i860/dual01.d: Delete.
3841         * testsuite/gas/i860/dual01.s: Delete.
3842         * testsuite/gas/i860/dual02-err.l: Delete.
3843         * testsuite/gas/i860/dual02-err.s: Delete.
3844         * testsuite/gas/i860/dual03.d: Delete.
3845         * testsuite/gas/i860/dual03.s: Delete.
3846         * testsuite/gas/i860/fldst01.d: Delete.
3847         * testsuite/gas/i860/fldst01.s: Delete.
3848         * testsuite/gas/i860/fldst02.d: Delete.
3849         * testsuite/gas/i860/fldst02.s: Delete.
3850         * testsuite/gas/i860/fldst03.d: Delete.
3851         * testsuite/gas/i860/fldst03.s: Delete.
3852         * testsuite/gas/i860/fldst04.d: Delete.
3853         * testsuite/gas/i860/fldst04.s: Delete.
3854         * testsuite/gas/i860/fldst05.d: Delete.
3855         * testsuite/gas/i860/fldst05.s: Delete.
3856         * testsuite/gas/i860/fldst06.d: Delete.
3857         * testsuite/gas/i860/fldst06.s: Delete.
3858         * testsuite/gas/i860/fldst07.d: Delete.
3859         * testsuite/gas/i860/fldst07.s: Delete.
3860         * testsuite/gas/i860/fldst08.d: Delete.
3861         * testsuite/gas/i860/fldst08.s: Delete.
3862         * testsuite/gas/i860/float01.d: Delete.
3863         * testsuite/gas/i860/float01.s: Delete.
3864         * testsuite/gas/i860/float02.d: Delete.
3865         * testsuite/gas/i860/float02.s: Delete.
3866         * testsuite/gas/i860/float03.d: Delete.
3867         * testsuite/gas/i860/float03.s: Delete.
3868         * testsuite/gas/i860/float04.d: Delete.
3869         * testsuite/gas/i860/float04.s: Delete.
3870         * testsuite/gas/i860/form.d: Delete.
3871         * testsuite/gas/i860/form.s: Delete.
3872         * testsuite/gas/i860/i860.exp: Delete.
3873         * testsuite/gas/i860/iarith.d: Delete.
3874         * testsuite/gas/i860/iarith.s: Delete.
3875         * testsuite/gas/i860/ldst01.d: Delete.
3876         * testsuite/gas/i860/ldst01.s: Delete.
3877         * testsuite/gas/i860/ldst02.d: Delete.
3878         * testsuite/gas/i860/ldst02.s: Delete.
3879         * testsuite/gas/i860/ldst03.d: Delete.
3880         * testsuite/gas/i860/ldst03.s: Delete.
3881         * testsuite/gas/i860/ldst04.d: Delete.
3882         * testsuite/gas/i860/ldst04.s: Delete.
3883         * testsuite/gas/i860/ldst05.d: Delete.
3884         * testsuite/gas/i860/ldst05.s: Delete.
3885         * testsuite/gas/i860/ldst06.d: Delete.
3886         * testsuite/gas/i860/ldst06.s: Delete.
3887         * testsuite/gas/i860/pfam.d: Delete.
3888         * testsuite/gas/i860/pfam.s: Delete.
3889         * testsuite/gas/i860/pfmam.d: Delete.
3890         * testsuite/gas/i860/pfmam.s: Delete.
3891         * testsuite/gas/i860/pfmsm.d: Delete.
3892         * testsuite/gas/i860/pfmsm.s: Delete.
3893         * testsuite/gas/i860/pfsm.d: Delete.
3894         * testsuite/gas/i860/pfsm.s: Delete.
3895         * testsuite/gas/i860/pseudo-ops01.d: Delete.
3896         * testsuite/gas/i860/pseudo-ops01.s: Delete.
3897         * testsuite/gas/i860/regress01.d: Delete.
3898         * testsuite/gas/i860/regress01.s: Delete.
3899         * testsuite/gas/i860/shift.d: Delete.
3900         * testsuite/gas/i860/shift.s: Delete.
3901         * testsuite/gas/i860/simd.d: Delete.
3902         * testsuite/gas/i860/simd.s: Delete.
3903         * testsuite/gas/i860/system.d: Delete.
3904         * testsuite/gas/i860/system.s: Delete.
3905         * testsuite/gas/i860/xp.d: Delete.
3906         * testsuite/gas/i860/xp.s: Delete.
3907         * Makefile.am: Remove i860 and i960 support.
3908         * configure.tgt: Likewise.
3909         * doc/Makefile.am: Likewise.
3910         * doc/all.texi: Likewise.
3911         * testsuite/gas/all/gas.exp
3912         * config/obj-coff.h: Remove i960 support.
3913         * doc/internals.texi: Likewise.
3914         * expr.c: Likewise.
3915         * read.c: Likewise.
3916         * write.c: Likewise.
3917         * write.h: Likewise.
3918         * testsuite/gas/lns/lns.exp: Likewise.
3919         * testsuite/gas/symver/symver.exp: Likewise.
3920         * config/tc-m68k.c: Remove BOUT support.
3921         * config/tc-score.c: Likewise.
3922         * config/tc-score7.c: Likewise.
3923         * config/tc-sparc.c: Likewise.
3924         * symbols.c: Likewise.
3925         * doc/h8.texi: Likewise.
3926         * configure.ac: Remove BOUT and i860 support.
3927         * doc/as.texinfo: Remove BOUT, i860 and i960 support
3928         * Makefile.in: Regenerate.
3929         * config.in: Regenerate.
3930         * configure: Regenerate.
3931         * doc/Makefile.in: Regenerate.
3932         * po/POTFILES.in: Regenerate.
3933
3934 2018-04-05  H.J. Lu  <hongjiu.lu@intel.com>
3935
3936         PR gas/22318
3937         * configure: Regenerated.
3938
3939 2018-04-04  H.J. Lu  <hongjiu.lu@intel.com>
3940
3941         PR binutils/23025
3942         * testsuite/gas/i386/prefix.s: Add tests for vcvtpd2dq with
3943         VEX and EVEX prefixes.
3944         * testsuite/gas/i386/prefix.d: Updated.
3945
3946 2018-03-30  Peter Bergner <bergner@vnet.ibm.com>
3947
3948         PR binutils/23013
3949         * config/tc-ppc.c (ppc_set_cpu): Select appropriate cpu when ppc_obj64
3950         and little endian.
3951
3952 2018-03-28  Renlin Li  <renlin.li@arm.com>
3953
3954         PR ld/22970
3955         * config/tc-aarch64.c (reloc_table): Update entry for tprel_lo12 and
3956         tprel_lo12_nc with pseudo relocations.
3957         (ldst_lo12_determine_real_reloc_type): Add new relocations support.
3958         (parse_operands): Handle BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12 and
3959         BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12_NC pseudo relocations.
3960         (md_apply_fix): Add handling for new relocation.
3961         (aarch64_force_relocation): Likewise.
3962         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst16.d: New.
3963         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst16.s: New.
3964         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst32.d: New.
3965         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst32.s: New.
3966         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst64.d: New.
3967         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst64.s: New.
3968         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst8.d: New.
3969         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst8.s: New.
3970         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst16.d: New.
3971         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst16.s: New.
3972         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst32.d: New.
3973         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst32.s: New.
3974         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst64.d: New.
3975         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst64.s: New.
3976         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst8.d: New.
3977         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst8.s: New.
3978         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst16-ilp32.d: New.
3979         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst32-ilp32.d: New.
3980         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst64-ilp32.d: New.
3981         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst8-ilp32.d: New.
3982         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst16-ilp32.d: New.
3983         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst32-ilp32.d: New.
3984         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst64-ilp32.d: New.
3985         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst8-ilp32.d: New.
3986
3987 2018-03-28  Jan Beulich  <jbeulich@suse.com>
3988
3989         * config/tc-i386.c (check_VecOperands): Replace uses of
3990         .vecesize. Always initialize op.
3991         * testsuite/gas/i386/avx512_vpopcntdq.s,
3992         testsuite/gas/i386/avx512bitalg_vl.s: Add Intel syntax vpopcnt
3993         broadcast cases with explicit operand size.
3994         * testsuite/gas/i386/avx512_vpopcntdq.d,
3995         testsuite/gas/i386/avx512_vpopcntdq-intel.d,
3996         testsuite/gas/i386/avx512bitalg_vl.d
3997         testsuite/gas/i386/avx512bitalg_vl-intel.d: Adjust expectations.
3998
3999 2018-03-28  Jan Beulich  <jbeulich@suse.com>
4000
4001         * config/tc-i386.c (struct Broadcast_Operation): Adjust comment.
4002         (check_VecOperands): Re-write broadcast validation code.
4003         (check_VecOperations): Replace BROADCAST_1TO* uses.
4004         * testsuite/gas/i386/inval-avx512f.s: Add various broadcast
4005         cases.
4006         * testsuite/gas/i386/inval-avx512f.l: Adjust expectations.
4007
4008 2018-03-28  Jan Beulich  <jbeulich@suse.com>
4009
4010         * config/tc-i386.c (process_suffix): Check .todword/.toqword
4011         before zapping suffix.
4012
4013 2018-03-28  Jan Beulich  <jbeulich@suse.com>
4014
4015         * testsuite/gas/i386/ilp32/x86-64-simd-suffix.d,
4016         testsuite/gas/i386/x86-64-simd-suffix.d: Drop q suffix from
4017         cvt*2si.
4018
4019 2018-03-28  Nick Clifton  <nickc@redhat.com>
4020
4021         PR 22988
4022         * config/tc-aarch64.c (parse_operands): Add code to handle
4023         AARCH64_OPN_SVE_ADDR_R.
4024         * testsuite/gas/aarch64/sve.s: Add tests for LDFF1xx instructions
4025         with an assumed XZR offset address register.
4026         * testsuite/gas/aarch64/sve.d: Update expected disassembly.
4027
4028 2018-03-22  Jan Beulich  <jbeulich@suse.com>
4029
4030         * config/tc-i386.c (check_VecOperands): Latch
4031         i.broadcast->operand into op.
4032
4033 2018-03-22  Jan Beulich  <jbeulich@suse.com>
4034
4035         * config/tc-i386.c (match_template): Special case base opcode
4036         0xa0 with HLE prefix.
4037         * testsuite/gas/i386/hle.s: Add mov-accumulator-to-disp cases.
4038         * testsuite/gas/i386/hle.d, testsuite/gas/i386/hle-intel.d:
4039         Adjust expectations.
4040
4041 2018-03-22  Jan Beulich  <jbeulich@suse.com>
4042
4043         * testsuite/gas/i386/opts.s: Add bndmov cases.
4044         * testsuite/gas/i386/opts.d, testsuite/gas/i386/opts-intel.d,
4045         testsuite/gas/i386/sse2avx-opts.d,
4046         testsuite/gas/i386/sse2avx-opts-intel.d: Adjust expectations.
4047
4048 2018-03-22  Jan Beulich  <jbeulich@suse.com>
4049
4050         * config/tc-i386.c (match_mem_size): Extend sub-xmmword
4051         exceptions.
4052         * testsuite/gas/i386/xmmword.l, testsuite/gas/i386/xmmword.s:
4053         New.
4054         * testsuite/gas/i386/i386.exp: Run new test.
4055
4056 2018-03-22  Jan Beulich  <jbeulich@suse.com>
4057
4058         * config/tc-i386.c (match_template): Also match 2nd and 4th
4059         operand's register sizes.
4060         * testsuite/gas/i386/unspec.l, testsuite/gas/i386/unspec.s: New.
4061         * testsuite/gas/i386/i386.exp: Run new test.
4062
4063 2018-03-19  Nick Clifton  <nickc@redhat.com>
4064
4065         * po/uk.po: Updated Ukranian translation.
4066
4067 2018-03-16  Jim Wilson  <jimw@sifive.com>
4068
4069         * config/tc-riscv.c (check_absolute_expr): Expand comment.  New
4070         parameter maybe_csr.  If maybe_csr and O_symbol, print CSR name.
4071         (riscv_ip): Add new argument to check_absolute_expr calls.
4072         * testsuite/gas/riscv/bad-csr.d: New.
4073         * testsuite/gas/riscv/bad-csr.l: New.
4074         * testsuite/gas/riscv/bad-csr.s: New.
4075
4076 2018-03-14  Kito Cheng  <kito.cheng@gmail.com>
4077
4078         * config/tc-riscv.c (opcode_name_list): New.
4079         (opcode_names_hash): Likewise.
4080         (init_opcode_names_hash): Likewise.
4081         (opcode_name_lookup): Likewise.
4082         (validate_riscv_insn): New argument length, and add new format
4083         which used in .insn directive.
4084         (md_begin): Refine hash table initialization logic into
4085         init_opcode_hash.
4086         (init_opcode_hash): New.
4087         (my_getOpcodeExpression): Parse opcode name for .insn.
4088         (riscv_ip): New argument hash, able to handle .insn directive.
4089         (s_riscv_insn): Handler for .insn directive.
4090         (riscv_pseudo_table): New entry for .insn.
4091         * doc/c-riscv.texi: Add documentation for .insn directive.
4092         * testsuite/gas/riscv/insn.d: Add testcase for .insn directive.
4093         * testsuite/gas/riscv/insn.s: Likewise.
4094
4095 2018-03-13  Nick Clifton  <nickc@redhat.com>
4096
4097         * po/ru.po: Updated Russian translation.
4098
4099 2018-03-09  H.J. Lu  <hongjiu.lu@intel.com>
4100
4101         * config/tc-i386.c (optimize_encoding): Encode EVEX instructions
4102         with VEX128 if EVEX encoding isn't required.
4103         * testsuite/gas/i386/optimize-1.d: Updated.
4104         * testsuite/gas/i386/x86-64-optimize-2.d: Likewise.
4105
4106 2018-03-09  H.J. Lu  <hongjiu.lu@intel.com>
4107
4108         * config/tc-i386.c (check_VecOperations): Strip whitespace.
4109         * testsuite/gas/i386/optimize-1.s: Add whitespaces before
4110         {%k7} and {z},
4111         * testsuite/gas/i386/x86-64-optimize-2.s: Likewise.
4112
4113 2018-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4114
4115         * config/tc-i386.c (set_cpu_arch): Set cpu_arch_isa_flags.
4116         (md_parse_option): Likewise.
4117         (optimize_encoding): Check i.tm.cpu_flags and cpu_arch_isa_flags
4118         for cpuavx512vl instead of cpu_arch_flags.  Optimize EVEX with
4119         EVEX128 when EVEX encoding is required.
4120         * testsuite/gas/i386/i386.exp: Run optimize-4, optimize-5,
4121         x86-64-optimize-5 and x86-64-optimize-6.
4122         * testsuite/gas/i386/optimize-1.d: Updated.
4123         * testsuite/gas/i386/x86-64-optimize-2.d: Likewise.
4124         * testsuite/gas/i386/optimize-4.d: New file.
4125         * testsuite/gas/i386/optimize-4.s: Likewise.
4126         * testsuite/gas/i386/optimize-5.d: Likewise.
4127         * testsuite/gas/i386/optimize-5.s: Likewise.
4128         * testsuite/gas/i386/x86-64-optimize-5.d: Likewise.
4129         * testsuite/gas/i386/x86-64-optimize-5.s: Likewise.
4130         * testsuite/gas/i386/x86-64-optimize-6.d: Likewise.
4131         * testsuite/gas/i386/x86-64-optimize-6.s: Likewise.
4132
4133 2018-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4134
4135         * config/tc-i386.c (optimize_encoding): Also encode "clr reg64"
4136         as "xor reg32, reg32".
4137         * testsuite/gas/i386/x86-64-optimize-1.s: Add "clr reg64" tests.
4138         * testsuite/gas/i386/x86-64-optimize-1.d: Updated.
4139
4140 2018-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4141
4142         * NEWS: Mention -mold-gcc removal.
4143         * config/tc-i386.c (i386_error): Remove old_gcc_only.
4144         (old_gcc): Removed.
4145         (match_template): Remove old gcc support.
4146         (OPTION_MOLD_GCC): Removed.
4147         (OPTION_MRELAX_RELOCATIONS): Updated.
4148         (md_longopts): Remove OPTION_MOLD_GCC.
4149         (md_parse_option): Likewise.
4150         (md_show_usage): Remove -mold-gcc.
4151         * testsuite/gas/i386/general.s: Convert fsub/fdiv tests for old
4152         (<= 2.8.1) versions of gcc.
4153         * testsuite/gas/i386/intel.s: Likewise.
4154         * testsuite/gas/i386/general.l: Updated.
4155         * testsuite/gas/i386/intel-intel.d: Likewise.
4156         * testsuite/gas/i386/intel.d: Likewise.
4157         * testsuite/gas/i386/intel.e: Likewise.
4158         * testsuite/gas/i386/i386.exp: Don't pass -mold-gcc to general.
4159
4160 2018-03-08  Jan Beulich  <jbeulich@suse.com>
4161
4162         * config/tc-i386.c (is_evex_encoding): New.
4163         (optimize_encoding, md_assemble, md_assemble,
4164         VEX_check_operands, build_modrm_byte): Use is_evex_encoding.
4165         (build_evex_prefix): Derive EVEX length field from actual
4166         operands if the template allows multiple ones.
4167
4168 2018-03-08  Jan Beulich  <jbeulich@suse.com>
4169
4170         * config/tc-i386.c (build_modrm_byte): Make VexNDD handling cope
4171         with 3rd (immediate) operand.
4172
4173 2018-03-08  Jan Beulich  <jbeulich@suse.com>
4174
4175         * config/tc-i386.c (XMMWORD_MNEM_SUFFIX, YMMWORD_MNEM_SUFFIX,
4176         ZMMWORD_MNEM_SUFFIX): Delete.
4177         (process_suffix): Drop their uses. Re-arrange final part of
4178         logic into a switch() statement. Drop special casing of
4179         cmpxchg8b.
4180
4181 2018-03-08  Jan Beulich  <jbeulich@suse.com>
4182
4183         * config/tc-i386.c (match_template): Also match register
4184         operands 0 and 2 for 3-operand forms.
4185         * testsuite/gas/i386/unspec64.l, testsuite/gas/i386/unspec64.s:
4186         New.
4187         * testsuite/gas/i386/i386.exp: Run new test.
4188
4189 2018-03-08  Jan Beulich  <jbeulich@suse.com>
4190
4191         * config/tc-i386.c (process_suffix): Do common part of register
4192         checks first.
4193
4194 2018-03-08  Jan Beulich  <jbeulich@suse.com>
4195
4196         * config/tc-i386.c (parse_insn): Move success return up. Combine
4197         failure returns.
4198
4199 2018-03-08  Jan Beulich  <jbeulich@suse.com>
4200
4201         * config/tc-i386.c (cpu_flags_match): Add GFNI check to AVX
4202         logic. Add respective logic for AVX512F.
4203         * testsuite/gas/i386/arch-avx-1.s: Add GFNI test.
4204         testsuite/gas/i386/arch-avx-1.d,
4205         testsuite/gas/i386/arch-avx-1-1.l,
4206         testsuite/gas/i386/arch-avx-1-2.l,
4207         testsuite/gas/i386/arch-avx-1-3.l,
4208         testsuite/gas/i386/arch-avx-1-4.l,
4209         testsuite/gas/i386/arch-avx-1-5.l,
4210         testsuite/gas/i386/arch-avx-1-6.l: Adjust expectations.
4211         * testsuite/gas/i386/arch-avx-1-7.l,
4212         testsuite/gas/i386/arch-avx-1-7.s,
4213         testsuite/gas/i386/arch-avx-1-8.l,
4214         testsuite/gas/i386/arch-avx-1-8.s,
4215         testsuite/gas/i386/avx512f-plain.l,
4216         testsuite/gas/i386/avx512f-plain.s,
4217         testsuite/gas/i386/avx512vl-plain.l,
4218         testsuite/gas/i386/avx512vl-plain.s: New.
4219         * testsuite/gas/i386/i386.exp: Run new tests.
4220
4221 2018-03-08  Jan Beulich  <jbeulich@suse.com>
4222
4223         * config/tc-i386.c (cpu_flags_match): Move AVX512VL check ahead.
4224
4225 2018-03-08  Jan Beulich  <jbeulich@suse.com>
4226
4227         * config/tc-i386.c (CPU_FLAGS_32BIT_MATCH): Delete.
4228         (cpu_flags_match): Use CPU_FLAGS_ARCH_MATCH instead of
4229         CPU_FLAGS_32BIT_MATCH.
4230
4231 2018-03-08  Jan Beulich  <jbeulich@suse.com>
4232
4233         * config/tc-i386.c (CPU_FLAGS_AES_MATCH, CPU_FLAGS_AVX_MATCH,
4234         CPU_FLAGS_PCLMUL_MATCH): Delete.
4235         (CPU_FLAGS_32BIT_MATCH): Drop uses of deleted CPU_FLAGS_*_MATCH.
4236         (cpu_flags_match): Combine AVX checks into
4237         single if().
4238
4239 2018-03-08  Jan Beulich  <jbeulich@suse.com>
4240
4241         * config/tc-i386.c (cpu_flags_match): Drop "else" branches
4242         setting CPU_FLAGS_ARCH_MATCH.
4243
4244 2018-03-08  Jan Beulich  <jbeulich@suse.com>
4245
4246         * config/tc-i386.c (md_assemble): Extend SSE check conditional.
4247         * testsuite/gas/i386/ilp32/x86-64-sse-check-none.d,
4248         testsuite/gas/i386/ilp32/x86-64-sse-check-warn.d,
4249         testsuite/gas/i386/ilp32/x86-64-sse-check.d,
4250         testsuite/gas/i386/sse-check-none.d,
4251         testsuite/gas/i386/sse-check-warn.d,
4252         testsuite/gas/i386/x86-64-sse-check.d,
4253         testsuite/gas/i386/x86-64-sse-check-none.d,
4254         testsuite/gas/i386/x86-64-sse-check-warn.d: Refer to sse-check.d.
4255         * testsuite/gas/i386/sse-check.s: Add AES, GFNI, and PCLMUL
4256         tests.
4257         * testsuite/gas/i386/sse-check-none.s: Replace code by inclusion
4258         of sse-check.s.
4259         * testsuite/gas/i386/sse-check.d: Adjust expectations.
4260         * testsuite/gas/i386/sse-check-error.l,
4261         testsuite/gas/i386/x86-64-sse-check-error.l: Likewise.
4262         * testsuite/gas/i386/sse-check-warn.e: Likewise.
4263
4264 2018-03-08  Jan Beulich  <jbeulich@suse.com>
4265
4266         * config/tc-i386.c (operand_size_match): Drop / replace uses of
4267         .floatd.
4268
4269 2018-03-08  Jan Beulich  <jbeulich@suse.com>
4270
4271         * testsuite/gas/i386/intel-intel.d: New.
4272         * testsuite/gas/i386/i386.exp: Run new test.
4273
4274 2018-03-08  Jan Beulich  <jbeulich@suse.com>
4275
4276         * config/tc-i386.c (process_operands): Access operands only
4277         after operand count assertion. Sanitize warning text. Fix
4278         indentation.
4279         * testsuite/gas/i386/avx512_4fmaps-warn.l,
4280         gas/i386/x86-64-avx512_4fmaps-warn.l: Adjust expectations.
4281
4282 2018-03-08  Jan Beulich  <jbeulich@suse.com>
4283
4284         * testsuite/gas/i386/x86-64-movd.s: Drop bogus vmovd memory forms.
4285         * testsuite/gas/i386/x86-64-movd.d,
4286         testsuite/gas/i386/x86-64-movd-intel.d: Adjust expectations.
4287
4288 2018-03-08  Jan Beulich  <jbeulich@suse.com>
4289
4290         * config/tc-i386.c (operand_type_and_not): New.
4291         (build_modrm_byte): Use it to prevent clearing unrelated bits.
4292
4293 2018-03-08  Alan Modra  <amodra@gmail.com>
4294
4295         * config/tc-ppc.c (ppc_handle_align): Correct last patch.  Really
4296         don't emit a group terminating nop for power9.  Simplify cpu
4297         tests.
4298
4299 2018-03-08  Alan Modra  <amodra@gmail.com>
4300
4301         * config/tc-ppc.c (ppc_handle_align): Don't emit a group
4302         terminating nop for power9.
4303
4304 2018-03-07  H.J. Lu  <hongjiu.lu@intel.com>
4305
4306         PR gas/22874
4307         * config/tc-i386.c (f32_5): Removed.
4308         (f32_8): Likewise.
4309         (f32_9): Likewise.
4310         (f32_10): Likewise.
4311         (f32_11): Likewise.
4312         (f32_12): Likewise.
4313         (f32_13): Likewise.
4314         (f32_14): Likewise.
4315         (f16_5): Likewise.
4316         (f16_6): Likewise.
4317         (f16_7): Likewise.
4318         (f16_8): Likewise.
4319         (jump_31): Likewise.
4320         (alt64_11): Likewise.
4321         (alt64_patt): Likewise.
4322         (jump_disp8): New.
4323         (jump32_disp32): Likewise.
4324         (jump16_disp32): Likewise.
4325         (alt_11): Likewise.
4326         (f32_patt): Updated.
4327         (f16_patt): Likewise.
4328         (alt_patt): Add alt_11.
4329         (i386_align_code): Merged with ...
4330         (i386_generate_nops): This.  Rewritten.
4331         (fits_in_imm7): Moved before i386_generate_nops.
4332         (fits_in_imm31): Likewise.
4333         * config/tc-i386.h (MAX_MEM_FOR_RS_ALIGN_CODE): Updated to
4334         4095.
4335         (i386_align_code): Removed.
4336         (HANDLE_ALIGN): Rewritten with i386_generate_nops.
4337         * doc/as.texinfo: Update limits of control byte for x86 .nops
4338         directive.
4339         * testsuite/gas/i386/i386.exp: Run nops-7 and x86-64-nops-7.
4340         * gas/testsuite/gas/i386/noavx-3.l: Updated.
4341         * gas/testsuite/gas/i386/nop-1.d: Likewise.
4342         * gas/testsuite/gas/i386/nop-1.s: Likewise.
4343         * gas/testsuite/gas/i386/nop-2.d: Likewise.
4344         * gas/testsuite/gas/i386/nop-2.s: Likewise.
4345         * gas/testsuite/gas/i386/nop-3.d: Likewise.
4346         * gas/testsuite/gas/i386/nop-4.d: Likewise.
4347         * gas/testsuite/gas/i386/nop-5.d: Likewise.
4348         * gas/testsuite/gas/i386/nop-5.s: Likewise.
4349         * gas/testsuite/gas/i386/nop-6.d: Likewise.
4350         * gas/testsuite/gas/i386/nop-bad-1.l: Likewise.
4351         * gas/testsuite/gas/i386/nops-1-core2.d: Likewise.
4352         * gas/testsuite/gas/i386/nops-1-i386-i686.d: Likewise.
4353         * gas/testsuite/gas/i386/nops-1-i386.d: Likewise.
4354         * gas/testsuite/gas/i386/nops-1-i686.d: Likewise.
4355         * gas/testsuite/gas/i386/nops-1-k8.d: Likewise.
4356         * gas/testsuite/gas/i386/nops-1.d: Likewise.
4357         * gas/testsuite/gas/i386/nops-2-core2.d: Likewise.
4358         * gas/testsuite/gas/i386/nops-2-i386.d: Likewise.
4359         * gas/testsuite/gas/i386/nops-2.d: Likewise.
4360         * gas/testsuite/gas/i386/nops-3-i386.d: Likewise.
4361         * gas/testsuite/gas/i386/nops-3-i686.d: Likewise.
4362         * gas/testsuite/gas/i386/nops-3.d: Likewise.
4363         * gas/testsuite/gas/i386/nops-4-i386.d: Likewise.
4364         * gas/testsuite/gas/i386/nops-4-i686.d: Likewise.
4365         * gas/testsuite/gas/i386/nops-4.d: Likewise.
4366         * gas/testsuite/gas/i386/nops-4a-i686.d: Likewise.
4367         * gas/testsuite/gas/i386/nops-5-i686.d: Likewise.
4368         * gas/testsuite/gas/i386/nops-5.d: Likewise.
4369         * gas/testsuite/gas/i386/nops-6.d: Likewise.
4370         * gas/testsuite/gas/i386/nops16-1.d: Likewise.
4371         * gas/testsuite/gas/i386/x86-64-nop-1.d: Likewise.
4372         * gas/testsuite/gas/i386/x86-64-nop-2.d: Likewise.
4373         * gas/testsuite/gas/i386/x86-64-nop-5.d: Likewise.
4374         * gas/testsuite/gas/i386/x86-64-nops-1-core2.d: Likewise.
4375         * gas/testsuite/gas/i386/x86-64-nops-1-g64.d: Likewise.
4376         * gas/testsuite/gas/i386/x86-64-nops-1-k8.d: Likewise.
4377         * gas/testsuite/gas/i386/x86-64-nops-1-pentium.d: Likewise.
4378         * gas/testsuite/gas/i386/x86-64-nops-1.d: Likewise.
4379         * gas/testsuite/gas/i386/x86-64-nops-2.d: Likewise.
4380         * gas/testsuite/gas/i386/x86-64-nops-3.d: Likewise.
4381         * gas/testsuite/gas/i386/x86-64-nops-4-core2.d: Likewise.
4382         * gas/testsuite/gas/i386/x86-64-nops-4-k8.d: Likewise.
4383         * gas/testsuite/gas/i386/x86-64-nops-4.d: Likewise.
4384         * gas/testsuite/gas/i386/x86-64-nops-5-k8.d: Likewise.
4385         * gas/testsuite/gas/i386/x86-64-nops-5.d: Likewise.
4386         * gas/testsuite/gas/i386/ilp32/x86-64-nops-1-core2.d: Likewise.
4387         * gas/testsuite/gas/i386/ilp32/x86-64-nops-1-k8.d: Likewise.
4388         * gas/testsuite/gas/i386/ilp32/x86-64-nops-1-pentium.d: Likewise.
4389         * gas/testsuite/gas/i386/ilp32/x86-64-nops-1.d: Likewise.
4390         * gas/testsuite/gas/i386/ilp32/x86-64-nops-2.d: Likewise.
4391         * gas/testsuite/gas/i386/ilp32/x86-64-nops-3.d: Likewise.
4392         * gas/testsuite/gas/i386/ilp32/x86-64-nops-4-core2.d: Likewise.
4393         * gas/testsuite/gas/i386/ilp32/x86-64-nops-4-k8.d: Likewise.
4394         * gas/testsuite/gas/i386/ilp32/x86-64-nops-4.d: Likewise.
4395         * gas/testsuite/gas/i386/ilp32/x86-64-nops-5-k8.d: Likewise.
4396         * gas/testsuite/gas/i386/ilp32/x86-64-nops-5.d: Likewise.
4397         * gas/testsuite/gas/i386/nops-7.d: New file.
4398         * gas/testsuite/gas/i386/nops-7.s: Likewise.
4399         * gas/testsuite/gas/i386/x86-64-nops-7.d: Likewise.
4400
4401 2018-03-07  Alan Modra  <amodra@gmail.com>
4402
4403         * testsuite/gas/ppc/aix.exp: Run for rs6000 too.
4404         * testsuite/gas/ppc/ppc.exp: Run more tests for non-ELF targets.
4405         * testsuite/gas/ppc/machine.d: Don't run for PE targets.
4406
4407 2018-03-02  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4408
4409         * config/tc-arm.c (md_begin): Add NULL pointer check before
4410         dereferencing march_ext_opt.
4411
4412 2018-03-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4413
4414         * config/tc-arm.c (cpu_variant, arm_arch_used, thumb_arch_used,
4415         legacy_cpu, legacy_fpu, mcpu_cpu_opt, dyn_mcpu_ext_opt,
4416         mcpu_fpu_opt, march_cpu_opt, dyn_march_ext_opt, march_fpu_opt,
4417         mfpu_opt, object_arch, selected_cpu): Comment meaning of variables.
4418         (dyn_mcpu_ext_opt): Also rename into ...
4419         (mcpu_ext_opt): This.
4420         (dyn_march_ext_opt): Also rename into ...
4421         (march_ext_opt): This.
4422         (object_arch): Also rename into ...
4423         (selected_object_arch): This and make it a plain arm_feature_set
4424         structure.
4425         (selected_arch, selected_ext, selected_fpu): New static variables.
4426         (mark_feature_used): Fix comments, feature is marked as used iff it is
4427         currently allowed.
4428         (do_bx): Adapt to change in name and type of object_arch.
4429         (md_begin): Set selected_arch rather than mcpu_cpu_opt, selected_ext
4430         rather than dyn_mcpu_ext_opt and selected_fpu rather than mfpu_opt.
4431         Remove dead code to set default FPU if architecture version is greater
4432         than 5.  Set all CPU bits of cpu_variant directly in autodection
4433         leaving mcpu_cpu_opt, selected_arch and selected_cpu unset.
4434         (arm_parse_extension): Take extension feature set pointer parameter by
4435         value rather than by pointer.  Remove allocation code.  Adapt code
4436         accordingly.
4437         (arm_parse_cpu): Adapt to variable renaming and changes in
4438         arm_parse_extension () signature.
4439         (arm_parse_arch): Likewise.
4440         (aeabi_set_public_attributes): Also set selected_arch and selected_ext
4441         in addition to selected_cpu.  Set flags_arch and flags_ext from them
4442         instead of selected_cpu.  Adapt to variables renaming and type change.
4443         (arm_md_post_relax): Adapt to variable renaming.
4444         (s_arm_cpu): Set selcted_cpu_cpu and selected_ext instead of
4445         mcpu_cpu_opt and dyn_mcpu_ext_opt.  Set selected_cpu from them and
4446         cpu_variant from selected_cpu and selected_fpu.
4447         (s_arm_arch): Likewise.
4448         (s_arm_object_arch): Adapt to variable renaming.
4449         (s_arm_arch_extension): Use ARM_CPU_IS_ANY instead of checking feature
4450         set against arm_any.  Check selected_arch rather than *mcpu_cpu_opt.
4451         Set selected_ext rather than *dyn_mcpu_ext_opt and remove allocation
4452         code.
4453         (s_arm_fpu): Set selected_fpu instead of mfpu_opt.  Set all CPU feature
4454         bits if in autodetection mode.
4455
4456 2018-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4457
4458         * config/tc-i386.c (optimize_encoding): Optimize AVX256 and
4459         AVX512 vpsub[bwdq] instructions.
4460         * testsuite/gas/i386/optimize-1.s: Add tests for AVX256 and
4461         AVX512 vpsub[bwdq] instructions.
4462         * testsuite/gas/i386/x86-64-optimize-2.s: Likewise.
4463         * testsuite/gas/i386/optimize-1.d: Updated.
4464         * testsuite/gas/i386/x86-64-optimize-2.d: Likewise.
4465
4466 2018-03-01  Alan Modra  <amodra@gmail.com>
4467
4468         * configure.ac (ALL_LINGUAS): Add uk.  Sort.
4469         * configure: Regenerate.
4470
4471 2018-02-27  H.J. Lu  <hongjiu.lu@intel.com>
4472
4473         * NEWS: Rename .nop to .nops.
4474         * doc/as.texinfo: Likewise.
4475         * read.c (potable): Add "nops".  Remove "nop".
4476         (s_nop): Renamed to ...
4477         (s_nops): This.
4478         * read.h (s_nop): Renamed to ...
4479         (s_nops): This.
4480         * write.c (cvt_frag_to_fill): Rename .nop to .nops.
4481         (md_generate_nops): Likewise.
4482         (relax_segment): Likewise.
4483         * testsuite/gas/i386/nop-1.d: Updated.
4484         * testsuite/gas/i386/nop-1.s: Likewise.
4485         * testsuite/gas/i386/nop-2.d: Likewise.
4486         * testsuite/gas/i386/nop-2.s: Likewise.
4487         * testsuite/gas/i386/nop-3.d: Likewise.
4488         * testsuite/gas/i386/nop-3.s: Likewise.
4489         * testsuite/gas/i386/nop-4.d: Likewise.
4490         * testsuite/gas/i386/nop-4.s: Likewise.
4491         * testsuite/gas/i386/nop-5.d: Likewise.
4492         * testsuite/gas/i386/nop-5.s: Likewise.
4493         * testsuite/gas/i386/nop-6.d: Likewise.
4494         * testsuite/gas/i386/nop-6.s: Likewise.
4495         * testsuite/gas/i386/nop-bad-1.l: Likewise.
4496         * testsuite/gas/i386/nop-bad-1.s: Likewise.
4497         * testsuite/gas/i386/x86-64-nop-1.d: Likewise.
4498         * testsuite/gas/i386/x86-64-nop-2.d: Likewise.
4499         * testsuite/gas/i386/x86-64-nop-3.d: Likewise.
4500         * testsuite/gas/i386/x86-64-nop-4.d: Likewise.
4501         * testsuite/gas/i386/x86-64-nop-5.d: Likewise.
4502         * testsuite/gas/i386/x86-64-nop-6.d: Likewise.
4503
4504 2018-02-27  H.J. Lu  <hongjiu.lu@intel.com>
4505
4506         PR gas/22871
4507         * NEWS: Mention -O[2|s].
4508         * config/tc-i386.c (_i386_insn): Add no_optimize.
4509         (optimize): New.
4510         (optimize_for_space): Likewise.
4511         (fits_in_imm7): New function.
4512         (fits_in_imm31): Likewise.
4513         (optimize_encoding): Likewise.
4514         (md_assemble): Call optimize_encoding to optimize encoding.
4515         (parse_insn): Handle {nooptimize}.
4516         (md_shortopts): Append "O::".
4517         (md_parse_option): Handle -On.
4518         * doc/c-i386.texi: Document -O0, -O, -O1, -O2 and -Os as well
4519         as {nooptimize}.
4520         * testsuite/gas/cfi/cfi-x86_64.d: Pass -O0 to assembler.
4521         * testsuite/gas/i386/ilp32/cfi/cfi-x86_64.d: Likewise.
4522         * testsuite/gas/i386/i386.exp: Run optimize-1, optimize-2,
4523         optimize-3, x86-64-optimize-1, x86-64-optimize-2,
4524         x86-64-optimize-3 and x86-64-optimize-4.
4525         * testsuite/gas/i386/optimize-1.d: New file.
4526         * testsuite/gas/i386/optimize-1.s: Likewise.
4527         * testsuite/gas/i386/optimize-2.d: Likewise.
4528         * testsuite/gas/i386/optimize-2.s: Likewise.
4529         * testsuite/gas/i386/optimize-3.d: Likewise.
4530         * testsuite/gas/i386/optimize-3.s: Likewise.
4531         * testsuite/gas/i386/x86-64-optimize-1.s: Likewise.
4532         * testsuite/gas/i386/x86-64-optimize-1.d: Likewise.
4533         * testsuite/gas/i386/x86-64-optimize-2.d: Likewise.
4534         * testsuite/gas/i386/x86-64-optimize-2.s: Likewise.
4535         * testsuite/gas/i386/x86-64-optimize-3.d: Likewise.
4536         * testsuite/gas/i386/x86-64-optimize-3.s: Likewise.
4537         * testsuite/gas/i386/x86-64-optimize-4.d: Likewise.
4538         * testsuite/gas/i386/x86-64-optimize-4.s: Likewise.
4539
4540 2018-02-27  Nick Clifton  <nickc@redhat.com>
4541
4542         * po/ru.po: Updated Russian translation.
4543
4544 2018-02-26  Maciej W. Rozycki  <macro@mips.com>
4545
4546         * doc/as.texinfo (Pseudo Ops): Clean up `.dc' and `.ds'
4547         descriptions.
4548
4549 2018-02-26  Nick Clifton  <nickc@redhat.com>
4550
4551         * doc/as.texinfo (Dc): Fix typo.
4552
4553 2018-02-26  Alan Modra  <amodra@gmail.com>
4554
4555         * testsuite/gas/mips/reginfo-2.l: Update.
4556
4557 2018-02-23  Alan Modra  <amodra@gmail.com>
4558
4559         * testsuite/gas/mips/reginfo-2.l: Update.
4560
4561 2018-02-23  Nick Clifton  <nickc@redhat.com>
4562
4563         * doc/as.texinfo (Pseudo Ops): Add nodes for .dc, .dcb and .ds.
4564
4565 2018-02-23  Kuan-Lin Chen  <kuanlinchentw@gmail.com>
4566
4567         * config/tc-nds32.c (ict_model): New function. Hook new
4568         directive .ict_model.
4569         (nds32_insert_relax_entry): Tag the bits of entry relocation
4570         for .ict_model.
4571
4572 2018-02-22  H.J. Lu  <hongjiu.lu@intel.com>
4573
4574         * config/tc-i386.c (_i386_insn): Add rex_encoding.
4575         (md_assemble): When i.rex_encoding is true, generate a REX byte
4576         if possible.
4577         (parse_insn): Set i.rex_encoding for {rex}.
4578         * doc/c-i386.texi: Document {rex}.
4579         * testsuite/gas/i386/x86-64-pseudos.s: Add {rex} tests.
4580         * testsuite/gas/i386/x86-64-pseudos.d: Updated.
4581
4582 2018-02-22  A. Wilcox  <awilfox@adelielinux.org>
4583
4584         PR 22014
4585         * config/tc-mips.c (mips_lookup_insn): Use memmove to strip the
4586         instruction size suffix.
4587
4588 2018-02-20  Maciej W. Rozycki  <macro@mips.com>
4589
4590         * testsuite/gas/mips/mips16-branch-reloc-4.d: New test.
4591         * testsuite/gas/mips/mips16-branch-reloc-5.d: New test.
4592         * testsuite/gas/mips/mips16-branch-reloc-4.s: New test source.
4593         * testsuite/gas/mips/mips16-branch-reloc-5.s: New test source.
4594         * testsuite/gas/mips/mips.exp: Run the new tests.
4595
4596 2018-02-20  Max Filippov  <jcmvbkbc@gmail.com>
4597
4598         * config/tc-xtensa.c (struct litpool_frag): Add new field
4599         literal_count.
4600         (MAX_AUTO_POOL_LITERALS, MAX_EXPLICIT_POOL_LITERALS)
4601         (MAX_POOL_LITERALS): New macro definitions.
4602         (auto_litpool_limit): Initialize to 0.
4603         (md_parse_option): Set auto_litpool_limit in the presence of
4604         --auto-litpools option.
4605         (xtensa_maybe_create_literal_pool_frag): Zero-initialize
4606         literal_count field.
4607         (xg_find_litpool): New function. Make sure that found literal
4608         pool size is within the limit.
4609         (xtensa_move_literals): Extract literal pool search code into
4610         the new function.
4611         * testsuite/gas/xtensa/all.exp: Add auto-litpools-2 test.
4612         * testsuite/gas/xtensa/auto-litpools-2.d: New file.
4613         * testsuite/gas/xtensa/auto-litpools-2.s: New file.
4614         * testsuite/gas/xtensa/auto-litpools.d: Fix up changed
4615         addresses.
4616         * testsuite/gas/xtensa/auto-litpools.s: Change literal value so
4617         that objdump doesn't get out of sync.
4618
4619 2018-02-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4620
4621         * doc/c-arm.texi (.arch_extension): Mention extensions it accepts are
4622         also the same as -march.
4623
4624 2018-02-17  H.J. Lu  <hongjiu.lu@intel.com>
4625
4626         * NEWS: Mention .nop directive.
4627         * as.h (_relax_state): Add rs_space_nop and rs_fill_nop.
4628         * read.c (potable): Add .nop.
4629         (s_nop): New function.
4630         * read.h (s_nop): New prototype.
4631         * write.c (cvt_frag_to_fill): Handle rs_space_nop and
4632         rs_fill_nop.
4633         (md_generate_nops): New function.
4634         (relax_segment): Likewise.
4635         (write_contents): Use md_generate_nops for rs_fill_nop.
4636         * config/tc-i386.c (alt64_11): New.
4637         (alt64_patt): Likewise.
4638         (md_convert_frag): Handle rs_space_nop.
4639         (i386_output_nops): New function.
4640         (i386_generate_nops): Likewise.
4641         (i386_align_code): Call i386_output_nops.
4642         * config/tc-i386.h (i386_generate_nops): New.
4643         (md_generate_nops): Likewise.
4644         * doc/as.texinfo: Document .nop directive.
4645         * testsuite/gas/i386/i386.exp: Run .nop directive tests.
4646         * testsuite/gas/i386/nop-1.d: New file.
4647         * testsuite/gas/i386/nop-1.s: Likewise.
4648         * testsuite/gas/i386/nop-2.d: Likewise.
4649         * testsuite/gas/i386/nop-2.s: Likewise.
4650         * testsuite/gas/i386/nop-3.d: Likewise.
4651         * testsuite/gas/i386/nop-3.s: Likewise.
4652         * testsuite/gas/i386/nop-4.d: Likewise.
4653         * testsuite/gas/i386/nop-4.s: Likewise.
4654         * testsuite/gas/i386/nop-5.d: Likewise.
4655         * testsuite/gas/i386/nop-5.s: Likewise.
4656         * testsuite/gas/i386/nop-6.d: Likewise.
4657         * testsuite/gas/i386/nop-6.s: Likewise.
4658         * testsuite/gas/i386/nop-bad-1.l: Likewise.
4659         * testsuite/gas/i386/nop-bad-1.s: Likewise.
4660         * testsuite/gas/i386/x86-64-nop-1.d: Likewise.
4661         * testsuite/gas/i386/x86-64-nop-2.d: Likewise.
4662         * testsuite/gas/i386/x86-64-nop-3.d: Likewise.
4663         * testsuite/gas/i386/x86-64-nop-4.d: Likewise.
4664         * testsuite/gas/i386/x86-64-nop-5.d: Likewise.
4665         * testsuite/gas/i386/x86-64-nop-6.d: Likewise.
4666
4667 2018-02-15  Tamar Christina  <tamar.christina@arm.com>
4668
4669         * config/tc-arm.c (cpu_arch_ver): Renumber ARM_ARCH_V8_4A.
4670         * testsuite/gas/arm/attr-march-armv8_4-a.d: New.
4671
4672 2018-02-13  Max Filippov  <jcmvbkbc@gmail.com>
4673
4674         * config/tc-xtensa.c (xg_find_best_trampoline): Skip trampoline
4675         frag that contains source address.
4676
4677 2018-02-13  Nick Clifton  <nickc@redhat.com>
4678
4679         PR 22773
4680         * config/tc-arm.c (md_apply_fix): Test Rn field of Thumb ORR
4681         instruction before assuming that it is a MOV instruction.
4682         * testsuite/gas/arm/pr22773.s: New test.
4683         * testsuite/gas/arm/pr22773.d: New test driver.
4684         * testsuite/gas/arm/pr22773.l: New expected output.
4685
4686 2018-02-13  H.J. Lu  <hongjiu.lu@intel.com>
4687
4688         PR gas/22791
4689         * config/tc-i386.c (need_plt32_p): New function.
4690         (output_jump): Generate BFD_RELOC_X86_64_PLT32 if possible.
4691         (md_estimate_size_before_relax): Likewise.
4692         * testsuite/gas/i386/reloc64.d: Updated.
4693         * testsuite/gas/i386/x86-64-jump.d: Likewise.
4694         * testsuite/gas/i386/x86-64-mpx-branch-1.d: Likewise.
4695         * testsuite/gas/i386/x86-64-mpx-branch-2.d: Likewise.
4696         * testsuite/gas/i386/x86-64-relax-2.d: Likewise.
4697         * testsuite/gas/i386/x86-64-relax-3.d: Likewise.
4698         * testsuite/gas/i386/ilp32/reloc64.d: Likewise.
4699         * testsuite/gas/i386/ilp32/x86-64-branch.d: Likewise.
4700
4701 2018-02-13  Maciej W. Rozycki  <macro@mips.com>
4702
4703         * testsuite/gas/mips/loongson-3a-2.d: Rename test.
4704
4705 2018-02-13  Nick Clifton  <nickc@redhat.com>
4706
4707         PR 22823
4708         * config/obj-elf.c (elf_pseudo_table): Remove now redundant
4709         casts.
4710         (obj_elf_vtable_inherit): Rename to obj_elf_get_vtable_inherit.
4711         (obj_elf_vtable_inherit): New stub function that calls
4712         obj_elf_get_vtable_inherit.
4713         (obj_elf_vtable_entry): Rename to obj_elf_get_vtable_entry.
4714         (obj_elf_vtable_entry): New stub function that calls
4715         obj_elf_get_vtable_entry.
4716         * config/obj-elf.h (obj_elf_vtable_inherit): Update prototype.
4717         (obj_elf_vtable_entry) Likewise.
4718         (obj_elf_get_vtable_inherit) Likewise.
4719         (obj_elf_get_vtable_entry) Likewise.
4720         * config/tc-arm.c (md_pseudo_table): Remove now redundant cast.
4721         * config/tc-i386c (md_pseudo_table): Likewise.
4722         * config/tc-hppa.c (pa_vtable_entry): Call
4723         obj_elf_get_vtable_entry.
4724         (pa_vtable_inherit): Call obj_elf_get_vtable_inherit.
4725         * config/tc-mips.c (s_mips_file): Replace call to dwarf2_get_file
4726         with call to dwarf2_get_filename.
4727         * dwarf2dbg.c (dwarf2_directive_file): Rename to
4728         dwarf2_directive_filename.
4729         (dwarf2_directive_file): New stub function that calls
4730         dwarf2_directive_filename.
4731         * dwarf2dbg.h: Prototype dwarf2_directive_filename.
4732
4733 2018-02-12  Maciej W. Rozycki  <macro@mips.com>
4734
4735         * testsuite/gas/mips/reginfo-2-n32.d: Add `--no-pad-sections' to
4736         `as' flags.
4737
4738 2018-02-12  Henry Wong <henry@stuffedcow.net>
4739
4740         * testsuite/gas/mips/r6.d: Update for "sigrie" encoding fix.
4741         * testsuite/gas/mips/r6-n32.d: Likewise.
4742         * testsuite/gas/mips/r6-n64.d: Likewise.
4743
4744 2018-02-12  Nick Clifton  <nickc@redhat.com>
4745
4746         * po/ru.po: Updated Russian translation.
4747
4748 2018-02-08  Alan Modra  <amodra@gmail.com>
4749
4750         PR 22819
4751         * config/tc-ppc.c (md_assemble): Rewrite insn alignment checking.
4752         (ppc_frag_check): Likewise.
4753         * testsuite/gas/ppc/misalign.d,
4754         * testsuite/gas/ppc/misalign.l,
4755         * testsuite/gas/ppc/misalign.s: New test.
4756         * testsuite/gas/ppc/misalign2.d,
4757         * testsuite/gas/ppc/misalign2.s: New test.
4758         * testsuite/gas/ppc/ppc.exp: Run them.
4759
4760 2018-02-05  Maciej W. Rozycki  <macro@mips.com>
4761
4762         * config/tc-riscv.c (riscv_handle_implicit_zero_offset): Rename
4763         `expr' parameter to `ep'.
4764
4765 2018-02-05  Maciej W. Rozycki  <macro@mips.com>
4766
4767         * testsuite/gas/mips/reginfo-2.d: New test.
4768         * testsuite/gas/mips/reginfo-2-n32.d: New test.
4769         * testsuite/gas/mips/reginfo-2.l: New test stderr output.
4770         * testsuite/gas/mips/reginfo-2.s: New test source.
4771         * testsuite/gas/mips/mips.exp: Run the new tests.
4772
4773 2018-02-05  Nick Clifton  <nickc@redhat.com>
4774
4775         * po/ru.po: Updated Russian translation.
4776
4777 2018-01-31  Alan Modra  <amodra@gmail.com>
4778
4779         PR 22714
4780         * app.c (last_char): New static var.
4781         (struct app_save): Add last_char field.
4782         (app_push, app_pop): Handle it.
4783         (do_scrub_chars): Use last_char in test for "\@".  Set last_char.
4784
4785 2018-01-29  Eric Botcazou  <ebotcazou@adacore.com>
4786
4787         PR gas/22738
4788         * config/tc-sparc.h (sparc_mach): Declare.
4789         (TARGET_MACH): Define to above.
4790         * config/tc-sparc.c (sparc_mach): New function.
4791         (sparc_md_end): Minor tweak.
4792
4793 2018-01-29  Nick Clifton  <nickc@redhat.com>
4794
4795         * po/ru.po: Updated Russian translation.
4796
4797 2018-01-26  Maciej W. Rozycki  <macro@mips.com>
4798
4799         * configure.tgt: Use generic emulation for `mips-*-windiss',
4800         overriding the blanket choice made for `*-*-windiss'.
4801
4802 2018-01-26  Maciej W. Rozycki  <macro@mips.com>
4803
4804         * configure.tgt: Use `mips-*-sysv4*' rather than
4805         `mips-*-sysv4*MP*'.
4806
4807 2018-01-24  Renlin Li  <renlin.li@arm.com>
4808
4809         * config/tc-aarch64.c (reloc_table): add entries for
4810         BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
4811         BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
4812         BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
4813         BFD_RELOC_AARCH64_MOVW_PREL_G3.
4814         (process_movw_reloc_info): Supports newly added MOVW_PREL relocations.
4815         (md_apply_fix): Likewise
4816         * testsuite/gas/aarch64/prel_g0.s: New.
4817         * testsuite/gas/aarch64/prel_g0.d: New.
4818         * testsuite/gas/aarch64/prel_g0_nc.s: New.
4819         * testsuite/gas/aarch64/prel_g0_nc.d: New.
4820         * testsuite/gas/aarch64/prel_g1.s: New.
4821         * testsuite/gas/aarch64/prel_g1.d: New.
4822         * testsuite/gas/aarch64/prel_g1_nc.s: New.
4823         * testsuite/gas/aarch64/prel_g1_nc.d: New.
4824         * testsuite/gas/aarch64/prel_g2.s: New.
4825         * testsuite/gas/aarch64/prel_g2.d: New.
4826         * testsuite/gas/aarch64/prel_g2_nc.s: New.
4827         * testsuite/gas/aarch64/prel_g2_nc.d: New.
4828         * testsuite/gas/aarch64/prel_g3.s: New.
4829         * testsuite/gas/aarch64/prel_g3.d: New.
4830
4831 2018-01-23  Maciej W. Rozycki  <macro@mips.com>
4832
4833         * configure.ac: Also set `mips_default_abi' to N32_ABI for
4834         `mips64*-ps2-elf*'.
4835         * configure: Regenerate.
4836
4837 2018-01-23  Maciej W. Rozycki  <macro@mips.com>
4838
4839         * config/tc-mips.c (options): Remove OPTION_COMPAT_ARCH_BASE
4840         enum value.
4841
4842 2018-01-23  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
4843
4844         * config/tc-i386.c (cpu_arch): Add .pconfig.
4845         * doc/c-i386.texi: Document .pconfig.
4846         * testsuite/gas/i386/i386.exp: Add PCONFIG tests.
4847         * testsuite/gas/i386/pconfig-intel.d: New test.
4848         * testsuite/gas/i386/pconfig.d: Likewise.
4849         * testsuite/gas/i386/pconfig.s: Likewise.
4850         * testsuite/gas/i386/x86-64-pconfig-intel.d: Likewise.
4851         * testsuite/gas/i386/x86-64-pconfig.d: Likewise.
4852         * testsuite/gas/i386/x86-64-pconfig.s: Likewise.
4853
4854 2018-01-23  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
4855
4856         * config/tc-i386.c (cpu_arch): Add .wbnoinvd.
4857         * doc/c-i386.texi: Document .wbnoinvd.
4858         * testsuite/gas/i386/i386.exp: Add WBNOINVD tests.
4859         * testsuite/gas/i386/wbnoinvd-intel.d: New test.
4860         * testsuite/gas/i386/wbnoinvd.d: Likewise.
4861         * testsuite/gas/i386/wbnoinvd.s: Likewise.
4862         * testsuite/gas/i386/x86-64-wbnoinvd-intel.d: Likewise.
4863         * testsuite/gas/i386/x86-64-wbnoinvd.d: Likewise.
4864         * testsuite/gas/i386/x86-64-wbnoinvd.s: Likewise.
4865
4866 2018-01-23  Maciej W. Rozycki  <macro@mips.com>
4867
4868         * config/tc-mips.c (md_show_usage): Correctly indicate the
4869         configuration-specific default ABI.
4870
4871 2018-01-23  Maciej W. Rozycki  <macro@mips.com>
4872
4873         * config/tc-mips.c (md_show_usage): Report `-mmips16e2' and
4874         `-mno-mips16e2' options.
4875
4876 2018-01-22  Maciej W. Rozycki  <macro@mips.com>
4877
4878         * doc/c-mips.texi (MIPS ASE Instruction Generation Overrides):
4879         Correct syntax of the `.set nomips16e2' directive description.
4880
4881 2018-01-22  Oleg Endo  <olegendo@gcc.gnu.org>
4882
4883         PR 22737
4884         * config/tc-rx.c (rx_start_line): Handle escaped double-quote character.
4885         * testsuite/gas/rx/pr22737.s: New test.
4886         * testsuite/gas/rx/pr22737.d: Likewise.
4887         * testsuite/gas/rx/rx.exp: Run the new test.
4888
4889 2018-01-19  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4890
4891         * config/tc-arm.c (ToC macro): Remove spurious comment.
4892         (ToU macro): Likewise.
4893
4894 2018-01-17  Jim Wilson  <jimw@sifive.com>
4895
4896         * config/tc-riscv.c (validate_riscv_insn) <'z'>: New.
4897         (riscv_ip) <'z'>: New.
4898
4899 2018-01-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
4900
4901         * config/tc-i386.c (cpu_arch): Delete .cet. Add .ibt, .shstk.
4902         (cpu_noarch): Add noibt, noshstk.
4903         (parse_insn): Change cpucet to cpuibt.
4904         * doc/c-i386.texi: Delete .cet. Add .ibt, .shstk.
4905         * testsuite/gas/i386/cet-ibt-inval.l: New test.
4906         * testsuite/gas/i386/cet-ibt-inval.s: Likewise.
4907         * testsuite/gas/i386/cet-shstk-inval.l: Likewise.
4908         * testsuite/gas/i386/cet-shstk-inval.s: Likewise.
4909         * testsuite/gas/i386/x86-64-cet-ibt-inval.l: Likewise.
4910         * testsuite/gas/i386/x86-64-cet-ibt-inval.s: Likewise.
4911         * testsuite/gas/i386/x86-64-cet-shstk-inval.l: Likewise.
4912         * testsuite/gas/i386/x86-64-cet-shstk-inval.s: Likewise.
4913
4914 2018-01-16  Nick Clifton  <nickc@redhat.com>
4915
4916         * po/fr.po: Updated French translation.
4917
4918 2018-01-15  Jim Wilson  <jimw@sifive.com>
4919
4920         * testsuite/gas/riscv/c-zero-imm.s: Test addi that compresses to c.nop.
4921         * testsuite/gas/riscv/c-zero-imm.d: Likewise.
4922
4923 2018-01-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4924
4925         * config/tc-arm.c (ToC): Define macro.
4926         (ToU): Likewise.
4927         (insns): Make use of above macros for new instructions introduced in
4928         Armv8-M.
4929
4930 2018-01-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4931
4932         * config/tc-arm.c (insns): Make blxns, bxns, tt, ttt, tta, ttat, vlldm
4933         and vlstm conditionally executable and reindent parameters.
4934         * testsuite/gas/arm/archv8m-cmse-main.s: Add conditional version of
4935         aforementionned instructions.
4936
4937 2018-01-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4938
4939         * config/tc-arm.c (it_fsm_post_encode): Do not warn if targeting M
4940         profile architecture or if in autodetection mode.  Clarify that
4941         deprecation is for performance reason and concerns Armv8-A and Armv8-R.
4942         * testsuite/gas/arm/armv8-ar-bad.l: Adapt to new IT deprecation warning
4943         message.
4944         * testsuite/gas/arm/armv8-ar-it-bad.l: Likewise.
4945         * testsuite/gas/arm/sp-pc-validations-bad-t-v8a.l: Likewise.
4946         * testsuite/gas/arm/udf.l: Likewise.
4947         * testsuite/gas/arm/udf.d: Assemble for Armv8-A explicitely.
4948
4949 2018-01-15  Nick Clifton  <nickc@redhat.com>
4950
4951         * po/uk.po: Updated Ukranian translation.
4952
4953 2018-01-13  Nick Clifton  <nickc@redhat.com>
4954
4955         * po/gas.pot: Regenerated.
4956
4957 2018-01-13  Nick Clifton  <nickc@redhat.com>
4958
4959         * configure: Regenerate.
4960
4961 2018-01-13  Nick Clifton  <nickc@redhat.com>
4962
4963         2.30 branch created.
4964         * NEWS: Add marker for 2.30.
4965
4966 2018-01-12  Gunther Nikl  <gnikl@users.sourceforge.net>
4967
4968         * gas/config/aout_gnu.h (USE_EXTENDED_RELOC): Explicitly
4969         define to 0 and 1. Remove a dangling reference to "AMD 29000"
4970         in a comment.
4971
4972 2018-01-11  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
4973
4974         * testsuite/i386/avx512_4fmaps_vl-warn.l: Likewise.
4975         * testsuite/i386/avx512_4fmaps_vl-warn.s: Likewise.
4976         * testsuite/i386/avx512_4fmaps_vl.d: Likewise.
4977         * testsuite/i386/avx512_4fmaps_vl.s: Likewise.
4978         * testsuite/i386/avx512_4vnniw_vl-intel.d: Likewise.
4979         * testsuite/i386/avx512_4vnniw_vl.d: Likewise.
4980         * testsuite/i386/avx512_4vnniw_vl.s: Likewise.
4981         * testsuite/i386/i386.exp: Removed _vl tests for 4fmaps an 4vnniw
4982         tests.
4983         * testsuite/i386/x86-64-avx512_4fmaps_vl-intel.d: Removed.
4984         * testsuite/i386/x86-64-avx512_4fmaps_vl-warn.l: Likewise.
4985         * testsuite/i386/x86-64-avx512_4fmaps_vl-warn.s: Likewise.
4986         * testsuite/i386/x86-64-avx512_4fmaps_vl.d: Likewise.
4987         * testsuite/i386/x86-64-avx512_4fmaps_vl.s: Likewise.
4988         * testsuite/i386/x86-64-avx512_4vnniw_vl-intel.d: Likewise.
4989         * testsuite/i386/x86-64-avx512_4vnniw_vl.d: Likewise.
4990         * testsuite/i386/x86-64-avx512_4vnniw_vl.s: Likewise.
4991
4992 2018-01-11  Alan Modra  <amodra@gmail.com>
4993
4994         * config/tc-arm.c (aeabi_set_public_attributes): Avoid false
4995         positive "‘profile’ may be used uninitialized".
4996
4997 2018-01-10  Jan Beulich  <jbeulich@suse.com>
4998
4999         * testsuite/gas/i386/avx512_4fmaps.s,
5000         testsuite/gas/i386/avx512_4fmaps_vl.s,
5001         testsuite/gas/i386/x86-64-avx512_4fmaps.s,
5002         testsuite/gas/i386/x86-64-avx512_4fmaps_vl.s: Actually test
5003         Disp8 forms (and the transition happening at the right
5004         boundary).
5005         * testsuite/gas/i386/avx512_4fmaps.d,
5006         testsuite/gas/i386/avx512_4fmaps-intel.d,
5007         testsuite/gas/i386/avx512_4fmaps_vl.d,
5008         testsuite/gas/i386/avx512_4fmaps_vl-intel.d,
5009         testsuite/gas/i386/x86-64-avx512_4fmaps.d,
5010         testsuite/gas/i386/x86-64-avx512_4fmaps-intel.d,
5011         testsuite/gas/i386/x86-64-avx512_4fmaps_vl.d,
5012         testsuite/gas/i386/x86-64-avx512_4fmaps_vl-intel.d: Adjust
5013         expectations.
5014
5015 2018-01-10  Jan Beulich  <jbeulich@suse.com>
5016
5017         * testsuite/gas/i386/avx512bw.s,
5018         testsuite/gas/i386/avx512bw_vl.s: Add VPCMP* tests with memory
5019         operands.
5020         * testsuite/gas/i386/avx512bw-intel.d,
5021         testsuite/gas/i386/avx512bw.d,
5022         testsuite/gas/i386/avx512bw_vl-intel.d.
5023         testsuite/gas/i386/avx512bw_vl.d: Adjust expectations.
5024
5025 2018-01-09  Jim Wilson  <jimw@sifive.com>
5026
5027         * testsuite/gas/riscv/auipc-x0.d: New.
5028         * testsuite/gas/riscv/auipc-x0.s: New.
5029
5030 2018-01-09  James Greenhalgh  <james.greenhalgh@arm.com>
5031
5032         * config/tc-arm.c (insns): Add csdb, enable for Armv3 and above
5033         in Arm execution state, and Armv6T2 and above in Thumb execution
5034         state.
5035         * testsuite/gas/arm/csdb.s: New.
5036         * testsuite/gas/arm/csdb.d: New.
5037         * testsuite/gas/arm/thumb2_it_bad.l: Add csdb.
5038         * testsuite/gas/arm/thumb2_it_bad.s: Add csdb.
5039
5040 2018-01-09  James Greenhalgh  <james.greenhalgh@arm.com>
5041
5042         * testsuite/gas/aarch64/system.d: Update expected results to expect
5043         CSDB for hint 0x14.
5044
5045 2018-01-08  H.J. Lu  <hongjiu.lu@intel.com>
5046
5047         PR gas/22681
5048         * testsuite/gas/i386/i386.exp: Run x86-64-movd and
5049         x86-64-movd-intel.
5050         * testsuite/gas/i386/x86-64-movd-intel.d: New file.
5051         * testsuite/gas/i386/x86-64-movd.d: Likewise.
5052         * testsuite/gas/i386/x86-64-movd.s: Likewise.
5053
5054 2018-01-08  Nick Clifton  <nickc@redhat.com>
5055
5056         PR 22553
5057         * doc/c-i386.texi (i386-Directives): Document the .largecomm
5058         directive.
5059
5060 2018-01-04  Jim Wilson  <jimw@sifive.com>
5061
5062         * testsuite/gas/riscv/priv-reg.s: Add missing stval and mtval.
5063         * testsuite/gas/riscv/priv-reg.d: Likewise.
5064
5065 2018-01-03  Alan Modra  <amodra@gmail.com>
5066
5067         Update year range in copyright notice of all files.
5068
5069 2018-01-02  Nick Clifton  <nickc@redhat.com>
5070
5071         PR 18119
5072         * config/tc-arm.c (do_mrs): Fix test of bits 16-19 in non-banked
5073         version of ARM MRS instruction.
5074
5075 For older changes see ChangeLog-2017
5076 \f
5077 Copyright (C) 2018 Free Software Foundation, Inc.
5078
5079 Copying and distribution of this file, with or without modification,
5080 are permitted in any medium without royalty provided the copyright
5081 notice and this notice are preserved.
5082
5083 Local Variables:
5084 mode: change-log
5085 left-margin: 8
5086 fill-column: 74
5087 version-control: never
5088 End: