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