gas: enable PC-relative diff relocations on sparc64
[external/binutils.git] / gas / ChangeLog
1 2017-08-23  James Clarke  <jrtc27@jrtc27.com>
2
3         * config/tc-sparc.c (tc_gen_reloc): Convert BFD_RELOC_8/16/32/64
4         into the corresponding BFD_RELOC_8/16/32/64_PCREL relocation
5         when requested.
6         * config/tc-sparc.h (DIFF_EXPR_OK): Define to enable PC-relative
7         diff relocations.
8         (TC_FORCE_RELOCATION_SUB_LOCAL): Define to ensure only supported
9         relocations are made PC-relative.
10         (CFI_DIFF_EXPR_OK): Define to 0 to force BFD_RELOC_32_PCREL to
11         be used directly, since otherwise BFD_RELOC_SPARC_UA32 will be
12         used for .eh_frame which cannot in general be converted to a
13         BFD_RELOC_32_PCREL due to alignment requirements.
14
15 2017-08-22  Alan Modra  <amodra@gmail.com>
16
17         * testsuite/gas/ppc/lsp-checks.d: Assemble with -a32.
18         * testsuite/gas/ppc/lsp.d: Likewise.
19
20 2017-08-21  Alexander Fedotov <alexander.fedotov@nxp.com>
21             Edmar Wienskoski <edmar.wienskoski@nxp.com
22
23         * testsuite/gas/ppc/lsp-checks.d,
24         * testsuite/gas/ppc/lsp-checks.l,
25         * testsuite/gas/ppc/lsp-checks.s: New test.
26         * testsuite/gas/ppc/lsp.d,
27         * testsuite/gas/ppc/lsp.s: New test.
28         * testsuite/gas/ppc/ppc.exp: Run new tests.
29
30 2017-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31
32         * config/tc-aarch64.c (REGDEF_ALIAS): Define
33         (reg_names): Update for ip0, ip1, fp, lr to use REGDEF_ALIAS
34         * doc/c-aarch64.texi: Update documentation on .req.
35         * testsuite/gas/diagnostic.s: Update
36         * testsuite/gas/diagnostic.l: Likewise
37         * testsuite/gas/register_aliases.s: New file.
38         * testsuite/gas/register_aliases.d: New file.
39
40 2017-08-11  H.J. Lu  <hongjiu.lu@intel.com>
41
42         PR gas/21667
43         * read.c (pseudo_set): Update error message for alias of common
44         symbol.
45         * write.c (write_object_file): Disallow both local and global
46         aliases of common symbol.
47         * testsuite/gas/elf/common5a.d: New file.
48         * testsuite/gas/elf/common5a.l: Likewise.
49         * testsuite/gas/elf/common5a.s: Likewise.
50         * testsuite/gas/elf/common5b.d: Likewise.
51         * testsuite/gas/elf/common5b.l: Likewise.
52         * testsuite/gas/elf/common5b.s: Likewise.
53         * testsuite/gas/elf/common5c.d: Likewise.
54         * testsuite/gas/elf/common5c.s: Likewise.
55         * testsuite/gas/elf/common5d.d: Likewise.
56         * testsuite/gas/elf/common5d.s: Likewise.
57         * testsuite/gas/elf/elf.exp: Run common5a, common5b, common5c
58         and common5d.
59
60 2017-08-10  Nick Clifton  <nickc@redhat.com>
61
62         PR gas/21939
63         * config/obj-macho.c (obj_mach_o_set_indirect_symbols): Increase
64         size of indirect_syms array so that it is large enough to hold
65         every symbol if necessary.
66
67 2017-08-09  Jiong Wang  <jiong.wang@arm.com>
68
69         * config/tc-arm.c (do_crc32_1): Remove warning on REG_SP for thumb_mode.
70         * testsuite/gas/arm/crc32-armv8-a-bad.d: Update exepcted result.
71         * testsuite/gas/arm/crc32-armv8-r-bad.d: Likewise.
72         * testsuite/gas/arm/crc32-armv8-a.d: Likewise.
73         * testsuite/gas/arm/crc32-armv8-r.d: Likewise.
74         * testsuite/gas/arm/crc32-armv8-ar-bad.s: Update test case.
75         * testsuite/gas/arm/crc32-armv8-ar.s: Likewise.
76         * testsuite/gas/arm/crc32-bad.l: Update expected error message.
77
78 2017-08-02  Nick Clifton  <nickc@redhat.com>
79
80         * testsuite/gas/all/gas.exp: Add am33 to the skip lists of tests
81         passed over by the mn10300 target.
82         * testsuite/gas/elf/elf.exp: Likewise.
83         * testsuite/gas/elf/dwarf2-11.d: Correct skip of am33 target.
84         * testsuite/gas/elf/dwarf2-12.d: Likewise.
85         * testsuite/gas/elf/dwarf2-13.d: Likewise.
86         * testsuite/gas/elf/dwarf2-14.d: Likewise.
87         * testsuite/gas/elf/dwarf2-15.d: Likewise.
88         * testsuite/gas/elf/dwarf2-16.d: Likewise.
89         * testsuite/gas/elf/dwarf2-17.d: Likewise.
90         * testsuite/gas/elf/dwarf2-18.d: Likewise.
91         * testsuite/gas/elf/dwarf2-5.d: Likewise.
92         * testsuite/gas/elf/dwarf2-6.d: Likewise.
93         * testsuite/gas/elf/dwarf2-7.d: Likewise.
94
95 2017-08-01  H.J. Lu  <hongjiu.lu@intel.com>
96
97         PR gas/21874
98         * config/tc-i386-intel.c (i386_intel_operand): Update segment
99         register check.
100         * testsuite/gas/i386/intelok.s: Replace "fs:gs:[eax]" with
101         "fs:[eax]".
102         * testsuite/gas/i386/inval-seg.s: Add tests for invalid segment
103         register.
104         * testsuite/gas/i386/x86-64-inval-seg.s: Likewise.
105         * testsuite/gas/i386/inval-seg.l: Updated.
106         * testsuite/gas/i386/x86-64-inval-seg.l: Likewise.
107
108 2017-07-31  John David Anglin  <danglin@gcc.gnu.org>
109
110         * config/tc-hppa.c (pa_ip): Clear `d' bit in branch on bit instructions
111         with a double-word condition and a fixed bit position greater than 31.
112
113 2017-07-28  Andrew Waterman  <andrew@sifive.com>
114
115         * config/tc-riscv.c (riscv_set_arch): Handle the Q subset like
116         all other subsets.
117         Obviate use-after-free.
118
119 2017-07-25  Nick Clifton  <nickc@redhat.com>
120
121         PR 21739
122         * testsuite/gas/arc/add_s-err.s: Update expected error message.
123
124 2017-07-24  Nick Clifton  <nickc@redhat.com>
125
126         PR 21809
127         * config/tc-aarch64.c (aarch64_init_frag): Do not set a mapping
128         state for frags in debug sections.
129         * config/tc-arm.c (arm_init_frag): Likewise.
130
131 2017-07-24  Hans-Peter Nilsson  <hp@bitrange.com>
132
133         * dwarf2dbg.c (dwarf2dbg_final_check): Rename local variable exp
134         from expr.
135
136 2017-07-21  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
137
138         * config/tc-s390.c (s390_parse_cpu): Add z14 as alternate CPU
139         name.
140         * doc/as.texinfo: Add z14 to CPU string list.
141         * doc/c-s390.texi: Likewise.
142
143 2017-07-21  Alexandre Oliva  <aoliva@redhat.com>
144
145         * dwarf2dbg.c (unused): Check offset of next in struct line_entry.
146         (current): Initialize view.
147         (force_reset_view, view_assert_failed): New variables.
148         (reverse_line_entry_list): New function.
149         (set_or_check_view): Likewise.
150         (dwarf2_gen_line_info_1): Call it.
151         (dwarf2_where): Set view to NULL.
152         (dwarf2_emit_insn): Return early when called before first file.
153         (dwarf2_directive_loc): Add view support.  Emit insn
154         immediately when view option is given.
155         (process_entries): Avoid set_address to reset view when a known
156         address change already implies the view reset.
157         (dwarf2dbg_final_check): New function.
158         * dwarf2dbg.h (struct dwarf2_line_info): Add view.
159         (dwarf2dbg_final_check): Declare.
160         * read.c (s_leb128): Parse expression as deferred.
161         * write.c (write_object_file): Check pending view asserts.
162         (cvt_frag_to_fill): Complain about undefined leb128 operand.
163         * doc/as.texinfo (.loc): Document view support.
164         * NEWS: Mention the new feature.
165         * testsuite/gas/all/gas.exp: Run sleb128-9.
166         * testsuite/gas/all/sleb128-9.d: New.
167         * testsuite/gas/all/sleb128-9.l: New.
168         * testsuite/gas/all/sleb128-9.s: New.
169         * testsuite/gas/elf/dwarf2-1.d: Add nonzero views.
170         * testsuite/gas/elf/dwarf2-2.d: Likewise.
171         * testsuite/gas/elf/dwarf2-5.d: New.
172         * testsuite/gas/elf/dwarf2-5.s: New.
173         * testsuite/gas/elf/dwarf2-6.d: New.
174         * testsuite/gas/elf/dwarf2-6.s: New.
175         * testsuite/gas/elf/dwarf2-7.d: New.
176         * testsuite/gas/elf/dwarf2-7.s: New.
177         * testsuite/gas/elf/dwarf2-8.d: New.
178         * testsuite/gas/elf/dwarf2-8.l: New.
179         * testsuite/gas/elf/dwarf2-8.s: New.
180         * testsuite/gas/elf/dwarf2-9.d: New.
181         * testsuite/gas/elf/dwarf2-9.l: New.
182         * testsuite/gas/elf/dwarf2-9.s: New.
183         * testsuite/gas/elf/dwarf2-10.d: New.
184         * testsuite/gas/elf/dwarf2-10.l: New.
185         * testsuite/gas/elf/dwarf2-10.s: New.
186         * testsuite/gas/elf/dwarf2-11.d: New.
187         * testsuite/gas/elf/dwarf2-11.s: New.
188         * testsuite/gas/elf/dwarf2-12.d: New.
189         * testsuite/gas/elf/dwarf2-12.s: New.
190         * testsuite/gas/elf/dwarf2-13.d: New.
191         * testsuite/gas/elf/dwarf2-13.s: New.
192         * testsuite/gas/elf/dwarf2-14.d: New.
193         * testsuite/gas/elf/dwarf2-14.s: New.
194         * testsuite/gas/elf/dwarf2-15.d: New.
195         * testsuite/gas/elf/dwarf2-15.s: New.
196         * testsuite/gas/elf/dwarf2-16.d: New.
197         * testsuite/gas/elf/dwarf2-16.s: New.
198         * testsuite/gas/elf/dwarf2-17.d: New.
199         * testsuite/gas/elf/dwarf2-17.s: New.
200         * testsuite/gas/elf/dwarf2-18.d: New.
201         * testsuite/gas/elf/dwarf2-18.s: New.
202         * testsuite/gas/elf/elf.exp: Run dwarf2-5..18 tests.
203         * testsuite/gas/i386/dw2-compress-1.d: Add nonzero views.
204         * testsuite/gas/i386/dw2-compressed-1.d: Likewise.
205         * testsuite/gas/i386/ilp32/lns/lns-duplicate.d: Likewise.
206         * testsuite/gas/lns/lns-big-delta.d: Likewise.
207         * testsuite/gas/lns/lns-duplicate.d: Likewise.
208         * testsuite/gas/mips/loc-swap-2.d: Likewise.
209         * testsuite/gas/mips/loc-swap-3.d: Likewise.
210         * testsuite/gas/mips/loc-swap.d: Likewise.
211         * testsuite/gas/mips/micromips@loc-swap-2.d: Likewise.
212         * testsuite/gas/mips/micromips@loc-swap.d: Likewise.
213         * testsuite/gas/mips/mips16@loc-swap-2.d: Likewise.
214         * testsuite/gas/mips/mips16@loc-swap.d: Likewise.
215         * testsuite/gas/mips/mips16e@loc-swap.d: Likewise.
216
217 2017-07-19  Claudiu Zissulescu  <claziss@synopsys.com>
218
219         * testsuite/gas/arc/jli-1.d: New file.
220         * testsuite/gas/arc/jli-1.s: Likewise.
221         * testsuite/gas/arc/taux.d: Update for jli_base.
222
223 2017-07-19  Tristan Gingold  <gingold@adacore.com>
224
225         * as.c (start_sbrk): Remove.
226         (main): Remove assignment.
227         (dump_statistics): Remove display of data size.
228
229 2017-07-19  Tristan Gingold  <gingold@adacore.com>
230
231         * testsuite/gas/pe/seh-x64-err-2.s: New test.
232         * testsuite/gas/pe/seh-x64-err-2.l: New stderr output.
233         * testsuite/gas/pe/pe.exp: Add test.
234         * config/obj-coff-seh.c (obj_coff_seh_do_final): Don't try to end
235         seh part.
236
237 2017-07-18  Nick Clifton  <nickc@redhat.com>
238
239         PR 21775
240         * config/tc-arm.c: Fix spelling typos.
241         * config/tc-mips.c: Likewise.
242         * config/tc-msp430.c: Likewise.
243         * config/tc-sh64.c: Likewise.
244         * config/tc-tic4x.c: Likewise.
245         * ecoff.c: Likewise.
246         * testsuite/gas/arm/ldr-bad.l: Likewise.
247         * testsuite/gas/arm/ldr-t-bad.l: Likewise.
248         * testsuite/gas/tic54x/opcodes.s: Likewise.
249         * testsuite/gas/msp340/errata_warns.l: Likewise.
250
251 2017-07-18  Nick Clifton  <nickc@redhat.com>
252
253         * po/uk.po: Updated Ukranian translation.
254
255 2017-07-17  Georg-Johann Lay  <avr@gjlay.de>
256
257         PR 21472
258         * config/tc-avr.c (mcu_types): Add entries for: attiny212,
259         attiny214, attiny412, attiny414, attiny814, attiny1614,
260         attiny1616, attiny1617, attiny3214, attiny3216, attiny3217.
261         (md_show_usage): Adjust doc for "avrxmega3".
262         * doc/c-avr.texi (AVR options) [-mmcu=]: Adjust doc for avrxmega3.
263         Add MCUs: attiny212, attiny214, attiny412, attiny414, attiny416,
264         attiny417, attiny814, attiny816, attiny817, attiny1614,
265         attiny1616, attiny1617, attiny3214, attiny3216, attiny3217.
266
267 2017-07-13  Jim Wilson  <jim.wilson@linaro.org>
268
269         * config/tc-arch64.c (aarch64_cpus): Add AARCH64_FEATURE_RDMA to
270         falkor and qdf24xx entries.
271
272 2017-07-12  Alan Modra  <amodra@gmail.com>
273
274         * po/es.po: Update from translationproject.org/latest/gas/.
275         * po/fi.po: Likewise.
276         * po/fr.po: Likewise.
277         * po/id.po: Likewise.
278         * po/ja.po: Likewise.
279         * po/ru.po: Likewise.
280         * po/sv.po: Likewise.
281         * po/tr.po: Likewise.
282         * po/uk.po: Likewise.
283         * po/zh_CN.po: Likewise.
284
285 2017-07-12  Nick Clifton  <nickc@redhat.com>
286
287         Fix compile time warnings using gcc 7.1.1.
288         * config/tc-pru.c (md_assemble): Add continue statement after
289         handling 'E' operand character.
290         * config/tc-v850.c (md_assemble): Initialise the 'insn' variable.
291
292 2017-07-05  James Greenhalgh  <james.greenhalgh@arm.com>
293
294         * config/tc-arm.c (arm_cpus): Add Cortex-A55 and Cortex-A75.
295         * doc/c-arm.texi (-mcpu): Document Cortex-A55 and Cortex-A75.
296
297 2017-07-05  Borislav Petkov  <bp@suse.de>
298
299         * testsuite/gas/i386/opcode.s: Add tests for ModRM.reg == 6 variants.
300         * testsuite/gas/i386/opcode.d: ditto.
301         * testsuite/gas/i386/x86-64-opcode.s: Add x86_64 variants too.
302         * testsuite/gas/i386/x86-64-opcode.d: ditto.
303
304 2017-07-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
305
306         * config/tc-arm.c (arm_regs): Add MVFR2.
307         (do_vmrs): Constraint for MVFR2 and armv8.
308         (do_vmsr): Likewise.
309         * testsuite/gas/arm/armv8-a+fp.d: Update.
310         * testsuite/gas/arm/armv8-ar+fp.s: Likewise.
311         * testsuite/gas/arm/armv8-r+fp.d: Likewise.
312         * testsuite/gas/arm/vfp-bad.s: Likewise.
313         * testsuite/gas/arm/vfp-bad.l: Likewise.
314
315 2017-07-04  Tristan Gingold  <gingold@adacore.com>
316
317         * configure: Regenerate.
318
319 2017-07-04  Tristan Gingold  <gingold@adacore.com>
320
321         * NEWS: Add marker for 2.29.
322
323 2017-07-03  Alan Modra  <amodra@gmail.com>
324
325         * testsuite/gas/elf/symver.d: Don't run on hppa64-hpux.
326
327 2017-06-30  Maciej W. Rozycki  <macro@imgtec.com>
328
329         * config/tc-mips.c (md_convert_frag): Use a switch on the
330         microMIPS relaxation type rather than a chain of conditionals.
331
332 2017-06-30  Maciej W. Rozycki  <macro@imgtec.com>
333
334         * config/tc-mips.c (md_convert_frag): Rewrite `fix_new_exp'
335         calls in terms of `fix_new'.
336
337 2017-06-30  Maciej W. Rozycki  <macro@imgtec.com>
338
339         * config/tc-mips.c (md_convert_frag): Don't make a helper
340         expression symbol for `fix_new_exp' called with a non-zero
341         offset.
342         * testsuite/gas/mips/relax-offset.d: New test.
343         * testsuite/gas/mips/mips1@relax-offset.d: New test.
344         * testsuite/gas/mips/r3000@relax-offset.d: New test.
345         * testsuite/gas/mips/r3900@relax-offset.d: New test.
346         * testsuite/gas/mips/micromips@relax-offset.d: New test.
347         * testsuite/gas/mips/relax-offset.l: New stderr output.
348         * testsuite/gas/mips/relax-offset.s: New test source.
349         * testsuite/gas/mips/mips.exp: Run the new tests.
350
351 2017-06-30  Georg-Johann Lay  <avr@gjlay.de>
352
353         PR gas/21683
354         * doc/c-avr.texi (AVR Options) <-mgcc-isr>: Document it.
355         (AVR Pseudo Instructions): New node.
356         * config/tc-avr.h (md_pre_output_hook): Define to avr_pre_output_hook.
357         (md_undefined_symbol): Define to avr_undefined_symbol.
358         (avr_pre_output_hook, avr_undefined_symbol): New protos.
359         * config/tc-avr.c (struc-symbol.h): Include it.
360         (ISR_CHUNK_Done, ISR_CHUNK_Prologue, ISR_CHUNK_Epilogue): New enums.
361         (avr_isr, avr_gccisr_opcode)
362         (avr_no_sreg_hash, avr_no_sreg): New static variables.
363         (avr_opt_s) <have_gccisr>: Add field.
364         (avr_opt): Add initializer for have_gccisr.
365         (enum options) <OPTION_HAVE_GCCISR>: Add enum.
366         (md_longopts) <"mgcc-isr">: Add entry.
367         (md_show_usage): Document -mgcc-isr.
368         (md_parse_option) [OPTION_HAVE_GCCISR]: Handle it.
369         (md_undefined_symbol): Remove.
370         (avr_undefined_symbol, avr_pre_output_hook): New fuctions.
371         (md_begin) <avr_no_sreg_hash, avr_gccisr_opcode>: Initialize them.
372         (avr_operand) <pregno>: Add argument and set *pregno if function
373         is called for a register constraint.
374         [N]: Handle constraint.
375         (avr_operands) <avr_operand>: Pass 5th parameter to calls.
376         [avr_opt.have_gccisr]: Call avr_update_gccisr.  Call
377         avr_gccisr_operands instead of avr_operands.
378         (avr_update_gccisr, avr_emit_insn, avr_patch_gccisr_frag)
379         (avr_gccisr_operands, avr_check_gccisr_done): New static functions.
380         * testsuite/gas/avr/gccisr-01.d: New test.
381         * testsuite/gas/avr/gccisr-01.s: New test.
382         * testsuite/gas/avr/gccisr-02.d: New test.
383         * testsuite/gas/avr/gccisr-02.s: New test.
384         * testsuite/gas/avr/gccisr-03.d: New test.
385         * testsuite/gas/avr/gccisr-03.s: New test.
386
387 2017-06-30  Maciej W. Rozycki  <macro@imgtec.com>
388
389         * config/tc-mips.c (match_float_constant): Update description.
390         (match_operand): Likewise.
391
392 2017-06-30  Andrew Bennett  <andrew.bennett@imgtec.com>
393             Maciej W. Rozycki  <macro@imgtec.com>
394
395         * config/tc-mips.c (mips_ases): Add microMIPS XPA support.
396         * testsuite/gas/mips/micromips@xpa.d: New test.
397         * testsuite/gas/mips/mips.exp: Run the new test.  Enable
398         `xpa-virt-err' test for `micromips'.
399
400 2017-06-30  Andrew Bennett  <andrew.bennett@imgtec.com>
401             Maciej W. Rozycki  <macro@imgtec.com>
402
403         * testsuite/gas/mips/micromips@r5.d: New test.
404         * testsuite/gas/mips/mips.exp: Run the new test.
405
406 2017-06-30  Maciej W. Rozycki  <macro@imgtec.com>
407             Andrew Bennett  <andrew.bennett@imgtec.com>
408
409         * config/tc-mips.c (mips_set_ase): Handle the ASE_XPA_VIRT flag.
410         * testsuite/gas/mips/xpa.d: Remove `xpa' from `-M' in `objdump'
411         flags.  Add `-mvirt' to `as' flags.
412         * testsuite/gas/mips/xpa-err.d: New test.
413         * testsuite/gas/mips/xpa-virt-err.d: New test.
414         * testsuite/gas/mips/xpa-err.l: New stderr output.
415         * testsuite/gas/mips/xpa-virt-err.l: New stderr output.
416         * testsuite/gas/mips/xpa-err.s: New test source.
417         * testsuite/gas/mips/xpa-virt-err.s: New test source.
418         * testsuite/gas/mips/mips.exp: Run the new tests.
419
420 2017-06-29  Maciej W. Rozycki  <macro@imgtec.com>
421
422         * testsuite/gas/mips/mips16e2@mips16e2-mt-sub.d: Adjust for the
423         ASE_MIPS16E2_MT flag disassembler fix.
424         * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16e2-mt-sub.d:
425         Likewise.
426
427 2017-06-29  Maciej W. Rozycki  <macro@imgtec.com>
428
429         * config/tc-mips.c (mips_set_ase): Clear the ASE_MIPS16E2_MT
430         flag before recalculating.
431         * testsuite/gas/mips/mips16e2-mt-err.d: New test.
432         * testsuite/gas/mips/mips16e2-mt-err.l: New stderr output.
433         * testsuite/gas/mips/mips16e2-mt-err.s: New test source.
434         * testsuite/gas/mips/mips.exp: Run the new test.
435
436 2017-06-28  Tamar Christina  <tamar.christina@arm.com>
437
438         * config/tc-aarch64.c (aarch64_reg_parse_32_64): Accept 4B.
439         (aarch64_features): Added dotprod.
440         * doc/c-aarch64.texi: Added dotprod.
441         * testsuite/gas/aarch64/dotproduct.d: New.
442         * testsuite/gas/aarch64/dotproduct.s: New.
443
444 2017-06-28  Jiong Wang  <jiong.wang@arm.com>
445
446         * config/tc-arm.c (fpu_neon_ext_dotprod): New variable.
447         (neon_scalar_for_mul): Improve comments.
448         (do_neon_dotproduct): New function to encode Dot Product instructions.
449         (do_neon_dotproduct_s): Wrapper function for signed Dot Product
450         instructions.
451         (do_neon_dotproduct_u): Wrapper function for unsigned Dot Product
452         instructions.
453         (insns): New entries for vsdot and vudot.
454         (arm_extensions): New entry for "dotprod".
455         * doc/c-arm.texi: Document new "dotprod" extension.
456         * testsuite/gas/arm/dotprod.s: New test source.
457         * testsuite/gas/arm/dotprod-illegal.s: New test source.
458         * testsuite/gas/arm/dotprod.d: New test.
459         * testsuite/gas/arm/dotprod-thumb2.d: New test.
460         * testsuite/gas/arm/dotprod-illegal.d: New test.
461         * testsuite/gas/arm/dotprod-legacy-arch.d: New test.
462         * testsuite/gas/arm/dotprod-illegal.l: New error file.
463         * testsuite/gas/arm/dotprod-legacy-arch.l: New error file.
464
465 2017-06-28  Maciej W. Rozycki  <macro@imgtec.com>
466
467         * testsuite/gas/mips/elf_mach_interaptiv-mr2.d: New test.
468         * testsuite/gas/mips/save-err.d: New test.
469         * testsuite/gas/mips/save-sub.d: New test.
470         * testsuite/gas/mips/interaptiv-mr2@save.d: New test.
471         * testsuite/gas/mips/mips1@save-sub.d: New test.
472         * testsuite/gas/mips/mips2@save-sub.d: New test.
473         * testsuite/gas/mips/mips3@save-sub.d: New test.
474         * testsuite/gas/mips/mips4@save-sub.d: New test.
475         * testsuite/gas/mips/mips5@save-sub.d: New test.
476         * testsuite/gas/mips/mips32@save-sub.d: New test.
477         * testsuite/gas/mips/mips64@save-sub.d: New test.
478         * testsuite/gas/mips/mips16@save-sub.d: New test.
479         * testsuite/gas/mips/mips16e@save-sub.d: New test.
480         * testsuite/gas/mips/r3000@save-sub.d: New test.
481         * testsuite/gas/mips/r3900@save-sub.d: New test.
482         * testsuite/gas/mips/r4000@save-sub.d: New test.
483         * testsuite/gas/mips/vr5400@save-sub.d: New test.
484         * testsuite/gas/mips/interaptiv-mr2@save-sub.d: New test.
485         * testsuite/gas/mips/sb1@save-sub.d: New test.
486         * testsuite/gas/mips/octeon2@save-sub.d: New test.
487         * testsuite/gas/mips/octeon3@save-sub.d: New test.
488         * testsuite/gas/mips/xlr@save-sub.d: New test.
489         * testsuite/gas/mips/r5900@save-sub.d: New test.
490         * testsuite/gas/mips/mips16e2-copy.d: New test.
491         * testsuite/gas/mips/mips16e2-copy-err.d: New test.
492         * testsuite/gas/mips/save.d: Remove `MIPS16e' from the `name'
493         option.  Adjust for trailing padding change.
494         * testsuite/gas/mips/mips16e2-copy-err.l: New stderr output.
495         * testsuite/gas/mips/save-sub.s: New test source.
496         * testsuite/gas/mips/mips16e2-copy.s: New test source.
497         * testsuite/gas/mips/mips16e2-copy-err.s: New test source.
498         * testsuite/gas/mips/save.s: Update description, change trailing
499         padding and remove trailing white space.
500         * testsuite/gas/mips/mips.exp: Expand `save' and `save-err'
501         tests across the regular MIPS interAptiv MR2 architecture.  Run
502         the new tests.
503
504 2017-06-28  Maciej W. Rozycki  <macro@imgtec.com>
505
506         * testsuite/gas/mips/mips.exp (interaptiv-mr2): New architecture.
507         (mips16e2-interaptiv-mr2): Likewise.
508         * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16-macro.d: New
509         test.
510         * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16-macro-t.d:
511         New test.
512         * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16-macro-e.d:
513         New test.
514         * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16-insn-t.d:
515         New test.
516         * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16-insn-e.d:
517         New test.
518         * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16e-64.d: New
519         test.
520         * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16-sub.d: New
521         test.
522         * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16e-sub.d: New
523         test.
524         * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16e-64-sub.d:
525         New test.
526         * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16e2-mt-sub.d:
527         New test.
528         * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16-asmacro.d:
529         New test.
530         * testsuite/gas/mips/interaptiv-mr2@mcu.d: New test.
531         * testsuite/gas/mips/interaptiv-mr2@isa-override-1.d: New test.
532         * testsuite/gas/mips/interaptiv-mr2@isa-override-2.d: New test.
533         * testsuite/gas/mips/attr-gnu-4-5.d: Ignore any number of ASE
534         flag lines present rather than just one.
535         * testsuite/gas/mips/attr-gnu-4-6.d: Likewise.
536         * testsuite/gas/mips/attr-gnu-4-7.d: Likewise.
537         * testsuite/gas/mips/attr-none-o32-fp64-nooddspreg.d: Likewise.
538         * testsuite/gas/mips/attr-none-o32-fp64.d: Likewise.
539         * testsuite/gas/mips/attr-none-o32-fpxx.d: Likewise.
540         * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16-macro.l: New
541         stderr output.
542         * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16-macro-t.l:
543         New stderr output.
544         * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16-macro-e.l:
545         New stderr output.
546         * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16-insn-t.l:
547         New stderr output.
548         * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16-insn-e.l:
549         New stderr output.
550         * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16-sub.l: New
551         stderr output.
552         * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16e-sub.l: New
553         stderr output.
554         * testsuite/gas/mips/mips16e2-interaptiv-mr2@mips16e-64-sub.l:
555         New stderr output.
556         * testsuite/gas/mips/interaptiv-mr2@isa-override-1.l: New stderr
557         output.
558         * testsuite/gas/mips/interaptiv-mr2@isa-override-2.l: New stderr
559         output.
560
561 2017-06-28  Maciej W. Rozycki  <macro@imgtec.com>
562             Matthew Fortune  <matthew.fortune@imgtec.com>
563
564         * config/tc-mips.c (validate_mips_insn): Handle
565         OP_SAVE_RESTORE_LIST specially.
566         (mips_encode_save_restore, mips16_encode_save_restore): New
567         functions.
568         (match_save_restore_list_operand): Factor out SAVE/RESTORE
569         operand insertion into the instruction word or halfword to these
570         new functions.
571         (mips_cpu_info_table): Add "interaptiv-mr2" entry.
572
573         * doc/c-mips.texi (MIPS Options): Add `interaptiv-mr2' to the
574         `-march=' argument list.
575
576 2017-06-27  Maciej W. Rozycki  <macro@imgtec.com>
577
578         * testsuite/gas/mips/mips16e-save.d: Rename to...
579         * testsuite/gas/mips/save.d: ... this.
580         * testsuite/gas/mips/mips16e-save-err.d: Update the
581         `error-output' option and rename to...
582         * testsuite/gas/mips/save-err.d: ... this.
583         * testsuite/gas/mips/mips16e-save-err.l: Rename to...
584         * testsuite/gas/mips/save-err.l: ... this.
585         * testsuite/gas/mips/mips16e-save.s: Rename to...
586         * testsuite/gas/mips/save.s: ... this.
587         * testsuite/gas/mips/mips16e-save-err.s: Rename to...
588         * testsuite/gas/mips/save-err.s: ... this.
589         * testsuite/gas/mips/mips.exp: Rename `mips16e-save' and
590         `mips16e-save-err' invocations to `save' and `save-err'
591         respectively and reorder these tests away from MIPS16 tests.
592
593 2017-06-27  Maciej W. Rozycki  <macro@imgtec.com>
594
595         * testsuite/gas/mips/mips16e-save.d: Remove `-mmips:isa32
596         -mmips:16' from `objdump' flags and `-march=mips32 -mips16' from
597         `as' flags.
598         * testsuite/gas/mips/mips16e-save-err.d: Remove `-march=mips32'
599         from `as' flags.
600         * testsuite/gas/mips/mips16e-save.s: Remove the `.set mips16'
601         pseudo-op.
602         * testsuite/gas/mips/mips16e-save-err.s: Likewise.
603         * testsuite/gas/mips/mips.exp: Run SAVE/RESTORE tests across all
604         MIPS16e architectures.
605
606 2017-06-27  Maciej W. Rozycki  <macro@imgtec.com>
607
608         * testsuite/gas/mips/mips16e-save-err.d: New test.
609         * gas/testsuite/gas/mips/mips.exp: Fold `mips16e-save-err' list
610         test into the new test.
611
612 2017-06-27  Maciej W. Rozycki  <macro@imgtec.com>
613
614         * testsuite/gas/mips/mips16e-save.d: Capitalize the `name'
615         option.
616
617 2017-06-26  Kuan-Lin Chen  <rufus@andestech.com>
618
619         * config/tc-riscv.c (md_apply_fix) [BFD_RELOC_32]: Convert to a
620         R_RISCV_32_PCREL relocation.
621
622 2017-06-26  H.J. Lu  <hongjiu.lu@intel.com>
623
624         PR gas/21661
625         * config/obj-elf.c (obj_elf_symver): Don't allow .symver with
626         common symbol.
627         (elf_frob_symbol): Likewise.
628         * testsuite/gas/elf/elf.exp: Run pr21661.
629         * testsuite/gas/elf/pr21661.d: New file.
630         * testsuite/gas/elf/pr21661.s: Likewise.
631
632 2017-06-26  Nick Clifton  <nickc@redhat.com>
633
634         * config/tc-arm.c (fpu_any): Only define for ELF based targets.
635
636 2017-06-26  Claudiu Zissulescu  <claziss@synopsys.com>
637
638         * /config/tc-arc.c (is_br_jmp_insn_p): Update macro with known
639         instructions to be accounted as jumps.
640         (assemble_insn): Check for limms into the delay slots.  Emit an
641         error if so.
642         * testsuite/gas/arc/asm-errors-3.d: New file.
643         * testsuite/gas/arc/asm-errors-3.err: Likewise.
644         * testsuite/gas/arc/asm-errors-3.s: Likewise.
645
646 2017-06-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
647
648         * NEWS: Mention support of ARM Cortex-R52 processor.
649         * config/tc-arm.c (arm_cpus): Add entry for ARM Cortex-R52 processor.
650         * doc/c-arm.texi: Mention support for -mcpu=cortex-r52.
651
652 2017-06-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
653
654         * NEWS: Mention support for ARMv8-R architecture.
655         * config/tc-arm.c (arm_archs): Add entry for ARMv8-R.
656         (arm_extensions): Restrict pan, ras and rdma extension to
657         ARMv8-A and make crypto, fp and simd extensions available to
658         ARMv8-R.
659         (cpu_arch_ver): Add entry for ARMv8-R.
660         (aeabi_set_public_attributes): Update gas_assert for Tag_DIV_use
661         logic.
662         * testsuite/gas/arm/armv8-a+fp.s: Rename into ...
663         * testsuite/gas/arm/armv8-ar+fp.s: This.  Remove .arch directive.
664         * testsuite/gas/arm/armv8-a+fp.d: Specify source to assemble and
665         architecture to assemble for.
666         * testsuite/gas/arm/armv8-r+fp.d: New.
667         * testsuite/gas/arm/armv8-a+simd.s: Rename into ...
668         * testsuite/gas/arm/armv8-ar+simd.s: This.  Remove .arch directive.
669         * testsuite/gas/arm/armv8-a+simd.d: Specify source to assemble and
670         architecture to assemble for.
671         * testsuite/gas/arm/armv8-r+simd.d: New.
672         * testsuite/gas/arm/armv8-a-bad.s: Rename into ...
673         * testsuite/gas/arm/armv8-ar-bad.s: This.  Remove .arch directive.
674         * testsuite/gas/arm/armv8-a-bad.l: Rename into ...
675         * testsuite/gas/arm/armv8-ar-bad.l: This.  Decrement line number by 1.
676         * testsuite/gas/arm/armv8-a-bad.d: Specify source to assemble,
677         architecture to assemble for and adjust error output file.
678         * testsuite/gas/arm/armv8-r-bad.d: New.
679         * testsuite/gas/arm/armv8-a-barrier.s: Rename into ...
680         * testsuite/gas/arm/armv8-ar-barrier.s: This.
681         * testsuite/gas/arm/armv8-a-barrier-arm.d: Adjust source.
682         * testsuite/gas/arm/armv8-a-barrier-thumb.d: Likewise.
683         * testsuite/gas/arm/armv8-r-barrier-arm.d: New.
684         * testsuite/gas/arm/armv8-r-barrier-thumb.d: New.
685         * testsuite/gas/arm/armv8-a-it-bad.s: Rename into ...
686         * testsuite/gas/arm/armv8-ar-it-bad.s: This.  Remove .arch directive.
687         * testsuite/gas/arm/armv8-a-it-bad.l: Rename into ...
688         * testsuite/gas/arm/armv8-ar-it-bad.l: This.  Decrement line number
689         by 1.
690         * testsuite/gas/arm/armv8-a-it-bad.d: Specify source to assemble,
691         architecture to assemble for and adjust error output file.
692         * testsuite/gas/arm/armv8-r-it-bad.d: New.
693         * testsuite/gas/arm/armv8-a.s: Rename into ...
694         * testsuite/gas/arm/armv8-ar.s: This.  Remove .arch directive.
695         * testsuite/gas/arm/armv8-a.d: Specify source to assemble and
696         architecture to assemble for.
697         * testsuite/gas/arm/armv8-r.d: New.
698         * testsuite/gas/arm/attr-march-armv8-r+crypto.d: New.
699         * testsuite/gas/arm/attr-march-armv8-r+fp.d: New.
700         * testsuite/gas/arm/attr-march-armv8-r+simd.d: New.
701         * testsuite/gas/arm/attr-march-armv8-r.d: New.
702         * testsuite/gas/arm/crc32.s: Rename into ...
703         * testsuite/gas/arm/crc32-armv8-ar.s: This.
704         * testsuite/gas/arm/crc32.d: Rename into ...
705         * testsuite/gas/arm/crc32-armv8-a.d: This.  Specify source to assemble.
706         * testsuite/gas/arm/crc32-armv8-r.d: New.
707         * testsuite/gas/arm/crc32-bad.s: Rename into ...
708         * testsuite/gas/arm/crc32-armv8-ar-bad.s: This.
709         * testsuite/gas/arm/crc32-bad.d: Rename into ...
710         * testsuite/gas/arm/crc32-armv8-a-bad.d: This.  Specify source to
711         assemble.
712         * testsuite/gas/arm/crc32-armv8-r-bad.d: New.
713         * testsuite/gas/arm/mask_1.s: Rename into ...
714         * testsuite/gas/arm/mask_1-armv8-ar.s: This.
715         * testsuite/gas/arm/mask_1.d: Rename into ...
716         * testsuite/gas/arm/mask_1-armv8-a.d: This.  Specify source to
717         assemble.
718         * testsuite/gas/arm/mask_1-armv8-r.d: new.
719
720 2017-06-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
721
722         * config/tc-arm.c (arm_ext_v6m): Delete.
723         (arm_ext_v7m): Delete.
724         (arm_ext_m): Remove ARM_EXT_OS from the set of feature defined M
725         profile.
726         (arm_arch_v6m_only): Delete.
727         (do_t_swi): Remove special case for ARMv6S-M.
728         (md_assemble): Display error message previously in do_t_swi when
729         SVC is not available.
730         (insns): Guard swi and svc by arm_ext_os for Thumb mode.
731         (aeabi_set_public_attributes): Remove special case for ARMv6S-M.
732
733 2017-05-11  Andrew Waterman  <andrew@sifive.com>
734
735         * config/tc-riscv.c (riscv_ip): Changes as_warn to as_bad for improper
736         shift amounts.
737
738 2017-06-22  Nick Clifton  <nickc@redhat.com>
739
740         * config/tc-arm.c (arm_ext_v7m): Add ATTRIBUTE_UNUSED.
741
742 2017-06-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
743
744         * config/tc-arm.c (fpu_any): Defined from FPU_ANY.
745         (cpu_arch_ver): Add all architectures and sort by release date.
746         (have_ext_for_needed_feat_p): New.
747         (get_aeabi_cpu_arch_from_fset): New.
748         (aeabi_set_public_attributes): Call above function to determine
749         Tag_CPU_arch and Tag_CPU_arch_profile values.  Adapt Tag_ARM_ISA_use
750         and Tag_THUMB_ISA_use selection logic to check absence of feature bit
751         accordingly.
752         * testsuite/gas/arm/attr-march-armv1.d: Fix expected Tag_CPU_arch build
753         attribute value.
754         * testsuite/gas/arm/attr-march-armv2.d: Likewise.
755         * testsuite/gas/arm/attr-march-armv2a.d: Likewise.
756         * testsuite/gas/arm/attr-march-armv2s.d: Likewise.
757         * testsuite/gas/arm/attr-march-armv3.d: Likewise.
758         * testsuite/gas/arm/attr-march-armv3m.d: Likewise.
759         * testsuite/gas/arm/pr12198-2.d: Likewise.
760
761 2017-06-21  H.J. Lu  <hongjiu.lu@intel.com>
762
763         * testsuite/gas/i386/cet-intel.d: Updated.
764         * testsuite/gas/i386/cet.d: Likewise.
765         * testsuite/gas/i386/x86-64-cet-intel.d: Likewise.
766         * testsuite/gas/i386/x86-64-cet.d: Likewise.
767         * testsuite/gas/i386/cet.s: Update incsspd and setssbsy tests.
768         * testsuite/gas/i386/x86-64-cet.s: Likewise.
769
770 2017-06-21  H.J. Lu  <hongjiu.lu@intel.com>
771
772         * testsuite/gas/i386/cet-intel.d: Updated.
773         * testsuite/gas/i386/cet.d: Likewise.
774         * testsuite/gas/i386/x86-64-cet-intel.d: Likewise.
775         * testsuite/gas/i386/x86-64-cet.d: Likewise.
776         * testsuite/gas/i386/cet.s: Replace savessp with saveprevssp.
777         * testsuite/gas/i386/x86-64-cet.s: Likewise.
778
779 2017-06-21  H.J. Lu  <hongjiu.lu@intel.com>
780
781         * config/tc-i386.c (md_assemble): Update NOTRACK prefix check.
782         * testsuite/gas/i386/notrack-intel.d: Updated.
783         * testsuite/gas/i386/notrack.d: Likewise.
784         * testsuite/gas/i386/notrackbad.l: Likewise.
785         * testsuite/gas/i386/x86-64-notrack-intel.d: Likewise.
786         * testsuite/gas/i386/x86-64-notrack.d: Likewise.
787         * testsuite/gas/i386/x86-64-notrackbad.l: Likewise.
788         * testsuite/gas/i386/notrack.s: Add NOTRACK prefix tests with
789         memory indirect branch.
790         * testsuite/gas/i386/x86-64-notrack.s: Likewise.
791         * testsuite/gas/i386/notrackbad.s: Remove memory indirect branch
792         with NOTRACK prefix.
793         * testsuite/gas/i386/x86-64-notrackbad.s: Likewise.
794
795 2017-06-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>
796
797         * config/tc-arm.c (arm_extensions): New duplicate idiv entry to enable
798         Thumb division for ARMv7 architecture.
799         (arm_parse_extension): Document expected behavior for duplicate
800         entries.
801         (s_arm_arch_extension): Likewise.
802         * testsuite/gas/arm/forbid-armv7-idiv-ext.d: New test.
803         * testsuite/gas/arm/forbid-armv7-idiv-ext.l: New expected output for
804         above test.
805
806 2017-06-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
807
808         * config/tc-arm.c (aeabi_set_public_attributes): Populate flags from
809         feature bits used or selected_cpu depending on whether a CPU was
810         selected by the user.
811
812 2017-06-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
813
814         * config/tc-arm.c (aeabi_set_public_attributes): Test *mcpu_ext_opt to
815         decide whether to set Tag_DSP_extension build attribute value.  Remove
816         now useless arm_arch variable.
817
818 2017-06-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
819
820         * config/tc-arm.c (dyn_mcpu_ext_opt): New static variable.
821         (dyn_march_ext_opt): Likewise.
822         (md_begin): Copy extension feature bits alongside architecture ones.
823         Merge extensions feature bits in selected_cpu and cpu_variant if there
824         is some.
825         (arm_parse_extension): Pass architecture and extension feature bits in
826         separate parameters, with architecture bits being read only.  Update
827         **opt_p directly rather than *ext_set and initialize it if needed.
828         (arm_parse_cpu): Stop merging architecture and extension feature bits
829         and instead use mcpu_cpu_opt and dyn_mcpu_ext_opt to memorize them
830         respectively.  Adapt to change in parameters of arm_parse_extension.
831         (arm_parse_arch): Adapt to change in parameters of arm_parse_extension.
832         (aeabi_set_attribute_string): Make function static.
833         (arm_md_post_relax): New function.
834         (s_arm_cpu): Stop merging architecture and extension feature bits and
835         instead use mcpu_cpu_opt and dyn_mcpu_ext_opt to memorize them
836         respectively.  Merge extension feature bits in cpu_variant
837         if there is any.
838         (s_arm_arch): Reset extension feature bit.  Set selected_cpu from
839         *mcpu_cpu_opt and cpu_variant from selected_cpu and *mfpu_opt for
840         consistency with s_arm_cpu.
841         (s_arm_arch_extension): Update *dyn_mcpu_ext_opt rather than
842         selected_cpu, allocating it before hand if needed.  Set selected_cpu
843         from it and then cpu_variant.
844         (s_arm_fpu): Merge *mcpu_ext_opt feature bits if any in cpu_variant.
845         * config/tc-arm.h (md_post_relax_hook): Set to arm_md_post_relax.
846         (aeabi_set_public_attributes): Delete external declaration.
847         (arm_md_post_relax): Declare externally.
848
849 2017-06-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
850
851         * config/tc-arm.c (struct arm_cpu_option_table): New ext field.
852         (ARM_CPU_OPT): Add parameter to set new ext field and reorder canonical
853         name field just after the name field.
854         (arm_cpus): Move extension feature bit from value field to ext field,
855         reorder parameter according to changes in ARM_CPU_OPT and reindent.
856         (arm_parse_cpu): Point mcpu_cpu_opt to a bitfield merging the value and
857         ext field from the selected arm_cpus entry.
858         (s_arm_cpu): Likewise.
859
860 2017-06-21  James Greenhalgh  <james.greenhalgh@arm.com>
861
862         * config/tc-aarch64.c (aarch64_cpus): Add cortex-a55 and cortex-a75.
863         * doc/c-aarch64.texi (-mcpu): Document cortex-a55 and cortex-a75.
864
865 2017-06-15  H.J. Lu  <hongjiu.lu@intel.com>
866
867         PR binutils/21594
868         * testsuite/gas/i386/mpx.s: Add 2 tests with invalid bnd
869         register.
870         * testsuite/gas/i386/x86-64-mpx.s: Likewise.
871         * testsuite/gas/i386/mpx.d: Updated.
872         * testsuite/gas/i386/x86-64-mpx.d: Likewise.
873
874 2017-06-14  Max Filippov  <jcmvbkbc@gmail.com>
875
876         * config/tc-xtensa.c (density_supported, xtensa_fetch_width,
877         absolute_literals_supported): Leave definitions uninitialized.
878         (directive_state): Leave entries for directive_density and
879         directive_absolute_literals initialized to false.
880         (xg_init_global_config, xtensa_init): New functions.
881         * config/tc-xtensa.h (TARGET_BYTES_BIG_ENDIAN): Define as 0.
882         (HOST_SPECIAL_INIT): New definition.
883         (xtensa_init): New declaration.
884
885 2017-06-07  Michael Collison  <michael.collison@arm.com>
886
887         * config/tc-aarch64.c (reg_entry_reg_names): Add IP0,
888         IP1, FP, and LR as register aliases of register 16, 17, 29
889         and 30 respectively.
890         * testsuite/gas/aarch64/diagnostic.l: Remove diagnostic
891         prohibiting register 'lr' which is now an alias.
892         * testsuite/gas/aarch64/diagnostic.s: Remove instruction
893         utilizing register 'lr' which is now an alias.
894
895 2017-06-06  Jiong Wang  <jiong.wang@arm.com>
896
897         * config/tc-arm.c (reject_bad_reg): Allow REG_SP on ARMv8-A.
898         (parse_operands): Allow REG_SP for OP_oRRnpcsp and OP_RRnpcsp on
899         ARMv8-A.
900         (do_co_reg): Allow REG_SP for Rd on ARMv8-A.
901         (do_t_add_sub): Likewise.
902         (do_t_mov_cmp): Likewise.
903         (do_t_tb): Likewise.
904         * testsuite/gas/arm/ld-sp-warn.l: Delete the warning on REG_SP as Rt for
905         ldrsb.
906         * testsuite/gas/arm/sp-pc-validations-bad-t-v8a.d: New test.
907         * testsuite/gas/arm/sp-pc-validations-bad-t-v8a.l: New test.
908         * testsuite/gas/arm/sp-pc-validations-bad-t.d: Specifies -march=armv7-a.
909         * testsuite/gas/arm/sp-pc-validations-bad-t.s: Remove ".arch armv7-a".
910         * testsuite/gas/arm/sp-usage-thumb2-relax-on-v7.d: New test.
911         * testsuite/gas/arm/sp-usage-thumb2-relax-on-v7.l: New test.
912         * testsuite/gas/arm/sp-usage-thumb2-relax-on-v8.d: New test.
913         * testsuite/gas/arm/sp-usage-thumb2-relax.s: New test.
914         * testsuite/gas/arm/strex-bad-t.d: Specifies -march=armv7-a.
915
916 2017-06-05  Jim Wilson  <jim.wilson@linaro.org>
917
918         * config/tc-arm.c (arm_cpus): Delete falkor and qdf24xx entries.
919         * doc/c-arm.texi (-mcpu): Likewise.
920
921 2017-05-30  Anton Kolesov  <anton.kolesov@synopsys.com>
922
923         * config/tc-arc.c (cpu_types): Include arc-cpu.def
924
925 2017-05-23  H.J. Lu  <hongjiu.lu@intel.com>
926
927         * gas/testsuite/gas/i386/notrackbad.l: Updated for non-ELF
928         targets.
929         * gas/testsuite/gas/i386/x86-64-notrackbad.l: Likewise.
930
931 2017-05-23  Claudiu Zissulescu <claziss@synopsys.com>
932
933         * config/tc-arc.c (md_apply_fix): Use as_bad_where.
934         (assemble_insn): Use as_bad.
935
936 2017-05-22  H.J. Lu  <hongjiu.lu@intel.com>
937
938         * config/tc-i386.c (REX_PREFIX): Changed to 7.
939         (NOTRACK_PREFIX): New.
940         (MAX_PREFIXES): Changed to 8.
941         (_i386_insn): Add notrack_prefix.
942         (PREFIX_GROUP): Add PREFIX_DS.
943         (add_prefix): Return PREFIX_DS for DS_PREFIX_OPCODE.
944         (md_assemble): Check if NOTRACK prefix is supported.
945         (parse_insn): Set notrack_prefix and issue an error for
946         other prefixes after NOTRACK prefix.
947         * testsuite/gas/i386/i386.exp: Run tests for NOTRACK prefix.
948         * testsuite/gas/i386/notrack-intel.d: New file.
949         * testsuite/gas/i386/notrack.d: Likewise.
950         * testsuite/gas/i386/notrack.s: Likewise.
951         * testsuite/gas/i386/notrackbad.l: Likewise.
952         * testsuite/gas/i386/notrackbad.s: Likewise.
953         * testsuite/gas/i386/x86-64-notrack-intel.d: Likewise.
954         * testsuite/gas/i386/x86-64-notrack.d: Likewise.
955         * testsuite/gas/i386/x86-64-notrack.s: Likewise.
956         * testsuite/gas/i386/x86-64-notrackbad.l: Likewise.
957         * testsuite/gas/i386/x86-64-notrackbad.s: Likewise.
958
959 2017-05-22  Jiong Wang <jiong.wang@arm.com>
960
961         * configure.tgt: Set "arch" to "aarch64" if ${cpu} equals "aarch64".
962         Recognize the new triplet name aarch64*-linux-gnu_ilp32.
963         * configure.ac: Output DEFAULT_ARCH macro for AArch64.
964         * configure: Regenerate.
965         * config/tc-aarch64.h (aarch64_after_parse_args): New declaration.
966         (md_after_parse_args): New define.
967         * config/tc-aarch64.c (aarch64_abi_type): New enumeration
968         AARCH64_ABI_NONE.
969         (DEFAULT_ARCH): New define.
970         (aarch64_abi): Set default value to AARCH64_ABI_NONE.
971         (aarch64_after_parse_args): New function.
972
973 2017-05-19  Jose E. Marchesi  <jose.marchesi@oracle.com>
974
975         * config/tc-sparc.c (sparc_arch_table): Entries for `sparc6',
976         `v9m8' and `v8plusm8'.
977         (sparc_md_end): Handle SPARC_OPCODE_ARCH_M8.
978         (get_hwcap_name): Support the M8 hardware capabilities.
979         (sparc_ip): Handle new operand types.
980         * doc/c-sparc.texi (Sparc-Opts): Document -Av9m8, -Av8plusm8 and
981         -Asparc6, and the corresponding -xarch aliases.
982         * testsuite/gas/sparc/sparc6.s: New file.
983         * testsuite/gas/sparc/sparc6.d: Likewise.
984         * testsuite/gas/sparc/sparc6-diag.s: Likewise.
985         * testsuite/gas/sparc/sparc6-diag.l: Likewise.
986         * testsuite/gas/sparc/fpcmpshl.s: Likewise.
987         * testsuite/gas/sparc/fpcmpshl.d: Likewise.
988         * testsuite/gas/sparc/fpcmpshl-diag.s: Likewise.
989         * testsuite/gas/sparc/fpcmpshl-diag.l: Likewise.
990         * testsuite/gas/sparc/ldm-stm.s: Likewise.
991         * testsuite/gas/sparc/ldm-stm.d: Likewise.
992         * testsuite/gas/sparc/ldm-stm-diag.s: Likewise.
993         * testsuite/gas/sparc/ldm-stm-diag.l: Likewise.
994         * testsuite/gas/sparc/ldmf-stmf.s: Likewise.
995         * testsuite/gas/sparc/ldmf-stmf.d: Likewise.
996         * testsuite/gas/sparc/ldmf-stmf-diag.s: Likewise.
997         * testsuite/gas/sparc/ldmf-stmf-diag.l: Likewise.
998         * testsuite/gas/sparc/on.s: Likewise.
999         * testsuite/gas/sparc/on.d: Likewise.
1000         * testsuite/gas/sparc/on-diag.s: Likewise.
1001         * testsuite/gas/sparc/on-diag.l: Likewise.
1002         * testsuite/gas/sparc/rle.s: Likewise.
1003         * testsuite/gas/sparc/rle.d: Likewise.
1004         * testsuite/gas/sparc/sparc.exp (gas_64_check): Run new tests.
1005         * testsuite/gas/sparc/rdasr.s: Add test for RDENTROPY.
1006         * testsuite/gas/sparc/rdasr.d: Likewise.
1007
1008 2017-05-19  Jose E. Marchesi  <jose.marchesi@oracle.com>
1009
1010         * testsuite/gas/sparc/call-relax.d: Support 32-bit targets.
1011         * testsuite/gas/sparc/sparc.exp (gas_64_check): Use -64 to
1012         run asi-bump-warn.
1013
1014 2017-05-19  Georg-Johann Lay  <avr@gjlay.de>
1015
1016         PR ld/21472
1017         * config/tc-avr.c (mcu_types): Add entries for: attiny416,
1018         attiny417, attiny816, attiny817.
1019
1020 2017-05-18  Alan Modra  <amodra@gmail.com>
1021
1022         * config/tc-aarch64.c: Don't compare booleans against TRUE or FALSE.
1023         * config/tc-hppa.c: Likewise.
1024         * config/tc-mips.c: Likewise.
1025         * config/tc-score7.c: Likewise.
1026
1027 2017-05-16  Alan Modra  <amodra@gmail.com>
1028
1029         * write.c (GENERIC_FORCE_RELOCATION_LOCAL): Define.
1030         (TC_FORCE_RELOCATION_LOCAL): Use it.
1031         (GENERIC_FORCE_RELOCATION_SUB_SAME): Define.
1032         (TC_FORCE_RELOCATION_SUB_SAME): Use it.
1033         * config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL,
1034         TC_FORCE_RELOCATION_SUB_SAME): Use GENERIC defines.
1035         * config/tc-aarch64.h: Similarly.
1036         * config/tc-avr.h: Similarly.
1037         * config/tc-cris.h: Similarly.
1038         * config/tc-i386.h: Similarly.
1039         * config/tc-i960.h: Similarly.
1040         * config/tc-ia64.h: Similarly.
1041         * config/tc-microblaze.h: Similarly.
1042         * config/tc-mips.h: Similarly.
1043         * config/tc-msp430.h: Similarly.
1044         * config/tc-nds32.h: Similarly.
1045         * config/tc-pru.h: Similarly.
1046         * config/tc-riscv.h: Similarly.
1047         * config/tc-rl78.h: Similarly.
1048         * config/tc-s390.h: Similarly.
1049         * config/tc-sh.h: Similarly.
1050         * config/tc-sh64.h: Similarly.
1051         * config/tc-sparc.h: Similarly.
1052         * config/tc-xtensa.h: Similarly.
1053         * config/tc-mn10300.h: Similarly.
1054         (GENERIC_FORCE_RELOCATION_LOCAL): Define.
1055         * config/tc-msp430.c (msp430_force_relocation_local): Modify to
1056         be addition to rather than replacement of standard
1057         TC_FORCE_RELOCATION_LOCAL.
1058
1059 2017-05-15  Nick Clifton  <nickc@redhat.com>
1060
1061         PR gas/21458
1062         * config/tc-arm.c (do_adr): If the ADR involves a thumb function
1063         symbol, ensure that the T bit will be set.
1064         (do_adrl): Likewise.
1065         (do_t_adr): Likewise.
1066         * testsuite/gas/arm/pr21458.s: New test.
1067         * testsuite/gas/arm/pr21458.d: New test driver.
1068
1069 2017-05-15  Maciej W. Rozycki  <macro@imgtec.com>
1070
1071         * testsuite/gas/mips/mips16-pcrel-1.d: Remove `-mips3' from `as'
1072         flags.
1073         * testsuite/gas/mips/mips16-pcrel-pic-1.d: Likewise.
1074         * testsuite/gas/mips/mips16-pcrel-n32-0.d: Likewise.
1075         * testsuite/gas/mips/mips16-pcrel-n32-1.d: Likewise.
1076         * testsuite/gas/mips/mips16-pcrel-n64-0.d: Likewise.
1077         * testsuite/gas/mips/mips16-pcrel-n64-1.d: Likewise.
1078         * testsuite/gas/mips/mips16-pcrel-n64-sym32-0.d: Likewise.
1079         * testsuite/gas/mips/mips16-pcrel-n64-sym32-1.d: Likewise.
1080         * testsuite/gas/mips/mips16-pcrel-reloc-4.d: Likewise.
1081         * testsuite/gas/mips/mips16-pcrel-reloc-5.d: Likewise.
1082         * testsuite/gas/mips/mips16-pcrel-reloc-6.d: Likewise.
1083         * testsuite/gas/mips/mips16-pcrel-reloc-7.d: Likewise.
1084         * testsuite/gas/mips/mips16-pcrel-addend-4.d: Likewise.
1085         * testsuite/gas/mips/mips16-pcrel-addend-5.d: Likewise.
1086         * testsuite/gas/mips/mips16-pcrel-addend-6.d: Likewise.
1087         * testsuite/gas/mips/mips16-pcrel-addend-7.d: Likewise.
1088         * testsuite/gas/mips/mips16-pcrel-addend-9.d: Likewise.
1089         * testsuite/gas/mips/mips16-pcrel-addend-pic-9.d: Likewise.
1090         * testsuite/gas/mips/mips16-pcrel-addend-n32-8.d: Likewise.
1091         * testsuite/gas/mips/mips16-pcrel-addend-n32-9.d: Likewise.
1092         * testsuite/gas/mips/mips16-pcrel-addend-n64-sym32-8.d:
1093         Likewise.
1094         * testsuite/gas/mips/mips16-pcrel-addend-n64-sym32-9.d:
1095         Likewise.
1096         * testsuite/gas/mips/mips16-pcrel-addend-n64-8.d: Likewise.
1097         * testsuite/gas/mips/mips16-pcrel-addend-n64-9.d: Likewise.
1098         * testsuite/gas/mips/mips16-pcrel-absolute-2.d: Likewise.
1099         * testsuite/gas/mips/mips16-pcrel-absolute-3.d: Likewise.
1100         * testsuite/gas/mips/mips16-pcrel-absolute-6.d: Likewise.
1101         * testsuite/gas/mips/mips16-pcrel-absolute-7.d: Likewise.
1102         * testsuite/gas/mips/mips16-pcrel-absolute-pic-6.d: Likewise.
1103         * testsuite/gas/mips/mips16-pcrel-absolute-n32-4.d: Likewise.
1104         * testsuite/gas/mips/mips16-pcrel-absolute-n32-6.d: Likewise.
1105         * testsuite/gas/mips/mips16-pcrel-absolute-n64-4.d: Likewise.
1106         * testsuite/gas/mips/mips16-pcrel-absolute-n64-6.d: Likewise.
1107         * testsuite/gas/mips/mips16-pcrel-absolute-n64-sym32-4.d:
1108         Likewise.
1109         * testsuite/gas/mips/mips16-pcrel-absolute-n64-sym32-6.d:
1110         Likewise.
1111         * testsuite/gas/mips/mips16-pcrel-absolute-pic-n32-4.d:
1112         Likewise.
1113         * testsuite/gas/mips/mips16-pcrel-absolute-pic-n32-6.d:
1114         Likewise.
1115         * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-4.d:
1116         Likewise.
1117         * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-6.d:
1118         Likewise.
1119         * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-sym32-4.d:
1120         Likewise.
1121         * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-sym32-6.d:
1122         Likewise.
1123         * testsuite/gas/mips/mips16e2@mips16-pcrel-0.d: New test.
1124         * testsuite/gas/mips/mips16e2@mips16-pcrel-1.d: New test.
1125         * testsuite/gas/mips/mips16e2@mips16-pcrel-2.d: New test.
1126         * testsuite/gas/mips/mips16e2@mips16-pcrel-n32-0.d: New test.
1127         * testsuite/gas/mips/mips16e2@mips16-pcrel-n32-1.d: New test.
1128         * testsuite/gas/mips/mips16e2@mips16-pcrel-n64-sym32-0.d: New
1129         test.
1130         * testsuite/gas/mips/mips16e2@mips16-pcrel-n64-sym32-1.d: New
1131         test.
1132         * testsuite/gas/mips/mips16e2@mips16-pcrel-delay-0.d: New test.
1133         * testsuite/gas/mips/mips16e2@mips16-pcrel-delay-1.d: New test.
1134         * testsuite/gas/mips/mips16e2@mips16-pcrel-reloc-2.d: New test.
1135         * testsuite/gas/mips/mips16e2@mips16-pcrel-reloc-3.d: New test.
1136         * testsuite/gas/mips/mips16e2@mips16-pcrel-reloc-6.d: New test.
1137         * testsuite/gas/mips/mips16e2@mips16-pcrel-reloc-7.d: New test.
1138         * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-2.d: New test.
1139         * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-3.d: New test.
1140         * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-6.d: New test.
1141         * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-7.d: New test.
1142         * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-8.d: New test.
1143         * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-9.d: New test.
1144         * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-n32-8.d: New
1145         test.
1146         * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-n32-9.d: New
1147         test.
1148         * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-n64-sym32-8.d:
1149         New test.
1150         * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-n64-sym32-9.d:
1151         New test.
1152         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute.d: New test.
1153         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-1.d: New
1154         test.
1155         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-2.d: New
1156         test.
1157         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-3.d: New
1158         test.
1159         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-4.d: New
1160         test.
1161         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-5.d: New
1162         test.
1163         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-6.d: New
1164         test.
1165         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-7.d: New
1166         test.
1167         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-pic-4.d: New
1168         test.
1169         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-pic-6.d: New
1170         test.
1171         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-n32-4.d: New
1172         test.
1173         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-n32-6.d: New
1174         test.
1175         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-n64-sym32-4.d:
1176         New test.
1177         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-n64-sym32-6.d:
1178         New test.
1179         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-pic-n32-4.d:
1180         New test.
1181         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-pic-n32-6.d:
1182         New test.
1183         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-pic-n64-sym32-4.d:
1184         New test.
1185         * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-pic-n64-sym32-6.d:
1186         New test.
1187         * testsuite/gas/mips/mips16-pcrel-1.l: Adjust line numbers.
1188         * testsuite/gas/mips/mips16-pcrel-1.s: Adjust for alignment
1189         preservation between MIPS16 and MIPS16e2 code.
1190         * testsuite/gas/mips/mips.exp: Run MIPS16 relaxation tests over
1191         all MIPS16 architectures.
1192
1193 2017-05-15  Maciej W. Rozycki  <macro@imgtec.com>
1194
1195         * testsuite/gas/mips/mips16e2.d: New test.
1196         * testsuite/gas/mips/mips16e2-mt.d: New test.
1197         * testsuite/gas/mips/mips16e2-sub.d: New test.
1198         * testsuite/gas/mips/mips16e2@mips16e2-sub.d: New test.
1199         * testsuite/gas/mips/mips16e2-mt-sub.d: New test.
1200         * testsuite/gas/mips/mips16e2@mips16e2-mt-sub.d: New test.
1201         * testsuite/gas/mips/mips16e2-hilo.d: New test.
1202         * testsuite/gas/mips/mips16e2-hilo-n32.d: New test.
1203         * testsuite/gas/mips/mips16e2-reloc-error.d: New test.
1204         * testsuite/gas/mips/mips16e2-imm-error.d: New test.
1205         * testsuite/gas/mips/elf_ase_mips16e2.d: New test.
1206         * testsuite/gas/mips/elf_ase_mips16e2-2.d: New test.
1207         * testsuite/gas/mips/elf-rel9-mips16e2.d: New test.
1208         * testsuite/gas/mips/mips16e2-lui.d: New test.
1209         * testsuite/gas/mips/mips16e2@mips32r2-sync.d: New test.
1210         * testsuite/gas/mips/mips16e2@mips32r2-sync-1.d: New test.
1211         * testsuite/gas/mips/mips16e2@lui-2.d: New test.
1212         * testsuite/gas/mips/mips16e2-reloc-error.l: New stderr output.
1213         * testsuite/gas/mips/mips16e2-imm-error.l: New stderr output.
1214         * testsuite/gas/mips/mips16e2@lui-2.l: New stderr output.
1215         * testsuite/gas/mips/mips16e2.s: New test source.
1216         * testsuite/gas/mips/mips16e2-mt.s: New test source.
1217         * testsuite/gas/mips/mips16e2-sub.s: New test source.
1218         * testsuite/gas/mips/mips16e2-mt-sub.s: New test source.
1219         * testsuite/gas/mips/mips16e2-hilo.s: New test source.
1220         * testsuite/gas/mips/mips16e2-reloc-error.s: New test source.
1221         * testsuite/gas/mips/mips16e2-imm-error.s: New test source.
1222         * testsuite/gas/mips/elf-rel9-mips16e2.s: New test source.
1223         * testsuite/gas/mips/mips16e2-lui.s: New test source.
1224         * testsuite/gas/mips/mips.exp: Expand `mips32r2-sync',
1225         `mips32r2-sync-1', `lui-1' and `lui-2' tests across MIPS16e2
1226         architectures.  Run the new tests.
1227
1228 2017-05-15  Maciej W. Rozycki  <macro@imgtec.com>
1229
1230         * testsuite/gas/mips/mips.exp (run_dump_test_arch): Add
1231         `mips16e2@' prefix.
1232         (run_list_test_arch): Likewise.
1233         (mips16e2-32, mips16e2-64): New architectures.
1234         * testsuite/gas/mips/mips16e2-32@mips16-macro.d: New test.
1235         * testsuite/gas/mips/mips16e2-32@mips16-macro-t.d: New test.
1236         * testsuite/gas/mips/mips16e2-32@mips16-macro-e.d: New test.
1237         * testsuite/gas/mips/mips16e2-32@mips16-insn-t.d: New test.
1238         * testsuite/gas/mips/mips16e2-32@mips16-insn-e.d: New test.
1239         * testsuite/gas/mips/mips16e2-32@mips16e-64.d: New test.
1240         * testsuite/gas/mips/mips16e2-32@mips16-sub.d: New test.
1241         * testsuite/gas/mips/mips16e2-32@mips16e-64-sub.d: New test.
1242         * testsuite/gas/mips/mips16e2@relax-swap3.d: New test.
1243         * testsuite/gas/mips/mips16-32@mips16-asmacro.d: Remove `source'
1244         tag.  Add `-I$srcdir/$subdir' to `as' flags.
1245         * testsuite/gas/mips/mips16-64@mips16-asmacro.d: Likewise.
1246         * testsuite/gas/mips/mips16e2-32@mips16-macro.l: New stderr
1247         output.
1248         * testsuite/gas/mips/mips16e2-32@mips16-macro-t.l: New stderr
1249         output.
1250         * testsuite/gas/mips/mips16e2-32@mips16-macro-e.l: New stderr
1251         output.
1252         * testsuite/gas/mips/mips16e2-32@mips16-insn-t.l: New stderr
1253         output.
1254         * testsuite/gas/mips/mips16e2-32@mips16-insn-e.l: New stderr
1255         output.
1256         * testsuite/gas/mips/mips16-sub.s: Add `.set nomips16e2'.
1257         * testsuite/gas/mips/mips16e-sub.s: Likewise.
1258         * testsuite/gas/mips/mips16e-64-sub.s: Likewise.
1259         * testsuite/gas/mips/mips16-asmacro.s: Remove `.set mips32'.
1260         * testsuite/gas/mips/mips16-32@mips16-asmacro.s: New test
1261         source.
1262         * testsuite/gas/mips/mips16-64@mips16-asmacro.s: New test
1263         source.
1264
1265 2017-05-15  Maciej W. Rozycki  <macro@imgtec.com>
1266             Matthew Fortune  <matthew.fortune@imgtec.com>
1267             Andrew Bennett  <andrew.bennett@imgtec.com>
1268
1269         * config/tc-mips.c (RELAX_MIPS16_ENCODE): Add `e2' flag.
1270         (RELAX_MIPS16_E2): New macro.
1271         (RELAX_MIPS16_PIC, RELAX_MIPS16_SYM32, RELAX_MIPS16_NOMACRO)
1272         (RELAX_MIPS16_USER_SMALL, RELAX_MIPS16_USER_EXT)
1273         (RELAX_MIPS16_DSLOT, RELAX_MIPS16_JAL_DSLOT)
1274         (RELAX_MIPS16_EXTENDED, RELAX_MIPS16_MARK_EXTENDED)
1275         (RELAX_MIPS16_CLEAR_EXTENDED, RELAX_MIPS16_ALWAYS_EXTENDED)
1276         (RELAX_MIPS16_MARK_ALWAYS_EXTENDED)
1277         (RELAX_MIPS16_CLEAR_ALWAYS_EXTENDED, RELAX_MIPS16_MACRO)
1278         (RELAX_MIPS16_MARK_MACRO, RELAX_MIPS16_CLEAR_MACRO): Shift bits.
1279         (mips16_immed_extend): New prototype.
1280         (options): Add OPTION_MIPS16E2 and OPTION_NO_MIPS16E2 enum
1281         values.
1282         (md_longopts): Add "mmips16e2" and "mno-mips16e2" options.
1283         (mips_ases): Add "mips16e2" entry.
1284         (mips_set_ase): Handle MIPS16e2 ASE.
1285         (insn_insert_operand): Explicitly handle immediates with MIPS16
1286         instructions that require 32-bit encoding.
1287         (is_opcode_valid_16): Pass enabled ASE bitmask on to
1288         `opcode_is_member'.
1289         (validate_mips_insn): Explicitly handle immediates with MIPS16
1290         instructions that require 32-bit encoding.
1291         (operand_reg_mask) <OP_REG28>: Add handler.
1292         (match_reg28_operand): New function.
1293         (match_operand) <OP_REG28>: Add handler.
1294         (append_insn): Pass ASE_MIPS16E2 setting to RELAX_MIPS16_ENCODE.
1295         (match_mips16_insn): Handle MIPS16 instructions that require
1296         32-bit encoding and `V' and `u' operand codes.
1297         (mips16_ip): Allow any characters except from `.' in opcodes.
1298         (mips16_immed_extend): Handle 9-bit immediates.  Do not shuffle
1299         immediates whose width is not one of these listed.
1300         (md_estimate_size_before_relax): Handle MIPS16e2 relaxation.
1301         (mips_relax_frag): Likewise.
1302         (md_convert_frag): Likewise.
1303         (mips_convert_ase_flags): Handle MIPS16e2 ASE.
1304
1305         * doc/as.texinfo (Target MIPS options): Add `-mmips16e2' and
1306         `-mno-mips16e2' options.
1307         (-mmips16e2, -mno-mips16e2): New options.
1308         * doc/c-mips.texi (MIPS Options): Add `-mmips16e2' and
1309         `-mno-mips16e2' options.
1310         (MIPS ASE Instruction Generation Overrides): Add `.set mips16e2'
1311         and `.set nomips16e2'.
1312
1313 2017-05-15  Maciej W. Rozycki  <macro@imgtec.com>
1314
1315         * config/tc-mips.c (match_int_operand): Call
1316         `match_out_of_range' before returning failure for 0x8000-0xffff
1317         values conditionally allowed.
1318
1319 2017-05-15  Maciej W. Rozycki  <macro@imgtec.com>
1320
1321         * config/tc-mips.c (match_int_operand): Call
1322         `match_not_constant' before returning failure for a non-constant
1323         16-bit immediate conditionally allowed.
1324
1325 2017-05-15  Maciej W. Rozycki  <macro@imgtec.com>
1326
1327         * config/tc-mips.c (match_const_int): Call `match_out_of_range'
1328         rather than `match_not_constant' for unrelocated operands
1329         retrieved as an `O_big' expression.
1330         (match_int_operand): Call `match_out_of_range' for relocatable
1331         operands retrieved as an `O_big' expression.
1332         (match_mips16_insn): Call `match_out_of_range' for relaxable
1333         operands retrieved as an `O_big' expression.
1334         * testsuite/gas/mips/addiu-error.d: New test.
1335         * testsuite/gas/mips/mips16@addiu-error.d: New test.
1336         * testsuite/gas/mips/micromips@addiu-error.d: New test.
1337         * testsuite/gas/mips/break-error.d: New test.
1338         * testsuite/gas/mips/lui-1.l: Adjust error message.
1339         * testsuite/gas/mips/addiu-error.l: New stderr output.
1340         * testsuite/gas/mips/mips16@addiu-error.l: New stderr output.
1341         * testsuite/gas/mips/micromips@addiu-error.l: New stderr output.
1342         * testsuite/gas/mips/break-error.l: New stderr output.
1343         * testsuite/gas/mips/addiu-error.s: New test source.
1344         * testsuite/gas/mips/break-error.s: New test source.
1345         * testsuite/gas/mips/mips.exp: Run the new tests.
1346
1347 2017-05-15  Maciej W. Rozycki  <macro@imgtec.com>
1348
1349         * config/tc-mips.c (match_mips16_insn): Remove the explicit
1350         OT_INTEGER check before the `match_expression' call.
1351         * testsuite/gas/mips/mips16-insn-e.l: Adjust messages.
1352         * testsuite/gas/mips/mips16-32@mips16-insn-e.l: Likewise.
1353         * testsuite/gas/mips/mips16-64@mips16-insn-e.l: Likewise.
1354         * testsuite/gas/mips/mips16e-32@mips16-insn-e.l: Likewise.
1355         * testsuite/gas/mips/mips16-reg-error.d: New test.
1356         * testsuite/gas/mips/mips16-reg-error.l: New stderr output.
1357         * testsuite/gas/mips/mips16-reg-error.s: New test source.
1358         * testsuite/gas/mips/mips.exp: Run the new test.
1359
1360 2017-05-15  Maciej W. Rozycki  <macro@imgtec.com>
1361
1362         * config/tc-mips.c (match_mips16_insn): Call
1363         `match_not_constant' for a disallowed relocation operation.
1364         * testsuite/gas/mips/mips16-reloc-error.d: New test.
1365         * testsuite/gas/mips/mips16-reloc-error.l: New stderr output.
1366         * testsuite/gas/mips/mips16-reloc-error.s: New test source.
1367         * testsuite/gas/mips/mips.exp: Run the new test.
1368
1369 2017-05-15  Maciej W. Rozycki  <macro@imgtec.com>
1370
1371         * testsuite/gas/mips/lui-1.d: New test.
1372         * testsuite/gas/mips/lui-2.d: New test.
1373         * gas/testsuite/gas/mips/mips.exp: Fold corresponding list tests
1374         into the new tests.
1375
1376 2017-05-15  Maciej W. Rozycki  <macro@imgtec.com>
1377
1378         * config/tc-mips.c (match_const_int): Update description.
1379
1380 2017-05-15  Maciej W. Rozycki  <macro@imgtec.com>
1381
1382         * doc/as.texinfo (-mips16, -no-mips16): Refer to `.module
1383         mips16' rather than `.set mips16'.
1384         (-mmicromips, -mno-micromips): Refer to `.module micromips' and
1385         `.module nomicromips' rather than `.set micromips' and `.set
1386         nomicromips'.
1387         (-msmartmips, -mno-smartmips): Refer to `.module smartmips'
1388         rather than `.set smartmips'.
1389         * doc/c-mips.texi (MIPS Options): Refer to `.module mips16',
1390         `.module micromips', `.module nomicromips' and `.module
1391         smartmips' rather than `.set mips16', `.set micromips', `.set
1392         nomicromips' and `.set smartmips' respectively.
1393
1394 2017-05-12  Maciej W. Rozycki  <macro@imgtec.com>
1395             Matthew Fortune  <matthew.fortune@imgtec.com>
1396
1397         * config/tc-mips.c (mips_percent_op): Add "%gprel".
1398         (mips16_percent_op): Add "%gp_rel".
1399         * testsuite/gas/mips/elf-rel8.s:: Add `%gprel' forms.
1400         * testsuite/gas/mips/elf-rel8-mips16.s: Add `%gp_rel' forms.
1401         * testsuite/gas/mips/elf-rel8.d: Adjust accordingly.
1402         * testsuite/gas/mips/elf-rel8-mips16.d: Likewise.
1403
1404 2017-05-12  Maciej W. Rozycki  <macro@imgtec.com>
1405
1406         * testsuite/gas/mips/mips16.d: Adjust BREAK disassembly.
1407         * testsuite/gas/mips/mips16-64@mips16.d: Likewise.
1408         * testsuite/gas/mips/mips16-64.d: Likewise.
1409         * testsuite/gas/mips/mips16-64@mips16-64.d: Likewise.
1410         * testsuite/gas/mips/mips16-macro.d: Likewise.
1411         * testsuite/gas/mips/mips16-64@mips16-macro.d: Likewise.
1412         * testsuite/gas/mips/mips16-sub.d: Likewise.
1413         * testsuite/gas/mips/mips16-32@mips16-sub.d: Likewise.
1414
1415 2017-05-11  Maciej W. Rozycki  <macro@imgtec.com>
1416
1417         * testsuite/gas/mips/mips32r2-sync-1.d: New test.
1418         * testsuite/gas/mips/micromips@mips32r2-sync-1.d: New test.
1419         * testsuite/gas/mips/mips.exp: Run the new tests.
1420
1421 2017-05-10  Maciej W. Rozycki  <macro@imgtec.com>
1422
1423         * testsuite/gas/mips/isa-override-2.d: New test.
1424         * testsuite/gas/mips/mips1@isa-override-2.d: New test.
1425         * testsuite/gas/mips/r3000@isa-override-2.d: New test.
1426         * testsuite/gas/mips/r3900@isa-override-2.d: New test.
1427         * testsuite/gas/mips/mips2@isa-override-2.d: New test.
1428         * testsuite/gas/mips/mips32@isa-override-2.d: New test.
1429         * testsuite/gas/mips/mips32r2@isa-override-2.d: New test.
1430         * testsuite/gas/mips/mips32r3@isa-override-2.d: New test.
1431         * testsuite/gas/mips/mips32r5@isa-override-2.d: New test.
1432         * testsuite/gas/mips/mips32r6@isa-override-2.d: New test.
1433         * testsuite/gas/mips/octeon3@isa-override-2.d: New test.
1434         * testsuite/gas/mips/r3000@isa-override-2.l: Remove list test.
1435         * testsuite/gas/mips/mips1@isa-override-2.s: Remove test source.
1436         * testsuite/gas/mips/r3000@isa-override-2.s: Remove test source.
1437         * testsuite/gas/mips/r3900@isa-override-2.s: Remove test source.
1438         * testsuite/gas/mips/mips2@isa-override-2.s: Remove test source.
1439         * testsuite/gas/mips/mips32@isa-override-2.s: Remove test
1440         source.
1441         * testsuite/gas/mips/mips32r2@isa-override-2.s: Remove test
1442         source.
1443         * testsuite/gas/mips/mips32r3@isa-override-2.s: Remove test
1444         source.
1445         * testsuite/gas/mips/mips32r5@isa-override-2.s: Remove test
1446         source.
1447         * testsuite/gas/mips/mips32r6@isa-override-2.s: Remove test
1448         source.
1449         * testsuite/gas/mips/octeon3@isa-override-2.s: Remove test
1450         source.
1451         * gas/testsuite/gas/mips/mips.exp: Fold corresponding list tests
1452         into the new tests.
1453
1454 2017-05-10  Maciej W. Rozycki  <macro@imgtec.com>
1455
1456         * testsuite/gas/mips/mips16e-sub.d: Correct test name.
1457         * testsuite/gas/mips/mips16-32@mips16e-sub.d: Likewise.
1458         * testsuite/gas/mips/mips16-64@mips16e-sub.d: Likewise.
1459         * testsuite/gas/mips/mips16e-64-sub.d: Likewise.
1460         * testsuite/gas/mips/mips16-32@mips16e-64-sub.d: Likewise.
1461         * testsuite/gas/mips/mips16-64@mips16e-64-sub.d: Likewise.
1462         * testsuite/gas/mips/mips16e-32@mips16e-64-sub.d: Likewise.
1463
1464 2017-05-10  Maciej W. Rozycki  <macro@imgtec.com>
1465
1466         * testsuite/gas/mips/mips16-macro.l: Remove list test.
1467
1468 2017-05-10  Maciej W. Rozycki  <macro@imgtec.com>
1469
1470         * testsuite/gas/mips/r3900@ecoff@ld.d: Remove test.
1471         * testsuite/gas/mips/mips2@ecoff@ld.d: Remove test.
1472         * testsuite/gas/mips/mips32@ecoff@ld.d: Remove test.
1473         * testsuite/gas/mips/mips32r2@ecoff@ld.d: Remove test.
1474         * testsuite/gas/mips/r3900@ecoff@ld-forward.d: Remove test.
1475         * testsuite/gas/mips/mips2@ecoff@ld-forward.d: Remove test.
1476         * testsuite/gas/mips/mips32@ecoff@ld-forward.d: Remove test.
1477         * testsuite/gas/mips/mips32r2@ecoff@ld-forward.d: Remove test.
1478         * testsuite/gas/mips/mips1@ecoff@sd.d: Remove test.
1479         * testsuite/gas/mips/r3000@ecoff@sd.d: Remove test.
1480         * testsuite/gas/mips/r3900@ecoff@sd.d: Remove test.
1481         * testsuite/gas/mips/mips2@ecoff@sd.d: Remove test.
1482         * testsuite/gas/mips/mips32@ecoff@sd.d: Remove test.
1483         * testsuite/gas/mips/mips32r2@ecoff@sd.d: Remove test.
1484         * testsuite/gas/mips/mips1@ecoff@sd-forward.d: Remove test.
1485         * testsuite/gas/mips/r3000@ecoff@sd-forward.d: Remove test.
1486         * testsuite/gas/mips/r3900@ecoff@sd-forward.d: Remove test.
1487         * testsuite/gas/mips/mips2@ecoff@sd-forward.d: Remove test.
1488         * testsuite/gas/mips/mips32@ecoff@sd-forward.d: Remove test.
1489         * testsuite/gas/mips/mips32r2@ecoff@sd-forward.d: Remove test.
1490
1491 2017-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
1492
1493         * testsuite/gas/arc/attr-arc600.d: New file.
1494         * testsuite/gas/arc/attr-arc600_mul32x16.d: Likewise.
1495         * testsuite/gas/arc/attr-arc600_norm.d: Likewise.
1496         * testsuite/gas/arc/attr-arc601.d: Likewise.
1497         * testsuite/gas/arc/attr-arc601_mul32x16.d: Likewise.
1498         * testsuite/gas/arc/attr-arc601_mul64.d: Likewise.
1499         * testsuite/gas/arc/attr-arc601_norm.d: Likewise.
1500         * testsuite/gas/arc/attr-arc700.d: Likewise.
1501         * testsuite/gas/arc/attr-arcem.d: Likewise.
1502         * testsuite/gas/arc/attr-archs.d: Likewise.
1503         * testsuite/gas/arc/attr-autodetect-1.d: Likewise.
1504         * testsuite/gas/arc/attr-autodetect-1.s: Likewise.
1505         * testsuite/gas/arc/attr-cpu-a601.d: Likewise.
1506         * testsuite/gas/arc/attr-cpu-a601.s: Likewise.
1507         * testsuite/gas/arc/attr-cpu-a700.d: Likewise.
1508         * testsuite/gas/arc/attr-cpu-a700.s: Likewise.
1509         * testsuite/gas/arc/attr-cpu-em.d: Likewise.
1510         * testsuite/gas/arc/attr-cpu-em.s: Likewise.
1511         * testsuite/gas/arc/attr-cpu-hs.d: Likewise.
1512         * testsuite/gas/arc/attr-cpu-hs.s: Likewise.
1513         * testsuite/gas/arc/attr-em.d: Likewise.
1514         * testsuite/gas/arc/attr-em4.d: Likewise.
1515         * testsuite/gas/arc/attr-em4_dmips.d: Likewise.
1516         * testsuite/gas/arc/attr-em4_fpuda.d: Likewise.
1517         * testsuite/gas/arc/attr-em4_fpus.d: Likewise.
1518         * testsuite/gas/arc/attr-hs.d: Likewise.
1519         * testsuite/gas/arc/attr-hs34.d: Likewise.
1520         * testsuite/gas/arc/attr-hs38.d: Likewise.
1521         * testsuite/gas/arc/attr-hs38_linux.d: Likewise.
1522         * testsuite/gas/arc/attr-mul64.d: Likewise.
1523         * testsuite/gas/arc/attr-name.d: Likewise.
1524         * testsuite/gas/arc/attr-name.s: Likewise.
1525         * testsuite/gas/arc/attr-nps400.d: Likewise.
1526         * testsuite/gas/arc/attr-override-mcpu.d: Likewise.
1527         * testsuite/gas/arc/attr-override-mcpu.s
1528         * testsuite/gas/arc/attr-quarkse_em.d: Likewise.
1529         * testsuite/gas/arc/blank.s: Likewise.
1530         * testsuite/gas/elf/section2.e-arc: Likewise.
1531         * testsuite/gas/arc/cpu-pseudop-1.d: Update test.
1532         * testsuite/gas/arc/cpu-pseudop-2.d: Likewise.
1533         * testsuite/gas/arc/nps400-0.d: Likewise.
1534         * testsuite/gas/elf/elf.exp: Set target_machine for ARC.
1535         * config/tc-arc.c (opcode/arc-attrs.h): Include.
1536         (ARC_GET_FLAG, ARC_SET_FLAG, streq): Define.
1537         (arc_attribute): Declare new function.
1538         (md_pseudo_table): Add arc_attribute.
1539         (cpu_types): Rename default cpu features.
1540         (selected_cpu): Set the default OSABI flag.
1541         (mpy_option): New variable.
1542         (pic_option): Likewise.
1543         (sda_option): Likewise.
1544         (tls_option): Likewise.
1545         (feature_type, feature_list): Remove.
1546         (arc_initial_eflag): Likewise.
1547         (attributes_set_explicitly): New variable.
1548         (arc_check_feature): Check also for the conflicting features.
1549         (arc_select_cpu): Refactor assignment of selected_cpu.eflags.
1550         (arc_option): Remove setting of private flags and architecture.
1551         (check_cpu_feature): Refactor feature names.
1552         (autodetect_attributes): New function.
1553         (assemble_tokens): Use above function.
1554         (md_parse_option): Refactor feature names.
1555         (arc_attribute): New function.
1556         (arc_set_attribute_int): Likewise.
1557         (arc_set_attribute_string): Likewise.
1558         (arc_stralloc): Likewise.
1559         (arc_set_public_attributes): Likewise.
1560         (arc_md_end): Likewise.
1561         (arc_copy_symbol_attributes): Likewise.
1562         (rc_convert_symbolic_attribute): Likewise.
1563         * config/tc-arc.h (md_end): Define.
1564         (CONVERT_SYMBOLIC_ATTRIBUTE): Likewise.
1565         (TC_COPY_SYMBOL_ATTRIBUTES): Likewise.
1566         * doc/c-arc.texi: Document ARC object attributes.
1567
1568 2017-05-03  Maciej W. Rozycki  <macro@imgtec.com>
1569
1570         * config/tc-mips.c (RELAX_MIPS16_ENCODE): Add `pic', `sym32' and
1571         `nomacro' flags.
1572         (RELAX_MIPS16_PIC, RELAX_MIPS16_SYM32, RELAX_MIPS16_NOMACRO):
1573         New macros.
1574         (RELAX_MIPS16_USER_SMALL, RELAX_MIPS16_USER_EXT)
1575         (RELAX_MIPS16_DSLOT, RELAX_MIPS16_JAL_DSLOT)
1576         (RELAX_MIPS16_EXTENDED, RELAX_MIPS16_MARK_EXTENDED)
1577         (RELAX_MIPS16_CLEAR_EXTENDED, RELAX_MIPS16_ALWAYS_EXTENDED)
1578         (RELAX_MIPS16_MARK_ALWAYS_EXTENDED)
1579         (RELAX_MIPS16_CLEAR_ALWAYS_EXTENDED): Shift bits.
1580         (RELAX_MIPS16_MACRO, RELAX_MIPS16_MARK_MACRO)
1581         (RELAX_MIPS16_CLEAR_MACRO): New macros.
1582         (append_insn): Pass `mips_pic', HAVE_32BIT_SYMBOLS and
1583         `mips_opts.warn_about_macros' settings to RELAX_MIPS16_ENCODE.
1584         (mips16_macro_frag): New function.
1585         (md_estimate_size_before_relax): Handle HI16/LO16 relaxation.
1586         (mips_relax_frag): Likewise.
1587         (md_convert_frag): Likewise.
1588
1589         * testsuite/gas/mips/mips16@relax-swap3.d: Remove error output,
1590         add dump patterns.
1591         * testsuite/gas/mips/mips16e@relax-swap3.d: New test
1592         subarchitecture.
1593         * testsuite/gas/mips/micromips@relax-swap3.d: Remove trailing
1594         NOP padding.
1595         * testsuite/gas/mips/mips16-pcrel-reloc-2.d: Remove error
1596         output, add dump patterns.
1597         * testsuite/gas/mips/mips16-pcrel-reloc-3.d: Remove error
1598         output, add dump patterns.
1599         * testsuite/gas/mips/mips16-pcrel-reloc-6.d: Remove error
1600         output, add dump patterns.
1601         * testsuite/gas/mips/mips16-pcrel-reloc-7.d: Remove error
1602         output, add dump patterns.
1603         * testsuite/gas/mips/mips16-pcrel-addend-2.d: Remove error
1604         output, add dump patterns.
1605         * testsuite/gas/mips/mips16-pcrel-addend-3.d: Remove error
1606         output, add dump patterns.
1607         * testsuite/gas/mips/mips16-pcrel-absolute.d: Remove error
1608         output, add dump patterns.
1609         * testsuite/gas/mips/mips16-pcrel-absolute-1.d: Remove error
1610         output, add dump patterns.
1611         * testsuite/gas/mips/mips16@relax-swap3.l: Remove file.
1612         * testsuite/gas/mips/mips16-pcrel-reloc-2.l: Remove file.
1613         * testsuite/gas/mips/mips16-pcrel-reloc-3.l: Remove file.
1614         * testsuite/gas/mips/mips16-pcrel-reloc-6.l: Remove file.
1615         * testsuite/gas/mips/mips16-pcrel-reloc-7.l: Remove file.
1616         * testsuite/gas/mips/mips16-pcrel-addend-2.l: Remove file.
1617         * testsuite/gas/mips/mips16-pcrel-addend-3.l: Remove file.
1618         * testsuite/gas/mips/mips16-pcrel-absolute.l: Remove file.
1619         * testsuite/gas/mips/mips16-pcrel-absolute-1.l: Remove file.
1620         * testsuite/gas/mips/relax-swap3.s: Adjust trailing padding.
1621
1622         * testsuite/gas/mips/mips16-pcrel-0.d: New test.
1623         * testsuite/gas/mips/mips16-pcrel-1.d: New test.
1624         * testsuite/gas/mips/mips16-pcrel-2.d: New test.
1625         * testsuite/gas/mips/mips16-pcrel-3.d: New test.
1626         * testsuite/gas/mips/mips16-pcrel-4.d: New test.
1627         * testsuite/gas/mips/mips16-pcrel-5.d: New test.
1628         * testsuite/gas/mips/mips16-pcrel-pic-0.d: New test.
1629         * testsuite/gas/mips/mips16-pcrel-pic-1.d: New test.
1630         * testsuite/gas/mips/mips16-pcrel-n32-0.d: New test.
1631         * testsuite/gas/mips/mips16-pcrel-n32-1.d: New test.
1632         * testsuite/gas/mips/mips16-pcrel-n64-sym32-0.d: New test.
1633         * testsuite/gas/mips/mips16-pcrel-n64-sym32-1.d: New test.
1634         * testsuite/gas/mips/mips16-pcrel-n64-0.d: New test.
1635         * testsuite/gas/mips/mips16-pcrel-n64-1.d: New test.
1636         * testsuite/gas/mips/mips16-pcrel-delay-0.d: New test.
1637         * testsuite/gas/mips/mips16-pcrel-delay-1.d: New test.
1638         * testsuite/gas/mips/mips16-pcrel-addend-4.d: New test.
1639         * testsuite/gas/mips/mips16-pcrel-addend-5.d: New test.
1640         * testsuite/gas/mips/mips16-pcrel-addend-6.d: New test.
1641         * testsuite/gas/mips/mips16-pcrel-addend-7.d: New test.
1642         * testsuite/gas/mips/mips16-pcrel-addend-8.d: New test.
1643         * testsuite/gas/mips/mips16-pcrel-addend-9.d: New test.
1644         * testsuite/gas/mips/mips16-pcrel-addend-pic-8.d: New test.
1645         * testsuite/gas/mips/mips16-pcrel-addend-pic-9.d: New test.
1646         * testsuite/gas/mips/mips16-pcrel-addend-n32-8.d: New test.
1647         * testsuite/gas/mips/mips16-pcrel-addend-n32-9.d: New test.
1648         * testsuite/gas/mips/mips16-pcrel-addend-n64-sym32-8.d: New test.
1649         * testsuite/gas/mips/mips16-pcrel-addend-n64-sym32-9.d: New test.
1650         * testsuite/gas/mips/mips16-pcrel-addend-n64-8.d: New test.
1651         * testsuite/gas/mips/mips16-pcrel-addend-n64-9.d: New test.
1652         * testsuite/gas/mips/mips16-pcrel-absolute-2.d: New test.
1653         * testsuite/gas/mips/mips16-pcrel-absolute-3.d: New test.
1654         * testsuite/gas/mips/mips16-pcrel-absolute-4.d: New test.
1655         * testsuite/gas/mips/mips16-pcrel-absolute-5.d: New test.
1656         * testsuite/gas/mips/mips16-pcrel-absolute-6.d: New test.
1657         * testsuite/gas/mips/mips16-pcrel-absolute-7.d: New test.
1658         * testsuite/gas/mips/mips16-pcrel-absolute-pic-4.d: New test.
1659         * testsuite/gas/mips/mips16-pcrel-absolute-pic-6.d: New test.
1660         * testsuite/gas/mips/mips16-pcrel-absolute-n32-4.d: New test.
1661         * testsuite/gas/mips/mips16-pcrel-absolute-n32-6.d: New test.
1662         * testsuite/gas/mips/mips16-pcrel-absolute-n64-4.d: New test.
1663         * testsuite/gas/mips/mips16-pcrel-absolute-n64-6.d: New test.
1664         * testsuite/gas/mips/mips16-pcrel-absolute-n64-sym32-4.d: New
1665         test.
1666         * testsuite/gas/mips/mips16-pcrel-absolute-n64-sym32-6.d: New
1667         test.
1668         * testsuite/gas/mips/mips16-pcrel-absolute-pic-n32-4.d: New
1669         test.
1670         * testsuite/gas/mips/mips16-pcrel-absolute-pic-n32-6.d: New
1671         test.
1672         * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-4.d: New
1673         test.
1674         * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-6.d: New
1675         test.
1676         * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-sym32-4.d:
1677         New test.
1678         * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-sym32-6.d:
1679         New test.
1680         * testsuite/gas/mips/mips16-pcrel-0.l: New stderr output.
1681         * testsuite/gas/mips/mips16-pcrel-1.l: New stderr output.
1682         * testsuite/gas/mips/mips16-pcrel-2.l: New stderr output.
1683         * testsuite/gas/mips/mips16-pcrel-3.l: New stderr output.
1684         * testsuite/gas/mips/mips16-pcrel-4.l: New stderr output.
1685         * testsuite/gas/mips/mips16-pcrel-5.l: New stderr output.
1686         * testsuite/gas/mips/mips16-pcrel-delay-0.l: New stderr output.
1687         * testsuite/gas/mips/mips16-pcrel-delay-1.l: New stderr output.
1688         * testsuite/gas/mips/mips16-pcrel-addend-8.l: New stderr output.
1689         * testsuite/gas/mips/mips16-pcrel-addend-9.l: New stderr output.
1690         * testsuite/gas/mips/mips16-pcrel-absolute-4.l: New stderr
1691         output.
1692         * testsuite/gas/mips/mips16-pcrel-absolute-6.l: New stderr
1693         output.
1694         * testsuite/gas/mips/mips16-pcrel-0.s: New test source.
1695         * testsuite/gas/mips/mips16-pcrel-1.s: New test source.
1696         * testsuite/gas/mips/mips16-pcrel-2.s: New test source.
1697         * testsuite/gas/mips/mips16-pcrel-3.s: New test source.
1698         * testsuite/gas/mips/mips16-pcrel-4.s: New test source.
1699         * testsuite/gas/mips/mips16-pcrel-5.s: New test source.
1700         * testsuite/gas/mips/mips16-pcrel-delay-0.s: New test source.
1701         * testsuite/gas/mips/mips16-pcrel-delay-1.s: New test source.
1702         * testsuite/gas/mips/mips16-pcrel-addend-4.s: New test source.
1703         * testsuite/gas/mips/mips16-pcrel-addend-5.s: New test source.
1704         * testsuite/gas/mips/mips16-pcrel-addend-6.s: New test source.
1705         * testsuite/gas/mips/mips16-pcrel-addend-7.s: New test source.
1706         * testsuite/gas/mips/mips16-pcrel-addend-8.s: New test source.
1707         * testsuite/gas/mips/mips16-pcrel-addend-9.s: New test source.
1708         * testsuite/gas/mips/mips16-pcrel-absolute-2.s: New test.
1709         * testsuite/gas/mips/mips16-pcrel-absolute-3.s: New test.
1710         * testsuite/gas/mips/mips16-pcrel-absolute-4.s: New test.
1711         * testsuite/gas/mips/mips16-pcrel-absolute-5.s: New test.
1712         * testsuite/gas/mips/mips16-pcrel-absolute-6.s: New test.
1713         * testsuite/gas/mips/mips16-pcrel-absolute-7.s: New test.
1714         * testsuite/gas/mips/mips.exp: Run the new tests.
1715
1716 2017-05-03  Nick Clifton  <nickc@redhat.com>
1717
1718         PR gas/20941
1719         * symbols.c (snapshot_symbol): Handle the case where
1720         resolve_expression returns a local symbol.
1721
1722 2017-05-02  Maciej W. Rozycki  <macro@imgtec.com>
1723
1724         * config/tc-mips.c (append_insn): Call `symbol_append' for any
1725         expression symbol created for MIPS16 relaxation.
1726         (match_mips16_insn): Don't encode a constant value as an
1727         immediate with a PC-relative operand.
1728
1729         * testsuite/gas/mips/mips16-pcrel-absolute-1.d: New test.
1730         * testsuite/gas/mips/mips16-branch-absolute-1.d: New test.
1731         * testsuite/gas/mips/mips16-branch-absolute-2.d: New test.
1732         * testsuite/gas/mips/mips16-branch-absolute-addend-1.d: New
1733         test.
1734         * testsuite/gas/mips/mips16-branch-absolute-n32-1.d: New test.
1735         * testsuite/gas/mips/mips16-branch-absolute-n32-2.d: New test.
1736         * testsuite/gas/mips/mips16-branch-absolute-addend-n32-1.d: New
1737         test.
1738         * testsuite/gas/mips/mips16-branch-absolute-n64-1.d: New test.
1739         * testsuite/gas/mips/mips16-branch-absolute-n64-2.d: New test.
1740         * testsuite/gas/mips/mips16-branch-absolute-addend-n64-1.d: New
1741         test.
1742         * testsuite/gas/mips/mips16-pcrel-absolute-1.l: New stderr
1743         output.
1744         * testsuite/gas/mips/mips16-pcrel-absolute-1.s: New test source.
1745         * testsuite/gas/mips/mips16-branch-absolute-1.s: New test
1746         source.
1747         * testsuite/gas/mips/mips16-branch-absolute-2.s: New test
1748         source.
1749         * testsuite/gas/mips/mips16-branch-absolute-addend-1.s: New test
1750         source.
1751         * testsuite/gas/mips/mips.exp: Run the new tests.
1752
1753 2017-04-27  Maciej W. Rozycki  <macro@imgtec.com>
1754
1755         * config/tc-mips.c (mips16_pcrel_val): New function, factored
1756         out from...
1757         (mips16_extended_frag): ... here.
1758         (md_convert_frag): Use `mips16_pcrel_val' rather than repeated
1759         code in MIPS16 relaxation, with `stretch' hardcoded to 0.
1760
1761 2017-04-27  Maciej W. Rozycki  <macro@imgtec.com>
1762
1763         * config/tc-mips.c (RELAX_MIPS16_LONG_BRANCH): Rename to...
1764         (RELAX_MIPS16_ALWAYS_EXTENDED): ... this.
1765         (RELAX_MIPS16_MARK_LONG_BRANCH): Rename to...
1766         (RELAX_MIPS16_MARK_ALWAYS_EXTENDED): ... this.
1767         (RELAX_MIPS16_CLEAR_LONG_BRANCH): Rename to...
1768         (RELAX_MIPS16_CLEAR_ALWAYS_EXTENDED): ... this.
1769         (mips16_extended_frag): Adjust accordingly.
1770
1771 2017-04-27  Alan Modra  <amodra@gmail.com>
1772
1773         * symbols.c (S_FORCE_RELOC): Separate section and symbol tests.
1774
1775 2017-04-26  Maciej W. Rozycki  <macro@imgtec.com>
1776
1777         * config/tc-mips.c (RELAX_ENCODE): Add `PIC' flag.
1778         (RELAX_PIC): New macro.
1779         (RELAX_USE_SECOND, RELAX_SECOND_LONGER, RELAX_NOMACRO)
1780         (RELAX_DELAY_SLOT, RELAX_DELAY_SLOT_16BIT)
1781         (RELAX_DELAY_SLOT_SIZE_FIRST, RELAX_DELAY_SLOT_SIZE_SECOND):
1782         Shift bits.
1783         (RELAX_BRANCH_ENCODE): Add `pic' flag.
1784         (RELAX_BRANCH_UNCOND, RELAX_BRANCH_LIKELY, RELAX_BRANCH_LINK)
1785         (RELAX_BRANCH_TOOFAR): Shift bits.
1786         (RELAX_BRANCH_PIC): New macro.
1787         (RELAX_MICROMIPS_ENCODE): Add `pic' flag.
1788         (RELAX_MICROMIPS_PIC): New macro.
1789         (RELAX_MICROMIPS_UNCOND, RELAX_MICROMIPS_COMPACT)
1790         (RELAX_MICROMIPS_LINK, RELAX_MICROMIPS_NODS)
1791         (RELAX_MICROMIPS_RELAX32): Shift bits.
1792         (relax_close_frag): Pass `mips_pic' setting to RELAX_ENCODE.
1793         (append_insn): Pass `mips_pic' setting to RELAX_BRANCH_ENCODE
1794         and RELAX_MICROMIPS_ENCODE, and record it in `fx_tcbit2' of the
1795         first fixup created.
1796         (md_apply_fix) <BFD_RELOC_16_PCREL_S2>: Use `fx_tcbit2' of the
1797         fixup processed rather than `mips_pic' in choosing to relax an
1798         out of range branch to a jump.
1799         (relaxed_branch_length): Use the `pic' flag of the relaxed frag
1800         rather than `mips_pic'.
1801         (relaxed_micromips_32bit_branch_length): Likewise.
1802         (md_estimate_size_before_relax): Likewise.
1803         (md_convert_frag): Likewise.
1804
1805         * testsuite/gas/mips/option-pic-relax-0.d: New test.
1806         * testsuite/gas/mips/option-pic-relax-1.d: New test.
1807         * testsuite/gas/mips/option-pic-relax-2.d: New test.
1808         * testsuite/gas/mips/option-pic-relax-3.d: New test.
1809         * testsuite/gas/mips/option-pic-relax-3a.d: New test.
1810         * testsuite/gas/mips/option-pic-relax-4.d: New test.
1811         * testsuite/gas/mips/option-pic-relax-5.d: New test.
1812         * testsuite/gas/mips/option-pic-relax-2.l: New stderr output.
1813         * testsuite/gas/mips/option-pic-relax-3.l: New stderr output.
1814         * testsuite/gas/mips/option-pic-relax-4.l: New stderr output.
1815         * testsuite/gas/mips/option-pic-relax-5.l: New stderr output.
1816         * testsuite/gas/mips/option-pic-relax-0.s: New test source.
1817         * testsuite/gas/mips/option-pic-relax-1.s: New test source.
1818         * testsuite/gas/mips/option-pic-relax-2.s: New test source.
1819         * testsuite/gas/mips/option-pic-relax-3.s: New test source.
1820         * testsuite/gas/mips/option-pic-relax-4.s: New test source.
1821         * testsuite/gas/mips/option-pic-relax-5.s: New test source.
1822         * testsuite/gas/mips/mips.exp: Run the new tests.
1823
1824 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
1825
1826         * testsuite/gas/arc/leave_enter.d: Update test.
1827         * testsuite/gas/arc/leave_enter.s: Likewise.
1828
1829 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
1830
1831         * testsuite/gas/arc/b.d: Update test.
1832         * testsuite/gas/arc/noargs_hs.d: Likewise.
1833
1834 2017-04-25  Maciej W. Rozycki  <macro@imgtec.com>
1835
1836         * config/tc-mips.c (md_convert_frag): Correct
1837         BFD_RELOC_MIPS16_16_PCREL_S1 fixup size.
1838         * testsuite/gas/mips/mips16-branch-addend-4.d: New test.
1839         * testsuite/gas/mips/mips16-branch-addend-5.d: New test.
1840         * testsuite/gas/mips/mips16-branch-addend-5.l: New stderr
1841         output.
1842         * testsuite/gas/mips/mips16-branch-addend-4.s: New test source.
1843         * testsuite/gas/mips/mips16-branch-addend-5.s: New test source.
1844         * testsuite/gas/mips/mips.exp: Run the new tests.
1845
1846 2017-04-25  Jose E. Marchesi  <jose.marchesi@oracle.com>
1847
1848         PR gas/21407
1849         * config/tc-sparc.c (md_apply_fix): Do not transform `call'
1850         instructions into branch instructions in fixups generating
1851         additional relocations.
1852         * testsuite/gas/sparc/call-relax.s: New file.
1853         * testsuite/gas/sparc/call-relax.d: Likewise.
1854         * testsuite/gas/sparc/call-relax-aout.d: Likewise.
1855         * testsuite/gas/sparc/sparc.exp: Test call-relax and call-relax-aout.
1856
1857 2017-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1858
1859         * config/tc-arm.c (move_or_literal_pool): Remove code generating MOVS.
1860         Forbid MOV.W and MOVW if destination is SP or PC.
1861         * testsuite/gas/arm/thumb2_ldr_immediate_highregs_armv6t2.s: Explain
1862         expectation of LDR not generating a MOVS for low registers and small
1863         constants.  Add tests of MOVW generation.
1864         * testsuite/gas/arm/thumb2_ldr_immediate_highregs_armv6t2.d: Update
1865         expected disassembly.
1866
1867 2017-04-22  Alan Modra  <amodra@gmail.com>
1868
1869         * testsuite/gas/ppc/vle.s: Format.  Add se_rfgi and e_sc.
1870         * testsuite/gas/ppc/vle.d: Update.
1871
1872 2017-04-21  Nick Clifton  <nickc@redhat.com>
1873
1874         PR binutils/21380
1875         * testsuite/gas/aarch64/illegal-3.s: New file.
1876         * testsuite/gas/aarch64/illegal-3.d: New file.
1877
1878 2017-04-11  Alan Modra  <amodra@gmail.com>
1879
1880         * config/tc-ppc.c (md_show_usage): Delete mention of -mhtm.
1881         * testsuite/gas/ppc/htm.d: Pass -mpower8 and -Mpower8.
1882
1883 2017-04-10  Max Filippov  <jcmvbkbc@gmail.com>
1884
1885         * config/tc-xtensa.c (xtensa_maybe_create_literal_pool_frag):
1886         Initialize lps->frag_count with auto_litpool_limit.
1887         (xg_promote_candidate_litpool): New function.
1888         (xtensa_move_literals): Extract candidate litpool promotion code
1889         into separate function. Call it for all possible found
1890         candidates.
1891         (xtensa_switch_to_literal_fragment): Drop 'recursive' flag and
1892         call to xtensa_mark_literal_pool_location that it guards.
1893         Replace it with call to xtensa_maybe_create_literal_pool_frag.
1894         Initialize pool_location with created literal pool candidate.
1895         * testsuite/gas/xtensa/all.exp: Add new tests.
1896         * testsuite/gas/xtensa/auto-litpools-first1.d: New test results.
1897         * testsuite/gas/xtensa/auto-litpools-first1.s: New test.
1898         * testsuite/gas/xtensa/auto-litpools-first2.d: New test results.
1899         * testsuite/gas/xtensa/auto-litpools-first2.s: New test.
1900         * testsuite/gas/xtensa/auto-litpools.d: Fix offsets changed due
1901         to additional jump instruction.
1902
1903 2017-04-07  Alan Modra  <amodra@gmail.com>
1904
1905         * testsuite/gas/ppc/altivec2.s: Delete E6500 vector insns.
1906         * testsuite/gas/ppc/altivec2.d: Adjust to suit.
1907
1908 2017-04-07  Alan Modra  <amodra@gmail.com>
1909
1910         * testsuite/gas/elf/section12a.d: Don't expect alignment of 1
1911         for .mbind.text.
1912
1913 2017-04-06  Pip Cet  <pipcet@gmail.com>
1914
1915         * testsuite/gas/wasm32/allinsn.d: Adjust test for disassembler
1916         changes.
1917         * testsuite/gas/wasm32/disass.d: New test.
1918         * testsuite/gas/wasm32/disass.s: New test.
1919         * testsuite/gas/wasm32/disass-2.d: New test.
1920         * testsuite/gas/wasm32/disass-2.s: New test.
1921         * testsuite/gas/wasm32/reloc.d: Adjust test for changed reloc
1922         names.
1923         * testsuite/gas/wasm32/reloc.s: Update test for changed assembler
1924         syntax.
1925         * testsuite/gas/wasm32/wasm32.exp: Run new tests.  Expect allinsn
1926         test to succeed.
1927
1928 2017-04-04  H.J. Lu  <hongjiu.lu@intel.com>
1929
1930         * NEWS: Mention support for ELF SHF_GNU_MBIND.
1931         * config/obj-elf.c (section_match): New.
1932         (get_section): Match both sh_info and group name.
1933         (obj_elf_change_section): Add argument for sh_info.  Pass both
1934         sh_info and group name to get_section. Issue an error for
1935         SHF_GNU_MBIND section without SHF_ALLOC.  Set sh_info.
1936         (obj_elf_parse_section_letters): Set SHF_GNU_MBIND for 'd'.
1937         (obj_elf_section): Support SHF_GNU_MBIND section info.
1938         * config/obj-elf.h (obj_elf_change_section): Add argument for
1939         sh_info.
1940         * config/tc-arm.c (start_unwind_section): Pass 0 as sh_info to
1941         obj_elf_change_section.
1942         * config/tc-ia64.c (obj_elf_vms_common): Likewise.
1943         * config/tc-microblaze.c (microblaze_s_data): Likewise.
1944         (microblaze_s_sdata): Likewise.
1945         (microblaze_s_rdata): Likewise.
1946         (microblaze_s_bss): Likewise.
1947         * config/tc-mips.c (s_change_section): Likewise.
1948         * config/tc-msp430.c (msp430_profiler): Likewise.
1949         * config/tc-rx.c (parse_rx_section): Likewise.
1950         * config/tc-tic6x.c (tic6x_start_unwind_section): Likewise.
1951         * doc/as.texinfo: Document 'd' for SHF_GNU_MBIND.
1952         * testsuite/gas/elf/elf.exp: Run section12a, section12b and
1953         section13.
1954         * testsuite/gas/elf/section10.d: Updated.
1955         * testsuite/gas/elf/section10.s: Likewise.
1956         * testsuite/gas/elf/section12.s: New file.
1957         * testsuite/gas/elf/section12a.d: Likewise.
1958         * testsuite/gas/elf/section12b.d: Likewise.
1959         * testsuite/gas/elf/section13.l: Likewise.
1960         * testsuite/gas/elf/section13.d: Likewise.
1961         * testsuite/gas/elf/section13.s: Likewise.
1962
1963 2017-04-03  Palmer Dabbelt  <palmer@dabbelt.com>
1964
1965         * config/tc-riscv.c (riscv_clear_subsets): Cast argument to free to
1966         avoid const warnings.
1967
1968 2017-03-30  Palmer Dabbelt  <palmer@dabbelt.com>
1969
1970         * config/tc-riscv.c (riscv_clear_subsets): New function.
1971         (riscv_add_subset): Call riscv_clear_subsets and riscv_set_rvc to
1972         clear RVC when it's been previously set.
1973
1974 2017-03-31  Nick Clifton  <nickc@redhat.com>
1975
1976         PR gas/21333
1977         * config/tc-s390.c (tc_s390_fix_adjustable): Allow non pc-relative
1978         fixups in mergeable sections to be adjusted.
1979
1980 2017-03-30  Pip Cet  <pipcet@gmail.com>
1981
1982         * config/tc-wasm32.h: New file: Add WebAssembly assembler target.
1983         * config/tc-wasm32.c: New file: Add WebAssembly assembler target.
1984         * Makefile.am: Add WebAssembly assembler target.
1985         * configure.tgt: Add WebAssembly assembler target.
1986         * doc/c-wasm32.texi: New file: Start documenting WebAssembly
1987         assembler.
1988         * doc/all.texi: Define WASM32.
1989         * doc/as.texinfo: Add WebAssembly entries.
1990         * NEWS: Mention the new support.
1991         * Makefile.in: Regenerate.
1992         * po/gas.pot: Regenerate.
1993         * po/POTFILES.in: Regenerate.
1994         * testsuite/gas/wasm32: New directory.
1995         * testsuite/gas/wasm32/allinsn.d: New file.
1996         * testsuite/gas/wasm32/allinsn.s: New file.
1997         * testsuite/gas/wasm32/illegal.l: New file.
1998         * testsuite/gas/wasm32/illegal.s: New file.
1999         * testsuite/gas/wasm32/illegal-2.l: New file.
2000         * testsuite/gas/wasm32/illegal-2.s: New file.
2001         * testsuite/gas/wasm32/illegal-3.l: New file.
2002         * testsuite/gas/wasm32/illegal-3.s: New file.
2003         * testsuite/gas/wasm32/illegal-4.l: New file.
2004         * testsuite/gas/wasm32/illegal-4.s: New file.
2005         * testsuite/gas/wasm32/illegal-5.l: New file.
2006         * testsuite/gas/wasm32/illegal-5.s: New file.
2007         * testsuite/gas/wasm32/illegal-6.l: New file.
2008         * testsuite/gas/wasm32/illegal-6.s: New file.
2009         * testsuite/gas/wasm32/illegal-7.l: New file.
2010         * testsuite/gas/wasm32/illegal-7.s: New file.
2011         * testsuite/gas/wasm32/illegal-8.l: New file.
2012         * testsuite/gas/wasm32/illegal-8.s: New file.
2013         * testsuite/gas/wasm32/illegal-9.l: New file.
2014         * testsuite/gas/wasm32/illegal-9.s: New file.
2015         * testsuite/gas/wasm32/illegal-10.l: New file.
2016         * testsuite/gas/wasm32/illegal-10.s: New file.
2017         * testsuite/gas/wasm32/illegal-11.l: New file.
2018         * testsuite/gas/wasm32/illegal-11.s: New file.
2019         * testsuite/gas/wasm32/illegal-12.l: New file.
2020         * testsuite/gas/wasm32/illegal-12.s: New file.
2021         * testsuite/gas/wasm32/illegal-13.l: New file.
2022         * testsuite/gas/wasm32/illegal-13.s: New file.
2023         * testsuite/gas/wasm32/illegal-14.l: New file.
2024         * testsuite/gas/wasm32/illegal-14.s: New file.
2025         * testsuite/gas/wasm32/illegal-15.l: New file.
2026         * testsuite/gas/wasm32/illegal-15.s: New file.
2027         * testsuite/gas/wasm32/illegal-16.l: New file.
2028         * testsuite/gas/wasm32/illegal-16.s: New file.
2029         * testsuite/gas/wasm32/illegal-17.l: New file.
2030         * testsuite/gas/wasm32/illegal-17.s: New file.
2031         * testsuite/gas/wasm32/illegal-18.l: New file.
2032         * testsuite/gas/wasm32/illegal-18.s: New file.
2033         * testsuite/gas/wasm32/illegal-19.l: New file.
2034         * testsuite/gas/wasm32/illegal-19.s: New file.
2035         * testsuite/gas/wasm32/illegal-20.l: New file.
2036         * testsuite/gas/wasm32/illegal-20.s: New file.
2037         * testsuite/gas/wasm32/illegal-21.l: New file.
2038         * testsuite/gas/wasm32/illegal-21.s: New file.
2039         * testsuite/gas/wasm32/illegal-22.l: New file.
2040         * testsuite/gas/wasm32/illegal-22.s: New file.
2041         * testsuite/gas/wasm32/illegal-24.l: New file.
2042         * testsuite/gas/wasm32/illegal-24.s: New file.
2043         * testsuite/gas/wasm32/illegal-25.l: New file.
2044         * testsuite/gas/wasm32/illegal-25.s: New file.
2045         * testsuite/gas/wasm32/reloc.d: New file.
2046         * testsuite/gas/wasm32/reloc.s: New file.
2047         * testsuite/gas/wasm32/wasm32.exp: New tests for WebAssembly
2048         architecture.
2049
2050 2017-03-29  Alan Modra  <amodra@gmail.com>
2051
2052         * config/tc-ppc.c (md_parse_option): Reject -mraw.
2053
2054 2017-03-27  Alan Modra  <amodra@gmail.com>
2055
2056         PR 21303
2057         * testsuite/gas/ppc/pr21303.d,
2058         * testsuite/gas/ppc/pr21303.s: New test
2059         * testsuite/gas/ppc/ppc.exp: Run it.
2060
2061 2017-03-27  Rinat Zelig  <rinat@mellanox.com>
2062
2063         * testsuite/gas/arc/nps400-12.s: New file.
2064         * testsuite/gas/arc/nps400-12.d: New file.
2065
2066 2017-03-24  Thomas preud'homme  <thomas.preudhomme@arm.com>
2067
2068         * config/tc-arm.: (md_begin): Set selected_cpu from *mcpu_cpu_opt when
2069         CPU_DEFAULT is defined.
2070
2071 2017-03-21  Palmer Dabbbelt  <palmer@dabbelt.com>
2072
2073         * config/tc-riscv.c (md_show_usage): Remode defuct -m32, -m64,
2074         -msoft-float, -mhard-float, -mno-rvc, and -mrvc options; and don't
2075         print an invalid default ISA string.
2076         * doc/c-riscv.texi (OPTIONS): Add -fpic and -fno-pic options.
2077
2078 2017-03-22  Max Filippov  <jcmvbkbc@gmail.com>
2079
2080         * config/tc-xtensa.c (xtensa_relax_frag): Change fx_size of the
2081         reassigned fixup to size of jump instruction (3) and fx_r_type
2082         to BFD_RELOC_XTENSA_SLOT0_OP, as there's only one slot.
2083         (add_jump_to_trampoline): Search
2084         origfrag->tc_frag_data.slot_symbols for the slot with non-NULL
2085         symbol and use that slot instead of slot 0.
2086
2087 2017-03-21  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2088
2089         * config/tc-s390.c (s390_parse_cpu): Remove S390_INSTR_FLAG_VX2
2090         from cpu_table.  Remove vx2, and novx2 from cpu_flags.
2091
2092 2017-03-21  Rinat Zelig  <rinat@mellanox.com>
2093
2094         * testsuite/gas/arc/nps400-11.s: New file.
2095         * testsuite/gas/arc/nps400-11.d: New file.
2096
2097 2017-03-20  Nick Clifton  <nickc@redhat.com>
2098
2099         * doc/as.texinfo (2byte): Note that if no expressions are present
2100         the directive does nothing.  Emphasize that the output is
2101         unaligned, and that this can have an effect on the relocations
2102         generated.
2103         (4byte): Simplify description.  Refer back to the 2byte
2104         description.
2105         (8byte): Likewise.
2106
2107 2017-03-20  Richard Earnshaw  <rearnsha@arm.com>
2108
2109         * config/tc-arm.c (arm_fpus): Note entires that should not be
2110         documented.
2111         * doc/c-arm.texi (-mfpu): Add missing FPU entries for neon-vfpv3 and
2112         neon-fp16.  Fix spelling error.
2113
2114 2017-03-20  Richard Earnshaw  <rearnsha@arm.com>
2115
2116         * config/tc-arm.c (arm_fpus): Add neon-vfpv3 as an alias for neon.
2117
2118 2017-03-16  Rinat Zelig  <rinat@mellanox.com>
2119
2120         * config/tc-arc.c (assemble_insn): Only handle ".t" and ".nt"
2121         specially for ARCv2.
2122
2123 2017-03-14  Kito Cheng  <kito.cheng@gmail.com>
2124
2125         * config/tc-riscv.c (validate_riscv_insn): Add 'o' RVC immediate
2126         encoding format, which can accept 0-valued immediates.
2127         (riscv_ip): Likewise.
2128
2129 2017-03-15  Nick Clifton  <nickc@redhat.com>
2130
2131         * config/tc-riscv.c (riscv_pre_output_hook): Fix compile time
2132         warning about discarding a const qualifier.
2133
2134 2017-03-02  Kuan-Lin Chen  <rufus@andestech.com>
2135
2136         * config/tc-riscv.h (HWARD2_USE_FIXED_ADVANCE_PC): New define.
2137
2138 2017-03-02  Kuan-Lin Chen  <rufus@andestech.com>
2139
2140         * config/tc-riscv.c (md_apply_fix): Set fx_frag and
2141         fx_next->fx_frag for CFA_advance_loc relocations.
2142
2143 2017-03-02  Kuan-Lin Chen  <rufus@andestech.com>
2144
2145         * config/tc-riscv.c (md_apply_fix): Compute the correct offsets
2146         for CFA relocations.
2147
2148 2017-03-13  Nick Clifton  <nickc@redhat.com>
2149
2150         PR binutils/21202
2151         * config/tc-aarch64.c (reloc_table): Rename
2152         BFD_RELOC_AARCH64_TLSDESC_LD64_LO12_NC to
2153         BFD_RELOC_AARCH64_TLSDESC_LD64_LO12.  Rname
2154         BFD_RELOC_AARCH64_TLSDESC_ADD_LO12_NC to
2155         BFD_RELOC_AARCH64_TLSDESC_ADD_LO12.
2156         (md_apply_fix): Likewise.
2157         (aarch64_force_relocation): Likewise.
2158         * testsuite/gas/aarch64/tls.d: Update regexp.
2159
2160 2017-03-10  Tobin C. Harding  <me@tobin.cc>
2161             Nick Clifton  <nickc@redhat.com>
2162
2163         * doc/as.texinfo (2byte): Tidy up wording.  Add note that
2164         overlarge values will produce a warning message and be trunacted.
2165         (4byte): Likewise.
2166
2167 2017-03-09  H.J. Lu  <hongjiu.lu@intel.com>
2168
2169         * config/tc-i386.c (_i386_insn): Add dir_encoding and
2170         vec_encoding.  Remove swap_operand and need_vrex.
2171         (extra_symbol_chars): Add '}'.
2172         (md_begin): Mark '}' with LEX_BEGIN_NAME.  Allow '}' in
2173         mnemonic.
2174         (build_vex_prefix): Don't use 2-byte VEX encoding with
2175         {vex3}.  Check dir_encoding and load.
2176         (parse_insn): Check pseudo prefixes.  Set dir_encoding.
2177         (VEX_check_operands): Likewise.
2178         (match_template): Check dir_encoding and load.
2179         (parse_real_register): Set vec_encoding instead of need_vrex.
2180         (parse_register): Likewise.
2181         * doc/c-i386.texi: Document {disp8}, {disp32}, {load}, {store},
2182         {vex2}, {vex3} and {evex}.  Remove ".s", ".d8" and ".d32"
2183         * testsuite/gas/i386/i386.exp: Run pseudos and x86-64-pseudos.
2184         * testsuite/gas/i386/pseudos.d: New file.
2185         * testsuite/gas/i386/pseudos.s: Likewise.
2186         * testsuite/gas/i386/x86-64-pseudos.d: Likewise.
2187         * testsuite/gas/i386/x86-64-pseudos.s: Likewise.
2188
2189 2017-03-08  Peter Bergner <bergner@vnet.ibm.com>
2190
2191         * testsuite/gas/ppc/altivec2.d (as): Use the -mpower8 option.
2192         (objdump): Use the -Mpower8 option.
2193
2194 2017-03-08  Peter Bergner <bergner@vnet.ibm.com>
2195
2196         * testsuite/gas/ppc/power9.d <lnia> New test.
2197         * testsuite/gas/ppc/power9.s: Likewise.
2198
2199 2017-03-07  Alan Modra  <amodra@gmail.com>
2200
2201         * doc/as.texinfo (2byte, 4byte, 8byte): Correct @section placement.
2202
2203 2017-03-07  Tobin C. Harding  <me@tobin.cc>
2204             Alan Modra  <amodra@gmail.com>
2205
2206         * doc/as.texinfo (2byte, 4byte, 8byte): Document.
2207         * doc/c-arm.texi (2byte, 4byte, 8byte): Omit if ELF.
2208
2209 2017-03-06  H.J. Lu  <hongjiu.lu@intel.com>
2210
2211         * config/tc-i386.c (cpu_arch): Add .cet.
2212         * doc/c-i386.texi: Document cet.
2213         * testsuite/gas/i386/cet-intel.d: New file.
2214         * testsuite/gas/i386/cet.d: Likewise.
2215         * testsuite/gas/i386/cet.s: Likewise.
2216         * testsuite/gas/i386/x86-64-cet-intel.d: Likewise.
2217         * testsuite/gas/i386/x86-64-cet.d: Likewise.
2218         * testsuite/gas/i386/x86-64-cet.s: Likewise.
2219         * testsuite/gas/i386/i386.exp: Run Intel CET tests.
2220
2221 2017-03-06  H.J. Lu  <hongjiu.lu@intel.com>
2222
2223         * testsuite/gas/i386/x86-64-mpx-inval-2.s: Force a good alignment.
2224         * testsuite/gas/i386/x86-64-mpx-inval-2.l: Expect [0-9A-F]+.
2225
2226 2017-03-06  Alan Modra  <amodra@gmail.com>
2227
2228         * dw2gencfi.c (encoding_size): Return unsigned int.
2229         (emit_expr_encoded): Assert size matches reloc bitsize.
2230         (output_fde): Use unsigned for offset_size and addr_size.  Set
2231         addr_size earlier and use in place of constant 4 and uses of
2232         DWARF2_FDE_RELOC_SIZE.  Assert it matches reloc bitsize.
2233
2234 2017-03-06  Alan Modra  <amodra@gmail.com>
2235
2236         * dw2gencfi.c: Wrap overlong lines.  Add parens for emacs
2237         auto reformat.  Formatting and whitespace fixes.
2238
2239 2017-03-05  Mark Wielaard  <mark@klomp.org>
2240
2241         * dwarf2dbg.c (out_debug_abbrev): Use DW_FORM_strp instead of
2242         DW_FORM_string for DW_AT_name, DW_AT_comp_dir and DW_AT_producer.
2243         (out_debug_info): Accept symbols to name, comp_dir and producer in
2244         the .debug_str section and emit those offsets not full strings.
2245         (out_debug_str): New function that outputs the strings for name,
2246         comp_dir and producer in .debug_str and generates symbols to those
2247         strings.
2248         (out_debug_line): Create a .debug_str section if necessary and call
2249         out_debug_str before calling out_debug_info.
2250         * testsuite/gas/aarch64/dwarf.d: Add extra section symbol to expected
2251         output.
2252
2253 2017-03-02  Maciej W. Rozycki  <macro@imgtec.com>
2254
2255         * write.c (relax_segment) <rs_org>: Only bail out if the fixed
2256         part of the frag has overrun the location requested.
2257
2258         * testsuite/gas/all/org-1.d: New test.
2259         * testsuite/gas/all/org-2.d: New test.
2260         * testsuite/gas/all/org-3.d: New test.
2261         * testsuite/gas/all/org-4.d: New test.
2262         * testsuite/gas/all/org-5.d: New test.
2263         * testsuite/gas/all/org-6.d: New test.
2264         * testsuite/gas/all/org-1.l: New stderr output.
2265         * testsuite/gas/all/org-2.l: New stderr output.
2266         * testsuite/gas/all/org-3.l: New stderr output.
2267         * testsuite/gas/all/org-1.s: New test source.
2268         * testsuite/gas/all/org-2.s: New test source.
2269         * testsuite/gas/all/org-3.s: New test source.
2270         * testsuite/gas/all/org-4.s: New test source.
2271         * testsuite/gas/all/org-5.s: New test source.
2272         * testsuite/gas/all/org-6.s: New test source.
2273         * testsuite/gas/all/gas.exp: Run the new tests.
2274
2275         * testsuite/gas/mips/org-1.d: New test.
2276         * testsuite/gas/mips/org-2.d: New test.
2277         * testsuite/gas/mips/org-3.d: New test.
2278         * testsuite/gas/mips/org-4.d: New test.
2279         * testsuite/gas/mips/org-5.d: New test.
2280         * testsuite/gas/mips/org-6.d: New test.
2281         * testsuite/gas/mips/org-7.d: New test.
2282         * testsuite/gas/mips/org-8.d: New test.
2283         * testsuite/gas/mips/org-9.d: New test.
2284         * testsuite/gas/mips/org-10.d: New test.
2285         * testsuite/gas/mips/org-11.d: New test.
2286         * testsuite/gas/mips/org-12.d: New test.
2287         * testsuite/gas/mips/org-1.l: New stderr output.
2288         * testsuite/gas/mips/org-4.l: New stderr output.
2289         * testsuite/gas/mips/org-5.l: New stderr output.
2290         * testsuite/gas/mips/org-6.l: New stderr output.
2291         * testsuite/gas/mips/org-10.l: New stderr output.
2292         * testsuite/gas/mips/org-1.s: New test source.
2293         * testsuite/gas/mips/org-2.s: New test source.
2294         * testsuite/gas/mips/org-3.s: New test source.
2295         * testsuite/gas/mips/org-4.s: New test source.
2296         * testsuite/gas/mips/org-5.s: New test source.
2297         * testsuite/gas/mips/org-6.s: New test source.
2298         * testsuite/gas/mips/org-7.s: New test source.
2299         * testsuite/gas/mips/org-8.s: New test source.
2300         * testsuite/gas/mips/org-9.s: New test source.
2301         * testsuite/gas/mips/org-10.s: New test source.
2302         * testsuite/gas/mips/org-11.s: New test source.
2303         * testsuite/gas/mips/org-12.s: New test source.
2304         * testsuite/gas/mips/mips.exp: Run the new tests.
2305
2306 2017-03-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2307
2308         * doc/c-aarch64.texi (AArch64 Extensions): Document rcpc.
2309
2310 2017-02-28  Jan Beulich  <jbeulich@suse.com>
2311
2312         * testsuite/gas/i386/x86-64-avx.s: Add suffixed variants of
2313         VPCMPESTR{I,M}.
2314         * testsuite/gas/i386/x86-64-sse2avx.s: Likewise.
2315         * testsuite/gas/i386/x86-64-sse4_2.s: Add suffixed variants
2316         of PCMPESTR{I,M}.
2317         * testsuite/gas/i386/ilp32/x86-64-avx-intel.d: Likewise.
2318         * testsuite/gas/i386/ilp32/x86-64-avx.d: Likewise.
2319         * testsuite/gas/i386/ilp32/x86-64-sse2avx.d: Likewise.
2320         * testsuite/gas/i386/ilp32/x86-64-sse4_2-intel.d: Likewise.
2321         * testsuite/gas/i386/ilp32/x86-64-sse4_2.d: Likewise.
2322         * testsuite/gas/i386/x86-64-avx-intel.d: Likewise.
2323         * testsuite/gas/i386/x86-64-avx.d: Likewise.
2324         * testsuite/gas/i386/x86-64-sse2avx.d: Likewise.
2325         * testsuite/gas/i386/x86-64-sse4_2-intel.d: Likewise.
2326         * testsuite/gas/i386/x86-64-sse4_2.d: Likewise.
2327
2328 2017-02-28  Alan Modra  <amodra@gmail.com>
2329
2330         * config/tc-nios2.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
2331
2332 2017-02-28  Alan Modra  <amodra@gmail.com>
2333
2334         * config/tc-ppc.c (md_assemble): Use BFD_RELOC_PPC_16DX_HA for addpcis.
2335         (md_apply_fix): Remove fx_subsy check.  Move code converting to
2336         pcrel reloc earlier and handle BFD_RELOC_PPC_16DX_HA.  Remove code
2337         emiiting errors on seeing fx_pcrel set on unexpected relocs, as
2338         that is done now by the generic code via..
2339         * config/tc-ppc.h (TC_FORCE_RELOCATION_SUB_LOCAL): ..this. Define.
2340         (TC_VALIDATE_FIX_SUB): Define.
2341
2342 2017-02-28  Maciej W. Rozycki  <macro@imgtec.com>
2343
2344         * testsuite/gas/mips/jalr4.s: Add `jalr $0, $25' instructions.
2345         * testsuite/gas/mips/jalr4.d: Adjust accordingly.  Remove MIPSr6
2346         encoding patterns.
2347         * testsuite/gas/mips/jalr4-n64.d: Likewise.
2348         * testsuite/gas/mips/mipsr6@jalr4.d: New test.
2349         * testsuite/gas/mips/mipsr6@jalr4-n32.d: New test.
2350         * testsuite/gas/mips/mipsr6@jalr4-n64.d: New test.
2351
2352 2017-02-25  Alan Modra  <amodra@gmail.com>
2353
2354         * testsuite/gas/elf/strtab.s: Don't put directives on first
2355         column or continuation with labels not in first column.
2356
2357 2017-02-24  Richard Sandiford  <richard.sandiford@arm.com>
2358
2359         * doc/c-aarch64.texi: Document that sve implies fp16, simd and compnum.
2360         * config/tc-aarch64.c (parse_vector_type_for_operand): Allow .q
2361         to be used with SVE registers.
2362         (parse_operands): Handle new SVE operands.
2363         (aarch64_features): Make "sve" require F16 rather than FP.  Also
2364         require COMPNUM.
2365         * testsuite/gas/aarch64/sve.s: Add tests for new instructions.
2366         Include compnum tests.
2367         * testsuite/gas/aarch64/sve.d: Update accordingly.
2368         * testsuite/gas/aarch64/sve-invalid.s: Add tests for new instructions.
2369         * testsuite/gas/aarch64/sve-invalid.l: Update accordingly.  Also
2370         update expected output for new FMOV and MOV alternatives.
2371
2372 2017-02-24  Richard Sandiford  <richard.sandiford@arm.com>
2373
2374         * doc/c-aarch64.texi: Add a "compnum" entry.
2375         * config/tc-aarch64.c (aarch64_features): Likewise,
2376         * testsuite/gas/aarch64/advsimd-compnum.s: New test.
2377         * testsuite/gas/aarch64/advsimd-compnum.d: Likewise.
2378
2379 2017-02-24  Jan Beulich  <jbeulich@suse.com>
2380
2381         * testsuite/gas/i386/opcode.s: Add alternative TEST forms.
2382         * testsuite/gas/i386/x86-64-opcode.s: Likewise.
2383         * testsuite/gas/i386/opcode.d: Adjust accordingly.
2384         * testsuite/gas/i386/opcode-intel.d: Likewise.
2385         * testsuite/gas/i386/x86-64-opcode.d: Likewise.
2386         * testsuite/gas/i386/ilp32/x86-64-opcode.d: Likewise.
2387
2388 2017-02-24  Sheldon Lobo  <sheldon.lobo@oracle.com>
2389
2390         Test cases for the architecture level aware SPARC ASI work.
2391         * gas/testsuite/gas/sparc/sparc.exp: 2 new tests
2392         * gas/testsuite/gas/sparc/asi-bump-warn.s: New test
2393         * gas/testsuite/gas/sparc/asi-bump-warn.l: Likewise
2394         * gas/testsuite/gas/sparc/asi-arch-error.s: Likewise
2395         * gas/testsuite/gas/sparc/asi-arch-error.l: Likewise
2396
2397 2017-02-23  Maciej W. Rozycki  <macro@imgtec.com>
2398
2399         * testsuite/gas/mips/jalr4.d: New test.
2400         * testsuite/gas/mips/jalr4-n32.d: New test.
2401         * testsuite/gas/mips/jalr4-n64.d: New test.
2402         * testsuite/gas/mips/jalr4.s: New test source.
2403         * testsuite/gas/mips/mips.exp: Run the new tests.
2404
2405 2017-02-23  Sheldon Lobo <sheldon.lobo@oracle.com>
2406
2407         Add support for associating SPARC ASIs with an architecture level.
2408         * config/tc-sparc.c (parse_sparc_asi): New encode SPARC ASIs.
2409
2410 2017-02-23  Jan Beulich  <jbeulich@suse.com>
2411
2412         * testsuite/gas/all/err-sizeof.s: Don't use sums or differences
2413         of symbols as expression.
2414
2415 2017-02-23  Jan Beulich  <jbeulich@suse.com>
2416
2417         * gas/testsuite/gas/i386/x86-64-mpx-inval-2.d: Add 32- and 16-
2418         bit GPR forms of BNDCL, BNDCU, and BNDCN. Add RSP-as-index
2419         Intel syntax forms of BNDMK, BNDSTX, and BNDLDX.
2420         * gas/testsuite/gas/i386/x86-64-mpx-inval-2.l: Adjust.
2421
2422 2017-02-22  Maciej W. Rozycki  <macro@imgtec.com>
2423
2424         * ecoff.c (ecoff_directive_end) [md_flush_pending_output]: Call
2425         `md_flush_pending_output'.
2426         * config/tc-mips.c (s_mips_end) [md_flush_pending_output]: Call
2427         `md_flush_pending_output' unconditionally.
2428         * testsuite/gas/mips/debug-label-end-1.d: New test.
2429         * testsuite/gas/mips/debug-label-end-2.d: New test.
2430         * testsuite/gas/mips/debug-label-end-3.d: New test.
2431         * testsuite/gas/mips/debug-label-end.s: New test source.
2432         * testsuite/gas/mips/mips.exp: Run the new tests.
2433
2434 2017-02-22  Hans-Peter Nilsson  <hp@axis.com>
2435
2436         * testsuite/gas/all/err-sizeof.s: Include cris*-*-* in the list of
2437         targets yielding an error message matching "too complex".
2438
2439 2017-02-22  Nick Clifton  <nickc@redhat.com>
2440
2441         * testsuite/gas/arm/vcmp-noprefix-imm.d: Skip for non-ELF targets.
2442
2443 2017-02-21  Jan Beulich  <jbeulich@suse.com>
2444
2445         * expr.c (operand): Handle missing operand to .startof.() and
2446         .sizeof.().
2447         * testsuite/gas/all/err-sizeof.s: New.
2448
2449 2017-02-20  Alan Modra  <amodra@gmail.com>
2450
2451         PR 21118
2452         * NEWS: Revise powerpc register check.
2453         * config/tc-ppc.c (ppc_optimize_expr, md_assemble): Make "invalid
2454         register expression" a warning.
2455
2456 2017-02-17  Maciej W. Rozycki  <macro@imgtec.com>
2457
2458         * ecoff.c (ecoff_directive_ent, add_procedure): Handle `.aent'.
2459         * config/obj-ecoff.c (obj_pseudo_table): Add "aent" entry.
2460         * config/obj-elf.c (ecoff_debug_pseudo_table): Likewise.
2461         * testsuite/gas/mips/aent-2.d: New test.
2462         * testsuite/gas/mips/aent-mdebug.d: New test.
2463         * testsuite/gas/mips/aent-mdebug-2.d: New test.
2464         * testsuite/gas/mips/mips.exp: Run the new tests.
2465
2466 2017-02-15  Richard Sandiford  <richard.sandiford@arm.com>
2467
2468         * testsuite/gas/aarch64/sve-sysreg.s,
2469         testsuite/gas/aarch64/sve-sysreg.d,
2470         testsuite/gas/aarch64/sve-sysreg-invalid.d,
2471         testsuite/gas/aarch64/sve-sysreg-invalid.l: New tests.
2472
2473 2017-02-15  Richard Sandiford  <richard.sandiford@arm.com>
2474
2475         * doc/c-aarch64.texi: Fix sve entry.
2476
2477 2017-02-15  Claudiu Zissulescu  <claziss@synopsys.com>
2478
2479         * config/tc-arc.c (md_convert_frag): Remove @pcl relocation
2480         information from input expression.
2481         (assemble_insn): Make sure pcrel is correctly set.
2482         (arc_pcrel_adjust): Compensate for PCL rounding.
2483         * testsuite/gas/arc/relax-add01.d: New file.
2484         * testsuite/gas/arc/relax-add01.s: Likewise.
2485         * testsuite/gas/arc/relax-add02.d: Likewise.
2486         * testsuite/gas/arc/relax-add02.s: Likewise.
2487         * testsuite/gas/arc/relax-add03.d: Likewise.
2488         * testsuite/gas/arc/relax-add03.s: Likewise.
2489         * testsuite/gas/arc/relax-add04.d: Likewise.
2490         * testsuite/gas/arc/relax-add04.s: Likewise.
2491         * testsuite/gas/arc/relax-ld01.d: Likewise.
2492         * testsuite/gas/arc/relax-ld01.s: Likewise.
2493         * testsuite/gas/arc/relax-ld02.d: Likewise.
2494         * testsuite/gas/arc/relax-ld02.s: Likewise.
2495         * testsuite/gas/arc/relax-mov01.d: Likewise.
2496         * testsuite/gas/arc/relax-mov01.s: Likewise.
2497         * testsuite/gas/arc/relax-mov02.d: Likewise.
2498         * testsuite/gas/arc/relax-mov02.s: Likewise.
2499         * testsuite/gas/arc/relax-mpy01.d: Likewise.
2500         * testsuite/gas/arc/relax-mpy01.s: Likewise.
2501         * testsuite/gas/arc/relax-sub01.d: Likewise.
2502         * testsuite/gas/arc/relax-sub01.s: Likewise.
2503         * testsuite/gas/arc/relax-sub02.d: Likewise.
2504         * testsuite/gas/arc/relax-sub02.s: Likewise.
2505         * testsuite/gas/arc/relax-sub03.d: Likewise.
2506         * testsuite/gas/arc/relax-sub03.s: Likewise.
2507         * testsuite/gas/arc/relax-sub04.d: Likewise.
2508         * testsuite/gas/arc/relax-sub04.s: Likewise.
2509
2510 2017-02-09  Vineet Gupta <vgupta@synopsys.com>
2511
2512         * testsuite/gas/arc/st.d: Update for 0xe having a name now
2513
2514 2017-02-14  Alan Modra  <amodra@gmail.com>
2515
2516         PR 21118
2517         * NEWS: Mention powerpc register checks.
2518         * config/tc-ppc.c (struct pd_reg): Make value a short.  Add flags.
2519         (pre_defined_registers): Delete fpscr and pmr entries.  Set
2520         register type in flags.
2521         (cr_names): Set type in flags.
2522         (reg_name_search): Return pointer to struct pd_reg rather than value.
2523         (register_name): Adjust to suit.  Set X_md from flags.
2524         (ppc_parse_name): Likewise.
2525         (ppc_optimize_expr): New function.
2526         (md_assemble): Verify expresion reg flags match operand.
2527         * config/tc-ppc.h (md_optimize_expr): Define.
2528         (ppc_optimize_expr): Declare.
2529
2530 2017-02-14  Alan Modra  <amodra@gmail.com>
2531
2532         * testsuite/gas/ppc/cell.s: Correct invalid registers.
2533         * testsuite/gas/ppc/vle-simple-1.s: Likewise.
2534         * testsuite/gas/ppc/vle-simple-2.s: Likewise.
2535
2536 2017-02-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2537
2538         * config/tc-arm.c (parse_ifimm_zero): Make prefix optional in unified
2539         syntax.
2540         * testsuite/gas/arm/vcmp-noprefix-imm.d: New file.
2541         * testsuite/gas/arm/vcmp-noprefix-imm.s: New file.
2542
2543 2017-02-10  Nicholas Piggin  <npiggin@gmail.com>
2544
2545         * testsuite/gas/ppc/power9.d <scv, rfscv>: New tests.
2546
2547 2017-02-02  Maciej W. Rozycki  <macro@imgtec.com>
2548
2549         * doc/as.texinfo (Overview): Select MIPS options for man page
2550         inclusion.
2551
2552 2017-01-30  Maciej W. Rozycki  <macro@imgtec.com>
2553
2554         * config/tc-mips.c (mips_ignore_branch_isa): New variable.
2555         (options): Add OPTION_IGNORE_BRANCH_ISA and
2556         OPTION_NO_IGNORE_BRANCH_ISA enum values.
2557         (md_longopts): Add "mignore-branch-isa" and
2558         "mno-ignore-branch-isa" options.
2559         (md_parse_option): Handle OPTION_IGNORE_BRANCH_ISA and
2560         OPTION_NO_IGNORE_BRANCH_ISA.
2561         (fix_bad_cross_mode_branch_p): Return FALSE if
2562         `mips_ignore_branch_isa' has been set.
2563         (md_show_usage): Add `-mignore-branch-isa' and
2564         `-mno-ignore-branch-isa'.
2565
2566         * doc/as.texinfo (Target MIPS options): Add
2567         `-mignore-branch-isa' and `-mno-ignore-branch-isa' options.
2568         (-mignore-branch-isa, -mno-ignore-branch-isa): New options.
2569         * doc/c-mips.texi (MIPS Options): Add `-mignore-branch-isa' and
2570         `-mno-ignore-branch-isa' options.
2571
2572         * testsuite/gas/mips/branch-local-ignore-2.d: New test.
2573         * testsuite/gas/mips/branch-local-ignore-3.d: New test.
2574         * testsuite/gas/mips/branch-local-ignore-n32-2.d: New test.
2575         * testsuite/gas/mips/branch-local-ignore-n32-3.d: New test.
2576         * testsuite/gas/mips/branch-local-ignore-n64-2.d: New test.
2577         * testsuite/gas/mips/branch-local-ignore-n64-3.d: New test.
2578         * testsuite/gas/mips/mips.exp: Run the new tests.
2579
2580 2017-01-30  Maciej W. Rozycki  <macro@imgtec.com>
2581
2582         * testsuite/gas/mips/branch-local-2.d: New test.
2583         * testsuite/gas/mips/branch-local-3.d: New test.
2584         * testsuite/gas/mips/branch-local-n32-2.d: New test.
2585         * testsuite/gas/mips/branch-local-n32-3.d: New test.
2586         * testsuite/gas/mips/branch-local-n64-2.d: New test.
2587         * testsuite/gas/mips/branch-local-n64-3.d: New test.
2588         * testsuite/gas/mips/mips.exp: Fold corresponding list tests
2589         into the new tests.
2590
2591 2017-01-27  Alexis Deruell  <alexis.deruelle@gmail.com>
2592
2593         PR 21056
2594         * testsuite/gas/tic6x/insns16-parallel.s: New test case.
2595         * testsuite/gas/tic6x/insns16-parallel.d: New test driver.
2596
2597 2017-01-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2598
2599         * configure.tgt (aarch64*-*-rtems*): Remove.
2600         (bfin-*-rtems*): Likewise.
2601         (h8300-*-rtems*): Likewise.
2602         (i386-*-rtems*): Likewise.
2603         (m32c-*-rtems*): Likewise.
2604         (m32r-*-rtems*): Likewise.
2605         (m68k-*-rtems*): Likewise.
2606         (mips-*-rtems*): Likewise.
2607         (nios2-*-rtems*): Likewise.
2608         (ppc-*-rtems*): Likewise.
2609         (sh-*-rtems*): Likewise.
2610         (sparc64-*-rtems*): Likewise.
2611         (sparc-*-rtems*): Likewise.
2612         (*-*-rtems*) Use ELF format.
2613
2614 2017-01-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2615
2616         * configure.tgt (arm-*-rtems*): Move to (arm-*-eabi*).
2617
2618 2017-01-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2619
2620         * configure.tgt (sh-*-rtemscoff*): Remove.
2621
2622 2017-01-24  Sebastian Huber <sebastian.huber@embedded-brains.de>
2623
2624         * configure.tgt (riscv*-*-*): Remove em=linux.
2625
2626 2017-01-23  Sebastian Rasmussen  <sebras@gmail.com>
2627
2628         PR gas/21072
2629         * asintl.h: Fix spelling mistakes and typos.
2630         * atof-generic.c: Likewise.
2631         * bit_fix.h: Likewise.
2632         * config/atof-ieee.c: Likewise.
2633         * config/bfin-defs.h: Likewise.
2634         * config/bfin-parse.y: Likewise.
2635         * config/obj-coff-seh.h: Likewise.
2636         * config/obj-coff.c: Likewise.
2637         * config/obj-evax.c: Likewise.
2638         * config/obj-macho.c: Likewise.
2639         * config/rx-parse.y: Likewise.
2640         * config/tc-aarch64.c: Likewise.
2641         * config/tc-alpha.c: Likewise.
2642         * config/tc-arc.c: Likewise.
2643         * config/tc-arm.c: Likewise.
2644         * config/tc-avr.c: Likewise.
2645         * config/tc-bfin.c: Likewise.
2646         * config/tc-cr16.c: Likewise.
2647         * config/tc-cris.c: Likewise.
2648         * config/tc-crx.c: Likewise.
2649         * config/tc-d10v.c: Likewise.
2650         * config/tc-d30v.c: Likewise.
2651         * config/tc-dlx.c: Likewise.
2652         * config/tc-epiphany.c: Likewise.
2653         * config/tc-frv.c: Likewise.
2654         * config/tc-hppa.c: Likewise.
2655         * config/tc-i370.c: Likewise.
2656         * config/tc-i386-intel.c: Likewise.
2657         * config/tc-i386.c: Likewise.
2658         * config/tc-i960.c: Likewise.
2659         * config/tc-ia64.c: Likewise.
2660         * config/tc-m32r.c: Likewise.
2661         * config/tc-m68hc11.c: Likewise.
2662         * config/tc-m68k.c: Likewise.
2663         * config/tc-mcore.c: Likewise.
2664         * config/tc-mep.c: Likewise.
2665         * config/tc-mep.h: Likewise.
2666         * config/tc-metag.c: Likewise.
2667         * config/tc-microblaze.c: Likewise.
2668         * config/tc-mips.c: Likewise.
2669         * config/tc-mmix.c: Likewise.
2670         * config/tc-mn10200.c: Likewise.
2671         * config/tc-mn10300.c: Likewise.
2672         * config/tc-msp430.c: Likewise.
2673         * config/tc-msp430.h: Likewise.
2674         * config/tc-nds32.c: Likewise.
2675         * config/tc-nds32.h: Likewise.
2676         * config/tc-nios2.c: Likewise.
2677         * config/tc-nios2.h: Likewise.
2678         * config/tc-ns32k.c: Likewise.
2679         * config/tc-pdp11.c: Likewise.
2680         * config/tc-ppc.c: Likewise.
2681         * config/tc-pru.c: Likewise.
2682         * config/tc-rx.c: Likewise.
2683         * config/tc-s390.c: Likewise.
2684         * config/tc-score.c: Likewise.
2685         * config/tc-score7.c: Likewise.
2686         * config/tc-sh.c: Likewise.
2687         * config/tc-sh64.c: Likewise.
2688         * config/tc-sparc.c: Likewise.
2689         * config/tc-tic4x.c: Likewise.
2690         * config/tc-tic54x.c: Likewise.
2691         * config/tc-v850.c: Likewise.
2692         * config/tc-vax.c: Likewise.
2693         * config/tc-visium.c: Likewise.
2694         * config/tc-xgate.c: Likewise.
2695         * config/tc-xtensa.c: Likewise.
2696         * config/tc-z80.c: Likewise.
2697         * config/tc-z8k.c: Likewise.
2698         * config/te-vms.c: Likewise.
2699         * config/xtensa-relax.c: Likewise.
2700         * doc/as.texinfo: Likewise.
2701         * doc/c-arm.texi: Likewise.
2702         * doc/c-hppa.texi: Likewise.
2703         * doc/c-i370.texi: Likewise.
2704         * doc/c-i386.texi: Likewise.
2705         * doc/c-m32r.texi: Likewise.
2706         * doc/c-m68k.texi: Likewise.
2707         * doc/c-mmix.texi: Likewise.
2708         * doc/c-msp430.texi: Likewise.
2709         * doc/c-nds32.texi: Likewise.
2710         * doc/c-ns32k.texi: Likewise.
2711         * doc/c-riscv.texi: Likewise.
2712         * doc/c-rx.texi: Likewise.
2713         * doc/c-s390.texi: Likewise.
2714         * doc/c-tic6x.texi: Likewise.
2715         * doc/c-tilegx.texi: Likewise.
2716         * doc/c-tilepro.texi: Likewise.
2717         * doc/c-v850.texi: Likewise.
2718         * doc/c-xgate.texi: Likewise.
2719         * doc/c-xtensa.texi: Likewise.
2720         * dwarf2dbg.c: Likewise.
2721         * ecoff.c: Likewise.
2722         * itbl-ops.c: Likewise.
2723         * listing.c: Likewise.
2724         * macro.c: Likewise.
2725         * po/gas.pot: Likewise.
2726         * read.c: Likewise.
2727         * struc-symbol.h: Likewise.
2728         * symbols.h: Likewise.
2729         * testsuite/gas/arc/relocs-errors.err: Likewise.
2730         * write.c: Likewise.
2731
2732 2017-01-23  Nick Clifton  <nickc@redhat.com>
2733
2734         * po/sv.po: Updated Swedish translation.
2735
2736 2017-01-20  Nick Clifton  <nickc@redhat.com>
2737
2738         * config/tc-i386.c (parse_operands): Check for operand overflow
2739         before setting the unspecified bit.
2740
2741 2017-01-18  Maciej W. Rozycki  <macro@imgtec.com>
2742
2743         PR gas/20649
2744         * config/tc-mips.c (pic_need_relax): Don't check for linkonce
2745         symbols, remove the `segtype' parameter.
2746         (mips_frob_file, md_estimate_size_before_relax): Adjust
2747         accordingly.
2748         (s_is_linkonce): Add an explanatory comment.
2749         * testsuite/gas/mips/comdat-reloc.d: New test.
2750         * testsuite/gas/mips/comdat-reloc.s: New test source.
2751         * testsuite/gas/mips/mips.exp: Run the new test.
2752
2753 2017-01-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2754
2755         * testsuite/gas/arm/armv8_3-a-simd.s: Add vcmla tests.
2756         * testsuite/gas/arm/armv8_3-a-simd.d: Update.
2757
2758 2017-01-18  Bernhard Rosenkranzer  <bero@lindev.ch>
2759
2760         PR 21059
2761         * config/bfin-lex.l: Support processing with flex 2.6.3.
2762         * itbl-lex.l: Likewise.
2763
2764 2017-01-18  Nathan Sidwell  <nathan@acm.org>
2765
2766         * as.h (gas_assert): Use abort.
2767         (as_assert): Remove.
2768         (signal_init): Declare.
2769         * as.c (main): Call signal_init.
2770         * messages.c: #include <signal.h>
2771         (as_assert): Delete.
2772         (as_abort): Allow NULL FILE.
2773         (signal_crash): New.
2774         (signal_init): Register fatal signal handlers.
2775         * configure.ac: Check for strsignal.
2776         * config.in: Rebuilt.
2777         * configure: Rebuilt.
2778
2779 2017-01-17  Nick Clifton  <nickc@redhat.com>
2780
2781         * po/sv.po: Updated Swedish translation.
2782
2783 2017-01-12  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
2784
2785         * config/tc-i386.c (cpu_arch): Add .avx512_vpopcntdq.
2786         (cpu_noarch): Add noavx512_vpopcntdq.
2787         * doc/c-i386.texi: Document avx512_vpopcntdq, noavx512_vpopcntdq.
2788         * testsuite/gas/i386/i386.exp: Run AVX512_VPOPCNTDQ tests.
2789         * testsuite/gas/i386/avx512_vpopcntdqd-intel.d: New file.
2790         * testsuite/gas/i386/avx512_vpopcntdqd.d: Ditto.
2791         * testsuite/gas/i386/avx512_vpopcntdqd.s: Ditto.
2792         * testsuite/gas/i386/x86-64-avx512_vpopcntdqd-intel.d: Ditto.
2793         * testsuite/gas/i386/x86-64-avx512_vpopcntdqd.d: Ditto.
2794         * testsuite/gas/i386/x86-64-avx512_vpopcntdqd.s: Ditto.
2795
2796 2017-01-12  Nick Clifton  <nickc@redhat.com>
2797
2798         * read.c (temp_ilp): New function.  Installs a temporary input
2799         line pointer.
2800         (restore_ilp): New function.  Restores the original input line
2801         pointer.
2802         * read.h (temp_ilp): Prototype.
2803         (restore_ilp): Prototype.
2804         * stabs.c (dot_func_p): Use bfd_boolean type.
2805         (generate_asm_file): Use temp_ilp and restore_ilp.
2806         (stabs_generate_asm_lineno): Likewise.
2807         (stabs_generate_asm_endfunc): Likewise.
2808
2809 2017-01-11  Jeremy Soller  <jackpot51@gmail.com>
2810
2811         * configure.tgt: Add entry for i386-redox.
2812
2813 2017-01-10  Nick Clifton  <nickc@redhat.com>
2814
2815         * po/sv.po: Updated Swedish translation.
2816
2817 2017-01-10  Tristan Gingold  <gingold@adacore.com>
2818
2819         * testsuite/gas/all/sleb128-8.d: Adjust test.
2820         * testsuite/gas/all/gas.exp (test_cond): Likewise.
2821
2822 2017-01-10  Tristan Gingold  <gingold@adacore.com>
2823
2824         * read.c (emit_leb128_expr): Extended unsigned big number for
2825         sleb128.
2826         * testsuite/gas/all/gas.exp (test_cond): Add sleb128-8 test.
2827         * testsuite/gas/all/sleb128.d: New test.
2828         * testsuite/gas/all/sleb128.s: New test source.
2829
2830 2017-01-09  Andrew Waterman <andrew@sifive.com>
2831
2832         * config/tc-riscv.c (append_insn): Don't eagerly apply relocations
2833         against constants.
2834         (md_apply_fix): Mark relocations against constants as "done."
2835
2836 2017-01-09  Andrew Waterman <andrew@sifive.com>
2837
2838         * config/tc-riscv.c (append_insn): Don't eagerly apply relocations
2839         against constants.
2840         (md_apply_fix): Mark relocations against constants as "done."
2841
2842 2017-01-09  Palmer Dabbelt <palmer@dabbelt.com>
2843             Kito Cheng <kito.cheng@gmail.com>
2844
2845         * emulparams/elf32lriscv-defs.sh (INITIAL_READONLY_SECTIONS):
2846         Removed.
2847         (SDATA_START_SYMBOLS): Likewise.
2848
2849 2017-01-09  Nick Clifton  <nickc@redhat.com>
2850
2851         * po/sv.po: New Swedish translation.
2852         * configure.ac (ALL_LINGUAS): Add sv.
2853         * configure: Regenerate.
2854
2855 2017-01-09  Andrew Waterman <andrew@sifive.com>
2856
2857         * config/tc-riscv.c (relaxed_branch_length): Use the long
2858         sequence when the target is a weak symbol.
2859
2860 2017-01-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2861
2862         * config/tc-aarch64.c (aarch64_features): Add rcpc.
2863         * doc/c-aarch64.texi (AArch64 Extensions): Document rcpc.
2864         * testsuite/gas/aarch64/ldst-exclusive-armv8_3.d: Rename to ...
2865         * testsuite/gas/aarch64/ldst-rcpc.d: This.
2866         * testsuite/gas/aarch64/ldst-exclusive-armv8_3.s: Rename to ...
2867         * testsuite/gas/aarch64/ldst-rcpc.s: This.
2868         * testsuite/gas/aarch64/ldst-rcpc-armv8_2.d: New test.
2869
2870 2017-01-04  Norm Jacobs  <norm.jacobs@oracle.com>
2871
2872         PR gas/20992
2873         * configure.tgt: Treat sparcv9 as sparc64.
2874
2875 2017-01-03  Kito Cheng  <kito.cheng@gmail.com>
2876
2877         * config/tc-riscv.c (riscv_set_arch): Whitelist the "q" ISA
2878         extension.
2879         (riscv_after_parse_args): Set FLOAT_ABI_QUAD when the Q ISA is
2880         enabled and no other ABI is specified.
2881
2882 2017-01-03  Dimitar Dimitrov  <dimitar@dinux.eu>
2883
2884         * config/tc-pru.c (md_number_to_chars): Fix parameter to be
2885         valueT, as declared in tc.h.
2886         (md_apply_fix): Fix to work on 32-bit hosts.
2887
2888 2017-01-02  Alan Modra  <amodra@gmail.com>
2889
2890         Update year range in copyright notice of all files.
2891
2892 For older changes see ChangeLog-2016
2893 \f
2894 Copyright (C) 2017 Free Software Foundation, Inc.
2895
2896 Copying and distribution of this file, with or without modification,
2897 are permitted in any medium without royalty provided the copyright
2898 notice and this notice are preserved.
2899
2900 Local Variables:
2901 mode: change-log
2902 left-margin: 8
2903 fill-column: 74
2904 version-control: never
2905 End: