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