Remove m88k support
[external/binutils.git] / gas / ChangeLog
1 2018-04-16  Alan Modra  <amodra@gmail.com>
2
3         * configure.ac: Remove m88k support.
4         * config.in: Regenerate.
5         * configure: Regenerate.
6
7 2018-04-16  Alan Modra  <amodra@gmail.com>
8
9         * Makefile.am: Remove i370 support.
10         * app.c: Likewise.
11         * config/obj-elf.c: Likewise.
12         * configure.tgt: Likewise.
13         * doc/Makefile.am: Likewise.
14         * doc/as.texinfo: Likewise.
15         * testsuite/gas/all/gas.exp: Likewise.
16         * testsuite/gas/elf/warn-2.s: Likewise.
17         * testsuite/gas/lns/lns.exp: Likewise.
18         * config/tc-i370.c: Delete.
19         * config/tc-i370.h: Delete.
20         * doc/c-i370.texi: Delete.
21         * Makefile.in: Regenerate.
22         * doc/Makefile.in: Regenerate.
23         * po/POTFILES.in: Regenerate.
24
25 2018-04-16  Alan Modra  <amodra@gmail.com>
26
27         * config/obj-coff.h: Remove h8500 support.
28
29 2018-04-16  Alan Modra  <amodra@gmail.com>
30
31         * config/obj-coff.h: Remove h8300-coff support.
32         * config/tc-h8300.c: Likewise.
33         * config/tc-h8300.h: Likewise.
34         * testsuite/gas/h8300/h8300.exp: Likewise.
35         * testsuite/gas/h8300/branch-coff.s: Delete.
36         * testsuite/gas/h8300/branchh-coff.s: Delete.
37         * testsuite/gas/h8300/branchs-coff.s: Delete.
38         * testsuite/gas/h8300/ffxx1-coff.d: Delete.
39         * testsuite/gas/h8300/ffxx1-coff.s: Delete.
40         * testsuite/gas/h8300/h8300-coff.exp: Delete.
41
42 2018-04-16  Alan Modra  <amodra@gmail.com>
43
44         * app.c: Remove IEEE 695 support.
45         * symbols.c: Likewise.
46
47 2018-04-16  Alan Modra  <amodra@gmail.com>
48
49         * Makefile.am: Remove netware support.
50         * config/tc-i386.c: Likewise.
51         * configure.tgt: Likewise.
52         * config/te-netware.h: Delete.
53         * Makefile.in: Regenerate.
54         * po/POTFILES.in: Regenerate.
55
56 2018-04-15  H.J. Lu  <hongjiu.lu@intel.com>
57
58         * testsuite/gas/i386/x86-64-waitpkg.s: Add 32-bit registers
59         tests for tpause and umwait.
60         * testsuite/gas/i386/x86-64-waitpkg-intel.d: Updated.
61         * testsuite/gas/i386/x86-64-waitpkg.d: Likewise.
62
63 2018-04-12  John Darrington  <john@darrington.wattle.id.au>
64
65         * as.c (main): Fail if the output is the same as one of the input
66         files.
67         * testsuite/gas/all/gas.exp: Test the new feature.
68
69 2018-04-12  Nick Clifton  <nickc@redhat.com>
70
71         * po/es.po: Updated Spanish translation.
72         * po/ru.po: Updated Russian translation.
73
74 2018-04-11  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
75
76         * config/tc-i386.c (cpu_arch): Add WAITPKG.
77         (cpu_noarch): Likewise.
78         * doc/c-i386.texi: Document WAITPKG.
79         * i386/i386.exp: Run WAITPKG tests.
80         * testsuite/gas/i386/waitpkg-intel.d: New test.
81         * testsuite/gas/i386/waitpkg.d: Likewise.
82         * testsuite/gas/i386/waitpkg.s: Likewise.
83         * testsuite/gas/i386/x86-64-waitpkg-intel.d: Likewise.
84         * testsuite/gas/i386/x86-64-waitpkg.d: Likewise.
85         * testsuite/gas/i386/x86-64-waitpkg.s: Likewise.
86
87 2018-04-11  Alan Modra  <amodra@gmail.com>
88
89         * config/aout_gnu.h: Delete.
90         * config/tc-i860.c: Delete.
91         * config/tc-i860.h: Delete.
92         * config/tc-i960.c: Delete.
93         * config/tc-i960.h: Delete.
94         * doc/c-i860.texi: Delete.
95         * doc/c-i960.texi: Delete.
96         * testsuite/gas/i860/README.i860: Delete.
97         * testsuite/gas/i860/bitwise.d: Delete.
98         * testsuite/gas/i860/bitwise.s: Delete.
99         * testsuite/gas/i860/branch.d: Delete.
100         * testsuite/gas/i860/branch.s: Delete.
101         * testsuite/gas/i860/bte.d: Delete.
102         * testsuite/gas/i860/bte.s: Delete.
103         * testsuite/gas/i860/dir-align01.d: Delete.
104         * testsuite/gas/i860/dir-align01.s: Delete.
105         * testsuite/gas/i860/dir-intel01.d: Delete.
106         * testsuite/gas/i860/dir-intel01.s: Delete.
107         * testsuite/gas/i860/dir-intel02.d: Delete.
108         * testsuite/gas/i860/dir-intel02.s: Delete.
109         * testsuite/gas/i860/dir-intel03-err.l: Delete.
110         * testsuite/gas/i860/dir-intel03-err.s: Delete.
111         * testsuite/gas/i860/dual01.d: Delete.
112         * testsuite/gas/i860/dual01.s: Delete.
113         * testsuite/gas/i860/dual02-err.l: Delete.
114         * testsuite/gas/i860/dual02-err.s: Delete.
115         * testsuite/gas/i860/dual03.d: Delete.
116         * testsuite/gas/i860/dual03.s: Delete.
117         * testsuite/gas/i860/fldst01.d: Delete.
118         * testsuite/gas/i860/fldst01.s: Delete.
119         * testsuite/gas/i860/fldst02.d: Delete.
120         * testsuite/gas/i860/fldst02.s: Delete.
121         * testsuite/gas/i860/fldst03.d: Delete.
122         * testsuite/gas/i860/fldst03.s: Delete.
123         * testsuite/gas/i860/fldst04.d: Delete.
124         * testsuite/gas/i860/fldst04.s: Delete.
125         * testsuite/gas/i860/fldst05.d: Delete.
126         * testsuite/gas/i860/fldst05.s: Delete.
127         * testsuite/gas/i860/fldst06.d: Delete.
128         * testsuite/gas/i860/fldst06.s: Delete.
129         * testsuite/gas/i860/fldst07.d: Delete.
130         * testsuite/gas/i860/fldst07.s: Delete.
131         * testsuite/gas/i860/fldst08.d: Delete.
132         * testsuite/gas/i860/fldst08.s: Delete.
133         * testsuite/gas/i860/float01.d: Delete.
134         * testsuite/gas/i860/float01.s: Delete.
135         * testsuite/gas/i860/float02.d: Delete.
136         * testsuite/gas/i860/float02.s: Delete.
137         * testsuite/gas/i860/float03.d: Delete.
138         * testsuite/gas/i860/float03.s: Delete.
139         * testsuite/gas/i860/float04.d: Delete.
140         * testsuite/gas/i860/float04.s: Delete.
141         * testsuite/gas/i860/form.d: Delete.
142         * testsuite/gas/i860/form.s: Delete.
143         * testsuite/gas/i860/i860.exp: Delete.
144         * testsuite/gas/i860/iarith.d: Delete.
145         * testsuite/gas/i860/iarith.s: Delete.
146         * testsuite/gas/i860/ldst01.d: Delete.
147         * testsuite/gas/i860/ldst01.s: Delete.
148         * testsuite/gas/i860/ldst02.d: Delete.
149         * testsuite/gas/i860/ldst02.s: Delete.
150         * testsuite/gas/i860/ldst03.d: Delete.
151         * testsuite/gas/i860/ldst03.s: Delete.
152         * testsuite/gas/i860/ldst04.d: Delete.
153         * testsuite/gas/i860/ldst04.s: Delete.
154         * testsuite/gas/i860/ldst05.d: Delete.
155         * testsuite/gas/i860/ldst05.s: Delete.
156         * testsuite/gas/i860/ldst06.d: Delete.
157         * testsuite/gas/i860/ldst06.s: Delete.
158         * testsuite/gas/i860/pfam.d: Delete.
159         * testsuite/gas/i860/pfam.s: Delete.
160         * testsuite/gas/i860/pfmam.d: Delete.
161         * testsuite/gas/i860/pfmam.s: Delete.
162         * testsuite/gas/i860/pfmsm.d: Delete.
163         * testsuite/gas/i860/pfmsm.s: Delete.
164         * testsuite/gas/i860/pfsm.d: Delete.
165         * testsuite/gas/i860/pfsm.s: Delete.
166         * testsuite/gas/i860/pseudo-ops01.d: Delete.
167         * testsuite/gas/i860/pseudo-ops01.s: Delete.
168         * testsuite/gas/i860/regress01.d: Delete.
169         * testsuite/gas/i860/regress01.s: Delete.
170         * testsuite/gas/i860/shift.d: Delete.
171         * testsuite/gas/i860/shift.s: Delete.
172         * testsuite/gas/i860/simd.d: Delete.
173         * testsuite/gas/i860/simd.s: Delete.
174         * testsuite/gas/i860/system.d: Delete.
175         * testsuite/gas/i860/system.s: Delete.
176         * testsuite/gas/i860/xp.d: Delete.
177         * testsuite/gas/i860/xp.s: Delete.
178         * Makefile.am: Remove i860 and i960 support.
179         * configure.tgt: Likewise.
180         * doc/Makefile.am: Likewise.
181         * doc/all.texi: Likewise.
182         * testsuite/gas/all/gas.exp
183         * config/obj-coff.h: Remove i960 support.
184         * doc/internals.texi: Likewise.
185         * expr.c: Likewise.
186         * read.c: Likewise.
187         * write.c: Likewise.
188         * write.h: Likewise.
189         * testsuite/gas/lns/lns.exp: Likewise.
190         * testsuite/gas/symver/symver.exp: Likewise.
191         * config/tc-m68k.c: Remove BOUT support.
192         * config/tc-score.c: Likewise.
193         * config/tc-score7.c: Likewise.
194         * config/tc-sparc.c: Likewise.
195         * symbols.c: Likewise.
196         * doc/h8.texi: Likewise.
197         * configure.ac: Remove BOUT and i860 support.
198         * doc/as.texinfo: Remove BOUT, i860 and i960 support
199         * Makefile.in: Regenerate.
200         * config.in: Regenerate.
201         * configure: Regenerate.
202         * doc/Makefile.in: Regenerate.
203         * po/POTFILES.in: Regenerate.
204
205 2018-04-05  H.J. Lu  <hongjiu.lu@intel.com>
206
207         PR gas/22318
208         * configure: Regenerated.
209
210 2018-04-04  H.J. Lu  <hongjiu.lu@intel.com>
211
212         PR binutils/23025
213         * testsuite/gas/i386/prefix.s: Add tests for vcvtpd2dq with
214         VEX and EVEX prefixes.
215         * testsuite/gas/i386/prefix.d: Updated.
216
217 2018-03-30  Peter Bergner <bergner@vnet.ibm.com>
218
219         PR binutils/23013
220         * config/tc-ppc.c (ppc_set_cpu): Select appropriate cpu when ppc_obj64
221         and little endian.
222
223 2018-03-28  Renlin Li  <renlin.li@arm.com>
224
225         PR ld/22970
226         * config/tc-aarch64.c (reloc_table): Update entry for tprel_lo12 and
227         tprel_lo12_nc with pseudo relocations.
228         (ldst_lo12_determine_real_reloc_type): Add new relocations support.
229         (parse_operands): Handle BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12 and
230         BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12_NC pseudo relocations.
231         (md_apply_fix): Add handling for new relocation.
232         (aarch64_force_relocation): Likewise.
233         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst16.d: New.
234         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst16.s: New.
235         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst32.d: New.
236         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst32.s: New.
237         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst64.d: New.
238         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst64.s: New.
239         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst8.d: New.
240         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst8.s: New.
241         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst16.d: New.
242         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst16.s: New.
243         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst32.d: New.
244         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst32.s: New.
245         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst64.d: New.
246         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst64.s: New.
247         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst8.d: New.
248         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst8.s: New.
249         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst16-ilp32.d: New.
250         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst32-ilp32.d: New.
251         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst64-ilp32.d: New.
252         * testsuite/gas/aarch64/reloc-tprel_lo12-ldst8-ilp32.d: New.
253         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst16-ilp32.d: New.
254         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst32-ilp32.d: New.
255         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst64-ilp32.d: New.
256         * testsuite/gas/aarch64/reloc-tprel_lo12_nc-ldst8-ilp32.d: New.
257
258 2018-03-28  Jan Beulich  <jbeulich@suse.com>
259
260         * config/tc-i386.c (check_VecOperands): Replace uses of
261         .vecesize. Always initialize op.
262         * testsuite/gas/i386/avx512_vpopcntdq.s,
263         testsuite/gas/i386/avx512bitalg_vl.s: Add Intel syntax vpopcnt
264         broadcast cases with explicit operand size.
265         * testsuite/gas/i386/avx512_vpopcntdq.d,
266         testsuite/gas/i386/avx512_vpopcntdq-intel.d,
267         testsuite/gas/i386/avx512bitalg_vl.d
268         testsuite/gas/i386/avx512bitalg_vl-intel.d: Adjust expectations.
269
270 2018-03-28  Jan Beulich  <jbeulich@suse.com>
271
272         * config/tc-i386.c (struct Broadcast_Operation): Adjust comment.
273         (check_VecOperands): Re-write broadcast validation code.
274         (check_VecOperations): Replace BROADCAST_1TO* uses.
275         * testsuite/gas/i386/inval-avx512f.s: Add various broadcast
276         cases.
277         * testsuite/gas/i386/inval-avx512f.l: Adjust expectations.
278
279 2018-03-28  Jan Beulich  <jbeulich@suse.com>
280
281         * config/tc-i386.c (process_suffix): Check .todword/.toqword
282         before zapping suffix.
283
284 2018-03-28  Jan Beulich  <jbeulich@suse.com>
285
286         * testsuite/gas/i386/ilp32/x86-64-simd-suffix.d,
287         testsuite/gas/i386/x86-64-simd-suffix.d: Drop q suffix from
288         cvt*2si.
289
290 2018-03-28  Nick Clifton  <nickc@redhat.com>
291
292         PR 22988
293         * config/tc-aarch64.c (parse_operands): Add code to handle
294         AARCH64_OPN_SVE_ADDR_R.
295         * testsuite/gas/aarch64/sve.s: Add tests for LDFF1xx instructions
296         with an assumed XZR offset address register.
297         * testsuite/gas/aarch64/sve.d: Update expected disassembly.
298
299 2018-03-22  Jan Beulich  <jbeulich@suse.com>
300
301         * config/tc-i386.c (check_VecOperands): Latch
302         i.broadcast->operand into op.
303
304 2018-03-22  Jan Beulich  <jbeulich@suse.com>
305
306         * config/tc-i386.c (match_template): Special case base opcode
307         0xa0 with HLE prefix.
308         * testsuite/gas/i386/hle.s: Add mov-accumulator-to-disp cases.
309         * testsuite/gas/i386/hle.d, testsuite/gas/i386/hle-intel.d:
310         Adjust expectations.
311
312 2018-03-22  Jan Beulich  <jbeulich@suse.com>
313
314         * testsuite/gas/i386/opts.s: Add bndmov cases.
315         * testsuite/gas/i386/opts.d, testsuite/gas/i386/opts-intel.d,
316         testsuite/gas/i386/sse2avx-opts.d,
317         testsuite/gas/i386/sse2avx-opts-intel.d: Adjust expectations.
318
319 2018-03-22  Jan Beulich  <jbeulich@suse.com>
320
321         * config/tc-i386.c (match_mem_size): Extend sub-xmmword
322         exceptions.
323         * testsuite/gas/i386/xmmword.l, testsuite/gas/i386/xmmword.s:
324         New.
325         * testsuite/gas/i386/i386.exp: Run new test.
326
327 2018-03-22  Jan Beulich  <jbeulich@suse.com>
328
329         * config/tc-i386.c (match_template): Also match 2nd and 4th
330         operand's register sizes.
331         * testsuite/gas/i386/unspec.l, testsuite/gas/i386/unspec.s: New.
332         * testsuite/gas/i386/i386.exp: Run new test.
333
334 2018-03-19  Nick Clifton  <nickc@redhat.com>
335
336         * po/uk.po: Updated Ukranian translation.
337
338 2018-03-16  Jim Wilson  <jimw@sifive.com>
339
340         * config/tc-riscv.c (check_absolute_expr): Expand comment.  New
341         parameter maybe_csr.  If maybe_csr and O_symbol, print CSR name.
342         (riscv_ip): Add new argument to check_absolute_expr calls.
343         * testsuite/gas/riscv/bad-csr.d: New.
344         * testsuite/gas/riscv/bad-csr.l: New.
345         * testsuite/gas/riscv/bad-csr.s: New.
346
347 2018-03-14  Kito Cheng  <kito.cheng@gmail.com>
348
349         * config/tc-riscv.c (opcode_name_list): New.
350         (opcode_names_hash): Likewise.
351         (init_opcode_names_hash): Likewise.
352         (opcode_name_lookup): Likewise.
353         (validate_riscv_insn): New argument length, and add new format
354         which used in .insn directive.
355         (md_begin): Refine hash table initialization logic into
356         init_opcode_hash.
357         (init_opcode_hash): New.
358         (my_getOpcodeExpression): Parse opcode name for .insn.
359         (riscv_ip): New argument hash, able to handle .insn directive.
360         (s_riscv_insn): Handler for .insn directive.
361         (riscv_pseudo_table): New entry for .insn.
362         * doc/c-riscv.texi: Add documentation for .insn directive.
363         * testsuite/gas/riscv/insn.d: Add testcase for .insn directive.
364         * testsuite/gas/riscv/insn.s: Likewise.
365
366 2018-03-13  Nick Clifton  <nickc@redhat.com>
367
368         * po/ru.po: Updated Russian translation.
369
370 2018-03-09  H.J. Lu  <hongjiu.lu@intel.com>
371
372         * config/tc-i386.c (optimize_encoding): Encode EVEX instructions
373         with VEX128 if EVEX encoding isn't required.
374         * testsuite/gas/i386/optimize-1.d: Updated.
375         * testsuite/gas/i386/x86-64-optimize-2.d: Likewise.
376
377 2018-03-09  H.J. Lu  <hongjiu.lu@intel.com>
378
379         * config/tc-i386.c (check_VecOperations): Strip whitespace.
380         * testsuite/gas/i386/optimize-1.s: Add whitespaces before
381         {%k7} and {z},
382         * testsuite/gas/i386/x86-64-optimize-2.s: Likewise.
383
384 2018-03-08  H.J. Lu  <hongjiu.lu@intel.com>
385
386         * config/tc-i386.c (set_cpu_arch): Set cpu_arch_isa_flags.
387         (md_parse_option): Likewise.
388         (optimize_encoding): Check i.tm.cpu_flags and cpu_arch_isa_flags
389         for cpuavx512vl instead of cpu_arch_flags.  Optimize EVEX with
390         EVEX128 when EVEX encoding is required.
391         * testsuite/gas/i386/i386.exp: Run optimize-4, optimize-5,
392         x86-64-optimize-5 and x86-64-optimize-6.
393         * testsuite/gas/i386/optimize-1.d: Updated.
394         * testsuite/gas/i386/x86-64-optimize-2.d: Likewise.
395         * testsuite/gas/i386/optimize-4.d: New file.
396         * testsuite/gas/i386/optimize-4.s: Likewise.
397         * testsuite/gas/i386/optimize-5.d: Likewise.
398         * testsuite/gas/i386/optimize-5.s: Likewise.
399         * testsuite/gas/i386/x86-64-optimize-5.d: Likewise.
400         * testsuite/gas/i386/x86-64-optimize-5.s: Likewise.
401         * testsuite/gas/i386/x86-64-optimize-6.d: Likewise.
402         * testsuite/gas/i386/x86-64-optimize-6.s: Likewise.
403
404 2018-03-08  H.J. Lu  <hongjiu.lu@intel.com>
405
406         * config/tc-i386.c (optimize_encoding): Also encode "clr reg64"
407         as "xor reg32, reg32".
408         * testsuite/gas/i386/x86-64-optimize-1.s: Add "clr reg64" tests.
409         * testsuite/gas/i386/x86-64-optimize-1.d: Updated.
410
411 2018-03-08  H.J. Lu  <hongjiu.lu@intel.com>
412
413         * NEWS: Mention -mold-gcc removal.
414         * config/tc-i386.c (i386_error): Remove old_gcc_only.
415         (old_gcc): Removed.
416         (match_template): Remove old gcc support.
417         (OPTION_MOLD_GCC): Removed.
418         (OPTION_MRELAX_RELOCATIONS): Updated.
419         (md_longopts): Remove OPTION_MOLD_GCC.
420         (md_parse_option): Likewise.
421         (md_show_usage): Remove -mold-gcc.
422         * testsuite/gas/i386/general.s: Convert fsub/fdiv tests for old
423         (<= 2.8.1) versions of gcc.
424         * testsuite/gas/i386/intel.s: Likewise.
425         * testsuite/gas/i386/general.l: Updated.
426         * testsuite/gas/i386/intel-intel.d: Likewise.
427         * testsuite/gas/i386/intel.d: Likewise.
428         * testsuite/gas/i386/intel.e: Likewise.
429         * testsuite/gas/i386/i386.exp: Don't pass -mold-gcc to general.
430
431 2018-03-08  Jan Beulich  <jbeulich@suse.com>
432
433         * config/tc-i386.c (is_evex_encoding): New.
434         (optimize_encoding, md_assemble, md_assemble,
435         VEX_check_operands, build_modrm_byte): Use is_evex_encoding.
436         (build_evex_prefix): Derive EVEX length field from actual
437         operands if the template allows multiple ones.
438
439 2018-03-08  Jan Beulich  <jbeulich@suse.com>
440
441         * config/tc-i386.c (build_modrm_byte): Make VexNDD handling cope
442         with 3rd (immediate) operand.
443
444 2018-03-08  Jan Beulich  <jbeulich@suse.com>
445
446         * config/tc-i386.c (XMMWORD_MNEM_SUFFIX, YMMWORD_MNEM_SUFFIX,
447         ZMMWORD_MNEM_SUFFIX): Delete.
448         (process_suffix): Drop their uses. Re-arrange final part of
449         logic into a switch() statement. Drop special casing of
450         cmpxchg8b.
451
452 2018-03-08  Jan Beulich  <jbeulich@suse.com>
453
454         * config/tc-i386.c (match_template): Also match register
455         operands 0 and 2 for 3-operand forms.
456         * testsuite/gas/i386/unspec64.l, testsuite/gas/i386/unspec64.s:
457         New.
458         * testsuite/gas/i386/i386.exp: Run new test.
459
460 2018-03-08  Jan Beulich  <jbeulich@suse.com>
461
462         * config/tc-i386.c (process_suffix): Do common part of register
463         checks first.
464
465 2018-03-08  Jan Beulich  <jbeulich@suse.com>
466
467         * config/tc-i386.c (parse_insn): Move success return up. Combine
468         failure returns.
469
470 2018-03-08  Jan Beulich  <jbeulich@suse.com>
471
472         * config/tc-i386.c (cpu_flags_match): Add GFNI check to AVX
473         logic. Add respective logic for AVX512F.
474         * testsuite/gas/i386/arch-avx-1.s: Add GFNI test.
475         testsuite/gas/i386/arch-avx-1.d,
476         testsuite/gas/i386/arch-avx-1-1.l,
477         testsuite/gas/i386/arch-avx-1-2.l,
478         testsuite/gas/i386/arch-avx-1-3.l,
479         testsuite/gas/i386/arch-avx-1-4.l,
480         testsuite/gas/i386/arch-avx-1-5.l,
481         testsuite/gas/i386/arch-avx-1-6.l: Adjust expectations.
482         * testsuite/gas/i386/arch-avx-1-7.l,
483         testsuite/gas/i386/arch-avx-1-7.s,
484         testsuite/gas/i386/arch-avx-1-8.l,
485         testsuite/gas/i386/arch-avx-1-8.s,
486         testsuite/gas/i386/avx512f-plain.l,
487         testsuite/gas/i386/avx512f-plain.s,
488         testsuite/gas/i386/avx512vl-plain.l,
489         testsuite/gas/i386/avx512vl-plain.s: New.
490         * testsuite/gas/i386/i386.exp: Run new tests.
491
492 2018-03-08  Jan Beulich  <jbeulich@suse.com>
493
494         * config/tc-i386.c (cpu_flags_match): Move AVX512VL check ahead.
495
496 2018-03-08  Jan Beulich  <jbeulich@suse.com>
497
498         * config/tc-i386.c (CPU_FLAGS_32BIT_MATCH): Delete.
499         (cpu_flags_match): Use CPU_FLAGS_ARCH_MATCH instead of
500         CPU_FLAGS_32BIT_MATCH.
501
502 2018-03-08  Jan Beulich  <jbeulich@suse.com>
503
504         * config/tc-i386.c (CPU_FLAGS_AES_MATCH, CPU_FLAGS_AVX_MATCH,
505         CPU_FLAGS_PCLMUL_MATCH): Delete.
506         (CPU_FLAGS_32BIT_MATCH): Drop uses of deleted CPU_FLAGS_*_MATCH.
507         (cpu_flags_match): Combine AVX checks into
508         single if().
509
510 2018-03-08  Jan Beulich  <jbeulich@suse.com>
511
512         * config/tc-i386.c (cpu_flags_match): Drop "else" branches
513         setting CPU_FLAGS_ARCH_MATCH.
514
515 2018-03-08  Jan Beulich  <jbeulich@suse.com>
516
517         * config/tc-i386.c (md_assemble): Extend SSE check conditional.
518         * testsuite/gas/i386/ilp32/x86-64-sse-check-none.d,
519         testsuite/gas/i386/ilp32/x86-64-sse-check-warn.d,
520         testsuite/gas/i386/ilp32/x86-64-sse-check.d,
521         testsuite/gas/i386/sse-check-none.d,
522         testsuite/gas/i386/sse-check-warn.d,
523         testsuite/gas/i386/x86-64-sse-check.d,
524         testsuite/gas/i386/x86-64-sse-check-none.d,
525         testsuite/gas/i386/x86-64-sse-check-warn.d: Refer to sse-check.d.
526         * testsuite/gas/i386/sse-check.s: Add AES, GFNI, and PCLMUL
527         tests.
528         * testsuite/gas/i386/sse-check-none.s: Replace code by inclusion
529         of sse-check.s.
530         * testsuite/gas/i386/sse-check.d: Adjust expectations.
531         * testsuite/gas/i386/sse-check-error.l,
532         testsuite/gas/i386/x86-64-sse-check-error.l: Likewise.
533         * testsuite/gas/i386/sse-check-warn.e: Likewise.
534
535 2018-03-08  Jan Beulich  <jbeulich@suse.com>
536
537         * config/tc-i386.c (operand_size_match): Drop / replace uses of
538         .floatd.
539
540 2018-03-08  Jan Beulich  <jbeulich@suse.com>
541
542         * testsuite/gas/i386/intel-intel.d: New.
543         * testsuite/gas/i386/i386.exp: Run new test.
544
545 2018-03-08  Jan Beulich  <jbeulich@suse.com>
546
547         * config/tc-i386.c (process_operands): Access operands only
548         after operand count assertion. Sanitize warning text. Fix
549         indentation.
550         * testsuite/gas/i386/avx512_4fmaps-warn.l,
551         gas/i386/x86-64-avx512_4fmaps-warn.l: Adjust expectations.
552
553 2018-03-08  Jan Beulich  <jbeulich@suse.com>
554
555         * testsuite/gas/i386/x86-64-movd.s: Drop bogus vmovd memory forms.
556         * testsuite/gas/i386/x86-64-movd.d,
557         testsuite/gas/i386/x86-64-movd-intel.d: Adjust expectations.
558
559 2018-03-08  Jan Beulich  <jbeulich@suse.com>
560
561         * config/tc-i386.c (operand_type_and_not): New.
562         (build_modrm_byte): Use it to prevent clearing unrelated bits.
563
564 2018-03-08  Alan Modra  <amodra@gmail.com>
565
566         * config/tc-ppc.c (ppc_handle_align): Correct last patch.  Really
567         don't emit a group terminating nop for power9.  Simplify cpu
568         tests.
569
570 2018-03-08  Alan Modra  <amodra@gmail.com>
571
572         * config/tc-ppc.c (ppc_handle_align): Don't emit a group
573         terminating nop for power9.
574
575 2018-03-07  H.J. Lu  <hongjiu.lu@intel.com>
576
577         PR gas/22874
578         * config/tc-i386.c (f32_5): Removed.
579         (f32_8): Likewise.
580         (f32_9): Likewise.
581         (f32_10): Likewise.
582         (f32_11): Likewise.
583         (f32_12): Likewise.
584         (f32_13): Likewise.
585         (f32_14): Likewise.
586         (f16_5): Likewise.
587         (f16_6): Likewise.
588         (f16_7): Likewise.
589         (f16_8): Likewise.
590         (jump_31): Likewise.
591         (alt64_11): Likewise.
592         (alt64_patt): Likewise.
593         (jump_disp8): New.
594         (jump32_disp32): Likewise.
595         (jump16_disp32): Likewise.
596         (alt_11): Likewise.
597         (f32_patt): Updated.
598         (f16_patt): Likewise.
599         (alt_patt): Add alt_11.
600         (i386_align_code): Merged with ...
601         (i386_generate_nops): This.  Rewritten.
602         (fits_in_imm7): Moved before i386_generate_nops.
603         (fits_in_imm31): Likewise.
604         * config/tc-i386.h (MAX_MEM_FOR_RS_ALIGN_CODE): Updated to
605         4095.
606         (i386_align_code): Removed.
607         (HANDLE_ALIGN): Rewritten with i386_generate_nops.
608         * doc/as.texinfo: Update limits of control byte for x86 .nops
609         directive.
610         * testsuite/gas/i386/i386.exp: Run nops-7 and x86-64-nops-7.
611         * gas/testsuite/gas/i386/noavx-3.l: Updated.
612         * gas/testsuite/gas/i386/nop-1.d: Likewise.
613         * gas/testsuite/gas/i386/nop-1.s: Likewise.
614         * gas/testsuite/gas/i386/nop-2.d: Likewise.
615         * gas/testsuite/gas/i386/nop-2.s: Likewise.
616         * gas/testsuite/gas/i386/nop-3.d: Likewise.
617         * gas/testsuite/gas/i386/nop-4.d: Likewise.
618         * gas/testsuite/gas/i386/nop-5.d: Likewise.
619         * gas/testsuite/gas/i386/nop-5.s: Likewise.
620         * gas/testsuite/gas/i386/nop-6.d: Likewise.
621         * gas/testsuite/gas/i386/nop-bad-1.l: Likewise.
622         * gas/testsuite/gas/i386/nops-1-core2.d: Likewise.
623         * gas/testsuite/gas/i386/nops-1-i386-i686.d: Likewise.
624         * gas/testsuite/gas/i386/nops-1-i386.d: Likewise.
625         * gas/testsuite/gas/i386/nops-1-i686.d: Likewise.
626         * gas/testsuite/gas/i386/nops-1-k8.d: Likewise.
627         * gas/testsuite/gas/i386/nops-1.d: Likewise.
628         * gas/testsuite/gas/i386/nops-2-core2.d: Likewise.
629         * gas/testsuite/gas/i386/nops-2-i386.d: Likewise.
630         * gas/testsuite/gas/i386/nops-2.d: Likewise.
631         * gas/testsuite/gas/i386/nops-3-i386.d: Likewise.
632         * gas/testsuite/gas/i386/nops-3-i686.d: Likewise.
633         * gas/testsuite/gas/i386/nops-3.d: Likewise.
634         * gas/testsuite/gas/i386/nops-4-i386.d: Likewise.
635         * gas/testsuite/gas/i386/nops-4-i686.d: Likewise.
636         * gas/testsuite/gas/i386/nops-4.d: Likewise.
637         * gas/testsuite/gas/i386/nops-4a-i686.d: Likewise.
638         * gas/testsuite/gas/i386/nops-5-i686.d: Likewise.
639         * gas/testsuite/gas/i386/nops-5.d: Likewise.
640         * gas/testsuite/gas/i386/nops-6.d: Likewise.
641         * gas/testsuite/gas/i386/nops16-1.d: Likewise.
642         * gas/testsuite/gas/i386/x86-64-nop-1.d: Likewise.
643         * gas/testsuite/gas/i386/x86-64-nop-2.d: Likewise.
644         * gas/testsuite/gas/i386/x86-64-nop-5.d: Likewise.
645         * gas/testsuite/gas/i386/x86-64-nops-1-core2.d: Likewise.
646         * gas/testsuite/gas/i386/x86-64-nops-1-g64.d: Likewise.
647         * gas/testsuite/gas/i386/x86-64-nops-1-k8.d: Likewise.
648         * gas/testsuite/gas/i386/x86-64-nops-1-pentium.d: Likewise.
649         * gas/testsuite/gas/i386/x86-64-nops-1.d: Likewise.
650         * gas/testsuite/gas/i386/x86-64-nops-2.d: Likewise.
651         * gas/testsuite/gas/i386/x86-64-nops-3.d: Likewise.
652         * gas/testsuite/gas/i386/x86-64-nops-4-core2.d: Likewise.
653         * gas/testsuite/gas/i386/x86-64-nops-4-k8.d: Likewise.
654         * gas/testsuite/gas/i386/x86-64-nops-4.d: Likewise.
655         * gas/testsuite/gas/i386/x86-64-nops-5-k8.d: Likewise.
656         * gas/testsuite/gas/i386/x86-64-nops-5.d: Likewise.
657         * gas/testsuite/gas/i386/ilp32/x86-64-nops-1-core2.d: Likewise.
658         * gas/testsuite/gas/i386/ilp32/x86-64-nops-1-k8.d: Likewise.
659         * gas/testsuite/gas/i386/ilp32/x86-64-nops-1-pentium.d: Likewise.
660         * gas/testsuite/gas/i386/ilp32/x86-64-nops-1.d: Likewise.
661         * gas/testsuite/gas/i386/ilp32/x86-64-nops-2.d: Likewise.
662         * gas/testsuite/gas/i386/ilp32/x86-64-nops-3.d: Likewise.
663         * gas/testsuite/gas/i386/ilp32/x86-64-nops-4-core2.d: Likewise.
664         * gas/testsuite/gas/i386/ilp32/x86-64-nops-4-k8.d: Likewise.
665         * gas/testsuite/gas/i386/ilp32/x86-64-nops-4.d: Likewise.
666         * gas/testsuite/gas/i386/ilp32/x86-64-nops-5-k8.d: Likewise.
667         * gas/testsuite/gas/i386/ilp32/x86-64-nops-5.d: Likewise.
668         * gas/testsuite/gas/i386/nops-7.d: New file.
669         * gas/testsuite/gas/i386/nops-7.s: Likewise.
670         * gas/testsuite/gas/i386/x86-64-nops-7.d: Likewise.
671
672 2018-03-07  Alan Modra  <amodra@gmail.com>
673
674         * testsuite/gas/ppc/aix.exp: Run for rs6000 too.
675         * testsuite/gas/ppc/ppc.exp: Run more tests for non-ELF targets.
676         * testsuite/gas/ppc/machine.d: Don't run for PE targets.
677
678 2018-03-02  Thomas Preud'homme  <thomas.preudhomme@arm.com>
679
680         * config/tc-arm.c (md_begin): Add NULL pointer check before
681         dereferencing march_ext_opt.
682
683 2018-03-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
684
685         * config/tc-arm.c (cpu_variant, arm_arch_used, thumb_arch_used,
686         legacy_cpu, legacy_fpu, mcpu_cpu_opt, dyn_mcpu_ext_opt,
687         mcpu_fpu_opt, march_cpu_opt, dyn_march_ext_opt, march_fpu_opt,
688         mfpu_opt, object_arch, selected_cpu): Comment meaning of variables.
689         (dyn_mcpu_ext_opt): Also rename into ...
690         (mcpu_ext_opt): This.
691         (dyn_march_ext_opt): Also rename into ...
692         (march_ext_opt): This.
693         (object_arch): Also rename into ...
694         (selected_object_arch): This and make it a plain arm_feature_set
695         structure.
696         (selected_arch, selected_ext, selected_fpu): New static variables.
697         (mark_feature_used): Fix comments, feature is marked as used iff it is
698         currently allowed.
699         (do_bx): Adapt to change in name and type of object_arch.
700         (md_begin): Set selected_arch rather than mcpu_cpu_opt, selected_ext
701         rather than dyn_mcpu_ext_opt and selected_fpu rather than mfpu_opt.
702         Remove dead code to set default FPU if architecture version is greater
703         than 5.  Set all CPU bits of cpu_variant directly in autodection
704         leaving mcpu_cpu_opt, selected_arch and selected_cpu unset.
705         (arm_parse_extension): Take extension feature set pointer parameter by
706         value rather than by pointer.  Remove allocation code.  Adapt code
707         accordingly.
708         (arm_parse_cpu): Adapt to variable renaming and changes in
709         arm_parse_extension () signature.
710         (arm_parse_arch): Likewise.
711         (aeabi_set_public_attributes): Also set selected_arch and selected_ext
712         in addition to selected_cpu.  Set flags_arch and flags_ext from them
713         instead of selected_cpu.  Adapt to variables renaming and type change.
714         (arm_md_post_relax): Adapt to variable renaming.
715         (s_arm_cpu): Set selcted_cpu_cpu and selected_ext instead of
716         mcpu_cpu_opt and dyn_mcpu_ext_opt.  Set selected_cpu from them and
717         cpu_variant from selected_cpu and selected_fpu.
718         (s_arm_arch): Likewise.
719         (s_arm_object_arch): Adapt to variable renaming.
720         (s_arm_arch_extension): Use ARM_CPU_IS_ANY instead of checking feature
721         set against arm_any.  Check selected_arch rather than *mcpu_cpu_opt.
722         Set selected_ext rather than *dyn_mcpu_ext_opt and remove allocation
723         code.
724         (s_arm_fpu): Set selected_fpu instead of mfpu_opt.  Set all CPU feature
725         bits if in autodetection mode.
726
727 2018-03-01  H.J. Lu  <hongjiu.lu@intel.com>
728
729         * config/tc-i386.c (optimize_encoding): Optimize AVX256 and
730         AVX512 vpsub[bwdq] instructions.
731         * testsuite/gas/i386/optimize-1.s: Add tests for AVX256 and
732         AVX512 vpsub[bwdq] instructions.
733         * testsuite/gas/i386/x86-64-optimize-2.s: Likewise.
734         * testsuite/gas/i386/optimize-1.d: Updated.
735         * testsuite/gas/i386/x86-64-optimize-2.d: Likewise.
736
737 2018-03-01  Alan Modra  <amodra@gmail.com>
738
739         * configure.ac (ALL_LINGUAS): Add uk.  Sort.
740         * configure: Regenerate.
741
742 2018-02-27  H.J. Lu  <hongjiu.lu@intel.com>
743
744         * NEWS: Rename .nop to .nops.
745         * doc/as.texinfo: Likewise.
746         * read.c (potable): Add "nops".  Remove "nop".
747         (s_nop): Renamed to ...
748         (s_nops): This.
749         * read.h (s_nop): Renamed to ...
750         (s_nops): This.
751         * write.c (cvt_frag_to_fill): Rename .nop to .nops.
752         (md_generate_nops): Likewise.
753         (relax_segment): Likewise.
754         * testsuite/gas/i386/nop-1.d: Updated.
755         * testsuite/gas/i386/nop-1.s: Likewise.
756         * testsuite/gas/i386/nop-2.d: Likewise.
757         * testsuite/gas/i386/nop-2.s: Likewise.
758         * testsuite/gas/i386/nop-3.d: Likewise.
759         * testsuite/gas/i386/nop-3.s: Likewise.
760         * testsuite/gas/i386/nop-4.d: Likewise.
761         * testsuite/gas/i386/nop-4.s: Likewise.
762         * testsuite/gas/i386/nop-5.d: Likewise.
763         * testsuite/gas/i386/nop-5.s: Likewise.
764         * testsuite/gas/i386/nop-6.d: Likewise.
765         * testsuite/gas/i386/nop-6.s: Likewise.
766         * testsuite/gas/i386/nop-bad-1.l: Likewise.
767         * testsuite/gas/i386/nop-bad-1.s: Likewise.
768         * testsuite/gas/i386/x86-64-nop-1.d: Likewise.
769         * testsuite/gas/i386/x86-64-nop-2.d: Likewise.
770         * testsuite/gas/i386/x86-64-nop-3.d: Likewise.
771         * testsuite/gas/i386/x86-64-nop-4.d: Likewise.
772         * testsuite/gas/i386/x86-64-nop-5.d: Likewise.
773         * testsuite/gas/i386/x86-64-nop-6.d: Likewise.
774
775 2018-02-27  H.J. Lu  <hongjiu.lu@intel.com>
776
777         PR gas/22871
778         * NEWS: Mention -O[2|s].
779         * config/tc-i386.c (_i386_insn): Add no_optimize.
780         (optimize): New.
781         (optimize_for_space): Likewise.
782         (fits_in_imm7): New function.
783         (fits_in_imm31): Likewise.
784         (optimize_encoding): Likewise.
785         (md_assemble): Call optimize_encoding to optimize encoding.
786         (parse_insn): Handle {nooptimize}.
787         (md_shortopts): Append "O::".
788         (md_parse_option): Handle -On.
789         * doc/c-i386.texi: Document -O0, -O, -O1, -O2 and -Os as well
790         as {nooptimize}.
791         * testsuite/gas/cfi/cfi-x86_64.d: Pass -O0 to assembler.
792         * testsuite/gas/i386/ilp32/cfi/cfi-x86_64.d: Likewise.
793         * testsuite/gas/i386/i386.exp: Run optimize-1, optimize-2,
794         optimize-3, x86-64-optimize-1, x86-64-optimize-2,
795         x86-64-optimize-3 and x86-64-optimize-4.
796         * testsuite/gas/i386/optimize-1.d: New file.
797         * testsuite/gas/i386/optimize-1.s: Likewise.
798         * testsuite/gas/i386/optimize-2.d: Likewise.
799         * testsuite/gas/i386/optimize-2.s: Likewise.
800         * testsuite/gas/i386/optimize-3.d: Likewise.
801         * testsuite/gas/i386/optimize-3.s: Likewise.
802         * testsuite/gas/i386/x86-64-optimize-1.s: Likewise.
803         * testsuite/gas/i386/x86-64-optimize-1.d: Likewise.
804         * testsuite/gas/i386/x86-64-optimize-2.d: Likewise.
805         * testsuite/gas/i386/x86-64-optimize-2.s: Likewise.
806         * testsuite/gas/i386/x86-64-optimize-3.d: Likewise.
807         * testsuite/gas/i386/x86-64-optimize-3.s: Likewise.
808         * testsuite/gas/i386/x86-64-optimize-4.d: Likewise.
809         * testsuite/gas/i386/x86-64-optimize-4.s: Likewise.
810
811 2018-02-27  Nick Clifton  <nickc@redhat.com>
812
813         * po/ru.po: Updated Russian translation.
814
815 2018-02-26  Maciej W. Rozycki  <macro@mips.com>
816
817         * doc/as.texinfo (Pseudo Ops): Clean up `.dc' and `.ds'
818         descriptions.
819
820 2018-02-26  Nick Clifton  <nickc@redhat.com>
821
822         * doc/as.texinfo (Dc): Fix typo.
823
824 2018-02-26  Alan Modra  <amodra@gmail.com>
825
826         * testsuite/gas/mips/reginfo-2.l: Update.
827
828 2018-02-23  Alan Modra  <amodra@gmail.com>
829
830         * testsuite/gas/mips/reginfo-2.l: Update.
831
832 2018-02-23  Nick Clifton  <nickc@redhat.com>
833
834         * doc/as.texinfo (Pseudo Ops): Add nodes for .dc, .dcb and .ds.
835
836 2018-02-23  Kuan-Lin Chen  <kuanlinchentw@gmail.com>
837
838         * config/tc-nds32.c (ict_model): New function. Hook new
839         directive .ict_model.
840         (nds32_insert_relax_entry): Tag the bits of entry relocation
841         for .ict_model.
842
843 2018-02-22  H.J. Lu  <hongjiu.lu@intel.com>
844
845         * config/tc-i386.c (_i386_insn): Add rex_encoding.
846         (md_assemble): When i.rex_encoding is true, generate a REX byte
847         if possible.
848         (parse_insn): Set i.rex_encoding for {rex}.
849         * doc/c-i386.texi: Document {rex}.
850         * testsuite/gas/i386/x86-64-pseudos.s: Add {rex} tests.
851         * testsuite/gas/i386/x86-64-pseudos.d: Updated.
852
853 2018-02-22  A. Wilcox  <awilfox@adelielinux.org>
854
855         PR 22014
856         * config/tc-mips.c (mips_lookup_insn): Use memmove to strip the
857         instruction size suffix.
858
859 2018-02-20  Maciej W. Rozycki  <macro@mips.com>
860
861         * testsuite/gas/mips/mips16-branch-reloc-4.d: New test.
862         * testsuite/gas/mips/mips16-branch-reloc-5.d: New test.
863         * testsuite/gas/mips/mips16-branch-reloc-4.s: New test source.
864         * testsuite/gas/mips/mips16-branch-reloc-5.s: New test source.
865         * testsuite/gas/mips/mips.exp: Run the new tests.
866
867 2018-02-20  Max Filippov  <jcmvbkbc@gmail.com>
868
869         * config/tc-xtensa.c (struct litpool_frag): Add new field
870         literal_count.
871         (MAX_AUTO_POOL_LITERALS, MAX_EXPLICIT_POOL_LITERALS)
872         (MAX_POOL_LITERALS): New macro definitions.
873         (auto_litpool_limit): Initialize to 0.
874         (md_parse_option): Set auto_litpool_limit in the presence of
875         --auto-litpools option.
876         (xtensa_maybe_create_literal_pool_frag): Zero-initialize
877         literal_count field.
878         (xg_find_litpool): New function. Make sure that found literal
879         pool size is within the limit.
880         (xtensa_move_literals): Extract literal pool search code into
881         the new function.
882         * testsuite/gas/xtensa/all.exp: Add auto-litpools-2 test.
883         * testsuite/gas/xtensa/auto-litpools-2.d: New file.
884         * testsuite/gas/xtensa/auto-litpools-2.s: New file.
885         * testsuite/gas/xtensa/auto-litpools.d: Fix up changed
886         addresses.
887         * testsuite/gas/xtensa/auto-litpools.s: Change literal value so
888         that objdump doesn't get out of sync.
889
890 2018-02-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>
891
892         * doc/c-arm.texi (.arch_extension): Mention extensions it accepts are
893         also the same as -march.
894
895 2018-02-17  H.J. Lu  <hongjiu.lu@intel.com>
896
897         * NEWS: Mention .nop directive.
898         * as.h (_relax_state): Add rs_space_nop and rs_fill_nop.
899         * read.c (potable): Add .nop.
900         (s_nop): New function.
901         * read.h (s_nop): New prototype.
902         * write.c (cvt_frag_to_fill): Handle rs_space_nop and
903         rs_fill_nop.
904         (md_generate_nops): New function.
905         (relax_segment): Likewise.
906         (write_contents): Use md_generate_nops for rs_fill_nop.
907         * config/tc-i386.c (alt64_11): New.
908         (alt64_patt): Likewise.
909         (md_convert_frag): Handle rs_space_nop.
910         (i386_output_nops): New function.
911         (i386_generate_nops): Likewise.
912         (i386_align_code): Call i386_output_nops.
913         * config/tc-i386.h (i386_generate_nops): New.
914         (md_generate_nops): Likewise.
915         * doc/as.texinfo: Document .nop directive.
916         * testsuite/gas/i386/i386.exp: Run .nop directive tests.
917         * testsuite/gas/i386/nop-1.d: New file.
918         * testsuite/gas/i386/nop-1.s: Likewise.
919         * testsuite/gas/i386/nop-2.d: Likewise.
920         * testsuite/gas/i386/nop-2.s: Likewise.
921         * testsuite/gas/i386/nop-3.d: Likewise.
922         * testsuite/gas/i386/nop-3.s: Likewise.
923         * testsuite/gas/i386/nop-4.d: Likewise.
924         * testsuite/gas/i386/nop-4.s: Likewise.
925         * testsuite/gas/i386/nop-5.d: Likewise.
926         * testsuite/gas/i386/nop-5.s: Likewise.
927         * testsuite/gas/i386/nop-6.d: Likewise.
928         * testsuite/gas/i386/nop-6.s: Likewise.
929         * testsuite/gas/i386/nop-bad-1.l: Likewise.
930         * testsuite/gas/i386/nop-bad-1.s: Likewise.
931         * testsuite/gas/i386/x86-64-nop-1.d: Likewise.
932         * testsuite/gas/i386/x86-64-nop-2.d: Likewise.
933         * testsuite/gas/i386/x86-64-nop-3.d: Likewise.
934         * testsuite/gas/i386/x86-64-nop-4.d: Likewise.
935         * testsuite/gas/i386/x86-64-nop-5.d: Likewise.
936         * testsuite/gas/i386/x86-64-nop-6.d: Likewise.
937
938 2018-02-15  Tamar Christina  <tamar.christina@arm.com>
939
940         * config/tc-arm.c (cpu_arch_ver): Renumber ARM_ARCH_V8_4A.
941         * testsuite/gas/arm/attr-march-armv8_4-a.d: New.
942
943 2018-02-13  Max Filippov  <jcmvbkbc@gmail.com>
944
945         * config/tc-xtensa.c (xg_find_best_trampoline): Skip trampoline
946         frag that contains source address.
947
948 2018-02-13  Nick Clifton  <nickc@redhat.com>
949
950         PR 22773
951         * config/tc-arm.c (md_apply_fix): Test Rn field of Thumb ORR
952         instruction before assuming that it is a MOV instruction.
953         * testsuite/gas/arm/pr22773.s: New test.
954         * testsuite/gas/arm/pr22773.d: New test driver.
955         * testsuite/gas/arm/pr22773.l: New expected output.
956
957 2018-02-13  H.J. Lu  <hongjiu.lu@intel.com>
958
959         PR gas/22791
960         * config/tc-i386.c (need_plt32_p): New function.
961         (output_jump): Generate BFD_RELOC_X86_64_PLT32 if possible.
962         (md_estimate_size_before_relax): Likewise.
963         * testsuite/gas/i386/reloc64.d: Updated.
964         * testsuite/gas/i386/x86-64-jump.d: Likewise.
965         * testsuite/gas/i386/x86-64-mpx-branch-1.d: Likewise.
966         * testsuite/gas/i386/x86-64-mpx-branch-2.d: Likewise.
967         * testsuite/gas/i386/x86-64-relax-2.d: Likewise.
968         * testsuite/gas/i386/x86-64-relax-3.d: Likewise.
969         * testsuite/gas/i386/ilp32/reloc64.d: Likewise.
970         * testsuite/gas/i386/ilp32/x86-64-branch.d: Likewise.
971
972 2018-02-13  Maciej W. Rozycki  <macro@mips.com>
973
974         * testsuite/gas/mips/loongson-3a-2.d: Rename test.
975
976 2018-02-13  Nick Clifton  <nickc@redhat.com>
977
978         PR 22823
979         * config/obj-elf.c (elf_pseudo_table): Remove now redundant
980         casts.
981         (obj_elf_vtable_inherit): Rename to obj_elf_get_vtable_inherit.
982         (obj_elf_vtable_inherit): New stub function that calls
983         obj_elf_get_vtable_inherit.
984         (obj_elf_vtable_entry): Rename to obj_elf_get_vtable_entry.
985         (obj_elf_vtable_entry): New stub function that calls
986         obj_elf_get_vtable_entry.
987         * config/obj-elf.h (obj_elf_vtable_inherit): Update prototype.
988         (obj_elf_vtable_entry) Likewise.
989         (obj_elf_get_vtable_inherit) Likewise.
990         (obj_elf_get_vtable_entry) Likewise.
991         * config/tc-arm.c (md_pseudo_table): Remove now redundant cast.
992         * config/tc-i386c (md_pseudo_table): Likewise.
993         * config/tc-hppa.c (pa_vtable_entry): Call
994         obj_elf_get_vtable_entry.
995         (pa_vtable_inherit): Call obj_elf_get_vtable_inherit.
996         * config/tc-mips.c (s_mips_file): Replace call to dwarf2_get_file
997         with call to dwarf2_get_filename.
998         * dwarf2dbg.c (dwarf2_directive_file): Rename to
999         dwarf2_directive_filename.
1000         (dwarf2_directive_file): New stub function that calls
1001         dwarf2_directive_filename.
1002         * dwarf2dbg.h: Prototype dwarf2_directive_filename.
1003
1004 2018-02-12  Maciej W. Rozycki  <macro@mips.com>
1005
1006         * testsuite/gas/mips/reginfo-2-n32.d: Add `--no-pad-sections' to
1007         `as' flags.
1008
1009 2018-02-12  Henry Wong <henry@stuffedcow.net>
1010
1011         * testsuite/gas/mips/r6.d: Update for "sigrie" encoding fix.
1012         * testsuite/gas/mips/r6-n32.d: Likewise.
1013         * testsuite/gas/mips/r6-n64.d: Likewise.
1014
1015 2018-02-12  Nick Clifton  <nickc@redhat.com>
1016
1017         * po/ru.po: Updated Russian translation.
1018
1019 2018-02-08  Alan Modra  <amodra@gmail.com>
1020
1021         PR 22819
1022         * config/tc-ppc.c (md_assemble): Rewrite insn alignment checking.
1023         (ppc_frag_check): Likewise.
1024         * testsuite/gas/ppc/misalign.d,
1025         * testsuite/gas/ppc/misalign.l,
1026         * testsuite/gas/ppc/misalign.s: New test.
1027         * testsuite/gas/ppc/misalign2.d,
1028         * testsuite/gas/ppc/misalign2.s: New test.
1029         * testsuite/gas/ppc/ppc.exp: Run them.
1030
1031 2018-02-05  Maciej W. Rozycki  <macro@mips.com>
1032
1033         * config/tc-riscv.c (riscv_handle_implicit_zero_offset): Rename
1034         `expr' parameter to `ep'.
1035
1036 2018-02-05  Maciej W. Rozycki  <macro@mips.com>
1037
1038         * testsuite/gas/mips/reginfo-2.d: New test.
1039         * testsuite/gas/mips/reginfo-2-n32.d: New test.
1040         * testsuite/gas/mips/reginfo-2.l: New test stderr output.
1041         * testsuite/gas/mips/reginfo-2.s: New test source.
1042         * testsuite/gas/mips/mips.exp: Run the new tests.
1043
1044 2018-02-05  Nick Clifton  <nickc@redhat.com>
1045
1046         * po/ru.po: Updated Russian translation.
1047
1048 2018-01-31  Alan Modra  <amodra@gmail.com>
1049
1050         PR 22714
1051         * app.c (last_char): New static var.
1052         (struct app_save): Add last_char field.
1053         (app_push, app_pop): Handle it.
1054         (do_scrub_chars): Use last_char in test for "\@".  Set last_char.
1055
1056 2018-01-29  Eric Botcazou  <ebotcazou@adacore.com>
1057
1058         PR gas/22738
1059         * config/tc-sparc.h (sparc_mach): Declare.
1060         (TARGET_MACH): Define to above.
1061         * config/tc-sparc.c (sparc_mach): New function.
1062         (sparc_md_end): Minor tweak.
1063
1064 2018-01-29  Nick Clifton  <nickc@redhat.com>
1065
1066         * po/ru.po: Updated Russian translation.
1067
1068 2018-01-26  Maciej W. Rozycki  <macro@mips.com>
1069
1070         * configure.tgt: Use generic emulation for `mips-*-windiss',
1071         overriding the blanket choice made for `*-*-windiss'.
1072
1073 2018-01-26  Maciej W. Rozycki  <macro@mips.com>
1074
1075         * configure.tgt: Use `mips-*-sysv4*' rather than
1076         `mips-*-sysv4*MP*'.
1077
1078 2018-01-24  Renlin Li  <renlin.li@arm.com>
1079
1080         * config/tc-aarch64.c (reloc_table): add entries for
1081         BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
1082         BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
1083         BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
1084         BFD_RELOC_AARCH64_MOVW_PREL_G3.
1085         (process_movw_reloc_info): Supports newly added MOVW_PREL relocations.
1086         (md_apply_fix): Likewise
1087         * testsuite/gas/aarch64/prel_g0.s: New.
1088         * testsuite/gas/aarch64/prel_g0.d: New.
1089         * testsuite/gas/aarch64/prel_g0_nc.s: New.
1090         * testsuite/gas/aarch64/prel_g0_nc.d: New.
1091         * testsuite/gas/aarch64/prel_g1.s: New.
1092         * testsuite/gas/aarch64/prel_g1.d: New.
1093         * testsuite/gas/aarch64/prel_g1_nc.s: New.
1094         * testsuite/gas/aarch64/prel_g1_nc.d: New.
1095         * testsuite/gas/aarch64/prel_g2.s: New.
1096         * testsuite/gas/aarch64/prel_g2.d: New.
1097         * testsuite/gas/aarch64/prel_g2_nc.s: New.
1098         * testsuite/gas/aarch64/prel_g2_nc.d: New.
1099         * testsuite/gas/aarch64/prel_g3.s: New.
1100         * testsuite/gas/aarch64/prel_g3.d: New.
1101
1102 2018-01-23  Maciej W. Rozycki  <macro@mips.com>
1103
1104         * configure.ac: Also set `mips_default_abi' to N32_ABI for
1105         `mips64*-ps2-elf*'.
1106         * configure: Regenerate.
1107
1108 2018-01-23  Maciej W. Rozycki  <macro@mips.com>
1109
1110         * config/tc-mips.c (options): Remove OPTION_COMPAT_ARCH_BASE
1111         enum value.
1112
1113 2018-01-23  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
1114
1115         * config/tc-i386.c (cpu_arch): Add .pconfig.
1116         * doc/c-i386.texi: Document .pconfig.
1117         * testsuite/gas/i386/i386.exp: Add PCONFIG tests.
1118         * testsuite/gas/i386/pconfig-intel.d: New test.
1119         * testsuite/gas/i386/pconfig.d: Likewise.
1120         * testsuite/gas/i386/pconfig.s: Likewise.
1121         * testsuite/gas/i386/x86-64-pconfig-intel.d: Likewise.
1122         * testsuite/gas/i386/x86-64-pconfig.d: Likewise.
1123         * testsuite/gas/i386/x86-64-pconfig.s: Likewise.
1124
1125 2018-01-23  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
1126
1127         * config/tc-i386.c (cpu_arch): Add .wbnoinvd.
1128         * doc/c-i386.texi: Document .wbnoinvd.
1129         * testsuite/gas/i386/i386.exp: Add WBNOINVD tests.
1130         * testsuite/gas/i386/wbnoinvd-intel.d: New test.
1131         * testsuite/gas/i386/wbnoinvd.d: Likewise.
1132         * testsuite/gas/i386/wbnoinvd.s: Likewise.
1133         * testsuite/gas/i386/x86-64-wbnoinvd-intel.d: Likewise.
1134         * testsuite/gas/i386/x86-64-wbnoinvd.d: Likewise.
1135         * testsuite/gas/i386/x86-64-wbnoinvd.s: Likewise.
1136
1137 2018-01-23  Maciej W. Rozycki  <macro@mips.com>
1138
1139         * config/tc-mips.c (md_show_usage): Correctly indicate the
1140         configuration-specific default ABI.
1141
1142 2018-01-23  Maciej W. Rozycki  <macro@mips.com>
1143
1144         * config/tc-mips.c (md_show_usage): Report `-mmips16e2' and
1145         `-mno-mips16e2' options.
1146
1147 2018-01-22  Maciej W. Rozycki  <macro@mips.com>
1148
1149         * doc/c-mips.texi (MIPS ASE Instruction Generation Overrides):
1150         Correct syntax of the `.set nomips16e2' directive description.
1151
1152 2018-01-22  Oleg Endo  <olegendo@gcc.gnu.org>
1153
1154         PR 22737
1155         * config/tc-rx.c (rx_start_line): Handle escaped double-quote character.
1156         * testsuite/gas/rx/pr22737.s: New test.
1157         * testsuite/gas/rx/pr22737.d: Likewise.
1158         * testsuite/gas/rx/rx.exp: Run the new test.
1159
1160 2018-01-19  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1161
1162         * config/tc-arm.c (ToC macro): Remove spurious comment.
1163         (ToU macro): Likewise.
1164
1165 2018-01-17  Jim Wilson  <jimw@sifive.com>
1166
1167         * config/tc-riscv.c (validate_riscv_insn) <'z'>: New.
1168         (riscv_ip) <'z'>: New.
1169
1170 2018-01-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
1171
1172         * config/tc-i386.c (cpu_arch): Delete .cet. Add .ibt, .shstk.
1173         (cpu_noarch): Add noibt, noshstk.
1174         (parse_insn): Change cpucet to cpuibt.
1175         * doc/c-i386.texi: Delete .cet. Add .ibt, .shstk.
1176         * testsuite/gas/i386/cet-ibt-inval.l: New test.
1177         * testsuite/gas/i386/cet-ibt-inval.s: Likewise.
1178         * testsuite/gas/i386/cet-shstk-inval.l: Likewise.
1179         * testsuite/gas/i386/cet-shstk-inval.s: Likewise.
1180         * testsuite/gas/i386/x86-64-cet-ibt-inval.l: Likewise.
1181         * testsuite/gas/i386/x86-64-cet-ibt-inval.s: Likewise.
1182         * testsuite/gas/i386/x86-64-cet-shstk-inval.l: Likewise.
1183         * testsuite/gas/i386/x86-64-cet-shstk-inval.s: Likewise.
1184
1185 2018-01-16  Nick Clifton  <nickc@redhat.com>
1186
1187         * po/fr.po: Updated French translation.
1188
1189 2018-01-15  Jim Wilson  <jimw@sifive.com>
1190
1191         * testsuite/gas/riscv/c-zero-imm.s: Test addi that compresses to c.nop.
1192         * testsuite/gas/riscv/c-zero-imm.d: Likewise.
1193
1194 2018-01-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1195
1196         * config/tc-arm.c (ToC): Define macro.
1197         (ToU): Likewise.
1198         (insns): Make use of above macros for new instructions introduced in
1199         Armv8-M.
1200
1201 2018-01-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1202
1203         * config/tc-arm.c (insns): Make blxns, bxns, tt, ttt, tta, ttat, vlldm
1204         and vlstm conditionally executable and reindent parameters.
1205         * testsuite/gas/arm/archv8m-cmse-main.s: Add conditional version of
1206         aforementionned instructions.
1207
1208 2018-01-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1209
1210         * config/tc-arm.c (it_fsm_post_encode): Do not warn if targeting M
1211         profile architecture or if in autodetection mode.  Clarify that
1212         deprecation is for performance reason and concerns Armv8-A and Armv8-R.
1213         * testsuite/gas/arm/armv8-ar-bad.l: Adapt to new IT deprecation warning
1214         message.
1215         * testsuite/gas/arm/armv8-ar-it-bad.l: Likewise.
1216         * testsuite/gas/arm/sp-pc-validations-bad-t-v8a.l: Likewise.
1217         * testsuite/gas/arm/udf.l: Likewise.
1218         * testsuite/gas/arm/udf.d: Assemble for Armv8-A explicitely.
1219
1220 2018-01-15  Nick Clifton  <nickc@redhat.com>
1221
1222         * po/uk.po: Updated Ukranian translation.
1223
1224 2018-01-13  Nick Clifton  <nickc@redhat.com>
1225
1226         * po/gas.pot: Regenerated.
1227
1228 2018-01-13  Nick Clifton  <nickc@redhat.com>
1229
1230         * configure: Regenerate.
1231
1232 2018-01-13  Nick Clifton  <nickc@redhat.com>
1233
1234         2.30 branch created.
1235         * NEWS: Add marker for 2.30.
1236
1237 2018-01-12  Gunther Nikl  <gnikl@users.sourceforge.net>
1238
1239         * gas/config/aout_gnu.h (USE_EXTENDED_RELOC): Explicitly
1240         define to 0 and 1. Remove a dangling reference to "AMD 29000"
1241         in a comment.
1242
1243 2018-01-11  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
1244
1245         * testsuite/i386/avx512_4fmaps_vl-warn.l: Likewise.
1246         * testsuite/i386/avx512_4fmaps_vl-warn.s: Likewise.
1247         * testsuite/i386/avx512_4fmaps_vl.d: Likewise.
1248         * testsuite/i386/avx512_4fmaps_vl.s: Likewise.
1249         * testsuite/i386/avx512_4vnniw_vl-intel.d: Likewise.
1250         * testsuite/i386/avx512_4vnniw_vl.d: Likewise.
1251         * testsuite/i386/avx512_4vnniw_vl.s: Likewise.
1252         * testsuite/i386/i386.exp: Removed _vl tests for 4fmaps an 4vnniw
1253         tests.
1254         * testsuite/i386/x86-64-avx512_4fmaps_vl-intel.d: Removed.
1255         * testsuite/i386/x86-64-avx512_4fmaps_vl-warn.l: Likewise.
1256         * testsuite/i386/x86-64-avx512_4fmaps_vl-warn.s: Likewise.
1257         * testsuite/i386/x86-64-avx512_4fmaps_vl.d: Likewise.
1258         * testsuite/i386/x86-64-avx512_4fmaps_vl.s: Likewise.
1259         * testsuite/i386/x86-64-avx512_4vnniw_vl-intel.d: Likewise.
1260         * testsuite/i386/x86-64-avx512_4vnniw_vl.d: Likewise.
1261         * testsuite/i386/x86-64-avx512_4vnniw_vl.s: Likewise.
1262
1263 2018-01-11  Alan Modra  <amodra@gmail.com>
1264
1265         * config/tc-arm.c (aeabi_set_public_attributes): Avoid false
1266         positive "‘profile’ may be used uninitialized".
1267
1268 2018-01-10  Jan Beulich  <jbeulich@suse.com>
1269
1270         * testsuite/gas/i386/avx512_4fmaps.s,
1271         testsuite/gas/i386/avx512_4fmaps_vl.s,
1272         testsuite/gas/i386/x86-64-avx512_4fmaps.s,
1273         testsuite/gas/i386/x86-64-avx512_4fmaps_vl.s: Actually test
1274         Disp8 forms (and the transition happening at the right
1275         boundary).
1276         * testsuite/gas/i386/avx512_4fmaps.d,
1277         testsuite/gas/i386/avx512_4fmaps-intel.d,
1278         testsuite/gas/i386/avx512_4fmaps_vl.d,
1279         testsuite/gas/i386/avx512_4fmaps_vl-intel.d,
1280         testsuite/gas/i386/x86-64-avx512_4fmaps.d,
1281         testsuite/gas/i386/x86-64-avx512_4fmaps-intel.d,
1282         testsuite/gas/i386/x86-64-avx512_4fmaps_vl.d,
1283         testsuite/gas/i386/x86-64-avx512_4fmaps_vl-intel.d: Adjust
1284         expectations.
1285
1286 2018-01-10  Jan Beulich  <jbeulich@suse.com>
1287
1288         * testsuite/gas/i386/avx512bw.s,
1289         testsuite/gas/i386/avx512bw_vl.s: Add VPCMP* tests with memory
1290         operands.
1291         * testsuite/gas/i386/avx512bw-intel.d,
1292         testsuite/gas/i386/avx512bw.d,
1293         testsuite/gas/i386/avx512bw_vl-intel.d.
1294         testsuite/gas/i386/avx512bw_vl.d: Adjust expectations.
1295
1296 2018-01-09  Jim Wilson  <jimw@sifive.com>
1297
1298         * testsuite/gas/riscv/auipc-x0.d: New.
1299         * testsuite/gas/riscv/auipc-x0.s: New.
1300
1301 2018-01-09  James Greenhalgh  <james.greenhalgh@arm.com>
1302
1303         * config/tc-arm.c (insns): Add csdb, enable for Armv3 and above
1304         in Arm execution state, and Armv6T2 and above in Thumb execution
1305         state.
1306         * testsuite/gas/arm/csdb.s: New.
1307         * testsuite/gas/arm/csdb.d: New.
1308         * testsuite/gas/arm/thumb2_it_bad.l: Add csdb.
1309         * testsuite/gas/arm/thumb2_it_bad.s: Add csdb.
1310
1311 2018-01-09  James Greenhalgh  <james.greenhalgh@arm.com>
1312
1313         * testsuite/gas/aarch64/system.d: Update expected results to expect
1314         CSDB for hint 0x14.
1315
1316 2018-01-08  H.J. Lu  <hongjiu.lu@intel.com>
1317
1318         PR gas/22681
1319         * testsuite/gas/i386/i386.exp: Run x86-64-movd and
1320         x86-64-movd-intel.
1321         * testsuite/gas/i386/x86-64-movd-intel.d: New file.
1322         * testsuite/gas/i386/x86-64-movd.d: Likewise.
1323         * testsuite/gas/i386/x86-64-movd.s: Likewise.
1324
1325 2018-01-08  Nick Clifton  <nickc@redhat.com>
1326
1327         PR 22553
1328         * doc/c-i386.texi (i386-Directives): Document the .largecomm
1329         directive.
1330
1331 2018-01-04  Jim Wilson  <jimw@sifive.com>
1332
1333         * testsuite/gas/riscv/priv-reg.s: Add missing stval and mtval.
1334         * testsuite/gas/riscv/priv-reg.d: Likewise.
1335
1336 2018-01-03  Alan Modra  <amodra@gmail.com>
1337
1338         Update year range in copyright notice of all files.
1339
1340 2018-01-02  Nick Clifton  <nickc@redhat.com>
1341
1342         PR 18119
1343         * config/tc-arm.c (do_mrs): Fix test of bits 16-19 in non-banked
1344         version of ARM MRS instruction.
1345
1346 For older changes see ChangeLog-2017
1347 \f
1348 Copyright (C) 2018 Free Software Foundation, Inc.
1349
1350 Copying and distribution of this file, with or without modification,
1351 are permitted in any medium without royalty provided the copyright
1352 notice and this notice are preserved.
1353
1354 Local Variables:
1355 mode: change-log
1356 left-margin: 8
1357 fill-column: 74
1358 version-control: never
1359 End: