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