Regenerate pot files.
[binutils-gdb.git] / gas / ChangeLog
blobccc49225f331a98527851aea8789b4db081023e6
1 2016-12-23  Tristan Gingold  <gingold@adacore.com>
3         * po/gas.pot: Regenerate.
5 2016-12-21  Andrew Waterman  <andrew@sifive.com>
7         * config/tc-riscv.c (riscv_make_nops): Emit 2-byte NOPs.
8         (riscv_frag_align_code): Correct frag_align_code arg.
10 2016-12-21  Tim Newsome  <tim@sifive.com>
12         * config/tc-riscv.c (riscv_pre_output_hook): Remove const from
13         loc4_frag.
15 2016-12-21  Alan Modra  <amodra@gmail.com>
17         * doc/c-lm32.texi: Fix chars with high bit set.
18         * testsuite/gas/bfin/vector2.s: Likewise.
20 2016-12-21  Alan Modra  <amodra@gmail.com>
22         PR gas/10946
23         * doc/as.texinfo (Chars): Document escape sequences.
25 2016-12-20  Maciej W. Rozycki  <macro@imgtec.com>
27         * testsuite/gas/mips/mips16-sub.d: New test.
28         * testsuite/gas/mips/mips16-32@mips16-sub.d: New test.
29         * testsuite/gas/mips/mips16e-32@mips16-sub.d: New test.
30         * testsuite/gas/mips/mips16e-sub.d: New test.
31         * testsuite/gas/mips/mips16-32@mips16e-sub.d: New test.
32         * testsuite/gas/mips/mips16-64@mips16e-sub.d: New test.
33         * testsuite/gas/mips/mips16e-64-sub.d: New test.
34         * testsuite/gas/mips/mips16-32@mips16e-64-sub.d: New test.
35         * testsuite/gas/mips/mips16-64@mips16e-64-sub.d: New test.
36         * testsuite/gas/mips/mips16e-32@mips16e-64-sub.d: New test.
37         * testsuite/gas/mips/mips16-sub.s: New test source.
38         * testsuite/gas/mips/mips16e-sub.s: New test source.
39         * testsuite/gas/mips/mips16e-64-sub.s: New test source.
40         * testsuite/gas/mips/mips.exp: Run the new tests.
42 2016-12-20  Maciej W. Rozycki  <macro@imgtec.com>
44         * testsuite/gas/mips/mips16e.s: Add a RESTORE instruction.
45         * testsuite/gas/mips/mips16e.d: Adjust accordingly.
47 2016-12-20  Maciej W. Rozycki  <macro@imgtec.com>
49         * testsuite/gas/mips/mips16.d: Adjust test for multiple MIPS16
50         ISA testing.
51         * testsuite/gas/mips/mips16-64.d: Adjust test for multiple
52         MIPS16 ISA testing.
53         * testsuite/gas/mips/mips16e-64.d: Adjust test for multiple
54         MIPS16 ISA testing.
55         * testsuite/gas/mips/mips16-macro.d: Adjust test for multiple
56         MIPS16 ISA testing.
57         * testsuite/gas/mips/mips16e-64.s: Ensure MIPS16 ISA annotation.
58         * testsuite/gas/mips/mips16e-64.l: Rename to...
59         * testsuite/gas/mips/mips16e-32@mips16e-64.l: ... this.
60         * testsuite/gas/mips/mips16-64@mips16.d: New test.
61         * testsuite/gas/mips/mips16-64@mips16-64.d: New test.
62         * testsuite/gas/mips/mips16e-32@mips16e-64.d: New test.
63         * testsuite/gas/mips/mips16-32@mips16-macro.d: New test.
64         * testsuite/gas/mips/mips16-64@mips16-macro.d: New test.
65         * testsuite/gas/mips/mips16e-32@mips16-macro.d: New test.
66         * testsuite/gas/mips/mips16-32@mips16-macro-e.d: New test.
67         * testsuite/gas/mips/mips16e-32@mips16-macro-e.d: New test.
68         * testsuite/gas/mips/mips16-32@mips16-macro-t.d: New test.
69         * testsuite/gas/mips/mips16e-32@mips16-macro-t.d: New test.
70         * testsuite/gas/mips/mips16e-32@mips16e-64.l: New stderr output.
71         * testsuite/gas/mips/mips16-32@mips16-macro.l: New stderr
72         output.
73         * testsuite/gas/mips/mips16e-32@mips16-macro.l: New stderr
74         output.
75         * testsuite/gas/mips/mips16-32@mips16-macro-e.l: New stderr
76         output.
77         * testsuite/gas/mips/mips16e-32@mips16-macro-e.l: New stderr
78         output.
79         * testsuite/gas/mips/mips16-32@mips16-macro-t.l: New stderr
80         output.
81         * testsuite/gas/mips/mips16e-32@mips16-macro-t.l: New stderr
82         output.
83         * testsuite/gas/mips/mips.exp: Run `mips16', `mips16-64',
84         `mips16-macro', `mips16-macro-t', `mips16-macro-e' and
85         `mips16e-64' testing across multiple MIPS16 ISAs.  Fold
86         `mips16-macro' and `mips16e-64' list test invocations into
87         corresponding dump tests.
89 2016-12-20  Maciej W. Rozycki  <macro@imgtec.com>
91         * testsuite/gas/mips/mips.exp (run_dump_test_arch): Add
92         `mips16e' and `mips16' prefixes.
93         (run_list_test_arch): Likewise.
94         Rename `mips16' architecture to `mips16-32'.  Add `mips16-64',
95         `mips16e-32' and `mips16e-64' architectures.  Update `rol64',
96         `mips16e', `elf${el}-rel2' and `elf-rel4' test invocations
97         accordingly.
98         * testsuite/gas/mips/mips16e@branch-swap-3.d: New test.
99         * testsuite/gas/mips/mips16e@branch-swap-4.d: New test.
100         * testsuite/gas/mips/mips16e@loc-swap-dis.d: New test.
101         * testsuite/gas/mips/mips16e@loc-swap.d: New test.
103 2016-12-20  Maciej W. Rozycki  <macro@imgtec.com>
105         * testsuite/gas/mips/loc-swap.s: Use zeros rather than NOPs for
106         trailing alignment padding.
107         * testsuite/gas/mips/loc-swap.d: Adjust accordingly.
108         * testsuite/gas/mips/micromips@loc-swap.d: Likewise.
109         * testsuite/gas/mips/mips16@loc-swap-dis.d: Likewise.
111 2016-12-20  Maciej W. Rozycki  <macro@imgtec.com>
113         * config/tc-mips.c (micromips_insn_length): Use
114         `mips_opcode_32bit_p'.
115         (is_size_valid): Adjust description.
116         (is_size_valid_16): New function.
117         (validate_mips_insn): Use `mips_opcode_32bit_p' in MIPS16
118         operand decoding.
119         (validate_mips16_insn): Remove `a' and `i' operand code special
120         casing, use `mips_opcode_32bit_p' to determine instruction
121         width.
122         (append_insn): Adjust forced MIPS16 instruction size
123         determination.
124         (match_mips16_insn): Likewise.  Don't shift the instruction's
125         opcode with the `a' and `i' operand codes.  Use
126         `mips_opcode_32bit_p' in operand decoding.
127         (match_mips16_insns): Check for forced instruction size's
128         validity.
129         (mips16_ip): Don't force instruction size in the `noautoextend'
130         mode.
131         * testsuite/gas/mips/mips16-jal-e.d: New test.
132         * testsuite/gas/mips/mips16-jal-t.d: New test.
133         * testsuite/gas/mips/mips16-macro-e.d: New test.
134         * testsuite/gas/mips/mips16-macro-t.d: New test.
135         * testsuite/gas/mips/mips16-jal-t.l: New stderr output.
136         * testsuite/gas/mips/mips16-macro-e.l: New stderr output.
137         * testsuite/gas/mips/mips16-macro-t.l: New stderr output.
138         * testsuite/gas/mips/mips16-jal-e.s: New test source.
139         * testsuite/gas/mips/mips16-jal-t.s: New test source.
140         * testsuite/gas/mips/mips16-macro-e.s: New test source.
141         * testsuite/gas/mips/mips16-macro-t.s: New test source.
142         * testsuite/gas/mips/mips.exp: Run the new tests.
144 2016-12-20  Maciej W. Rozycki  <macro@imgtec.com>
146         * testsuite/gas/mips/mips16-macro.l: New list test.
147         * testsuite/gas/mips/mips.exp: Run the new test.
149 2016-12-20  Maciej W. Rozycki  <macro@imgtec.com>
151         * testsuite/gas/mips/mips16-sdrasp.d: New test.
152         * testsuite/gas/mips/mips16-sdrasp.l: New stderr output.
153         * testsuite/gas/mips/mips16-sdrasp.s: New test source.
154         * testsuite/gas/mips/mips.exp: Run the new test.
156 2016-12-20  Maciej W. Rozycki  <macro@imgtec.com>
158         * testsuite/gas/mips/mips.exp: Limit remaining tests that
159         require NewABI support to `has_newabi' targets.
161 2015-12-20  Andrew Waterman  <andrew@sifive.com>
163         * config/tc-riscv.c (riscv_pseudo_table): Remove "align",
164         "p2align", and "balign".
165         (s_align): Remove.
166         (riscv_handle_align): New function.
167         (riscv_frag_align_code): Likewise.
168         (riscv_make_nops): Likewise.
169         * config/tc-riscv.h (MAX_MEM_FOR_RS_ALIGN_CODE): Change to 7.
170         (HANDLE_ALIGN): Define.
171         (md_do_align): Define.
172         (riscv_handle_align): Declare.
173         (riscv_frag_align_code): Likewise.
175 2016-12-20  Andrew Waterman  <andrew@sifive.com>
177         * config/tc-riscv.h (xlen): Delete.
178         * config/tc-riscv.c (xlen): Make static.
179         (abi_xlen): New variable.
180         (options): Replace OPTION_{M32,M64,MSOFT_FLOAT,MHARD_FLOAT,MRVC}
181         with OPTION_MABI.
182         (md_longopts): Likewise.
183         (md_parse_option): Likewise.
184         (riscv_elf_final_processing): Likewise.
185         * doc/as.texinfo (Target RISC-V options): Likewise.
186         * doc/c-riscv.texi (OPTIONS): Likewise.
187         * config/tc-riscv.c (float_mode): Removed.
188         (float_abi): New type, specifies the floating-point ABI.
189         (riscv_set_abi): New function.
190         (riscv_add_subset): Only allow lower-case ISA names and require
191         them to start with "rv".
192         (riscv_after_parse_args): Likewise.
194 2016-12-20  Andrew Waterman  <andrew@sifive.com>
195             Kuan-Lin Chen  <kuanlinchentw@gmail.com>
197         * config/tc-riscv.c (riscv_set_options): Add relax.
198         (riscv_opts): Likewise.
199         (s_riscv_option): Add relax and norelax.
200         (riscv_apply_const_reloc): New function.
201         (append_insn): Move constant relocation handling to
202         riscv_apply_const_reloc.
203         (md_pcrel_from): Likewise.
204         (parse_relocation): Skip BFD_RELOC_UNUSED.
205         (md_pcrel_from): Handle BFD_RELOC_RISCV_SUB6,
206         BFD_RELOC_RISCV_RELAX, BFD_RELOC_RISCV_CFA.
207         (md_apply_fix): Likewise.
208         (riscv_pre_output_hook): New function.
209         * config/tc-riscv.h (md_pre_output_hook): Define.
210         (riscv_pre_output_hook): Declare.
211         (DWARF_CIE_DATA_ALIGNMENT): Always -4.
213 2016-12-20  Andrew Waterman  <andrew@sifive.com>
215         * config/tc-riscv.c: Formatting and comment fixes throughout.
217 2016-12-14  Maciej W. Rozycki  <macro@imgtec.com>
219         * config/tc-mips.c (md_convert_frag): Report an error instead of
220         asserting on `ext'.
221         * testsuite/gas/mips/mips16-branch-unextended-1.d: New test.
222         * testsuite/gas/mips/mips16-branch-unextended-2.d: New test.
223         * testsuite/gas/mips/mips16-branch-unextended-1.s: New test
224         source.
225         * testsuite/gas/mips/mips16-branch-unextended-2.s: New test.
226         * testsuite/gas/mips/mips16-branch-unextended.l: New stderr
227         output.
228         * testsuite/gas/mips/mips.exp: Run the new tests.
230 2016-12-14  Maciej W. Rozycki  <macro@imgtec.com>
232         * testsuite/gas/mips/mips16-sprel-swap.d: New test.
233         * testsuite/gas/mips/mips16-sprel-swap.s: New test source.
234         * testsuite/gas/mips/mips.exp: Run the new test.
236 2016-12-13 Renlin Li <renlin.li@arm.com>
238         * config/tc-aarch64.c (AARCH64_REG_TYPES): Remove CN register.
239         (get_reg_expected_msg): Remove CN register case.
240         (parse_operands): rewrite parser for CRn, CRm operand.
241         (reg_names): Remove CN register.
242         * testsuite/gas/aarch64/diagnostic.s: Add a new test case.
243         * testsuite/gas/aarch64/diagnostic.l: Adjust error message.
245 2016-12-13  Jiong Wang  <jiong.wang@arm.com>
247         * gas/testsuite/gas/aarch64/addsub.d: Support ILP32 mode.
248         * gas/testsuite/gas/aarch64/advsimd-across.d: Likewise.
249         * gas/testsuite/gas/aarch64/advsimd-armv8_3.d: Likewise.
250         * gas/testsuite/gas/aarch64/advsimd-fp16.d: Likewise.
251         * gas/testsuite/gas/aarch64/advsimd-misc.d: Likewise.
252         * gas/testsuite/gas/aarch64/advsisd-copy.d: Likewise.
253         * gas/testsuite/gas/aarch64/advsisd-misc.d: Likewise.
254         * gas/testsuite/gas/aarch64/alias.d: Likewise.
255         * gas/testsuite/gas/aarch64/armv8-ras-1.d: Likewise.
256         * gas/testsuite/gas/aarch64/b_1.d: Likewise.
257         * gas/testsuite/gas/aarch64/beq_1.d: Likewise.
258         * gas/testsuite/gas/aarch64/bitfield-dump: Likewise.
259         * gas/testsuite/gas/aarch64/bitfield-no-aliases.d: Likewise.
260         * gas/testsuite/gas/aarch64/codealign.d: Likewise.
261         * gas/testsuite/gas/aarch64/codealign_1.d: Likewise.
262         * gas/testsuite/gas/aarch64/crc32-directive.d: Likewise.
263         * gas/testsuite/gas/aarch64/crc32.d: Likewise.
264         * gas/testsuite/gas/aarch64/crypto-directive.d: Likewise.
265         * gas/testsuite/gas/aarch64/crypto.d: Likewise.
266         * gas/testsuite/gas/aarch64/dwarf.d: Likewise.
267         * gas/testsuite/gas/aarch64/float-fp16.d: Likewise.
268         * gas/testsuite/gas/aarch64/floatdp2.d: Likewise.
269         * gas/testsuite/gas/aarch64/fp-armv8_3.d: Likewise.
270         * gas/testsuite/gas/aarch64/fp-const0-parse.d: Likewise.
271         * gas/testsuite/gas/aarch64/fp_cvt_int.d: Likewise.
272         * gas/testsuite/gas/aarch64/fpmov.d: Likewise.
273         * gas/testsuite/gas/aarch64/inst-directive.d: Likewise.
274         * gas/testsuite/gas/aarch64/ldr_1.d: Likewise.
275         * gas/testsuite/gas/aarch64/ldst-exclusive-armv8_3.d: Likewise.
276         * gas/testsuite/gas/aarch64/ldst-exclusive.d: Likewise.
277         * gas/testsuite/gas/aarch64/ldst-reg-imm-post-ind.d: Likewise.
278         * gas/testsuite/gas/aarch64/ldst-reg-imm-pre-ind.d: Likewise.
279         * gas/testsuite/gas/aarch64/ldst-reg-pair.d: Likewise.
280         * gas/testsuite/gas/aarch64/ldst-reg-reg-offset.d: Likewise.
281         * gas/testsuite/gas/aarch64/ldst-reg-uns-imm.d: Likewise.
282         * gas/testsuite/gas/aarch64/ldst-reg-unscaled-imm.d: Likewise.
283         * gas/testsuite/gas/aarch64/lor-directive.d: Likewise.
284         * gas/testsuite/gas/aarch64/lor.d: Likewise.
285         * gas/testsuite/gas/aarch64/lse-atomic.d: Likewise.
286         * gas/testsuite/gas/aarch64/mapmisc.d: Likewise.
287         * gas/testsuite/gas/aarch64/mov-no-aliases.d: Likewise.
288         * gas/testsuite/gas/aarch64/mov.d: Likewise.
289         * gas/testsuite/gas/aarch64/movi.d: Likewise.
290         * gas/testsuite/gas/aarch64/movw_label.d: Likewise.
291         * gas/testsuite/gas/aarch64/msr.d: Likewise.
292         * gas/testsuite/gas/aarch64/neon-fp-cvt-int.d: Likewise.
293         * gas/testsuite/gas/aarch64/neon-frint.d: Likewise.
294         * gas/testsuite/gas/aarch64/neon-ins.d: Likewise.
295         * gas/testsuite/gas/aarch64/neon-not.d: Likewise.
296         * gas/testsuite/gas/aarch64/neon-vfp-reglist-post.d: Likewise.
297         * gas/testsuite/gas/aarch64/neon-vfp-reglist.d: Likewise.
298         * gas/testsuite/gas/aarch64/no-aliases.d: Likewise.
299         * gas/testsuite/gas/aarch64/optional.d: Likewise.
300         * gas/testsuite/gas/aarch64/pac.d: Likewise.
301         * gas/testsuite/gas/aarch64/pan-directive.d: Likewise.
302         * gas/testsuite/gas/aarch64/pan.d: Likewise.
303         * gas/testsuite/gas/aarch64/rdma-directive.d: Likewise.
304         * gas/testsuite/gas/aarch64/rdma.d: Likewise.
305         * gas/testsuite/gas/aarch64/reloc-dtprel_g0.d: Likewise.
306         * gas/testsuite/gas/aarch64/reloc-dtprel_g0_nc.d: Likewise.
307         * gas/testsuite/gas/aarch64/reloc-dtprel_g1.d: Likewise.
308         * gas/testsuite/gas/aarch64/reloc-dtprel_hi12.d: Likewise.
309         * gas/testsuite/gas/aarch64/reloc-dtprel_lo12-1.d: Likewise.
310         * gas/testsuite/gas/aarch64/reloc-dtprel_lo12_nc.d: Likewise.
311         * gas/testsuite/gas/aarch64/reloc-tlsldm-1.d: Likewise.
312         * gas/testsuite/gas/aarch64/reloc-tlsldm-page-1.d: Likewise.
313         * gas/testsuite/gas/aarch64/reloc-tlsldm_lo12_nc-1.d: Likewise.
314         * gas/testsuite/gas/aarch64/shifted.d: Likewise.
315         * gas/testsuite/gas/aarch64/sve.d: Likewise.
316         * gas/testsuite/gas/aarch64/symbol.d: Likewise.
317         * gas/testsuite/gas/aarch64/sysreg-1.d: Likewise.
318         * gas/testsuite/gas/aarch64/sysreg-2.d: Likewise.
319         * gas/testsuite/gas/aarch64/sysreg-3.d: Likewise.
320         * gas/testsuite/gas/aarch64/sysreg.d: Likewise.
321         * gas/testsuite/gas/aarch64/system-2.d: Likewise.
322         * gas/testsuite/gas/aarch64/system-3.d: Likewise.
323         * gas/testsuite/gas/aarch64/system.d: Likewise.
324         * gas/testsuite/gas/aarch64/tbz_1.d: Likewise.
325         * gas/testsuite/gas/aarch64/tlbi_op.d: Likewise.
326         * gas/testsuite/gas/aarch64/tls.d: Likewise.
327         * gas/testsuite/gas/aarch64/uao-directive.d: Likewise.
328         * gas/testsuite/gas/aarch64/uao.d: Likewise.
329         * gas/testsuite/gas/aarch64/virthostext-directive.d: Likewise.
330         * gas/testsuite/gas/aarch64/virthostext.d: Likewise.
331         * gas/testsuite/gas/aarch64/adr_1.d: Restrict test under -mabi=lp64.
332         * gas/testsuite/gas/aarch64/int-insns.d: Likewise.
333         * gas/testsuite/gas/aarch64/programmer-friendly.d: Likewise.
334         * gas/testsuite/gas/aarch64/reloc-data.d: Likewise.
335         * gas/testsuite/gas/aarch64/reloc-dtprel_g1_nc.d: Likewise.
336         * gas/testsuite/gas/aarch64/reloc-dtprel_g2.d: Likewise.
337         * gas/testsuite/gas/aarch64/reloc-dtprel_lo12-ldst16.d: Likewise.
338         * gas/testsuite/gas/aarch64/reloc-dtprel_lo12-ldst32.d: Likewise.
339         * gas/testsuite/gas/aarch64/reloc-dtprel_lo12-ldst64.d: Likewise.
340         * gas/testsuite/gas/aarch64/reloc-dtprel_lo12-ldst8.d: Likewise.
341         * gas/testsuite/gas/aarch64/reloc-dtprel_lo12_nc-ldst16.d: Likewise.
342         * gas/testsuite/gas/aarch64/reloc-dtprel_lo12_nc-ldst32.d: Likewise.
343         * gas/testsuite/gas/aarch64/reloc-dtprel_lo12_nc-ldst64.d: Likewise.
344         * gas/testsuite/gas/aarch64/reloc-dtprel_lo12_nc-ldst8.d: Likewise.
345         * gas/testsuite/gas/aarch64/reloc-gotoff_g0_nc.d: Likewise.
346         * gas/testsuite/gas/aarch64/reloc-gotoff_g1.d: Likewise.
347         * gas/testsuite/gas/aarch64/reloc-gottprel_g0_nc.d: Likewise.
348         * gas/testsuite/gas/aarch64/reloc-gottprel_g1.d: Likewise.
349         * gas/testsuite/gas/aarch64/reloc-insn.d: Likewise.
350         * gas/testsuite/gas/aarch64/reloc-tlsdesc_off_g0_nc.d: Likewise.
351         * gas/testsuite/gas/aarch64/reloc-tlsdesc_off_g1.d: Likewise.
352         * gas/testsuite/gas/aarch64/reloc-tlsgd_g0_nc.d: Likewise.
353         * gas/testsuite/gas/aarch64/reloc-tlsgd_g1.d: Likewise.
354         * gas/testsuite/gas/aarch64/tail_padding.d: Likewise.
355         * gas/testsuite/gas/aarch64/tls-desc.d: Likewise.
357 2016-12-09  Maciej W. Rozycki  <macro@imgtec.com>
359         * config/tc-mips.c (mips16_macro_build) <'>'>: Remove case.
361 2016-12-09  Maciej W. Rozycki  <macro@imgtec.com>
363         * testsuite/gas/mips/mips16-extend.d: New test.
364         * testsuite/gas/mips/mips16-extend.s: New test source.
365         * testsuite/gas/mips/mips.exp: Run the new test.
367 2016-12-08  Maciej W. Rozycki  <macro@imgtec.com>
369         * config/tc-arc.c (arc_show_cpu_list): Rename `spaces' local
370         variable to `space_buf'.
372 2016-12-08  Maciej W. Rozycki  <macro@imgtec.com>
374         * config/tc-arm.c (encode_arm_shift): Rename `index' local
375         variable to `op_index'.
377 2016-12-08  Alan Modra  <amodra@gmail.com>
379         * configure: Regenerate.
381 2016-12-07  Maciej W. Rozycki  <macro@imgtec.com>
383         * config/tc-mips.c (is_opcode_valid): Use local `isa'
384         consistently.
386 2016-12-06  Nick Clifton  <nickc@redhat.com>
388         PR gas/20901
389         * read.c (s_space): Place an upper limit on the number of spaces
390         generated.
392         PR gas/20896
393         * testsuite/gas/mmix/err-byte1.s: Adjust expected warning messages
394         to account for patch to next_char_of_string.
396 2016-12-05  Nick Clifton  <nickc@redhat.com>
398         PR gas/20902
399         * read.c (next_char_of_string): Do end advance past the end of the
400         buffer.
402         PR gas/20904
403         * as.h (SKIP_ALL_WHITESPACE): New macro.
404         * expr.c (operand): Use it.
406 2016-12-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
408         * config/tc-arm.c (do_vcmla, do_vcadd): Define.
409         (neon_scalar_for_vcmla): Define.
410         (enum operand_parse_code): Add OP_IROT1 and OP_IROT2.
411         (NEON_ENC_TAB): Add DDSI and QQSI variants.
412         (insns): Add vcmla and vcadd.
413         * testsuite/gas/arm/armv8_3-a-simd.d: New.
414         * testsuite/gas/arm/armv8_3-a-simd.s: New.
415         * testsuite/gas/arm/armv8_3-a-simd-bad.d: New.
416         * testsuite/gas/arm/armv8_3-a-simd-bad.l: New.
417         * testsuite/gas/arm/armv8_3-a-simd-bad.s: New.
419 2016-12-05  Claudiu Zissulescu  <claziss@synopsys.com>
421         * testsuite/gas/arc/textauxregister-1.d: New file.
422         * testsuite/gas/arc/textauxregister-1.s: Likewise.
423         * testsuite/gas/arc/textcondcode-err.s: Likewise.
424         * testsuite/gas/arc/textcoreregister-err.s: Likewise.
425         * config/tc-arc.c (tokenize_extregister): Return bfd_boolean,
426         don't check second argument of extension auxiliary register for
427         signess.
428         (arc_extcorereg): Consider the return of tokenize_extregister
429         function call.
431 2016-12-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
433         * config/tc-arm.c (arm_ext_v8_3, do_vjcvt): Define.
434         (insns): Add vjcvt.
435         * testsuite/gas/aarch64/armv8_3-a-fp.s: New.
436         * testsuite/gas/aarch64/armv8_3-a-fp.d: New.
437         * testsuite/gas/aarch64/armv8_3-a-fp-bad.s: New.
438         * testsuite/gas/aarch64/armv8_3-a-fp-bad.d: New.
439         * testsuite/gas/aarch64/armv8_3-a-fp-bad.l: New.
441 2016-12-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
443         * config/tc-arm.c (arm_archs): Add "armv8.3-a".
444         * doc/c-arm.texi (-march): Add "armv8.3-a".
446 2016-12-02  Claudiu Zissulescu  <claziss@synopsys.com>
448         * testsuite/gas/arc/cpu-em-err.s: New file.
449         * testsuite/gas/arc/cpu-em4-err.s: Likewise.
450         * testsuite/gas/arc/cpu-fpuda-err.s: Likewise.
451         * testsuite/gas/arc/cpu-hs-err.s: Likewise.
452         * testsuite/gas/arc/cpu-quarkse-err.s: Likewise.
453         * testsuite/gas/arc/noargs_a7.s: Add .cpu.
454         * config/tc-arc.c (ARC_CPU_TYPE_A6xx): Define.
455         (ARC_CPU_TYPE_A7xx): Likewise.
456         (ARC_CPU_TYPE_AV2EM): Likewise.
457         (ARC_CPU_TYPE_AV2HS): Likewise.
458         (cpu_types): Update list of known CPU names.
459         (arc_show_cpu_list): New function.
460         (md_show_usage): Print accepted CPU names.
461         (cl_features): New variable.
462         (arc_select_cpu): Use cl_features.
463         (arc_option): Allow various .cpu names.
464         (md_parse_option): Set cl_features.
465         * doc/c-arc.texi: Update -mcpu and .cpu documentation.
467 2016-12-02  Josh Conner  <joshconner@google.com>
469         * configure.tgt: Add support for fuchsia (OS).
471 2016-12-01  Nick Clifton  <nickc@redhat.com>
473         PR gas/20898
474         * app.c (do_scrub_chars): Do not attempt to unget EOF.
476         PR gas/20897
477         * subsegs.c (subsegs_print_statistics): Do nothing if no output
478         file was created.
480         PR gas/20895
481         * symbols.c (resolve_symbol_value): Gracefully handle erroneous
482         symbolic expressions.
484 2016-11-29  Claudiu Zissulescu  <claziss@synopsys.com>
486         * config/tc-arc.c (find_opcode_match): New function argument
487         errmsg.
488         (assemble_tokens): Collect and report the eventual error message
489         found during opcode matching process.
490         * testsuite/gas/arc/lpcount-err.s: New file.
491         * testsuite/gas/arc/add_s-err.s: Update error message.
493 2016-11-28  Ramiro Polla  <ramiro@hex-rays.com>
494             Amit Pawar  <amit.pawar@amd.com>
496         PR binutils/20637
497         * testsuite/gas/i386/xop32reg.d: New file.
498         * testsuite/gas/i386/xop32reg.s: New file.
499         * testsuite/gas/i386/i386.exp: Run new test.
501 2016-11-27  Ambrogino Modigliani  <ambrogino.modigliani@gmail.com>
503         * arparse.y: Fix spelling in comments.
505 2016-11-27  Ambrogino Modigliani  <ambrogino.modigliani@gmail.com>
507         * config/bfin-lex.l: Fix spelling in comments.
509 2016-11-27  Ambrogino Modigliani  <ambrogino.modigliani@gmail.com>
511         * testsuite/gas/all/gas.exp: Fix spelling in comments.
512         * testsuite/gas/cris/cris.exp: Fix spelling in comments.
513         * testsuite/gas/hppa/basic/basic.exp: Fix spelling in comments.
514         * testsuite/gas/hppa/parse/parse.exp: Fix spelling in comments.
515         * testsuite/gas/hppa/reloc/reloc.exp: Fix spelling in comments.
516         * testsuite/gas/sh/arch/arch.exp: Fix spelling in comments.
517         * testsuite/gas/tic4x/tic4x.exp: Fix spelling in comments.
519 2016-11-27  Ambrogino Modigliani  <ambrogino.modigliani@gmail.com>
521         * testsuite/gas/arm/local_function.d: Fix spelling in comments.
522         * testsuite/gas/arm/req.s: Fix spelling in comments.
523         * testsuite/gas/arm/vfp1.s: Fix spelling in comments.
524         * testsuite/gas/arm/vfp1_t2.s: Fix spelling in comments.
525         * testsuite/gas/arm/vfp1xD.s: Fix spelling in comments.
526         * testsuite/gas/arm/vfp1xD_t2.s: Fix spelling in comments.
527         * testsuite/gas/mcore/allinsn.s: Fix spelling in comments.
528         * testsuite/gas/mips/24k-triple-stores-5.s: Fix spelling in comments.
529         * testsuite/gas/mips/delay.d: Fix spelling in comments.
530         * testsuite/gas/mips/nodelay.d: Fix spelling in comments.
531         * testsuite/gas/mips/r5900-full.s: Fix spelling in comments.
532         * testsuite/gas/mips/r5900.s: Fix spelling in comments.
534 2016-11-27  Ambrogino Modigliani  <ambrogino.modigliani@gmail.com>
536         * as.h: Fix spelling in comments.
537         * config/obj-ecoff.c: Fix spelling in comments.
538         * config/obj-macho.c: Fix spelling in comments.
539         * config/tc-aarch64.c: Fix spelling in comments.
540         * config/tc-arc.c: Fix spelling in comments.
541         * config/tc-arm.c: Fix spelling in comments.
542         * config/tc-avr.c: Fix spelling in comments.
543         * config/tc-cr16.c: Fix spelling in comments.
544         * config/tc-epiphany.c: Fix spelling in comments.
545         * config/tc-frv.c: Fix spelling in comments.
546         * config/tc-hppa.c: Fix spelling in comments.
547         * config/tc-hppa.h: Fix spelling in comments.
548         * config/tc-i370.c: Fix spelling in comments.
549         * config/tc-m68hc11.c: Fix spelling in comments.
550         * config/tc-m68k.c: Fix spelling in comments.
551         * config/tc-mcore.c: Fix spelling in comments.
552         * config/tc-mep.c: Fix spelling in comments.
553         * config/tc-metag.c: Fix spelling in comments.
554         * config/tc-mips.c: Fix spelling in comments.
555         * config/tc-mn10200.c: Fix spelling in comments.
556         * config/tc-mn10300.c: Fix spelling in comments.
557         * config/tc-nds32.c: Fix spelling in comments.
558         * config/tc-nios2.c: Fix spelling in comments.
559         * config/tc-ns32k.c: Fix spelling in comments.
560         * config/tc-pdp11.c: Fix spelling in comments.
561         * config/tc-ppc.c: Fix spelling in comments.
562         * config/tc-riscv.c: Fix spelling in comments.
563         * config/tc-rx.c: Fix spelling in comments.
564         * config/tc-score.c: Fix spelling in comments.
565         * config/tc-score7.c: Fix spelling in comments.
566         * config/tc-sparc.c: Fix spelling in comments.
567         * config/tc-tic54x.c: Fix spelling in comments.
568         * config/tc-vax.c: Fix spelling in comments.
569         * config/tc-xgate.h: Fix spelling in comments.
570         * config/tc-xtensa.c: Fix spelling in comments.
571         * config/tc-z80.c: Fix spelling in comments.
572         * dwarf2dbg.c: Fix spelling in comments.
573         * input-file.h: Fix spelling in comments.
574         * itbl-ops.c: Fix spelling in comments.
575         * read.c: Fix spelling in comments.
576         * stabs.c: Fix spelling in comments.
577         * symbols.c: Fix spelling in comments.
578         * write.c: Fix spelling in comments.
579         * testsuite/gas/all/itbl-test.c: Fix spelling in comments.
580         * testsuite/gas/tic4x/opclasses.h: Fix spelling in comments.
582 2016-11-25  Jose E. Marchesi  <jose.marchesi@oracle.com>
584         * config/tc-sparc.c (sparc_ip): Avoid emitting a cbcond error
585         messages for non-cbcond instructions.
586         * testsuite/gas/sparc/cbcond-diag.s: New file.
587         * testsuite/gas/sparc/cbcond-diag.l: Likewise.
588         * testsuite/gas/sparc/sparc.exp (gas_64_check): Run cbcond-diag tests.
590 2016-11-23  Jose E. Marchesi  <jose.marchesi@oracle.com>
592         * testsuite/gas/sparc/sparc.exp (gas_64_check): Make sure the
593         hwcaps-bump test is run with 64-bit objects.
595 2016-11-23  Kuan-Lin Chen  <kuanlinchentw@gmail.com>
597         * config/tc-riscv.c: Add missing break.
599 2016-11-23  Alan Modra  <amodra@gmail.com>
601         * po/POTFILES.in: Regenerate.
603 2016-11-22  Ambrogino Modigliani  <ambrogino.modigliani@gmail.com>
605         * configure: Regenerate.
607 2016-11-22  Jose E. Marchesi  <jose.marchesi@oracle.com>
609         * config/tc-sparc.c: Move HWS_* and HWS2_* definitions to
610         opcodes/sparc-opc.c.
611         (sparc_arch): Clarify the new role of the hwcap_allowed and
612         hwcap2_allowed fields.
613         (sparc_arch_table): Remove HWS_* and HWS2_* instances from
614         hwcap_allowed and hwcap2_allowed respectively.
615         (md_parse_option): Include the opcode arch hwcaps when processing
616         -A.
617         (sparc_ip): Use the current opcode arch hwcaps to update
618         hwcap_allowed, as well as the hwcaps of the instruction triggering
619         the bump.
620         * testsuite/gas/sparc/hwcaps-bump.s: New file.
621         * testsuite/gas/sparc/hwcaps-bump.l: Likewise.
622         * testsuite/gas/sparc/sparc.exp (gas_64_check): Run tests in
623         hwcaps-bump.
625 2016-11-22  Claudiu Zissulescu  <claziss@synopsys.com>
627         * testsuite/gas/arc/b.d: Update test result.
629 2016-11-22  Alan Modra  <amodra@gmail.com>
631         PR 20744
632         * config/tc-ppc.c: Delete VLE insn defines.
633         (md_assemble): Swap use_a_reloc and use_d_reloc.
634         * testsuite/gas/ppc/vle-reloc.d: Update.
636 2016-11-21  Renlin Li  <renlin.li@arm.com>
638         PR gas/20827
639         * config/tc-arm.c (encode_arm_shift): Don't assert for operands not
640         presented.
641         * testsuite/gas/arm/add-shift-two.d: New.
642         * testsuite/gas/arm/add-shift-two.s: New.
644 2016-11-21  Alan Modra  <amodra@gmail.com>
646         * configure.ac: Invoke ACX_PROG_CMP_IGNORE_INITIAL.
647         * Makefile.am (comparison): Rewrite using do_compare.
648         * configure: Regenerate.
649         * Makefile.in: Regenerate.
650         * doc/Makefile.in: Regenerate.
652 2016-11-18  Claudiu Zissulescu  <claziss@synopsys.com>
654         * testsuite/gas/arc/cl-warn.s: New file.
655         * testsuite/gas/arc/cpu-pseudop-1.d: Likewise.
656         * testsuite/gas/arc/cpu-pseudop-1.s: Likewise.
657         * testsuite/gas/arc/cpu-pseudop-2.d: Likewise.
658         * testsuite/gas/arc/cpu-pseudop-2.s: Likewise.
659         * testsuite/gas/arc/cpu-warn2.s: Likewise.
660         * config/tc-arc.c (selected_cpu): Initialize.
661         (feature_type): New struct.
662         (feature_list): New variable.
663         (arc_check_feature): New function.
664         (arc_select_cpu): Check for .cpu duplicates. Don't overwrite the
665         current cpu features. Check if a feature is available for a given
666         cpu.
667         (md_parse_option): Test if features are available for a given cpu.
669 2016-11-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
671         * config/tc-aarch64.c (parse_operands): Handle AARCH64_OPND_IMM_ROT*.
672         * testsuite/gas/aarch64/advsimd-armv8_3.d: New.
673         * testsuite/gas/aarch64/advsimd-armv8_3.s: New.
674         * testsuite/gas/aarch64/illegal-fcmla.s: New.
675         * testsuite/gas/aarch64/illegal-fcmla.l: New.
676         * testsuite/gas/aarch64/illegal-fcmla.d: New.
678 2016-11-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
680         * testsuite/gas/aarch64/ldst-exclusive-armv8_3.s: Add ldaprb, ldaprh, ldapr tests.
681         * testsuite/gas/aarch64/ldst-exclusive-armv8_3.d: Likewise.
682         * testsuite/gas/aarch64/illegal-ldapr.s: Likewise.
683         * testsuite/gas/aarch64/illegal-ldapr.d: Likewise.
684         * testsuite/gas/aarch64/illegal-ldapr.l: Likewise.
686 2016-11-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
688         * testsuite/gas/aarch64/fp-armv8_3.s: Add fjcvtzs test.
689         * testsuite/gas/aarch64/fp-armv8_3.d: Likewise.
690         * testsuite/gas/aarch64/illegal-fjcvtzs.s: Likewise.
691         * testsuite/gas/aarch64/illegal-fjcvtzs.d: Likewise.
692         * testsuite/gas/aarch64/illegal-fjcvtzs.l: Likewise.
693         * testsuite/gas/aarch64/illegal-nofp-armv8_3.s: Likewise.
694         * testsuite/gas/aarch64/illegal-nofp-armv8_3.d: Likewise.
695         * testsuite/gas/aarch64/illegal-nofp-armv8_3.l: Likewise.
697 2016-11-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
699         * config/tc-aarch64.c (parse_operands): Handle AARCH64_OPND_ADDR_SIMM10.
700         (fix_insn): Likewise.
701         (warn_unpredictable_ldst): Handle ldst_imm10.
702         * testsuite/gas/aarch64/pac.s: Add ldraa and ldrab tests.
703         * testsuite/gas/aarch64/pac.d: Likewise.
704         * testsuite/gas/aarch64/illegal-ldraa.s: New.
705         * testsuite/gas/aarch64/illegal-ldraa.l: New.
706         * testsuite/gas/aarch64/illegal-ldraa.d: New.
708 2016-11-15  Nick Clifton  <nickc@redhat.com>
710         PR gas/20803
711         * config/tc-sparc.c (cons_fix_new_sparc): Use unaligned relocs in
712         the .eh_frame section.
714 2016-11-13  Anthony Green  <green@moxielogic.org>
716         * config/tc-moxie.c (md_assemble): Assemble 'bad' opcode.
718 2016-11-11  Nick Clifton  <nickc@redhat.com>
720         PR gas/20732
721         * expr.c (integer_constant): If tc_allow_L_suffix is defined and
722         non-zero then accept a L or LL suffix.
723         * testsuite/gas/sparc/pr20732.d: New test source file.
724         * testsuite/gas/sparc/pr20732.d: New test output file.
725         * testsuite/gas/sparc/sparc.exp: Run new test.
727 2016-11-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
729         * testsuite/gas/aarch64/pac.s: Add ARMv8.3 branch instruction tests.
730         * testsuite/gas/aarch64/pac.d: Likewise.
732 2016-11-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
734         * config/tc-aarch64.c (process_omitted_operand): Handle AARCH64_OPND_Rm_SP.
735         (parse_operands): Likewise.
736         * testsuite/gas/aarch64/pac.s: Add pacga.
737         * testsuite/gas/aarch64/pac.d: Add pacga.
739 2016-11-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
741         * testsuite/gas/aarch64/pac.s: New.
742         * testsuite/gas/aarch64/pac.d: New.
744 2016-11-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
746         * testsuite/gas/aarch64/sysreg-3.s: New.
747         * testsuite/gas/aarch64/sysreg-3.d: New.
748         * testsuite/gas/aarch64/illegal-sysreg-3.l: New.
749         * testsuite/gas/aarch64/illegal-sysreg-3.d: New.
751 2016-11-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
753         * testsuite/gas/aarch64/system-3.s: New.
754         * testsuite/gas/aarch64/system-3.d: New.
755         * testsuite/gas/aarch64/system.d: Update expected output.
757 2016-11-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
759         * config/tc-aarch64.c (aarch64_archs): Add "armv8.3-a".
760         * doc/c-aarch64.texi (-march): Likewise.
762 2016-11-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
764         * config/tc-aarch64.c (aarch64_features): Fix "simd" and "crypto".
765         * testsuite/gas/aarch64/illegal-crypto-nofp.d: New.
766         * testsuite/gas/aarch64/illegal-crypto-nofp.l: New.
767         * testsuite/gas/aarch64/illegal-fp16-nofp.d: New.
768         * testsuite/gas/aarch64/illegal-fp16-nofp.l: New.
769         * testsuite/gas/aarch64/illegal-fp16-nofp.s: New.
771 2016-11-09  H.J. Lu  <hongjiu.lu@intel.com>
773         PR binutils/20799
774         * testsuite/gas/i386/opcode.s: Add a test for EVEX vpextrw.
775         * testsuite/gas/i386/opcode-intel.d: Updated.
776         * testsuite/gas/i386/opcode-suffix.d: Likewise.
777         * testsuite/gas/i386/opcode.d: Likewise.
778         * testsuite/gas/i386/x86-64-avx512bw-opts.s: Remove vpextrw
779         tests.
780         * testsuite/gas/i386/x86-64-avx512bw-opts-intel.d: Updated.
781         * testsuite/gas/i386/x86-64-avx512bw-opts.d: Likewise.
783 2016-11-09  H.J. Lu  <hongjiu.lu@intel.com>
785         PR binutils/20754
786         * testsuite/gas/i386/opcode-suffix.d: Updated.
788 2016-11-07  H.J. Lu  <hongjiu.lu@intel.com>
790         PR binutils/20775
791         * testsuite/gas/i386/i386.exp: Run fpu-bad.
792         * testsuite/gas/i386/fpu-bad.d: New file.
793         * testsuite/gas/i386/fpu-bad.s: Likewise.
795 2016-11-04  Nathan Sidwell  <nathan@acm.org>
797         gas/
798         * input-scrub.c (partial_size): Make size_t.
799         (buffer_length): Likewise.  Adjust meaning.
800         (struct input_save): Adjust partial_size type.
801         (input_scrub_reinit): New.
802         (input_scrub_push, input_scrub_begin): Use it.
803         (input_scrub_next_buffer): Fix buffer extension logic. Only scan
804         newly read buffer for newline.
806 2016-11-04  Andrew Burgess  <andrew.burgess@embecosm.com>
808         * config/tc-arc.c (find_opcode_match): Use insert function to
809         validate matching address type operands.
810         * testsuite/gas/arc/nps400-10.d: New file.
811         * testsuite/gas/arc/nps400-10.s: New file.
813 2016-11-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
815         * config/tc-arm.c (cortex-m33): Declare new processor.
816         * doc/c-arm.texi (-mcpu ARM command line option): Document new
817         Cortex-M33 processor.
818         * NEWS: Mention ARM Cortex-M33 support.
820 2016-11-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
822         * config/tc-arm.c (cortex-m23): Declare new processor.
823         * doc/c-arm.texi (-mcpu ARM command line option): Document new
824         Cortex-M23 processor.
825         * NEWS: Mention ARM Cortex-M23 support.
827 2016-11-04  Palmer Dabbelt  <palmer@dabbelt.com>
828             Andrew Waterman <andrew@sifive.com>
830         * Makefile.am (CPU_DOCS): Add c-riscv.texi.
831         * Makefile.in: Regenerate.
832         * doc/all.texi: Set RISCV.
833         * doc/as.texinfo: Add RISCV options.
834         Add RISC-V-Dependent node.
835         Include c-riscv.texi.
836         * doc/c-riscv.texi: Rename RISC-V Options to RISC-V-Opts.
838 2016-11-03  Graham Markall  <graham.markall@embecosm.com>
840         * testsuite/gas/arc/nps400-6.s: Change ldbit tests so that limm
841         operands are out of the range of an s9, in order to fix the test.
842         * testsuite/gas/arc/nps400-6.d: Updated to match new expected output.
844 2016-11-03  Graham Markall  <graham.markall@embecosm.com>
846         * testsuite/gas/arc/nps-400-9.d: Added.
847         * testsuite/gas/arc/nps-400-9.s: Added.
849 2016-11-03  Andrew Burgess  <andrew.burgess@embecosm.com>
851         * config/tc-arc.c (struct arc_insn): Change type of insn field.
852         (md_number_to_chars_midend): Support 6- and 8-byte values.
853         (emit_insn0): Update debug output.
854         (find_opcode_match): Likewise.
855         (build_fake_opcode_hash_entry): Delete.
856         (find_special_case_long_opcode): Delete.
857         (find_special_case): Remove long format special case handling.
858         (insert_operand): Change instruction type and update debug print
859         format.
860         (assemble_insn): Change instruction type, update debug print
861         formats, and remove unneeded assert.
863 2016-11-03  Graham Markall  <graham.markall@embecosm.com>
865         * config/tc-arc.c (assemble_insn): Replace use of ARC_SHORT with
866         arc_opcode_len.
868 2016-11-03  Graham Markall  <graham.markall@embecosm.com>
870         * config/tc-arc.c (struct arc_insn): Replace short_insn flag with
871         len field.
872         (apply_fixups): Update to use len field.
873         (emit_insn0): Simplify code, making use of len field.
874         (md_convert_frag): Update to use len field.
875         (assemble_insn): Update to use len field.
877 2016-11-03  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
879         * config/tc-aarch64.c (aarch64_cpus): Add falkor.
880         * config/tc-arm.c (arm_cpus): Likewise.
881         * doc/c-aarch64.texi: Likewise.
882         * doc/c-arm.texi: Likewise.
884 2016-11-03  H.J. Lu  <hongjiu.lu@intel.com>
886         PR binutils/20754
887         * testsuite/gas/i386/opcode.s: Add tests for opcode 0x82.
888         * testsuite/gas/i386/opcode-intel.d: Updated.
889         * testsuite/gas/i386/opcode.d: Likewise.
891 2016-11-02  Jiong Wang  <jiong.wang@arm.com>
893         * config/tc-arm.c (SBIT_SHIFT): New.
894         (T2_SBIT_SHIFT): Likewise.
895         (t32_insn_ok): Return TRUE for MOV in ARMv8-M Baseline.
896         (md_apply_fix): Try UINT16 encoding when ARM/Thumb modified immediate
897         encoding failed.
898         * testsuite/gas/arm/archv6t2-bad.s: New error case.
899         * testsuite/gas/arm/archv6t2-bad.l: New error match.
900         * testsuite/gas/arm/archv6t2.s: New testcase.
901         * testsuite/gas/arm/archv6t2.d: New expected result.
902         * testsuite/gas/arm/archv8m.s: New testcase.
903         * testsuite/gas/arm/archv8m-base.d: New expected result.
904         * testsuite/gas/arm/archv8m-main.d: Likewise.
905         * testsuite/gas/arm/archv8m-main-dsp-1.d: Likewise.
907 2016-11-02  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
909         * config/tc-i386.c: (cpu_arch) Add .avx512_4vnniw.
910         (cpu_noarch): Add noavx512_4vnniw.
911         * doc/c-i386.texi: Document avx512_4vnniw, noavx512_4vnniw.
912         * testsuite/gas/i386/i386.exp: Run AVX512_4VNNIW tests.
913         * testsuite/gas/i386/avx512_4vnniwd_vl-intel.d: New test.
914         * testsuite/gas/i386/avx512_4vnniwd_vl.d: Ditto.
915         * testsuite/gas/i386/avx512_4vnniwd_vl.s: Ditto.
916         * testsuite/gas/i386/avx512_4vnniwd-intel.d: Ditto.
917         * testsuite/gas/i386/avx512_4vnniwd.d: Ditto.
918         * testsuite/gas/i386/avx512_4vnniwd.s: Ditto.
919         * testsuite/gas/i386/x86-64-avx512_4vnniwd_vl-intel.d: Ditto.
920         * testsuite/gas/i386/x86-64-avx512_4vnniwd_vl.d: Ditto.
921         * testsuite/gas/i386/x86-64-avx512_4vnniwd_vl.s: Ditto.
922         * testsuite/gas/i386/x86-64-avx512_4vnniwd-intel.d: Ditto.
923         * testsuite/gas/i386/x86-64-avx512_4vnniwd.d: Ditto.
924         * testsuite/gas/i386/x86-64-avx512_4vnniwd.s: Ditto.
926 2016-11-02  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
928         * config/tc-i386.c (cpu_arch): Add .avx512_4fmaps.
929         (cpu_noarch): Add noavx512_4fmaps.
930         (process_operands): Handle implicit quad group.
931         * doc/c-i386.texi: Document avx512_4fmaps, noavx512_4fmaps.
932         * testsuite/gas/i386/i386.exp: Add AVX512_4FMAPS tests.
933         * testsuite/gas/i386/avx512_4fmaps_vl-intel.d: New test.
934         * testsuite/gas/i386/avx512_4fmaps_vl.d: Ditto.
935         * testsuite/gas/i386/avx512_4fmaps_vl.s: Ditto.
936         * testsuite/gas/i386/avx512_4fmaps-intel.d: Ditto.
937         * testsuite/gas/i386/avx512_4fmaps.d: Ditto.
938         * testsuite/gas/i386/avx512_4fmaps.s: Ditto.
939         * testsuite/gas/i386/avx512_4fmaps-warn.l: Ditto.
940         * testsuite/gas/i386/avx512_4fmaps-warn.s: Ditto.
941         * testsuite/gas/i386/avx512_4fmaps_vl-warn.l: Ditto.
942         * testsuite/gas/i386/avx512_4fmaps_vl-warn.s: Ditto.
943         * testsuite/gas/i386/x86-64-avx512_4fmaps_vl-intel.d: Ditto.
944         * testsuite/gas/i386/x86-64-avx512_4fmaps_vl.d: Ditto.
945         * testsuite/gas/i386/x86-64-avx512_4fmaps_vl.s: Ditto.
946         * testsuite/gas/i386/x86-64-avx512_4fmaps-intel.d: Ditto.
947         * testsuite/gas/i386/x86-64-avx512_4fmaps.d: Ditto.
948         * testsuite/gas/i386/x86-64-avx512_4fmaps.s: Ditto.
949         * testsuite/gas/i386/x86-64-avx512_4fmaps-warn.l: Ditto.
950         * testsuite/gas/i386/x86-64-avx512_4fmaps-warn.s: Ditto.
951         * testsuite/gas/i386/x86-64-avx512_4fmaps_vl-warn.l: Ditto.
952         * testsuite/gas/i386/x86-64-avx512_4fmaps_vl-warn.s: Ditto.
954 2016-11-01  Palmer Dabbelt  <palmer@dabbelt.com>
955             Andrew Waterman <andrew@sifive.com>
957         Add support for RISC-V architecture.
958         * Makefile.am: Add riscv files.
959         * Makefile.in: Regenerate.
960         * NEWS: Mention the support for this architecture.
961         * configure.in: Define a default architecture.
962         * configure: Regenerate.
963         * configure.tgt: Add entries for riscv.
964         * doc/as.texinfo: Likewise.
965         * testsuite/gas/all/gas.exp: Expect the redef tests to fail.
966         * testsuite/gas/elf/elf.exp: Expect the groupauto tests to fail.
967         * config/tc-riscv.c: New file.
968         * config/tc-riscv.h: New file.
969         * doc/c-riscv.texi: New file.
970         * testsuite/gas/riscv: New directory.
971         * testsuite/gas/riscv/riscv.exp: New file.
972         * testsuite/gas/riscv/t_insns.d: New file.
973         * testsuite/gas/riscv/t_insns.s: New file.
975 2016-10-27  Andrew Burgess  <andrew.burgess@embecosm.com>
977         * config/tc-arc.c (arc_target): Delete.
978         (arc_target_name): Delete.
979         (arc_features): Delete.
980         (arc_mach_type): Delete.
981         (mach_type_specified_p): Delete.
982         (enum mach_selection_type): New enum.
983         (mach_selection_mode): New static global.
984         (selected_cpu): New static global.
985         (arc_eflag): Rename to ...
986         (arc_initial_eflag): ...this, and make const.
987         (arc_select_cpu): Update comment, new parameter, check how
988         previous machine type selection was made, and record this
989         selection.  Use selected_cpu instead of old globals.
990         (arc_option): Remove use of arc_get_mach, instead use
991         arc_select_cpu to validate machine type selection.  Use
992         selected_cpu over old globals.
993         (allocate_tok): Use selected_cpu over old globals.
994         (find_opcode_match): Likewise.
995         (assemble_tokens): Likewise.
996         (arc_cons_fix_new): Likewise.
997         (arc_extinsn): Likewise.
998         (arc_extcorereg): Likewise.
999         (md_begin): Update default machine type selection, use
1000         selected_cpu over old globals.
1001         (md_parse_option): Update machine type selection option handling,
1002         use selected_cpu over old globals.
1003         * testsuite/gas/arc/nps400-0.s: Add .cpu directive.
1005 2016-10-26  Alan Modra  <amodra@gmail.com>
1007         Revert 2016-10-06  Alan Modra  <amodra@gmail.com>
1008         * config/rl78-parse.y: Do use old %name-prefix syntax.
1009         * config/rx-parse.y: Likewise.
1011 2016-10-21  H.J. Lu  <hongjiu.lu@intel.com>
1013         * config/tc-i386.c (cpu_arch): Remove .pcommit.
1014         * doc/c-i386.texi: Likewise.
1015         * testsuite/gas/i386/i386.exp: Remove pcommit tests.
1016         * testsuite/gas/i386/pcommit-intel.d: Removed.
1017         * testsuite/gas/i386/pcommit.d: Likewise.
1018         * testsuite/gas/i386/pcommit.s: Likewise.
1019         * testsuite/gas/i386/x86-64-pcommit-intel.d: Likewise.
1020         * testsuite/gas/i386/x86-64-pcommit.d: Likewise.
1021         * testsuite/gas/i386/x86-64-pcommit.s: Likewise.
1023 2016-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1025         PR binutis/20705
1026         * testsuite/gas/i386/i386.exp: Run x86-64-opcode-bad.
1027         * testsuite/gas/i386/x86-64-opcode-bad.d: New file.
1028         * testsuite/gas/i386/x86-64-opcode-bad.s: Likewise.
1030 2016-10-19  Renlin Li  <renlin.li@arm.com>
1032         * config/tc-arm.c (encode_arm_shift): Generate unpredictable warning
1033         for register-shifted register instructions.
1034         * testsuite/gas/arm/shift-bad-pc.d: New.
1035         * testsuite/gas/arm/shift-bad-pc.l: New.
1036         * testsuite/gas/arm/shift-bad-pc.s: New.
1038 2016-10-17  Cupertino Miranda  <cmiranda@synopsys.com>
1040         * testsuite/arc/dis-inv.d: Fixed matching.
1042 2016-10-17  Cupertino Miranda  <cmiranda@synopsys.com>
1044         * testsuite/arc/dis-inv.s: Test to validate patch.
1045         * testsuite/arc/dis-inv.d: Likewise.
1047 2016-10-14  Claudiu Zissulescu  <claziss@synopsys.com>
1049         * testsuite/gas/arc/shortlimm_a7.d: New file.
1050         * testsuite/gas/arc/shortlimm_a7.s: Likewise.
1051         * testsuite/gas/arc/shortlimm_hs.d: Likewise.
1052         * testsuite/gas/arc/shortlimm_hs.s: Likewise.
1054 2016-10-11  Nick Clifton  <nickc@redhat.com>
1056         * gas/arm/tls.d: Adjust output to match change in objdump.
1058 2016-10-11  Jiong Wang  <jiong.wang@arm.com>
1060         PR target/20666
1061         * testsuite/gas/aarch64/alias-2.d: Update expected results.
1063 2016-10-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1065         * testsuite/gas/cfi/cfi-common-1.d: Adjust regexps for mips64.
1066         * testsuite/gas/cfi/cfi-common-2.d: Likewise.
1067         * testsuite/gas/cfi/cfi-common-3.d: Likewise.
1068         * testsuite/gas/cfi/cfi-common-4.d: Likewise.
1069         * testsuite/gas/cfi/cfi-common-5.d: Likewise.
1070         * testsuite/gas/cfi/cfi-common-7.d: Likewise.
1071         * testsuite/gas/cfi/cfi-common-8.d: Likewise.
1072         * testsuite/gas/cfi/cfi-common-9.d: Likewise.
1073         * testsuite/gas/cfi/cfi-mips-1.d: Likewise.
1075 2016-10-08  Alan Modra  <amodra@gmail.com>
1077         * Makefile.am (EXTRA_as_new_SOURCES): Add config/rl78-parse.y and
1078         config/rx-parse.y.  Move config/bfin-parse.y.
1079         (bfin-parse.@OBJEXT@, rl78-parse.@OBJEXT@, rx-parse.@OBJEXT@): Delete.
1080         ($(srcdir)/config/rl78-defs.h): New rule.
1081         * Makefile.in: Regenerate.
1083 2016-10-07  Jiong Wang  <jiong.wang@arm.com>
1085         PR target/20667
1086         * testsuite/gas/aarch64/sys-rt-reg.s: Test source for instructions using
1087         SYS_Rt reg.
1088         * testsuite/gas/aarch64/sys-rt-reg.d: New testcase.
1090 2016-10-06  Claudiu Zissulescu  <claziss@synopsys.com>
1092         * testsuite/gas/arc/leave_enter.d: New file.
1093         * testsuite/gas/arc/leave_enter.s: Likewise.
1094         * testsuite/gas/arc/regnames.d: Likewise.
1095         * testsuite/gas/arc/regnames.s: Likewise.
1096         * config/tc-arc.c (arc_parse_name): Don't match reg names against
1097         confirmed symbol names.
1099 2016-10-06  Alan Modra  <amodra@gmail.com>
1101         * app.c (do_scrub_chars): Move fall through comment.
1102         * expr.c (operand): Likewise.
1104 2016-10-06  Matthew Fortune  <matthew.fortune@imgtec.com>
1106         PR gas/20648
1107         * dw2gencfi.c (dot_cfi_sections): Refine the check for
1108         inconsistent .cfi_sections to only consider compact vs non
1109         compact forms.
1110         * testsuite/gas/cfi/cfi-common-9.d: New file.
1111         * testsuite/gas/cfi/cfi-common-9.s: New file.
1112         * testsuite/gas/cfi/cfi.exp: Run new test.
1114 2016-10-06  Alan Modra  <amodra@gmail.com>
1116         * app.c: Add missing fall through comments.
1117         * dw2gencfi.c: Likewise.
1118         * expr.c: Likewise.
1119         * config/tc-alpha.c: Likewise.
1120         * config/tc-arc.c: Likewise.
1121         * config/tc-arm.c: Likewise.
1122         * config/tc-cr16.c: Likewise.
1123         * config/tc-crx.c: Likewise.
1124         * config/tc-dlx.c: Likewise.
1125         * config/tc-h8300.c: Likewise.
1126         * config/tc-hppa.c: Likewise.
1127         * config/tc-i370.c: Likewise.
1128         * config/tc-i386.c: Likewise.
1129         * config/tc-i960.c: Likewise.
1130         * config/tc-ia64.c: Likewise.
1131         * config/tc-m68hc11.c: Likewise.
1132         * config/tc-m68k.c: Likewise.
1133         * config/tc-mep.c: Likewise.
1134         * config/tc-metag.c: Likewise.
1135         * config/tc-microblaze.c: Likewise.
1136         * config/tc-mips.c: Likewise.
1137         * config/tc-ns32k.c: Likewise.
1138         * config/tc-rx.c: Likewise.
1139         * config/tc-score.c: Likewise.
1140         * config/tc-score7.c: Likewise.
1141         * config/tc-sh.c: Likewise.
1142         * config/tc-tic4x.c: Likewise.
1143         * config/tc-vax.c: Likewise.
1144         * config/tc-xstormy16.c: Likewise.
1145         * config/tc-z80.c: Likewise.
1146         * config/tc-z8k.c: Likewise.
1147         * config/obj-elf.c: Likewise.
1148         * config/tc-i386.c: Likewise.
1149         * depend.c: Spell fall through comments consistently.
1150         * config/tc-arm.c: Likewise.
1151         * config/tc-d10v.c: Likewise.
1152         * config/tc-i960.c: Likewise.
1153         * config/tc-ia64.c: Likewise.
1154         * config/tc-m68k.c: Likewise.
1155         * config/tc-mcore.c: Likewise.
1156         * config/tc-mep.c: Likewise.
1157         * config/tc-ns32k.c: Likewise.
1158         * config/tc-visium.c: Likewise.
1159         * config/tc-xstormy16.c: Likewise.
1160         * config/tc-z8k.c: Likewise.
1162 2016-10-06  Alan Modra  <amodra@gmail.com>
1164         * as.h (as_assert): Add ATTRIBUTE_NORETURN.
1166 2016-10-06  Alan Modra  <amodra@gmail.com>
1168         * config/tc-arc.c (find_opcode_match): Add missing break.
1169         * config/tc-i960.c (get_cdisp): Likewise.
1170         * config/tc-metag.c (parse_swap, md_apply_fix): Likewise.
1171         * config/tc-mt.c (md_parse_option): Likewise.
1172         * config/tc-nds32.c (nds32_apply_fix): Likewise.
1173         * config/tc-hppa.c (pa_ip): Assert rather than testing last
1174         condition of multiple if statements.
1175         * config/tc-s390.c (s390_exp_compare): Return 0 on error.
1176         * config/tc-tic4x.c (tic4x_operand_parse): Add as_bad and break
1177         out of case rather than falling into next case.  Formatting.
1179 2016-10-06  Alan Modra  <amodra@gmail.com>
1181         * config/rl78-parse.y: Don't use deprecated %name-prefix.
1182         * config/rx-parse.y: Likewise.
1184 2016-09-29  Jiong Wang  <jiong.wang@arm.com>
1186         PR target/20553
1187         * testsuite/gas/aarch64/advsimd-fp16.s (indexed_elem): New high index
1188         testcases for H and S variants.  New low index testcases for D variant.
1189         * testsuite/gas/aarch64/advsimd-fp16.d: Update expected results.
1191 2016-09-29  Alan Modra  <amodra@gmail.com>
1193         * config/tc-ppc.c (md_assemble): Handle PPC_OPERAND_OPTIONAL32.
1194         * testsuite/gas/ppc/power8.s: Provide tbegin. operand.
1195         * testsuite/gas/ppc/power9.d: Update cmprb disassembly.
1197 2016-09-26  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1199         * config/tc-xtensa.c (xg_reverse_shift_count): Pass cnt_arg instead of
1200         cnt_argp to concat.
1202 2016-09-26  Vlad Zakharov  <vzakhar@synopsys.com>
1204         * Makefile.in: Regenerate.
1205         * configure: Likewise.
1206         * doc/Makefile.in: Likewise.
1208 2016-09-26  Alan Modra  <amodra@gmail.com>
1210         * config/tc-ppc.c (ppc_elf_gnu_attribute): New function.
1211         (md_pseudo_table <ELF>): Handle "gnu_attribute".
1213 2016-09-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1215         * config/tc-arm.c (v7m_psrs): Remove BASEPRI_MASK MRS/MSR special
1216         register and redundant basepri_max.
1218 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
1220         * config/tc-aarch64.c (print_operands): Print spaces between
1221         operands.
1222         * testsuite/gas/aarch64/ilp32-basic.d: Expect spaces after ","
1223         in addresses.
1224         * testsuite/gas/aarch64/ldst-reg-imm-post-ind.d: Likewise.
1225         * testsuite/gas/aarch64/ldst-reg-imm-pre-ind.d: Likewise.
1226         * testsuite/gas/aarch64/ldst-reg-pair.d: Likewise.
1227         * testsuite/gas/aarch64/ldst-reg-reg-offset.d: Likewise.
1228         * testsuite/gas/aarch64/ldst-reg-uns-imm.d: Likewise.
1229         * testsuite/gas/aarch64/ldst-reg-unscaled-imm.d: Likewise.
1230         * testsuite/gas/aarch64/reloc-insn.d: Likewise.
1231         * testsuite/gas/aarch64/sve.d: Likewise.
1232         * testsuite/gas/aarch64/symbol.d: Likewise.
1233         * testsuite/gas/aarch64/system.d: Likewise.
1234         * testsuite/gas/aarch64/tls-desc.d: Likewise.
1235         * testsuite/gas/aarch64/sve-invalid.l: Expect spaces after ","
1236         in suggested alternatives.
1237         * testsuite/gas/aarch64/verbose-error.l: Likewise.
1239 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
1241         * config/tc-aarch64.c (output_operand_error_record): Use "must be"
1242         rather than "should be" or "expected to be" in error messages.
1243         (parse_operands): Likewise.
1244         * testsuite/gas/aarch64/diagnostic.l: Likewise.
1245         * testsuite/gas/aarch64/legacy_reg_names.l: Likewise.
1246         * testsuite/gas/aarch64/sve-invalid.l: Likewise.
1247         * testsuite/gas/aarch64/sve-reg-diagnostic.l: Likewise.
1249 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
1251         * config/tc-aarch64.c (opcode_lookup): Search for the end of
1252         a condition name, rather than assuming that it will have exactly
1253         2 characters.
1254         (parse_operands): Likewise.
1255         * testsuite/gas/aarch64/alias.d: Add new condition-code comments
1256         to the expected output.
1257         * testsuite/gas/aarch64/beq_1.d: Likewise.
1258         * testsuite/gas/aarch64/float-fp16.d: Likewise.
1259         * testsuite/gas/aarch64/int-insns.d: Likewise.
1260         * testsuite/gas/aarch64/no-aliases.d: Likewise.
1261         * testsuite/gas/aarch64/programmer-friendly.d: Likewise.
1262         * testsuite/gas/aarch64/reloc-insn.d: Likewise.
1263         * testsuite/gas/aarch64/b_c_1.d, testsuite/gas/aarch64/b_c_1.s:
1264         New test.
1266 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
1268         * testsuite/gas/aarch64/diagnostic.s,
1269         testsuite/gas/aarch64/diagnostic.l: Add tests for
1270         invalid uses of MUL VL and MUL in base AArch64 instructions.
1271         * testsuite/gas/aarch64/sve-add.s, testsuite/gas/aarch64/sve-add.d,
1272         testsuite/gas/aarch64/sve-dup.s, testsuite/gas/aarch64/sve-dup.d,
1273         testsuite/gas/aarch64/sve-invalid.s,
1274         testsuite/gas/aarch64/sve-invalid.d,
1275         testsuite/gas/aarch64/sve-invalid.l,
1276         testsuite/gas/aarch64/sve-reg-diagnostic.s,
1277         testsuite/gas/aarch64/sve-reg-diagnostic.d,
1278         testsuite/gas/aarch64/sve-reg-diagnostic.l,
1279         testsuite/gas/aarch64/sve.s, testsuite/gas/aarch64/sve.d: New tests.
1281 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
1283         * doc/c-aarch64.texi: Document the "sve" feature.
1284         * config/tc-aarch64.c (REG_TYPE_R_Z_BHSDQ_VZP): New register type.
1285         (get_reg_expected_msg): Handle it.
1286         (parse_operands): When parsing operands of an SVE instruction,
1287         disallow immediates that match REG_TYPE_R_Z_BHSDQ_VZP.
1288         (aarch64_features): Add an entry for SVE.
1290 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
1292         * config/tc-aarch64.c (parse_operands): Handle the new SVE core
1293         and FP register operands.
1295 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
1297         * config/tc-aarch64.c (double_precision_operand_p): New function.
1298         (parse_operands): Use it to calculate the dp_p input to
1299         parse_aarch64_imm_float.  Handle the new SVE FP immediate operands.
1301 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
1303         * config/tc-aarch64.c (parse_operands): Handle the new SVE integer
1304         immediate operands.
1306 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
1308         * config/tc-aarch64.c (SHIFTED_NONE, SHIFTED_MUL_VL): New
1309         parse_shift_modes.
1310         (parse_shift): Handle SHIFTED_MUL_VL.
1311         (parse_address_main): Add an imm_shift_mode parameter.
1312         (parse_address, parse_sve_address): Update accordingly.
1313         (parse_operands): Handle MUL VL addressing modes.
1315 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
1317         * config/tc-aarch64.c (REG_TYPE_SVE_BASE, REG_TYPE_SVE_OFFSET): New
1318         register types.
1319         (get_reg_expected_msg): Handle them.
1320         (aarch64_addr_reg_parse): New function, split out from
1321         aarch64_reg_parse_32_64.  Handle Z registers too.
1322         (aarch64_reg_parse_32_64): Call it.
1323         (parse_address_main): Add base_qualifier, offset_qualifier,
1324         base_type and offset_type parameters.  Handle SVE base and offset
1325         registers.
1326         (parse_address): Update call to parse_address_main.
1327         (parse_sve_address): New function.
1328         (parse_operands): Parse the new SVE address operands.
1330 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
1332         * config/tc-aarch64.c (SHIFTED_MUL): New parse_shift_mode.
1333         (parse_shift): Handle it.  Reject AARCH64_MOD_MUL for all other
1334         shift modes.  Skip range tests for AARCH64_MOD_MUL.
1335         (process_omitted_operand): Handle AARCH64_OPND_SVE_PATTERN_SCALED.
1336         (parse_operands): Likewise.
1338 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
1340         * config/tc-aarch64.c (parse_enum_string): New function.
1341         (po_enum_or_fail): New macro.
1342         (parse_operands): Handle AARCH64_OPND_SVE_PATTERN and
1343         AARCH64_OPND_SVE_PRFOP.
1345 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
1347         * config/tc-aarch64.c (vector_el_type): Add NT_zero and NT_merge.
1348         (parse_vector_type_for_operand): Assert that the skipped character
1349         is a '.'.
1350         (parse_predication_for_operand): New function.
1351         (parse_typed_reg): Parse /z and /m suffixes for predicate registers.
1352         (vectype_to_qualifier): Handle NT_zero and NT_merge.
1354 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
1356         * config/tc-aarch64.c (NTA_HASVARWIDTH): New macro.
1357         (AARCH64_REG_TYPES): Add ZN and PN.
1358         (get_reg_expected_msg): Handle them.
1359         (parse_vector_type_for_operand): Add a reg_type parameter.
1360         Skip the width for Zn and Pn registers.
1361         (parse_typed_reg): Extend vector handling to Zn and Pn.  Update the
1362         call to parse_vector_type_for_operand.  Set HASVARTYPE for Zn and Pn,
1363         expecting the width to be 0.
1364         (parse_vector_reg_list): Restrict error about [BHSD]nn operands to
1365         REG_TYPE_VN.
1366         (vectype_to_qualifier): Use S_[BHSD] qualifiers for NTA_HASVARWIDTH.
1367         (parse_operands): Handle the new Zn and Pn operands.
1368         (REGSET16): New macro, split out from...
1369         (REGSET31): ...here.
1370         (reg_names): Add Zn and Pn entries.
1372 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
1374         * config/tc-aarch64.c (output_operand_error_record): Handle
1375         AARCH64_OPDE_UNTIED_OPERAND.
1377 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
1379         * config/tc-aarch64.c (find_best_match): Simplify, allowing an
1380         instruction with all-NIL qualifiers to fail to match.
1382 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
1384         * config/tc-aarch64.c (parse_address_main): Remove reloc and
1385         accept_reg_post_index parameters.  Parse relocations and register
1386         post indexes unconditionally.
1387         (parse_address): Remove accept_reg_post_index parameter.
1388         Update call to parse_address_main.
1389         (parse_address_reloc): Delete.
1390         (parse_operands): Call parse_address instead of parse_address_main.
1391         Update existing callers of parse_address and make them check
1392         inst.reloc.type where appropriate.
1393         * testsuite/gas/aarch64/diagnostic.s: Add tests for relocations
1394         in ADDR_SIMPLE, SIMD_ADDR_SIMPLE, ADDR_SIMM7 and ADDR_SIMM9 addresses.
1395         Also test for invalid uses of post-index register addressing.
1396         * testsuite/gas/aarch64/diagnostic.l: Update accordingly.
1398 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
1400         * config/tc-aarch64.c (REG_TYPE_R_Z, REG_TYPE_R_SP): New register
1401         types.
1402         (get_reg_expected_msg): Handle them and REG_TYPE_R64_SP.
1403         (aarch64_check_reg_type): Simplify.
1404         (aarch64_reg_parse_32_64): Return the reg_entry instead of the
1405         register number.  Return the type as a qualifier rather than an
1406         "isreg32" boolean.  Remove reject_sp, reject_rz and isregzero
1407         parameters.
1408         (parse_shifter_operand): Update call to aarch64_parse_32_64_reg.
1409         Use get_reg_expected_msg.
1410         (parse_address_main): Likewise.  Use aarch64_check_reg_type.
1411         (po_int_reg_or_fail): Replace reject_sp and reject_rz parameters
1412         with a reg_type parameter.  Update call to aarch64_parse_32_64_reg.
1413         Use aarch64_check_reg_type to test the result.
1414         (parse_operands): Update after the above changes.  Parse ADDR_SIMPLE
1415         addresses normally before enforcing the syntax restrictions.
1416         * testsuite/gas/aarch64/diagnostic.s: Add tests for a post-index
1417         zero register and for a stack pointer index.
1418         * testsuite/gas/aarch64/diagnostic.l: Update accordingly.
1419         Also update existing diagnostic messages after the above changes.
1420         * testsuite/gas/aarch64/illegal-lse.l: Update the error message
1421         for 32-bit register bases.
1423 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
1425         * config/tc-aarch64.c (parse_aarch64_imm_float): Remove range check.
1426         (parse_operands): Check the range of 8-bit FP immediates here instead.
1428 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
1430         * config/tc-aarch64.c (parse_aarch64_imm_float): Report a specific
1431         low-severity error for registers.
1432         (parse_operands): Report an invalid floating point constant for
1433         if parsing an FPIMM8 fails, and if no better error has been
1434         recorded.
1435         * testsuite/gas/aarch64/diagnostic.s,
1436         testsuite/gas/aarch64/diagnostic.l: Add tests for integer operands
1437         to FMOV.
1439 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
1441         * config/tc-aarch64.c (aarch64_double_precision_fmovable): Rename
1442         to...
1443         (can_convert_double_to_float): ...this.  Accept any double-precision
1444         value that converts to single precision without loss of precision.
1445         (parse_aarch64_imm_float): Update accordingly.
1447 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
1449         * config/tc-aarch64.c (parse_immediate_expression): Add a
1450         reg_type parameter.
1451         (parse_constant_immediate): Likewise, and update calls.
1452         (parse_aarch64_imm_float): Likewise.
1453         (parse_big_immediate): Likewise.
1454         (po_imm_nc_or_fail): Update accordingly, passing down a new
1455         imm_reg_type variable.
1456         (po_imm_of_fail): Likewise.
1457         (parse_operands): Likewise.
1459 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
1461         * config/tc-aarch64.c (parse_neon_reg_list): Rename to...
1462         (parse_vector_reg_list): ...this and take a register type
1463         as input.
1464         (parse_operands): Update accordingly.
1466 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
1468         * config/tc-aarch64.c (parse_neon_type_for_operand): Rename to...
1469         (parse_vector_type_for_operand): ...this.
1470         (parse_typed_reg): Update accordingly.
1472 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
1474         * config/tc-aarch64.c (neon_type_el): Rename to...
1475         (vector_type_el): ...this.
1476         (parse_neon_type_for_operand): Update accordingly.
1477         (parse_typed_reg): Likewise.
1478         (aarch64_reg_parse): Likewise.
1479         (vectype_to_qualifier): Likewise.
1480         (parse_operands): Likewise.
1481         (eq_neon_type_el): Likewise.  Rename to...
1482         (eq_vector_type_el): ...this.
1483         (parse_neon_reg_list): Update accordingly.
1485 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
1487         * config/tc-aarch64.c (neon_el_type: Rename to...
1488         (vector_el_type): ...this.
1489         (neon_type_el): Update accordingly.
1490         (parse_neon_type_for_operand): Likewise.
1491         (vectype_to_qualifier): Likewise.
1493 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
1495         * config/tc-aarch64.c (parse_neon_operand_type): Delete.
1496         (parse_typed_reg): Call parse_neon_type_for_operand directly.
1498 2016-09-15  Claudiu Zissulescu  <claziss@synopsys.com>
1500         * testsuite/gas/arc/textinsnxop.d: New file.
1501         * testsuite/gas/arc/textinsnxop.s: Likewise.
1503 2016-09-15  Jose E. Marchesi  <jose.marchesi@oracle.com>
1505         * testsuite/gas/sparc/sparc.exp (gas_64_check): Run
1506         dcti-couples-v9 only in ELF targets to avoid spurious failures in
1507         sparc-aout and sparc-coff targets.
1509 2016-09-14  Peter Bergner <bergner@vnet.ibm.com>
1511         * testsuite/gas/ppc/power9.d <slbiag, cpabort> New tests.
1512         <addex., brd, brh, brw, lwzmx, nandxor, rldixor, setbool,
1513         xor3, cp_abort, copy_first, paste, paste_last, sync>: Remove tests.
1514         <copy, paste.>: Update tests.
1515         * testsuite/gas/ppc/power9.s: Likewise.
1517 2016-09-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
1519         * config/tc-sparc.c (sparc_ip): Print the instruction arguments
1520         in "architecture mismatch" error messages.
1522 2016-09-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
1524         * config/tc-sparc.c (md_assemble): Detect and warning on
1525         unpredictable DCTI couples in certain arches.
1526         (dcti_couples_detect): New global.
1527         (md_longopts): Add command line option -dcti-couples-detect.
1528         (md_show_usage): Document -dcti-couples-detect.
1529         (md_parse_option): Handle OPTION_DCTI_COUPLES_DETECT.
1530         * testsuite/gas/sparc/sparc.exp (gas_64_check): Run
1531         dcti-couples-v8, dcti-couples-v9 and dcti-couples-v9c tests.
1532         * testsuite/gas/sparc/dcti-couples.s: New file.
1533         * testsuite/gas/sparc/dcti-couples-v9c.d: Likewise.
1534         * testsuite/gas/sparc/dcti-couples-v8.d: Likewise.
1535         * testsuite/gas/sparc/dcti-couples-v9.d: Likewise.
1536         * testsuite/gas/sparc/dcti-couples-v9c.l: Likewise.
1537         * testsuite/gas/sparc/dcti-couples-v8.l: Likewise.
1538         * doc/as.texinfo (Overview): Document --dcti-couples-detect.
1539         * doc/c-sparc.texi (Sparc-Opts): Likewise.
1541 2016-09-14  Claudiu Zissulescu  <claziss@synopsys.com>
1543         * testsuite/gas/arc/tls-relocs2.d: New file.
1544         * testsuite/gas/arc/tls-relocs2.s: Likewise.
1545         * config/tc-arc.c (tokenize_arguments): Accept offsets when base
1546         is used.
1548 2016-09-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1550         * config/tc-s390.c (s390_parse_cpu): Support alternate arch
1551         strings.
1552         * doc/as.texinfo: Document new arch strings.
1553         * doc/c-s390.texi: Likewise.
1555 2016-09-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1557         * config/tc-s390.c: Set all facitily bits by default
1559 2016-09-12  Patrick Steuer  <steuer@linux.vnet.ibm.com>
1561         * testsuite/gas/s390/zarch-z196.d: Adjust testcase.
1563 2016-09-08  H.J. Lu  <hongjiu.lu@intel.com>
1565         * config/tc-i386.c (i386_target_format): Allow PROCESSOR_IAMCU
1566         for Intel MCU.
1568 2016-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1570         * config/tc-i386.c (valid_iamcu_cpu_flags): Removed.
1571         (set_cpu_arch): Updated.
1572         (md_parse_option): Likewise.
1573         * testsuite/gas/i386/i386.exp: Run iamcu-4 and iamcu-5.  Remove
1574         iamcu-inval-2 and iamcu-inval-3.
1575         * testsuite/gas/i386/iamcu-4.d: New file.
1576         * testsuite/gas/i386/iamcu-4.s: Likewise.
1577         * testsuite/gas/i386/iamcu-5.d: Likewise.
1578         * testsuite/gas/i386/iamcu-5.s: Likewise.
1579         * testsuite/gas/i386/iamcu-inval-2.l: Removed.
1580         * testsuite/gas/i386/iamcu-inval-2.s: Likewise.
1581         * testsuite/gas/i386/iamcu-inval-3.l: Likewise.
1582         * testsuite/gas/i386/iamcu-inval-3.s: Likewise.
1584 2016-09-07  Richard Earnshaw  <rearnsha@arm.com>
1586         * config/tc-arm.c ((arm_cpus): Use ARM_ARCH_V8A_CRC for all
1587         ARMv8-A CPUs except xgene1.
1589 2016-08-31  Alan Modra  <amodra@gmail.com>
1591         * config/tc-ppc.c (md_assemble): Set sh_flags for VLE.  Test
1592         ppc_cpu rather than calling ppc_mach to determine VLE mode.
1593         (ppc_frag_check, ppc_handle_align): Likewise use ppc_cpu.
1595 2016-08-26  Jose E. Marchesi  <jose.marchesi@oracle.com>
1597         * testsuite/gas/sparc/crypto.d: Rename invalid opcode camellia_fi
1598         to camellia_fl.
1599         * testsuite/gas/sparc/crypto.s: Likewise.
1601 2016-08-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1603         * config/tc-arm.c (v7m_psrs): Add MSPLIM, PSPLIM, MSPLIM_NS,
1604         PSPLIM_NS, PRIMASK_NS, BASEPRI_NS, FAULTMASK_NS, CONTROL_NS, SP_NS and
1605         their lowecase counterpart special registers.  Write register
1606         identifier in hex.
1607         * testsuite/gas/arm/archv8m-cmse-msr.s: Reorganize tests per
1608         operation, special register and then case.  Use different register for
1609         each operation.  Add tests for new special registers.
1610         * testsuite/gas/arm/archv8m-cmse-msr-base.d: Adapt expected result
1611         accordingly.
1612         * testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise.
1613         * testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise.
1615 2016-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1617         * config/tc-arm.c (v7m_psrs): Remove msp_s, MSP_S, psp_s and PSP_S
1618         special registers.
1619         * testsuite/gas/arm/archv8m-cmse-msr.s: Remove test for above special
1620         registers.
1621         * testsuite/gas/arm/archv8m-cmse-msr-base.d: Likewise.
1622         * testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise.
1623         * testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise.
1625 2016-08-24  H.J. Lu  <hongjiu.lu@intel.com>
1627         * config/tc-i386.c (cpu_arch): Add .ptwrite.
1628         * doc/c-i386.texi: Document ptwrite and .ptwrite.
1629         * testsuite/gas/i386/i386.exp: Run ptwrite, ptwrite-intel,
1630         x86-64-ptwrite and x86-64-ptwrite-intel.
1631         * testsuite/gas/i386/ptwrite-intel.d: New file.
1632         * testsuite/gas/i386/ptwrite.d: Likewise.
1633         * testsuite/gas/i386/ptwrite.s: Likewise.
1634         * testsuite/gas/i386/x86-64-ptwrite-intel.d: Likewise.
1635         * testsuite/gas/i386/x86-64-ptwrite.d: Likewise.
1636         * testsuite/gas/i386/x86-64-ptwrite.s: Likewise.
1638 2016-08-19  Tamar Christina  <tamar.christina@arm.com>
1640         * config/tc-arm.c (do_co_reg2c): Added constraint.
1641         * testsuite/gas/arm/dest-unpredictable.s: New.
1642         * testsuite/gas/arm/dest-unpredictable.l: New.
1643         * testsuite/gas/arm/dest-unpredictable.d: New.
1645 2016-08-19  Nick Clifton  <nickc@redhat.com>
1647         * testsuite/gas/i386/ilp32/x86-64-unwind.d: Adjust expected
1648         ordering of sections.
1649         * testsuite/gas/i386/x86-64-unwind.d: Likewise.
1650         * testsuite/gas/ia64/alias-ilp32.d: Likewise.
1651         * testsuite/gas/ia64/alias.d: Likewise.
1652         * testsuite/gas/ia64/group-1.d: Likewise.
1653         * testsuite/gas/ia64/group-2.d: Likewise.
1654         * testsuite/gas/ia64/secname-ilp32.d: Likewise.
1655         * testsuite/gas/ia64/secname.d: Likewise.
1656         * testsuite/gas/ia64/unwind-ilp32.d: Likewise.
1657         * testsuite/gas/ia64/unwind.d: Likewise.
1658         * testsuite/gas/ia64/xdata-ilp32.d: Likewise.
1659         * testsuite/gas/ia64/xdata.d: Likewise.
1660         * testsuite/gas/mmix/bspec-1.d: Likewise.
1661         * testsuite/gas/mmix/bspec-2.d: Likewise.
1662         * testsuite/gas/mmix/byte-1.d: Likewise.
1663         * testsuite/gas/mmix/loc-1.d: Likewise.
1664         * testsuite/gas/mmix/loc-2.d: Likewise.
1665         * testsuite/gas/mmix/loc-3.d: Likewise.
1666         * testsuite/gas/mmix/loc-4.d: Likewise.
1667         * testsuite/gas/mmix/loc-5.d: Likewise.
1668         * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
1670 2016-08-11  Richard Sandiford  <richard.sandiford@arm.com>
1672         * config/tc-aarch64.c (parse_aarch64_imm_float): Reject -0.0.
1673         * testsuite/gas/aarch64/illegal.s, testsuite/gas/aarch64/illegal.l:
1674         Add tests for -0.0.  Add an end-of-file comment.
1676 2016-08-05  Nick Clifton  <nickc@redhat.com>
1678         PR gas/20429
1679         * config/tc-arm.c (do_vfp_nsyn_push): Check that no more than 16
1680         registers are pushed.
1681         (do_vfp_nsyn_pop): Check that no more than 16 registers are
1682         popped.
1683         * testsuite/gas/arm/pr20429.s: New test.
1684         * testsuite/gas/arm/pr20429.d: New test driver.
1685         * testsuite/gas/arm/pr20429.1: Expected error output.
1687         PR gas/20364
1688         * config/tc-aarch64.c (s_ltorg): Change the mapping state after
1689         aligning the frag.
1690         (aarch64_init): Treat rs_align frags in code sections as
1691         containing code, not data.
1692         * testsuite/gas/aarch64/pr20364.s: New test.
1693         * testsuite/gas/aarch64/pr20364.d: New test driver.
1695 2016-08-04  Stefan Trleman  <stefan.teleman@oracle.com>
1697         PR gas/20427
1698         * config/tc-sparc.c (cons_fix_new_sparc): Prevent the generation
1699         of 64-bit relocation types when assembling for a 32-bit Solaris
1700         target.
1702 2016-07-27  Jose E. Marchesi  <jose.marchesi@oracle.com>
1704         * testsuite/gas/sparc/sparc.exp: Use is_elf_format to discriminate
1705         ELF targets.
1706         Run natural, natural-32, pr4587, ticc-imm-reg, v8-movwr-imm,
1707         pause, save-args, cbcond, cfr, crypto edge, flush, hpcvis3, ima,
1708         ld_st_fsr, ldtw_sttw, ldd_std, ldx_stx, ldx_efsr, mwait, mcdper,
1709         sparc5vis4, xcrypto, v9branch1 and imm-plus-rreg only in ELF
1710         targets.
1711         (sparc_elf_setup): Delete.
1712         * testsuite/gas/sparc/save-args.d: Fix a copy-paste typo in the
1713         test's #name entry.
1715 2016-07-27  Maciej W. Rozycki  <macro@imgtec.com>
1717         * config/tc-mips.c (RELAX_MICROMIPS_ENCODE): Add `nods' flag.
1718         (RELAX_MICROMIPS_RELAX32, RELAX_MICROMIPS_TOOFAR16)
1719         (RELAX_MICROMIPS_MARK_TOOFAR16, RELAX_MICROMIPS_CLEAR_TOOFAR16)
1720         (RELAX_MICROMIPS_TOOFAR32, RELAX_MICROMIPS_MARK_TOOFAR32)
1721         (RELAX_MICROMIPS_CLEAR_TOOFAR32): Shift bits.
1722         (get_append_method): Also return APPEND_ADD_COMPACT for
1723         microMIPS instructions.
1724         (find_altered_mips16_opcode): Exclude macros from matching.
1725         Factor code out...
1726         (find_altered_opcode): ... to this new function.
1727         (find_altered_micromips_opcode): New function.
1728         (frag_branch_delay_slot_size): Likewise.
1729         (append_insn): Handle microMIPS branch/jump compaction.
1730         (macro_start): Likewise.
1731         (relaxed_micromips_32bit_branch_length): Likewise.
1732         (md_convert_frag): Likewise.
1733         * testsuite/gas/mips/micromips.s: Add conditional explicit NOPs
1734         for delay slot filling.
1735         * testsuite/gas/mips/micromips-b16.s: Add explicit NOPs for
1736         delay slot filling.
1737         * testsuite/gas/mips/micromips-size-1.s: Likewise.
1738         * testsuite/gas/mips/micromips.l: Adjust line numbers.
1739         * testsuite/gas/mips/micromips-warn.l: Likewise.
1740         * testsuite/gas/mips/micromips-size-1.l: Likewise.
1741         * testsuite/gas/mips/micromips.d: Adjust padding.
1742         * testsuite/gas/mips/micromips-trap.d: Likewise.
1743         * testsuite/gas/mips/micromips-insn32.d: Likewise.
1744         * testsuite/gas/mips/micromips-noinsn32.d: Likewise.
1745         * testsuite/gas/mips/micromips@beq.d: Update patterns for
1746         branch/jump compaction.
1747         * testsuite/gas/mips/micromips@bge.d: Likewise.
1748         * testsuite/gas/mips/micromips@bgeu.d: Likewise.
1749         * testsuite/gas/mips/micromips@blt.d: Likewise.
1750         * testsuite/gas/mips/micromips@bltu.d: Likewise.
1751         * testsuite/gas/mips/micromips@branch-misc-4.d: Likewise.
1752         * testsuite/gas/mips/micromips@branch-misc-4-64.d: Likewise.
1753         * testsuite/gas/mips/micromips@branch-misc-5.d: Likewise.
1754         * testsuite/gas/mips/micromips@branch-misc-5pic.d: Likewise.
1755         * testsuite/gas/mips/micromips@branch-misc-5-64.d: Likewise.
1756         * testsuite/gas/mips/micromips@branch-misc-5pic-64.d: Likewise.
1757         * testsuite/gas/mips/micromips@jal-svr4pic-local.d: Likewise.
1758         * testsuite/gas/mips/micromips@jal-svr4pic-local-n32.d:
1759         Likewise.
1760         * testsuite/gas/mips/micromips@jal-svr4pic-local-n64.d:
1761         Likewise.
1762         * testsuite/gas/mips/micromips@loc-swap.d: Likewise.
1763         * testsuite/gas/mips/micromips@loc-swap-dis.d: Likewise.
1764         * testsuite/gas/mips/micromips@relax.d: Likewise.
1765         * testsuite/gas/mips/micromips@relax-at.d: Likewise.
1766         * testsuite/gas/mips/micromips@relax-swap3.d: Likewise.
1767         * testsuite/gas/mips/branch-extern-2.d: Likewise.
1768         * testsuite/gas/mips/branch-extern-4.d: Likewise.
1769         * testsuite/gas/mips/branch-section-2.d: Likewise.
1770         * testsuite/gas/mips/branch-section-4.d: Likewise.
1771         * testsuite/gas/mips/branch-weak-2.d: Likewise.
1772         * testsuite/gas/mips/branch-weak-5.d: Likewise.
1773         * testsuite/gas/mips/micromips-branch-absolute.d: Likewise.
1774         * testsuite/gas/mips/micromips-branch-absolute-n32.d: Likewise.
1775         * testsuite/gas/mips/micromips-branch-absolute-n64.d: Likewise.
1776         * testsuite/gas/mips/micromips-branch-absolute-addend.d:
1777         Likewise.
1778         * testsuite/gas/mips/micromips-branch-absolute-addend-n32.d:
1779         Likewise.
1780         * testsuite/gas/mips/micromips-branch-absolute-addend-n64.d:
1781         Likewise.
1782         * testsuite/gas/mips/micromips-compact.d: New test.
1783         * testsuite/gas/mips/mips.exp: Run the new test.
1785 2016-07-27  Graham Markall  <graham.markall@embecosm.com>
1787         * config/tc-arc.c: Add new global arc_addrtype_hash.
1788         Define O_colon and O_addrtype.
1789         (debug_exp): Add O_colon and O_addrtype.
1790         (tokenize_arguments): Handle colon and address type
1791         tokens.
1792         (declare_addrtype): New function.
1793         (md_begin): Initialise arc_addrtype_hash.
1794         (arc_parse_name): Add lookup of address types.
1795         (assemble_insn): Handle colons and address types by
1796         ignoring them.
1797         * testsuite/gas/arc/nps400-8.s: New file.
1798         * testsuite/gas/arc/nps400-8.d: New file.
1799         * testsuite/gas/arc/nps400-8.s: Add PMU instruction tests.
1800         * testsuite/gas/arc/nps400-8.d: Add expected PMU
1801         instruction output.
1803 2016-07-26  Maciej W. Rozycki  <macro@imgtec.com>
1805         * config/tc-mips.c (RELAX_MICROMIPS_ENCODE): Add `insn32' flag.
1806         (RELAX_MICROMIPS_INSN32): New macro.
1807         (RELAX_MICROMIPS_UNCOND, RELAX_MICROMIPS_COMPACT)
1808         (RELAX_MICROMIPS_LINK, RELAX_MICROMIPS_RELAX32)
1809         (RELAX_MICROMIPS_TOOFAR16, RELAX_MICROMIPS_MARK_TOOFAR16)
1810         (RELAX_MICROMIPS_CLEAR_TOOFAR16, RELAX_MICROMIPS_TOOFAR32)
1811         (RELAX_MICROMIPS_MARK_TOOFAR32, RELAX_MICROMIPS_CLEAR_TOOFAR32):
1812         Shift bits.
1813         (append_insn): Record `mips_opts.insn32' with relaxed microMIPS
1814         branches.
1815         (relaxed_micromips_32bit_branch_length): Handle the `insn32'
1816         mode.
1817         (md_convert_frag): Likewise.
1818         * testsuite/gas/mips/micromips-branch-relax.s: Add `insn32'
1819         conditionals.
1820         * testsuite/gas/mips/micromips-branch-relax.l: Update line
1821         numbers accordingly.
1822         * testsuite/gas/mips/micromips-branch-relax-pic.l: Likewise.
1823         * testsuite/gas/mips/micromips-branch-relax-insn32.d: New test.
1824         * testsuite/gas/mips/micromips-branch-relax-insn32-pic.d: New
1825         test.
1826         * testsuite/gas/mips/micromips-branch-relax-insn32.l: New
1827         stderr output.
1828         * testsuite/gas/mips/micromips-branch-relax-insn32-pic.l: New
1829         stderr output.
1830         * testsuite/gas/mips/mips.exp: Run the new tests.
1832 2016-07-21  H.J. Lu  <hongjiu.lu@intel.com>
1834         * configure: Regenerated.
1836 2016-07-20  Claudiu Zissulescu  <claziss@synopsys.com>
1838         * testsuite/gas/arc/dsp.d: New file.
1839         * testsuite/gas/arc/dsp.s: Likewise.
1840         * testsuite/gas/arc/fpu.d: Likewise.
1841         * testsuite/gas/arc/fpu.s: Likewise.
1842         * testsuite/gas/arc/ext2op.d: Add specific disassembler option.
1843         * testsuite/gas/arc/ext3op.d: Likewise.
1844         * testsuite/gas/arc/tdpfp.d: Likewise.
1845         * testsuite/gas/arc/tfpuda.d: Likewise.
1847 2016-07-20  Maciej W. Rozycki  <macro@imgtec.com>
1849         * config/tc-mips.c (mips_force_relocation): Remove
1850         R_MIPS_PC26_S2 and R_MIPS_PC21_S2.
1852 2016-07-19  Maciej W. Rozycki  <macro@imgtec.com>
1854         * config/tc-mips.c (mips_force_relocation, mips_fix_adjustable):
1855         Adjust comments for BAL to JALX linker conversion.
1856         (fix_bad_cross_mode_branch_p): Accept cross-mode BAL.
1857         * testsuite/gas/mips/unaligned-branch-1.l: Update error messages
1858         expected.
1859         * testsuite/gas/mips/unaligned-branch-micromips-1.l: Likewise.
1860         * testsuite/gas/mips/branch-local-4.d: New test.
1861         * testsuite/gas/mips/branch-local-n32-4.d: New test.
1862         * testsuite/gas/mips/branch-local-n64-4.d: New test.
1863         * testsuite/gas/mips/branch-addend.d: New test.
1864         * testsuite/gas/mips/branch-addend-n32.d: New test.
1865         * testsuite/gas/mips/branch-addend-n64.d: New test.
1866         * testsuite/gas/mips/branch-local-4.s: New test source.
1867         * testsuite/gas/mips/branch-addend.s: New test source.
1868         * testsuite/gas/mips/mips.exp: Run the new tests.
1870 2016-07-19  Maciej W. Rozycki  <macro@imgtec.com>
1872         * config/tc-mips.c (mips_force_relocation): Also retain branch
1873         relocations against MIPS16 and microMIPS symbols.
1874         (fix_bad_cross_mode_jump_p): New function.
1875         (fix_bad_same_mode_jalx_p): Likewise.
1876         (fix_bad_misaligned_jump_p): Likewise.
1877         (fix_bad_cross_mode_branch_p): Likewise.
1878         (fix_bad_misaligned_branch_p): Likewise.
1879         (fix_validate_branch): Likewise.
1880         (md_apply_fix) <BFD_RELOC_MIPS_JMP, BFD_RELOC_MIPS16_JMP>
1881         <BFD_RELOC_MICROMIPS_JMP>: Separate from BFD_RELOC_MIPS_SHIFT5,
1882         etc.  Verify the ISA mode and alignment of the jump target.
1883         <BFD_RELOC_MIPS_21_PCREL_S2>: Replace the inline alignment check
1884         with a call to `fix_validate_branch'.
1885         <BFD_RELOC_MIPS_26_PCREL_S2>: Likewise.
1886         <BFD_RELOC_16_PCREL_S2>: Likewise.
1887         <BFD_RELOC_MICROMIPS_7_PCREL_S1, BFD_RELOC_MICROMIPS_10_PCREL_S1>
1888         <BFD_RELOC_MICROMIPS_16_PCREL_S1>: Retain the original addend.
1889         Verify the ISA mode and alignment of the branch target.
1890         (md_convert_frag): Verify the ISA mode and alignment of resolved
1891         MIPS16 branch targets.
1892         * testsuite/gas/mips/branch-misc-1.s: Annotate non-instruction
1893         branch targets with `.insn'.
1894         * testsuite/gas/mips/branch-misc-5.s: Likewise.
1895         * testsuite/gas/mips/micromips@branch-misc-5-64.d: Update
1896         accordingly.
1897         * testsuite/gas/mips/micromips@branch-misc-5pic-64.d: Likewise.
1898         * testsuite/gas/mips/micromips-branch-relax.s: Annotate
1899         non-instruction branch target with `.insn'.
1900         * testsuite/gas/mips/micromips.s: Replace microMIPS JALX targets
1901         with external symbols.
1902         * testsuite/gas/mips/micromips-insn32.d: Update accordingly.
1903         * testsuite/gas/mips/micromips-noinsn32.d: Likewise.
1904         * testsuite/gas/mips/micromips-trap.d: Likewise.
1905         * testsuite/gas/mips/micromips.d: Likewise.
1906         * testsuite/gas/mips/mips16.s: Annotate non-instruction branch
1907         targets with `.insn'.
1908         * testsuite/gas/mips/mips16.d: Update accordingly.
1909         * testsuite/gas/mips/mips16-64.d: Likewise.
1910         * testsuite/gas/mips/mips16-dwarf2.s: Annotate non-instruction
1911         branch target with `.insn'.
1912         * testsuite/gas/mips/relax-swap3.s: Likewise.
1913         * testsuite/gas/mips/branch-local-2.l: New list test.
1914         * testsuite/gas/mips/branch-local-3.l: New list test.
1915         * testsuite/gas/mips/branch-local-n32-2.l: New list test.
1916         * testsuite/gas/mips/branch-local-n32-3.l: New list test.
1917         * testsuite/gas/mips/branch-local-n64-2.l: New list test.
1918         * testsuite/gas/mips/branch-local-n64-3.l: New list test.
1919         * testsuite/gas/mips/unaligned-jump-1.l: New list test.
1920         * testsuite/gas/mips/unaligned-jump-2.l: New list test.
1921         * testsuite/gas/mips/unaligned-jump-3.d: New test.
1922         * testsuite/gas/mips/unaligned-jump-mips16-1.l: New list test.
1923         * testsuite/gas/mips/unaligned-jump-mips16-2.l: New list test.
1924         * testsuite/gas/mips/unaligned-jump-mips16-3.d: New test.
1925         * testsuite/gas/mips/unaligned-jump-micromips-1.l: New list
1926         test.
1927         * testsuite/gas/mips/unaligned-jump-micromips-2.l: New list
1928         test.
1929         * testsuite/gas/mips/unaligned-jump-micromips-3.d: New test.
1930         * testsuite/gas/mips/unaligned-branch-1.l: New list test.
1931         * testsuite/gas/mips/unaligned-branch-2.l: New list test.
1932         * testsuite/gas/mips/unaligned-branch-3.d: New test.
1933         * testsuite/gas/mips/unaligned-branch-r6-1.l: New list test.
1934         * testsuite/gas/mips/unaligned-branch-r6-2.l: New list test.
1935         * testsuite/gas/mips/unaligned-branch-r6-3.l: New list test.
1936         * testsuite/gas/mips/unaligned-branch-r6-4.l: New list test.
1937         * testsuite/gas/mips/unaligned-branch-r6-5.d: New test.
1938         * testsuite/gas/mips/unaligned-branch-r6-6.d: New test.
1939         * testsuite/gas/mips/unaligned-branch-mips16-1.l: New list test.
1940         * testsuite/gas/mips/unaligned-branch-mips16-2.l: New list test.
1941         * testsuite/gas/mips/unaligned-branch-mips16-3.d: New test.
1942         * testsuite/gas/mips/unaligned-branch-micromips-1.l: New list
1943         test.
1944         * testsuite/gas/mips/unaligned-branch-micromips-2.l: New list
1945         test.
1946         * testsuite/gas/mips/unaligned-branch-micromips-3.d: New test.
1947         * testsuite/gas/mips/branch-local-2.s: New test source.
1948         * testsuite/gas/mips/branch-local-3.s: New test source.
1949         * testsuite/gas/mips/branch-local-n32-2.s: New test source.
1950         * testsuite/gas/mips/branch-local-n32-3.s: New test source.
1951         * testsuite/gas/mips/branch-local-n64-2.s: New test source.
1952         * testsuite/gas/mips/branch-local-n64-3.s: New test source.
1953         * testsuite/gas/mips/unaligned-jump-1.s: New test source.
1954         * testsuite/gas/mips/unaligned-jump-2.s: New test source.
1955         * testsuite/gas/mips/unaligned-jump-mips16-1.s: New test source.
1956         * testsuite/gas/mips/unaligned-jump-mips16-2.s: New test source.
1957         * testsuite/gas/mips/unaligned-jump-micromips-1.s: New test
1958         source.
1959         * testsuite/gas/mips/unaligned-jump-micromips-2.s: New test
1960         source.
1961         * testsuite/gas/mips/unaligned-branch-1.s: New test source.
1962         * testsuite/gas/mips/unaligned-branch-2.s: New test source.
1963         * testsuite/gas/mips/unaligned-branch-r6-1.s: New test source.
1964         * testsuite/gas/mips/unaligned-branch-r6-2.s: New test source.
1965         * testsuite/gas/mips/unaligned-branch-r6-3.s: New test source.
1966         * testsuite/gas/mips/unaligned-branch-r6-4.s: New test source.
1967         * testsuite/gas/mips/unaligned-branch-mips16-1.s: New test
1968         source.
1969         * testsuite/gas/mips/unaligned-branch-mips16-2.s: New test
1970         source.
1971         * testsuite/gas/mips/unaligned-branch-micromips-1.s: New test
1972         source.
1973         * testsuite/gas/mips/unaligned-branch-micromips-2.s: New test
1974         source.
1975         * testsuite/gas/mips/mips.exp: Run the new tests.
1977 2016-07-19  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
1979         * config/tc-nds32.c (struct nds32_pseudo_opcode): Make pseudo_val
1980         unsigned int.
1981         (do_pseudo_b): Adjust.
1982         (do_pseudo_bal): Likewise.
1983         (do_pseudo_bge): Likewise.
1984         (do_pseudo_bges): Likewise.
1985         (do_pseudo_bgt): Likewise.
1986         (do_pseudo_bgts): Likewise.
1987         (do_pseudo_ble): Likewise.
1988         (do_pseudo_bles): Likewise.
1989         (do_pseudo_blt): Likewise.
1990         (do_pseudo_blts): Likewise.
1991         (do_pseudo_br): Likewise.
1992         (do_pseudo_bral): Likewise.
1993         (do_pseudo_la): Likewise.
1994         (do_pseudo_li): Likewise.
1995         (do_pseudo_ls_bhw): Likewise.
1996         (do_pseudo_ls_bhwp): Likewise.
1997         (do_pseudo_ls_bhwpc): Likewise.
1998         (do_pseudo_ls_bhwi): Likewise.
1999         (do_pseudo_move): Likewise.
2000         (do_pseudo_neg): Likewise.
2001         (do_pseudo_not): Likewise.
2002         (do_pseudo_pushpopm): Likewise.
2003         (do_pseudo_pushpop): Likewise.
2004         (do_pseudo_v3push): Likewise.
2005         (do_pseudo_v3pop): Likewise.
2006         (do_pseudo_pushpop_stack): Likewise.
2007         (do_pseudo_push_bhwd): Likewise.
2008         (do_pseudo_pop_bhwd): Likewise.
2009         (do_pseudo_pusha): Likewise.
2010         (do_pseudo_pushi): Likewise.
2012 2016-07-19  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2014         * config/tc-sparc.c (struct pop_entry): Make the type of reloc
2015         bfd_reloc_code_real_type.
2017 2016-07-19  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2019         * config/tc-sparc.c (pop_table): Remove sentinel.
2020         (NUM_PERC_ENTRIES): Use ARRAY_SIZE on pop_table.
2021         (md_begin): Adjust.
2023 2016-07-19  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2025         * config/tc-z8k.c (newfix): Make type of type argument
2026         bfd_reloc_code_real_type.
2027         (apply_fix): Likewise.
2029 2016-07-16  Alan Modra  <amodra@gmail.com>
2031         * config/tc-epiphany.c: Don't include libbfd.h.
2032         * config/tc-frv.c: Likewise.
2033         * config/tc-ip2k.c: Likewise.
2034         * config/tc-iq2000.c: Likewise.
2035         * config/tc-m32c.c: Likewise.
2036         * config/tc-mep.c: Likewise.
2037         * config/tc-mt.c: Likewise.
2038         * config/tc-nios2.c: Likewise.
2040 2016-07-16  Alan Modra  <amodra@gmail.com>
2042         * config/bfin-parse.y: Don't include libbfd.h.
2043         * config/tc-bfin.c: Likewise.
2044         * config/tc-rl78.c: Likewise.
2045         * config/tc-rx.c: Likewise.
2046         * config/tc-metag.c: Likewise.
2047         (create_dspreg_htabs, create_scond_htab): Use gas_assert not BFD_ASSERT.
2048         * Makefile.am: Update dependencies.
2049         * Makefile.in: Regenerate.
2051 2016-07-14  Maciej W. Rozycki  <macro@imgtec.com>
2053         * config/tc-mips.h (TC_FORCE_RELOCATION_ABS): New macro.
2054         (mips_force_relocation_abs): New prototype.
2055         * config/tc-mips.c (mips_force_relocation_abs): New function.
2056         * testsuite/gas/mips/branch-absolute.d: Adjust dump patterns.
2057         * testsuite/gas/mips/mips16-branch-absolute.d: Likewise.
2058         * testsuite/gas/mips/micromips-branch-absolute-n32.d: Likewise.
2059         * testsuite/gas/mips/micromips-branch-absolute-n64.d: Likewise.
2060         * testsuite/gas/mips/micromips-branch-absolute-addend-n32.d:
2061         Likewise.
2062         * testsuite/gas/mips/micromips-branch-absolute-addend-n64.d:
2063         Likewise.
2064         * testsuite/gas/mips/branch-absolute-addend.d: New test.
2065         * testsuite/gas/mips/mips16-branch-absolute-addend.d: New test.
2066         * testsuite/gas/mips/micromips-branch-absolute-addend.d: New
2067         test.
2068         * testsuite/gas/mips/mips.exp: Run the new tests.
2070 2016-07-14  Maciej W. Rozycki  <macro@imgtec.com>
2072         * config/tc-mips.c (md_apply_fix) <BFD_RELOC_MIPS16_16_PCREL_S1>
2073         <BFD_RELOC_MICROMIPS_7_PCREL_S1, BFD_RELOC_MICROMIPS_10_PCREL_S1>
2074         <BFD_RELOC_MICROMIPS_16_PCREL_S1>: Keep the ISA bit in the
2075         addend calculated.
2076         * testsuite/gas/mips/mips16-branch-absolute.s: Set the ISA bit
2077         in `bar', export `foo'.
2078         * testsuite/gas/mips/mips16-branch-absolute.d: Adjust
2079         accordingly.
2080         * testsuite/gas/mips/mips16-branch-absolute-n32.d: Likewise.
2081         * testsuite/gas/mips/mips16-branch-absolute-n64.d: Likewise.
2082         * testsuite/gas/mips/mips16-branch-absolute-addend-n32.d:
2083         Likewise.
2084         * testsuite/gas/mips/mips16-branch-absolute-addend-n64.d:
2085         Likewise.
2087 2016-07-14  Maciej W. Rozycki  <macro@imgtec.com>
2089         * testsuite/gas/mips/mips16-branch-absolute.d: Update patterns.
2090         * testsuite/gas/mips/branch-absolute.d: New test.
2091         * testsuite/gas/mips/branch-absolute-n32.d: New test.
2092         * testsuite/gas/mips/branch-absolute-n64.d: New test.
2093         * testsuite/gas/mips/branch-absolute-addend-n32.d: New test.
2094         * testsuite/gas/mips/branch-absolute-addend-n64.d: New test.
2095         * testsuite/gas/mips/mips16-branch-absolute-n32.d: New test.
2096         * testsuite/gas/mips/mips16-branch-absolute-n64.d: New test.
2097         * testsuite/gas/mips/mips16-branch-absolute-addend-n32.d: New
2098         test.
2099         * testsuite/gas/mips/mips16-branch-absolute-addend-n64.d: New
2100         test.
2101         * testsuite/gas/mips/micromips-branch-absolute.d: New test.
2102         * testsuite/gas/mips/micromips-branch-absolute-n32.d: New test.
2103         * testsuite/gas/mips/micromips-branch-absolute-n64.d: New test.
2104         * testsuite/gas/mips/micromips-branch-absolute-addend-n32.d: New
2105         test.
2106         * testsuite/gas/mips/micromips-branch-absolute-addend-n64.d: New
2107         test.
2108         * testsuite/gas/mips/branch-absolute.s: New test source.
2109         * testsuite/gas/mips/branch-absolute-addend.s: New test source.
2110         * testsuite/gas/mips/mips16-branch-absolute-addend.s: New test
2111         source.
2112         * testsuite/gas/mips/micromips-branch-absolute.s: New test
2113         source.
2114         * testsuite/gas/mips/micromips-branch-absolute-addend.s: New
2115         test source.
2116         * testsuite/gas/mips/mips.exp: Run the new tests.
2118 2016-07-13  Maciej W. Rozycki  <macro@imgtec.com>
2120         * testsuite/gas/mips/nal-1.d: New test.
2121         * testsuite/gas/mips/mipsr6@nal-1.d: New test.
2122         * testsuite/gas/mips/nal-2.d: New test.
2123         * testsuite/gas/mips/mipsr6@nal-2.d: New test.
2124         * testsuite/gas/mips/nal.s: New test source.
2125         * testsuite/gas/mips/mips.exp: Run the new tests.
2127 2016-07-12  Jose E. Marchesi  <jose.marchesi@oracle.com>
2129         * testsuite/gas/sparc/ldtxa.s: New file.
2130         * testsuite/gas/sparc/ldtxa.d: Likewise.
2131         * testsuite/gas/sparc/sparc.exp: Execute the ldtxa test.
2133 2016-07-11  Claudiu Zissulescu  <claziss@synopsys.com>
2135         * config/tc-arc.c (arc_reloc_op_tag): Allow complex ops for dtpoff.
2136         (tc_gen_reloc): Remove passing DTPOFF base info into reloc addendum
2137         as it is no longer needed.
2139 2016-07-08  Maciej W. Rozycki  <macro@imgtec.com>
2141         * config/tc-mips.c (append_insn): Remove extraneous
2142         `install_insn' call.
2144 2016-07-04  Jan Beulich  <jbeulich@suse.com>
2146         * config/tc-i386.c (check_qword_reg): Correct register kind
2147         checked.
2148         * testsuite/gas/i386/x86-64-suffix-bad.s: Add q-suffix with
2149         16-bit register cases.
2150         * testsuite/gas/i386/x86-64-suffix-bad.l: Adjust expectations.
2153 2016-07-02  Maciej W. Rozycki  <macro@imgtec.com>
2155         * testsuite/gas/mips/ecoff@ld.d: Remove test.
2156         * testsuite/gas/mips/ecoff@ld-forward.d: Remove test.
2157         * testsuite/gas/mips/ecoff@ld-zero-3.d: Remove test.
2158         * testsuite/gas/mips/ecoff@sd.d: Remove test.
2159         * testsuite/gas/mips/ecoff@sd-forward.d: Remove test.
2160         * testsuite/gas/mips/beq.d: Remove a.out and ECOFF support from
2161         reloc patterns.
2162         * testsuite/gas/mips/mipsr6@beq.d: Likewise.
2163         * testsuite/gas/mips/bge.d: Likewise.
2164         * testsuite/gas/mips/mipsr6@bge.d: Likewise.
2165         * testsuite/gas/mips/bgeu.d: Likewise.
2166         * testsuite/gas/mips/mipsr6@bgeu.d: Likewise.
2167         * testsuite/gas/mips/blt.d: Likewise.
2168         * testsuite/gas/mips/mipsr6@blt.d: Likewise.
2169         * testsuite/gas/mips/bltu.d: Likewise.
2170         * testsuite/gas/mips/mipsr6@bltu.d: Likewise.
2171         * testsuite/gas/mips/branch-likely.d: Likewise.
2172         * testsuite/gas/mips/la.d: Likewise.
2173         * testsuite/gas/mips/lb.d: Likewise.
2174         * testsuite/gas/mips/lifloat.d: Likewise.
2175         * testsuite/gas/mips/sb.d: Likewise.
2176         * testsuite/gas/mips/uld.d: Likewise.
2177         * testsuite/gas/mips/ulh.d: Likewise.
2178         * testsuite/gas/mips/ulw.d: Likewise.
2179         * testsuite/gas/mips/usd.d: Likewise.
2180         * testsuite/gas/mips/ush.d: Likewise.
2181         * testsuite/gas/mips/usw.d: Likewise.
2183 2016-07-02  Maciej W. Rozycki  <macro@imgtec.com>
2185         * testsuite/gas/mips/branch-misc-2.s: Move non
2186         locally-defined-global symbol tests...
2187         * testsuite/gas/mips/branch-misc-5.s: ... to this new test.
2188         * testsuite/gas/mips/branch-misc-2.d: Update accordingly.
2189         * testsuite/gas/mips/branch-misc-2-64.d: Likewise.
2190         * testsuite/gas/mips/branch-misc-2pic.d: Likewise.
2191         * testsuite/gas/mips/branch-misc-2pic-64.d: Likewise.
2192         * testsuite/gas/mips/mipsr6@branch-misc-2-64.d: Likewise.
2193         * testsuite/gas/mips/mipsr6@branch-misc-2pic-64.d: Likewise.
2194         * testsuite/gas/mips/micromips@branch-misc-2.d: Likewise.
2195         * testsuite/gas/mips/micromips@branch-misc-2-64.d: Likewise.
2196         * testsuite/gas/mips/micromips@branch-misc-2pic.d: Likewise.
2197         * testsuite/gas/mips/micromips@branch-misc-2pic-64.d: Likewise.
2198         * testsuite/gas/mips/branch-misc-5.d: New test.
2199         * testsuite/gas/mips/branch-misc-5pic.d: New test.
2200         * testsuite/gas/mips/branch-misc-5-64.d: New test.
2201         * testsuite/gas/mips/branch-misc-5pic-64.d: New test.
2202         * testsuite/gas/mips/mipsr6@branch-misc-5-64.d: New test.
2203         * testsuite/gas/mips/mipsr6@branch-misc-5pic-64.d: New test.
2204         * testsuite/gas/mips/micromips@branch-misc-5.d: New test.
2205         * testsuite/gas/mips/micromips@branch-misc-5pic.d: New test.
2206         * testsuite/gas/mips/micromips@branch-misc-5-64.d: New test.
2207         * testsuite/gas/mips/micromips@branch-misc-5pic-64.d: New test.
2208         * testsuite/gas/mips/mips.exp: Run the new tests.
2210 2016-07-02  Maciej W. Rozycki  <macro@imgtec.com>
2212         * testsuite/gas/mips/beq.s: Uncomment branches to undefined
2213         symbols.
2214         * testsuite/gas/mips/beq.d: Update accordingly.
2215         * testsuite/gas/mips/mipsr6@beq.d: Likewise.
2216         * testsuite/gas/mips/micromips@beq.d: Likewise.
2218 2016-07-02  Maciej W. Rozycki  <macro@imgtec.com>
2220         * testsuite/gas/mips/mips.exp: Restrict 64-bit `branch-mips'
2221         tests to NewABI targets.
2223 2016-07-02  Maciej W. Rozycki  <macro@imgtec.com>
2225         * testsuite/gas/mips/mips.exp: Group `branch-misc' tests
2226         together.
2228 2016-07-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2230         * config/tc-aarch64.c (struct aarch64_option_cpu_value_table): Add
2231         require field.
2232         (aarch64_features): Initialize require fields.
2233         (aarch64_parse_features): Handle dependencies.
2234         (aarch64_feature_enable_set, aarch64_feature_disable_set): New.
2235         (md_assemble): Use AARCH64_CPU_HAS_ALL_FEATURES.
2236         * testsuite/gas/aarch64/illegal-nofp16.s: New.
2237         * testsuite/gas/aarch64/illegal-nofp16.l: New.
2238         * testsuite/gas/aarch64/illegal-nofp16.d: New.
2240 2016-07-01  Nick Clifton  <nickc@redhat.com>
2242         * macro.c (macro_expand_body): Use a buffer big enough to hold an
2243         extremely large integer.
2245 2016-07-01  Jan Beulich  <jbeulich@suse.com>
2247         * testsuite/gas/i386/mpx-inval-2.l: Relax for COFF targets.
2249 2016-07-01  Tristan Gingold  <gingold@adacore.com>
2251         * NEWS: Add marker for 2.27.
2253 2016-07-01  Jan Beulich  <jbeulich@suse.com>
2255         * tc-i386.c (i386_index_check): Add special checks for bndmk,
2256         bndldx, and bndstx.
2257         * testsuite/gas/i386/mpx-inval-2.s: Add %rip and %eip relative
2258         as well as scaling by other than 1 tests.
2259         * testsuite/gas/i386/mpx-inval-2.l: Adjust accordingly.
2261 2016-07-01  Jan Beulich  <jbeulich@suse.com>
2263         * tc-i386.c (md_assemble): Alter address size checking for MPX
2264         instructions.
2265         * testsuite/gas/i386/mpx-inval-2.s: New.
2266         * testsuite/gas/i386/mpx-inval-2.l: New.
2267         * testsuite/gas/i386/i386.exp: Run new test.
2269 2016-07-01  Jan Beulich  <jbeulich@suse.com>
2271         PR gas/20318
2272         * config/tc-i386.c (match_template): Add char parameter,
2273         consumed in Intel mode for an extra suffix check.
2274         (md_assemble): New local variable mnem_suffix.
2275         * testsuite/gas/i386/suffix-bad.s: New.
2276         * testsuite/gas/i386/suffix-bad.l: New.
2277         * testsuite/gas/i386/i386.exp: Run new test (twice).
2279 2016-07-01  Jan Beulich  <jbeulich@suse.com>
2281         * testsuite/gas/i386/movz.s: New.
2282         * testsuite/gas/i386/movz32.d: New.
2283         * testsuite/gas/i386/movz64.d: New.
2284         * testsuite/gas/i386/i386.exp: Run new tests.
2286 2016-07-01  Jan Beulich  <jbeulich@suse.com>
2288         * config/tc-i386.c (struct _i386_insn): New field memop1_string.
2289         (md_assemble): Free first memory operand string.
2290         (i386_index_check): Use repprefixok to distingush xlat from
2291         other (real) string ops.
2292         (maybe_adjust_templates): New.
2293         (i386_att_operand). Call it. Store first memory operand string.
2294         * config/tc-i386-intel.c (i386_intel_operand): Likewise.
2295         * testsuite/gas/i386/intel-movs.s: New.
2296         * testsuite/gas/i386/intel-movs32.d: New.
2297         * testsuite/gas/i386/intel-movs64.d: New.
2298         * testsuite/gas/i386/i386.exp: Run new tests. Invoke as for
2299         64-bits tests with "--defsym x86_64=1 --strip-local-absolute".
2301 2016-06-30  Maciej W. Rozycki  <macro@imgtec.com>
2303         * config/tc-mips.c (get_append_method): Fix a comment typo.
2305 2016-06-30  Matthew Fortune <Matthew.Fortune@imgtec.com>
2306             Maciej W. Rozycki  <macro@imgtec.com>
2308         * config/tc-mips.c (append_insn) <APPEND_SWAP>: Do not special
2309         case MIPS16 handling.
2310         * testsuite/gas/mips/branch-swap-3.d: New test.
2311         * testsuite/gas/mips/branch-swap-4.d: New test.
2312         * testsuite/gas/mips/mips16@branch-swap-3.d: New test.
2313         * testsuite/gas/mips/mips16@branch-swap-4.d: New test.
2314         * testsuite/gas/mips/micromips@branch-swap-3.d: New test.
2315         * testsuite/gas/mips/micromips@branch-swap-4.d: New test.
2316         * testsuite/gas/mips/branch-swap-3.s: New test source.
2317         * testsuite/gas/mips/mips.exp: Run the new tests.
2319 2016-06-30  Maciej W. Rozycki  <macro@imgtec.com>
2321         * config/tc-mips.c (append_insn): Simplify non-MIPS16 branch
2322         swapping sequence.
2324 2016-06-30  Maciej W. Rozycki  <macro@imgtec.com>
2326         PR gas/20312
2327         * write.c (subsegs_finish_section): Force no section padding to
2328         alignment on failed assembly, always set last frag's alignment
2329         from section.
2330         * testsuite/gas/all/pr20312.l: New list test.
2331         * testsuite/gas/all/pr20312.s: New test source.
2332         * testsuite/gas/all/gas.exp: Run the new test
2334 2016-06-30  Andrew Burgess  <andrew.burgess@embecosm.com>
2336         * config.in (TARGET_WITH_CPU): Undefine.
2337         * configure.ac: Add --with-cpu support, and define in config.h.
2338         * configure: Regenerate.
2339         * config/tc-arc.c: Use TARGET_WITH_CPU to select default CPU.
2340         * NEWS: Mention new configure option.
2342 2016-06-30  Matthew Wahab  <matthew.wahab@arm.com>
2344         * testsuite/gas/arm/armv8_2+rdma.d: New.
2346 2016-06-29  H.J. Lu  <hongjiu.lu@intel.com>
2348         * NEWS: Mention --enable-compressed-debug-sections=gas is the
2349         default for Linux/x86 targets.
2350         * configure.tgt (ac_default_compressed_debug_sections): Default
2351         to yes for Linux/x86 targets.
2353 2016-06-29  Maciej W. Rozycki  <macro@imgtec.com>
2355         * write.c: Remove "libbfd.h" inclusion.
2357 2016-06-28  Maciej W. Rozycki  <macro@imgtec.com>
2359         * testsuite/gas/elf/elf.exp: Use `supports_gnu_unique' with the
2360         `type' test.
2362 2016-06-28  Alan Modra  <amodra@gmail.com>
2364         PR gas/20247
2365         * testsuite/gas/elf/section11.s: Don't start directives in first column.
2367 2016-06-28  Richard Sandiford  <richard.sandiford@arm.com>
2369         * testsuite/gas/aarch64/diagnostic.s,
2370         testsuite/gas/aarch64/diagnostic.l: Add tests for out-of-range indices.
2372 2016-06-28  Maciej W. Rozycki  <macro@imgtec.com>
2374         * config/tc-mips.c (mips16_reloc_p): Handle
2375         BFD_RELOC_MIPS16_16_PCREL_S1.
2376         (b_reloc_p): Likewise.
2377         (limited_pcrel_reloc_p): Likewise.
2378         (md_pcrel_from): Likewise.
2379         (md_apply_fix): Likewise.
2380         (tc_gen_reloc): Likewise.
2381         (md_convert_frag): Likewise.
2382         (mips_fix_adjustable): Update comment.
2383         * testsuite/gas/mips/mips16-branch-reloc-2.d: Remove error
2384         output, add dump patterns.
2385         * testsuite/gas/mips/mips16-branch-reloc-3.d: Remove error
2386         output, add dump patterns.
2387         * testsuite/gas/mips/mips16-branch-addend-2.d: Remove error
2388         output, add dump patterns.
2389         * testsuite/gas/mips/mips16-branch-addend-3.d: Remove error
2390         output, add dump patterns.
2391         * testsuite/gas/mips/mips16-branch-absolute.d: Remove error
2392         output, add dump patterns.
2393         * testsuite/gas/mips/mips16-branch-reloc-2.l: Remove file.
2394         * testsuite/gas/mips/mips16-branch-reloc-3.l: Remove file.
2395         * testsuite/gas/mips/mips16-branch-addend-2.l: Remove file.
2396         * testsuite/gas/mips/mips16-branch-addend-3.l: Remove file.
2397         * testsuite/gas/mips/mips16-branch-absolute.l: Remove file.
2398         * testsuite/gas/mips/mips16-branch-addend-2.s: Add padding.
2399         * testsuite/gas/mips/branch-weak.s: Adjust alignment, avoid
2400         implicit instruction padding, avoid MIPS16 JR->JRC conversion.
2401         * testsuite/gas/mips/branch-weak-6.d: New test.
2402         * testsuite/gas/mips/branch-weak-7.d: New test.
2403         * testsuite/gas/mips/mips.exp: Run the new tests.
2405 2016-06-27  Vineet Gupta  <vgupta@synopsys.com>
2407         * config//tc-arc.c (tc_arc_frame_initial_instructions): Use
2408         cfi_add_CFA_def_cfa to generate default CFA with offset
2409         * testsuite/gas/cfi/cfi-arc-1.d: Update expected output.
2411 2016-06-27  Nick Clifton  <nickc@redhat.com>
2413         PR gas/20247
2414         * as.h (do_not_pad_sections_to_alignment): New global variable.
2415         * as.c (show_usage): Add --no-pad-sections.
2416         (parse_args): Likewise.
2417         * write.c (size_seg): Skip padding the end of the section if
2418         requested from the command line.
2419         (SUB_SEGMENT_ALIGN): Likewise.
2420         * doc/as.texinfo: Document the new option.
2421         * NEWS: Mention the new feature.
2422         * testsuite/gas/elf/section11.s: New test.
2423         * testsuite/gas/elf/section11.d: New test driver.
2424         * testsuite/gas/elf/elf.exp: Run the new test.
2426 2016-06-27  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2428         * config/tc-dlx.c: Include bfd/elf32-dlx.h.
2429         * config/tc-dlx.h: Remove prototype of dlx_set_skip_hi16.
2431 2016-06-27  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2433         * config/tc-xtensa.c (xtensa_elf_suffix): Use ARRAY_SIZE instead of a
2434         sentinal element.
2435         (map_suffix_reloc_to_operator): Likewise.
2436         (map_operator_to_reloc): Likewise.
2438 2016-06-27  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2440         * config/tc-nds32.c (md_begin): Use ARRAY_SIZE instead of a sentinal
2441         element in relax_table.
2443 2016-06-25  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2445         * config/tc-aarch64.c: Make the type of reg_entry::type
2446         aarch_reg_type.
2448 2016-06-25  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2450         * config/tc-bfin.c (bfin_cpus): Remove sentinal.
2451         (md_parse_option): Adjust.
2452         * config/tc-aarch64.c (aarch64_parse_abi): Replace use of a sentinal
2453         with iteration from 0 to ARRAY_SIZE.
2454         * config/tc-mcore.c (md_begin): Likewise.
2455         * config/tc-visium.c (visium_parse_arch): Likewise.
2457 2016-06-25  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2459         * config/tc-tic54x.c (tic54x_set_default_include): remove argument
2460                                                            and simplify accordingly.
2461         (tic54x_include): Adjust.
2462         (tic54x_mlib): Likewise.
2464 2016-06-25  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2466         * config/tc-xtensa.c (xtensa_make_property_section): Remove prototype.
2468 2016-06-24  Maciej W. Rozycki  <macro@imgtec.com>
2470         * config/tc-mips.c (append_insn): Use any `O_symbol' expression
2471         unchanged with relaxed MIPS16 instructions.
2472         (mips16_extended_frag): Adjust accordingly.  Return 1 right
2473         away if a relocation will be required for the symbol requested.
2474         Remove dead first relaxation pass code.
2475         (mips_relax_frag): Pass `sec' down to `mips16_extended_frag'.
2476         (md_convert_frag): Adjust symbol value calculation.  Raise an
2477         error if a relocation is required for the symbol requested.
2478         * testsuite/gas/mips/mips16@relax-swap3.d: Remove dump patterns,
2479         add error output.
2480         * testsuite/gas/mips/mips16@relax-swap3.l: New error output.
2481         * testsuite/gas/mips/mips16-pcrel-relax-0.d: New test.
2482         * testsuite/gas/mips/mips16-pcrel-relax-1.d: New test.
2483         * testsuite/gas/mips/mips16-pcrel-relax-2.d: New test.
2484         * testsuite/gas/mips/mips16-pcrel-relax-3.d: New test.
2485         * testsuite/gas/mips/mips16-pcrel-reloc-0.d: New test.
2486         * testsuite/gas/mips/mips16-pcrel-reloc-1.d: New test.
2487         * testsuite/gas/mips/mips16-pcrel-reloc-2.d: New test.
2488         * testsuite/gas/mips/mips16-pcrel-reloc-3.d: New test.
2489         * testsuite/gas/mips/mips16-pcrel-reloc-4.d: New test.
2490         * testsuite/gas/mips/mips16-pcrel-reloc-5.d: New test.
2491         * testsuite/gas/mips/mips16-pcrel-reloc-6.d: New test.
2492         * testsuite/gas/mips/mips16-pcrel-reloc-7.d: New test.
2493         * testsuite/gas/mips/mips16-pcrel-addend-0.d: New test.
2494         * testsuite/gas/mips/mips16-pcrel-addend-1.d: New test.
2495         * testsuite/gas/mips/mips16-pcrel-addend-2.d: New test.
2496         * testsuite/gas/mips/mips16-pcrel-addend-3.d: New test.
2497         * testsuite/gas/mips/mips16-pcrel-absolute.d: New test.
2498         * testsuite/gas/mips/mips16-branch-reloc-0.d: New test.
2499         * testsuite/gas/mips/mips16-branch-reloc-1.d: New test.
2500         * testsuite/gas/mips/mips16-branch-reloc-2.d: New test.
2501         * testsuite/gas/mips/mips16-branch-reloc-3.d: New test.
2502         * testsuite/gas/mips/mips16-branch-addend-0.d: New test.
2503         * testsuite/gas/mips/mips16-branch-addend-1.d: New test.
2504         * testsuite/gas/mips/mips16-branch-addend-2.d: New test.
2505         * testsuite/gas/mips/mips16-branch-addend-3.d: New test.
2506         * testsuite/gas/mips/mips16-branch-absolute.d: New test.
2507         * testsuite/gas/mips/mips16-absolute-reloc-0.d: New test.
2508         * testsuite/gas/mips/mips16-absolute-reloc-1.d: New test.
2509         * testsuite/gas/mips/mips16-absolute-reloc-2.d: New test.
2510         * testsuite/gas/mips/mips16-absolute-reloc-3.d: New test.
2511         * testsuite/gas/mips/mips16-pcrel-reloc-2.l: New error output.
2512         * testsuite/gas/mips/mips16-pcrel-reloc-3.l: New error output.
2513         * testsuite/gas/mips/mips16-pcrel-reloc-6.l: New error output.
2514         * testsuite/gas/mips/mips16-pcrel-reloc-7.l: New error output.
2515         * testsuite/gas/mips/mips16-pcrel-addend-2.l: New error output.
2516         * testsuite/gas/mips/mips16-pcrel-addend-3.l: New error output.
2517         * testsuite/gas/mips/mips16-pcrel-absolute.l: New error output.
2518         * testsuite/gas/mips/mips16-branch-reloc-2.l: New error output.
2519         * testsuite/gas/mips/mips16-branch-reloc-3.l: New error output.
2520         * testsuite/gas/mips/mips16-branch-addend-2.l: New error output.
2521         * testsuite/gas/mips/mips16-branch-addend-3.l: New error output.
2522         * testsuite/gas/mips/mips16-branch-absolute.l: New error output.
2523         * testsuite/gas/mips/mips16-absolute-reloc-2.l: New error output.
2524         * testsuite/gas/mips/mips16-absolute-reloc-3.l: New error output.
2525         * testsuite/gas/mips/mips16-pcrel-relax-0.s: New test source.
2526         * testsuite/gas/mips/mips16-pcrel-relax-2.s: New test source.
2527         * testsuite/gas/mips/mips16-pcrel-reloc-0.s: New test source.
2528         * testsuite/gas/mips/mips16-pcrel-reloc-1.s: New test source.
2529         * testsuite/gas/mips/mips16-pcrel-reloc-2.s: New test source.
2530         * testsuite/gas/mips/mips16-pcrel-reloc-3.s: New test source.
2531         * testsuite/gas/mips/mips16-pcrel-reloc-4.s: New test source.
2532         * testsuite/gas/mips/mips16-pcrel-reloc-5.s: New test source.
2533         * testsuite/gas/mips/mips16-pcrel-reloc-6.s: New test source.
2534         * testsuite/gas/mips/mips16-pcrel-reloc-7.s: New test source.
2535         * testsuite/gas/mips/mips16-pcrel-addend-0.s: New test source.
2536         * testsuite/gas/mips/mips16-pcrel-addend-1.s: New test source.
2537         * testsuite/gas/mips/mips16-pcrel-addend-2.s: New test source.
2538         * testsuite/gas/mips/mips16-pcrel-addend-3.s: New test source.
2539         * testsuite/gas/mips/mips16-pcrel-absolute.s: New test source.
2540         * testsuite/gas/mips/mips16-branch-reloc-0.s: New test source.
2541         * testsuite/gas/mips/mips16-branch-reloc-1.s: New test source.
2542         * testsuite/gas/mips/mips16-branch-reloc-2.s: New test source.
2543         * testsuite/gas/mips/mips16-branch-reloc-3.s: New test source.
2544         * testsuite/gas/mips/mips16-branch-addend-0.s: New test source.
2545         * testsuite/gas/mips/mips16-branch-addend-1.s: New test source.
2546         * testsuite/gas/mips/mips16-branch-addend-2.s: New test source.
2547         * testsuite/gas/mips/mips16-branch-addend-3.s: New test source.
2548         * testsuite/gas/mips/mips16-branch-absolute.s: New test source.
2549         * testsuite/gas/mips/mips16-absolute-reloc-0.s: New test source.
2550         * testsuite/gas/mips/mips16-absolute-reloc-1.s: New test source.
2551         * testsuite/gas/mips/mips16-absolute-reloc-2.s: New test source.
2552         * testsuite/gas/mips/mips16-absolute-reloc-3.s: New test source.
2553         * testsuite/gas/mips/mips.exp: Run the new tests.
2555 2016-06-24  Alan Modra  <amodra@gmail.com>
2557         * configure.tgt (alpha-*-openbsd*): Use em=nbsd.
2559 2016-06-23  Maciej W. Rozycki  <macro@imgtec.com>
2561         * config/tc-mips.c (b_reloc_p): New function.
2562         (mips_fix_adjustable): Also keep the original microMIPS symbol
2563         referred from branch relocations.
2564         * testsuite/gas/mips/branch-local-1.d: New test.
2565         * testsuite/gas/mips/branch-local-n32-1.d: New test.
2566         * testsuite/gas/mips/branch-local-n64-1.d: New test.
2567         * testsuite/gas/mips/micromips@branch-misc-4-64.d: Update
2568         relocations.
2569         * testsuite/gas/mips/branch-local-1.s: New test source.
2570         * testsuite/gas/mips/mips.exp: Run the new cases.
2572 2016-06-23  Graham Markall  <graham.markall@embecosm.com>
2574         * config/tc-arc.c (options, md_longopts, md_parse_option): Move
2575         -mspfp, -mdpfp and -mfpuda out of the sections for dummy
2576         options. Correct erroneous enabling of SPFP instructions when
2577         using -mnps400.
2579 2016-06-22  Peter Bergner <bergner@vnet.ibm.com>
2581         * testsuite/gas/ppc/power9.d <brd, brh, brw, mffs, mffs., mffsce,
2582         mffscdrn, mffscdrni, mffscrn, mffscrni, mffsl, nandxor, rldixor,
2583         setbool, xor3>: New tests.
2584         * testsuite/gas/ppc/power9.s: Likewise.
2586 2016-06-22  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2588         * config/tc-xtensa.c: Include elf/xtensa.h.
2590 2016-06-21  Maciej W. Rozycki  <macro@imgtec.com>
2592         * config/tc-mips.c (calculate_reloc) <BFD_RELOC_HI16_S_PCREL>
2593         <BFD_RELOC_LO16_PCREL>: New switch cases.
2594         (md_apply_fix) <BFD_RELOC_HI16_S_PCREL, BFD_RELOC_LO16_PCREL>:
2595         Move switch cases along `BFD_RELOC_MIPS_JMP'.
2596         <BFD_RELOC_MIPS_21_PCREL_S2, BFD_RELOC_MIPS_26_PCREL_S2>
2597         <BFD_RELOC_MIPS_18_PCREL_S3, BFD_RELOC_MIPS_19_PCREL_S2>: Handle
2598         the resolved case.
2599         * testsuite/gas/mips/pcrel-reloc-4.d: New test.
2600         * testsuite/gas/mips/pcrel-reloc-4-r6.d: New test.
2601         * testsuite/gas/mips/pcrel-reloc-5.d: New test.
2602         * testsuite/gas/mips/pcrel-reloc-5-r6.d: New test.
2603         * testsuite/gas/mips/pcrel-reloc-6.d: New test.
2604         * testsuite/gas/mips/pcrel-reloc-6.l: New list test.
2605         * testsuite/gas/mips/pcrel-reloc-4.s: New test source.
2606         * testsuite/gas/mips/pcrel-reloc-6.s: New test source.
2607         * testsuite/gas/mips/mips.exp: Run the new tests.
2609 2016-06-21  Maciej W. Rozycki  <macro@imgtec.com>
2611         * config/tc-mips.c (md_apply_fix) <BFD_RELOC_MIPS_18_PCREL_S3>
2612         <BFD_RELOC_MIPS_19_PCREL_S2>: Avoid null pointer dereferences
2613         via `fixP->fx_addsy'.
2615 2016-06-21  Maciej W. Rozycki  <macro@imgtec.com>
2617         * config/tc-mips.c (md_pcrel_from) <BFD_RELOC_MIPS_18_PCREL_S3>:
2618         Calculate relocation from the containing aligned doubleword.
2619         (tc_gen_reloc) <BFD_RELOC_MIPS_18_PCREL_S3>: Calculate the
2620         addend from the containing aligned doubleword.
2622 2016-06-21  Maciej W. Rozycki  <macro@imgtec.com>
2624         * config/tc-mips.c (mips_force_relocation): Use `file_mips_opts'
2625         rather than `mips_opts' for the R6 ISA check.
2626         (mips_fix_adjustable): Likewise.
2627         * testsuite/gas/mips/pcrel-reloc-1.d: New test.
2628         * testsuite/gas/mips/pcrel-reloc-1-r6.d: New test.
2629         * testsuite/gas/mips/pcrel-reloc-2.d: New test.
2630         * testsuite/gas/mips/pcrel-reloc-2-r6.d: New test.
2631         * testsuite/gas/mips/pcrel-reloc-3.d: New test.
2632         * testsuite/gas/mips/pcrel-reloc-3-r6.d: New test.
2633         * testsuite/gas/mips/pcrel-reloc-1.s: New test source.
2634         * testsuite/gas/mips/mips.exp: Run the new tests.
2636 2016-06-21  Graham Markall  <graham.markall@embecosm.com>
2638         * config/tc-arc.c (check_cpu_feature, md_parse_option):
2639         Add nps400 option and feature. Add check for nps400
2640         feature. Refactor existing checks to check subclass before
2641         feature enablement.
2642         (md_show_usage): Document flags for NPS-400 and add some other
2643         undocumented flags.
2644         (cpu_type): Remove nps400 CPU type entry
2645         (check_zol): Remove bfd_mach_arc_nps400 case.
2646         (md_show_usage): Add help on -mcpu=nps400.
2647         (cpu_types): Add entry for nps400 as arc700 plus nps400 extension
2648         set.
2649         * doc/c-arc.texi: Document the -mnps400, -mspfp, -mdpfp, and
2650         -fpuda flags.  Document -mcpu=nps400.
2651         * testsuite/gas/arc/nps-400-0.d: Use -mcpu=arc700 -mnps400. Change
2652         expected flags to match ARC700 instead of NPS400.
2653         * testsuite/gas/arc/nps-400-1.d: Use -mcpu=arc700 -mnps400.
2654         * testsuite/gas/arc/nps-400-2.d: Likewise.
2655         * testsuite/gas/arc/nps-400-3.d: Likewise.
2656         * testsuite/gas/arc/nps-400-4.d: Likewise.
2657         * testsuite/gas/arc/nps-400-5.d: Likewise.
2658         * testsuite/gas/arc/nps-400-6.d: Likewise.
2659         * testsuite/gas/arc/nps-400-7.d: Likewise.
2660         * testsuite/gas/arc/textinsn2op01.s: Change opcode of myinsn to
2661         avoid clash with cbba instruction.
2662         * testsuite/gas/arc/textinsn2op01.d: Likewise.
2663         * testsuite/gas/arc/textinsn3op.d: Likewise.
2664         * testsuite/gas/arc/textinsn3op.s: Likewise.
2665         * testsuite/gas/arc/nps-400-0.d: Test using NPS-400 using
2666         -mcpu=nps400 as an alternative to -mcpu=arc700 -mnps400 flags.
2668 2016-06-20  Maciej W. Rozycki  <macro@imgtec.com>
2670         * testsuite/gas/mips/r6-64-n32.d: Change the `name' tag.
2671         * testsuite/gas/mips/r6-64-n64.d: Likewise.
2673 2016-06-20  Maciej W. Rozycki  <macro@imgtec.com>
2675         * config/tc-mips.c (mips_fix_adjustable): Update comment on jump
2676         reloc conversion.
2678 2016-06-20  Virendra Pathak  <virendra.pathak@broadcom.com>
2680         * config/tc-aarch64.c (aarch64_cpus): Update vulcan feature set.
2682 2016-06-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
2684         * config/tc-sparc.c (hpriv_reg_table): Add registers %hmcdper,
2685         %hmcddfr and %hva_mask_nz.
2686         (sparc_ip): New handling of asr/privileged/hyperprivileged
2687         registers, adapted to the new form of the sparc opcodes table.
2688         * testsuite/gas/sparc/rdasr.s: New file.
2689         * testsuite/gas/sparc/rdasr.d: Likewise.
2690         * testsuite/gas/sparc/wrasr.s: Likewise.
2691         * testsuite/gas/sparc/wrasr.d: Likewise.
2692         * testsuite/gas/sparc/sparc.exp (sparc_elf_setup): Add rdasr and
2693         wrasr tests.
2694         * testsuite/gas/sparc/rdpr.d: Use -Av9m, as some privileged
2695         registers require it.
2696         * testsuite/gas/sparc/wrpr.s: Complete to cover all privileged
2697         registers and write instruction modalities.
2698         * testsuite/gas/sparc/wrpr.d: Likewise.
2699         * testsuite/gas/sparc/rdhpr.s: Likewise for hyperprivileged
2700         registers.
2701         * testsuite/gas/sparc/rdhpr.d: Likewise.
2702         * testsuite/gas/sparc/wrhpr.s: Likewise.
2703         * testsuite/gas/sparc/wrhpr.d: Likewise.
2705 2016-06-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
2707         * config/tc-sparc.c (sparc_arch_table): adjust the GAS
2708         architectures to use the right opcode architecture.
2709         (sparc_md_end): Handle v9{c,d,e,v,m}.
2710         (sparc_ip): Fix some comments.
2711         * testsuite/gas/sparc/ldx_efsr.d: Fix the architecture of this
2712         instruction, which is v9d.
2713         * testsuite/gas/sparc/mwait.s: Remove the `rd %mwait,%g1'
2714         instruction from the test, as %mwait is not readable.
2715         * testsuite/gas/sparc/mwait.d: Likewise.
2716         * testsuite/gas/sparc/mism-1.s: Expand to check v9b and v9e
2717         mismatch architecture errors.
2718         * testsuite/gas/sparc/mism-2.s: New file.
2720 2016-06-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
2722         * config/tc-sparc.c (priv_reg_table): Use NULL instead of the
2723         empty string to mark the end of the array.
2724         (hpriv_reg_table): Likewise.
2725         (v9a_asr_table): Likewise.
2726         (cmp_reg_entry): Handle entries with NULL names.
2727         (F_POP_V9): Define.
2728         (F_POP_PCREL): Likewise.
2729         (F_POP_TLS_CALL): Likewise.
2730         (F_POP_POSTFIX): Likewise.
2731         (struct pop_entry): New type.
2732         (pop_table): New variable.
2733         (enum pop_entry_type): New type.
2734         (struct perc_entry): Likewise.
2735         (NUM_PERC_ENTRIES): Define.
2736         (perc_table): New variable.
2737         (cmp_perc_entry): New function.
2738         (md_begin): Sort hpriv_reg_table and v9a_asr_table, and initialize
2739         perc_table.
2740         (sparc_ip): Handle entries with NULL names in priv_reg_table,
2741         hpriv_reg_table and v9a_asr_table.  Use perc_table to handle
2742         %-pseudo-ops.
2744 2016-06-15  Nick Clifton  <nickc@redhat.com>
2746         * config/tc-ft32.c (md_assemble): Call dwarf2_emit_insn with the
2747         instruction size.
2748         * config/tc-mcore.c (md_assemble): Likewise.
2749         * config/tc-mn10200.c (md_assemble): Likewise.
2750         * config/tc-moxie.c (md_assemble): Likewise.
2751         * config/tc-pj.c (md_apply_fix): Handle BFD_RELOC_PJ_CODE_REL32.
2752         * testsuite/gas/all/gas.exp (diff1 test): Alpha sort list of
2753         exception targets.  Add alpha, hppa, microblaze and rl78 to list
2754         of exceptions.
2755         (forward): Add microblaze to list of exceptions.
2756         (fwdexp): Add alpha to list of exceptions.
2757         (redef2): Add arm-epoc-pe and rl78 to list of exceptions.
2758         (redef3): Add rl78 and x86_64 cygwin to list of exceptions.
2759         (do_930509a): Alpha sort list of exception targets.  Add h8300 and
2760         mn10200 to list of exceptions.
2761         (align2): Expect to fail for nds32.
2762         (cond): Add alpha and rl78 to list of exceptions.
2763         * testsuite/gas/all/none.d: Skip for ft32 and hppa.
2764         * testsuite/gas/all/string.d: Skip for tic4x.
2765         * testsuite/gas/alpha/alpha.exp: Note that the alpha-linuxecoff
2766         target does not support ELF.
2767         * testsuite/gas/arm/blx-bl-convert.dL Skip for the nto target.
2768         * testsuite/gas/cfi/cfi-alpha-2.d: All extended format names.
2769         * testsuite/gas/cfi/cfi.exp: Alpha sort list of targets.  Skip SH
2770         tests for sh-pe and sh-rtemscoff targets.
2771         * testsuite/gas/elf/elf.exp (redef): Add rl78, xgate and vax to
2772         list of exceptions.
2773         (type): Run the noifunc version for alpha-freebsd and visium.
2774         * testsuite/gas/elf/warn-2.s: Do not expect to fail on the mcore,
2775         mn10200 or moxie targets.
2776         * testsuite/gas/ft32/insn.d: Update expected disassembly.
2777         * testsuite/gas/i386/i386.exp (x86-64-pcrel): Skip for cygwin
2778         targets.
2779         * testsuite/gas/lns/lns.exp (lns-common-1): No longer skip for
2780         mcore and rx targets.
2781         * testsuite/gas/macros/macros.exp (dot): Add exceptions for ns32k,
2782         rl78 and vax.
2783         (purge): Expect to fail on the ns32k and vax.
2784         * testsuite/gas/nds32/alu-2.d: Update expected disassembly.
2785         * testsuite/gas/nds32/ls.d: Likewise.
2786         * testsuite/gas/nds32/sys-reg.d: Likewise.
2787         * testsuite/gas/nds32/usr-spe-reg.d: Likewise.
2788         * testsuite/gas/pe/aligncomm-d.d: Skip for the sh.
2789         * testsuite/gas/pe/section-align-3.d: Likewise.
2790         * testsuite/gas/pe/section-exclude.d: Likewise.
2791         * testsuite/gas/ppc/test2xcoff32.d: Pass once all the required
2792         data has been seen.
2793         * testsuite/gas/ppc/textalign-xcoff-001.d: Fix up regexp to allow
2794         for variations in whitespace.
2795         * testsuite/gas/tilepro/t_constants.d: Pass once all the required
2796         data has been seen.
2797         * testsuite/gas/tilepro/t_constants.s (.safe_word): New macro.
2798         Installs a 32-bit value without generating warnings on 64-bit
2799         hosts.
2800         Use the new macro to replace the .word directives.
2802 2016-06-15  Andrew Burgess  <andrew.burgess@embecosm.com>
2804         * testsuite/gas/arc/add_s.d: New file.
2805         * testsuite/gas/arc/add_s.s: New file.
2807 2016-06-14  Graham Markall <graham.markall@embecosm.com>
2809         * testsuite/gas/arc/nps400-6.s: Add tests of ldbit.
2810         * testsuite/gas/arc/nps400-6.d: Likewise.
2812 2016-06-14  Graham Markall <graham.markall@embecosm.com>
2814         * testsuite/gas/arc/nps400-6.s: Add tests of hash, tr, utf8, e4by, and
2815         addf.
2816         * testsuite/gas/arc/nps400-6.d: Likewise.
2818 2016-06-14  Graham Markall <graham.markall@embecosm.com>
2820         * testsuite/gas/arc/nps400-6.s: Add tests of calcbsd, calcbxd,
2821         calckey, calcxkey, mxb, imxb, addl, subl, andl, orl, xorl, andab, orab,
2822         lbdsize, bdlen, csms, csma, cbba, zncv, and hofs.
2823         * testsuite/gas/arc/nps400-6.d: Likewise.
2825 2016-06-14  Nick Clifton  <nickc@redhat.com>
2827         * config/tc-nds32.c (nds32_get_align): Avoid left shifting a
2828         signed constant.
2830 2016-06-13  Maciej W. Rozycki  <macro@imgtec.com>
2832         * config/tc-mips.c (mips_fix_adjustable): Don't convert RELA
2833         JALR relocations on R6.
2834         * testsuite/gas/mips/jal-svr4pic-local.d: New test.
2835         * testsuite/gas/mips/mips1@jal-svr4pic-local.d: New test.
2836         * testsuite/gas/mips/r3000@jal-svr4pic-local.d: New test.
2837         * testsuite/gas/mips/micromips@jal-svr4pic-local.d: New test.
2838         * testsuite/gas/mips/jal-svr4pic-local-n32.d: New test.
2839         * testsuite/gas/mips/micromips@jal-svr4pic-local-n32.d: New
2840         test.
2841         * testsuite/gas/mips/jal-svr4pic-local-n64.d: New test.
2842         * testsuite/gas/mips/micromips@jal-svr4pic-local-n64.d: New
2843         test.
2844         * testsuite/gas/mips/jal-svr4pic-local.s: New test source.
2845         * testsuite/gas/mips/jal-svr4pic-local-newabi.s: New test
2846         source.
2847         * testsuite/gas/mips/mips.exp: Run the new tests.
2849 2016-06-13  Virendra Pathak  <virendra.pathak@broadcom.com>
2851         * config/tc-aarch64.c (aarch64_cpus): Add Broadcom Vulcan.
2852         * doc/c-aarch64.texi: Document that vulcan is a valid processor
2853         name.
2855 2016-06-13  Nick Clifton  <nickc@redhat.com>
2857         * config/tc-arm.c: For non-ELF based targets skip ARM feature sets
2858         that are not supported.
2860         * config/tc-arc.c (md_apply_fix): Avoid left shifting a signed
2861         constant.
2862         * config/tc-cr16.c (check_range): Likewise.
2863         * config/tc-nios2.c (nios2_check_overflow): Likewise.
2865 2016-06-08  Renlin Li  <renlin.li@arm.com>
2867         * config/tc-aarch64.c (print_operands): Substitute size.
2868         (output_operand_error_record): Likewise.
2870 2016-06-07  Alan Modra  <amodra@gmail.com>
2872         * config/tc-ppc.c (PPC_APUINFO_ISEL, PPC_APUINFO_PMR,
2873         PPC_APUINFO_RFMCI, PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE,
2874         PPC_APUINFO_EFS, PPC_APUINFO_BRLOCK, PPC_APUINFO_VLE): Don't define.
2875         (ppc_setup_opcodes): Check vle disables powerpc_opcodes overridden
2876         by vle_opcodes, and that vle flag doesn't enable opcodes.  Don't
2877         add vle_opcodes twice.
2878         (ppc_cleanup): Use APUINFO_SECTION_NAME and APUINFO_LABEL.
2880 2016-06-07  Matthew Wahab  <matthew.wahab@arm.com>
2882         * config/tc-arm.c (arm_ext_v8_2): Rename to arm_ext_ras.
2883         (arm_ext_ras): Renamed from arm_ext_v8_2.
2884         (insns): Update for arm_ext_v8_2 renaming.
2885         (arm_extensions): Add "ras".
2886         * doc/c-arm.texi (ARM Options): Add an entry for "ras".
2887         * testsuite/gas/arm/armv8-a+ras.d: New.
2888         * testsuite/gas/arm/armv8_2-a.d: Add explicit command line
2889         options.
2891 2016-06-05  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2893         * itbl-parse.y (yyerror): Use modern argument declaration style.
2895 2016-06-05  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2897         * config/tc-sh.c (parse_reg): Change type of mode argument to
2898         sh_arg_type.
2899         (get_operand): Adjust.
2900         (insert): Change type of how to bfd_reloc_code_real_type.
2901         (insert4): Likewise.
2902         * config/tc-sh64.c (shmedia_get_operand): Adjust.
2903         (shmedia_parse_reg): Change type of mode to shmedia_arg_type.
2905 2016-06-05  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2907         * config/tc-nds32.c (nds32_parse_option): Make the type of ptr_arg
2908         const char *.
2910 2016-06-03  Peter Bergner <bergner@vnet.ibm.com>
2912         PR binutils/20196
2913         * gas/testsuite/gas/ppc/e6500.s <lbarx, lharx, lwarx, ldarx,
2914         stbcx., sthcx., stwcx., stdcx.>: Add tests.
2915         * gas/testsuite/gas/ppc/e6500.d: Likewise.
2916         * gas/testsuite/gas/ppc/power8.s: Likewise.
2917         * gas/testsuite/gas/ppc/power8.d: Likewise.
2918         * gas/testsuite/gas/ppc/power4.s <lwarx, ldarx, stwcx.,
2919         stdcx.>: Add tests.
2920         * gas/testsuite/gas/ppc/power4.d: Likewise.
2922 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
2924         PR binutis/18386
2925         * testsuite/gas/i386/i386.exp: Run x86-64-branch-4.
2926         * testsuite/gas/i386/x86-64-branch.d: Updated.
2927         * testsuite/gas/i386/ilp32/x86-64-branch.d: Likewise.
2928         * testsuite/gas/i386/x86-64-branch-4.l: New file.
2929         * testsuite/gas/i386/x86-64-branch-4.s: Likewise.
2931 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2933         * config/tc-aarch64.c (aarch64_cpus): Add cortex-a73 entry.
2934         * doc/c-aarch64.texi (-mcpu): Document cortex-a73 value.
2936 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2938         * config/tc-arm.c (arm_cpus): Add cortex-a73 entry.
2939         * doc/c-arm.texi (-mcpu=): Document cortex-a73 value.
2941 2016-06-02  Vineet Gupta  <Vineet.Gupta1@synopsys.com>
2943         * configure.tgt: Replace -uclibc with *.
2945 2016-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
2947         * config/tc-arc.c (parse_opcode_flags): New function.
2948         (find_opcode_match): Move flag parsing code out to new function.
2949         Ignore operands marked IGNORE.
2950         (build_fake_opcode_hash_entry): New function.
2951         (find_special_case_long_opcode): New function.
2952         (find_special_case): Lookup long opcodes.
2953         * testsuite/gas/arc/nps400-7.d: New file.
2954         * testsuite/gas/arc/nps400-7.s: New file.
2956 2016-06-01  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2958         * config/tc-ns32k.c: Remove definition of input_line_pointer.
2960 2016-06-01  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2962         * config/tc-avr.c (avr_parse_cons_expression): Replace iteration to
2963         sentinal with iteration to array size.
2965 2016-06-01  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2967         * config/xtensa-relax.h: Move typedefs of enums to the enums
2968         definition.
2970 2016-06-01  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
2972         * config/tc-ns32k.c (bit_fix_new): Replace obstack-alloc with XOBNEW
2973         macro.
2975 2016-06-01  Graham Markall  <graham.markall@embecosm.com>
2977         * testsuite/gas/arc/nps-400-1.s: Add rflt variants with
2978         operands of types a,b,u6, 0,b,u6, and 0,b,limm.
2979         * testsuite/gas/arc/nps-400-1.d: Likewise.
2981 2016-05-29  H.J. Lu  <hongjiu.lu@intel.com>
2983         PR gas/20145
2984         * config/tc-i386.c (cpu_noarch): Add noavx512f, noavx512cd,
2985         noavx512er, noavx512pf, noavx512dq, noavx512bw, noavx512vl,
2986         noavx512ifma and noavx512vbmi.
2987         * doc/c-i386.texi: Mention noavx512f, noavx512cd, noavx512er,
2988         noavx512pf, noavx512dq, noavx512bw, noavx512vl, noavx512ifma
2989         and noavx512vbmi.
2990         * testsuite/gas/i386/i386.exp: Run noavx512-1 and noavx512-2.
2991         * testsuite/gas/i386/noavx512-1.l: New file.
2992         * testsuite/gas/i386/noavx512-1.s: Likewise.
2993         * testsuite/gas/i386/noavx512-2.l: Likewise.
2994         * testsuite/gas/i386/noavx512-2.s: Likewise.
2996 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
2998         PR gas/20145
2999         * config/tc-i386.c (cpu_arch): Add 687.
3000         (cpu_noarch): Add no287, no387, no687, nosse2, nosse3, nossse3,
3001         nosse4.1, nosse4.2, nosse4 and noavx2.
3002         (parse_real_register): Check cpuregmmx instead of cpummx for MMX
3003         register.  Check cpuregxmm instead of cpusse for XMM register.
3004         Check cpuregymm instead of cpuavx for YMM register.  Check
3005         cpuregzmm/cpuregmask instead of cpuavx512f for ZMMM/mask register.
3006         * doc/c-i386.texi: Mention 687, no287, no387, no687, nosse2,
3007         nosse3, nossse3, nosse4.1, nosse4.2, nosse4 and noavx2.
3008         * testsuite/gas/i386/arch-10-prefetchw.d (as): Add mmx.
3009         * testsuite/gas/i386/arch-10.d (as): Likewise.
3010         * testsuite/gas/i386/arch-11.s: Add ".arch .mmx".
3011         * testsuite/gas/i386/i386.exp: Pass mmx to assembler for
3012         arch-10-3 and arch-10-4.  Run no87-3, nosse-4, nosse-5, noavx-3
3013         and noavx-4.
3014         * testsuite/gas/i386/no87-3.l: New file.
3015         * testsuite/gas/i386/no87-3.s: Likewise.
3016         * testsuite/gas/i386/noavx-3.l: Likewise.
3017         * testsuite/gas/i386/noavx-3.s: Likewise.
3018         * testsuite/gas/i386/noavx-4.d: Likewise.
3019         * testsuite/gas/i386/noavx-4.s: Likewise.
3020         * testsuite/gas/i386/nosse-4.l: Likewise.
3021         * testsuite/gas/i386/nosse-4.s: Likewise.
3022         * testsuite/gas/i386/nosse-5.d: Likewise.
3023         * testsuite/gas/i386/nosse-5.s: Likewise.
3025 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
3027         PR gas/20154
3028         * config/tc-i386.c (cpu_flags_match): Don't set cpuamd64 nor
3029         cpuintel64.
3030         (match_template): Check Intel64/AMD64 ISA.
3032 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
3034         PR gas/20154
3035         * config/tc-i386.c (intel64): New.
3036         (cpu_flags_match): Set cpuamd64 and cpuintel64.
3037         (md_parse_option): Set intel64 instead of cpuamd64 and
3038         cpuintel64.
3040 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
3042         * config/tc-i386.c (cpu_flags_match): Don't clear cpu64 nor
3043         cpuno64.
3045 2016-05-26  Peter Bergner <bergner@vnet.ibm.com>
3047         * testsuite/gas/ppc/altivec3.d <vmsumudm>: Add test.
3048         * testsuite/gas/ppc/altivec3.s: Likewise.
3049         * testsuite/gas/ppc/power9.d <addex[.], lwzmx, vmsumudm>: Add tests.
3050         * testsuite/gas/ppc/power9.s: Likewise.
3052 2016-05-26  H.J. Lu  <hongjiu.lu@intel.com>
3054         * testsuite/gas/i386/avx512vl-2.l: Append "#pass".
3055         * testsuite/gas/i386/noavx-1.l: Likewise.
3056         * testsuite/gas/i386/nommx-1.l: Likewise.
3057         * testsuite/gas/i386/nosse-1.l: Likewise.
3058         * testsuite/gas/i386/x86-64-avx512vl-2.l: Likewise.
3059         * testsuite/gas/i386/avx512vl-2.s: Append ".p2align 4".
3060         * testsuite/gas/i386/noavx-1.s: Likewise.
3061         * testsuite/gas/i386/nommx-1.s: Likewise.
3062         * testsuite/gas/i386/nosse-1.s: Likewise.
3063         * testsuite/gas/i386/x86-64-avx512vl-2.s: Likewise.
3065 2016-05-26  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3067         * config/tc-metag.c (metag_handle_align): Make the type of noop
3068         unsigned char.
3070 2016-05-26  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3072         * config/tc-rx.c (md_convert_frag): Make the type of reloc_type
3073         bfd_reloc_code_real_type.
3075 2016-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3077         PR gas/20140
3078         * config/tc-i386.c (cpu_flags_match): Require another match
3079         for AVX512VL.
3080         * testsuite/gas/i386/i386.exp: Run avx512vl-1, avx512vl-2,
3081         x86-64-avx512vl-1 and x86-64-avx512vl-2.
3082         * testsuite/gas/i386/avx512vl-1.l: New file.
3083         * testsuite/gas/i386/avx512vl-1.s: Likewise.
3084         * testsuite/gas/i386/avx512vl-2.l: Likewise.
3085         * testsuite/gas/i386/avx512vl-2.s: Likewise.
3086         * testsuite/gas/i386/x86-64-avx512vl-1.l: Likewise.
3087         * testsuite/gas/i386/x86-64-avx512vl-1.s: Likewise.
3088         * testsuite/gas/i386/x86-64-avx512vl-2.l: Likewise.
3089         * testsuite/gas/i386/x86-64-avx512vl-2.s: Likewise.
3091 2016-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3093         PR gas/20141
3094         * testsuite/gas/i386/i386.exp: Run x86-64-pr20141.
3095         * testsuite/gas/i386/x86-64-pr20141.d: New file.
3096         * testsuite/gas/i386/x86-64-pr20141.s: Likewise.
3098 2016-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3100         * config/tc-i386.c (arch_entry): Remove negated.
3101         (noarch_entry): New struct.
3102         (cpu_arch): Updated.  Remove .no87, .nommx, .nosse and .noavx.
3103         (cpu_noarch): New.
3104         (set_cpu_arch): Check cpu_noarch after cpu_arch.
3105         (md_parse_option): Allow -march=+nosse.  Check cpu_noarch after
3106         cpu_arch.
3107         (output_message): New function.
3108         (show_arch): Use it.  Handle cpu_noarch.
3109         * testsuite/gas/i386/i386.exp: Run nommx-1, nommx-2, nommx-3,
3110         nosse-1, nosse-2, nosse-3, noavx-1 and noavx-2.
3111         * testsuite/gas/i386/noavx-1.l: New file.
3112         * testsuite/gas/i386/noavx-1.s: Likewise.
3113         * testsuite/gas/i386/noavx-2.s: Likewise.
3114         * testsuite/gas/i386/noavx-2.l: Likewise.
3115         * testsuite/gas/i386/nommx-1.s: Likewise.
3116         * testsuite/gas/i386/nommx-1.l: Likewise.
3117         * testsuite/gas/i386/nommx-2.s: Likewise.
3118         * testsuite/gas/i386/nommx-2.l: Likewise.
3119         * testsuite/gas/i386/nommx-3.s: Likewise.
3120         * testsuite/gas/i386/nommx-3.l: Likewise.
3121         * testsuite/gas/i386/nosse-1.s: Likewise.
3122         * testsuite/gas/i386/nosse-1.l: Likewise.
3123         * testsuite/gas/i386/nosse-2.s: Likewise.
3124         * testsuite/gas/i386/nosse-2.l: Likewise.
3125         * testsuite/gas/i386/nosse-3.s: Likewise.
3126         * testsuite/gas/i386/nosse-3.l: Likewise.
3128 2016-05-25  Chua Zheng Leong  <chuazl@comp.nus.edu.sg>
3130         PR target/20067
3131         * config/tc-arm.c (move_or_literal_pool): Only generate a VMOV.I64
3132         instruction if supported by the currently selected fpu variant.
3133         * testsuite/gas/arm/vfpv3-ldr_immediate.s: Add test of this PR.
3134         * testsuite/gas/arm/vfpv3-ldr_immediate.d: Update expected disassembly.
3136 2016-05-24  Maciej W. Rozycki  <macro@imgtec.com>
3138         * config/tc-mips.c (mips_fix_adjustable): Also return 0 for
3139         jump relocations against MIPS16 or microMIPS symbols on RELA
3140         targets.
3141         * testsuite/gas/mips/jalx-local.d: New test.
3142         * testsuite/gas/mips/jalx-local-n32.d: New test.
3143         * testsuite/gas/mips/jalx-local-n64.d: New test.
3144         * testsuite/gas/mips/jalx-local.s: New test source.
3145         * testsuite/gas/mips/mips.exp: Run the new tests.
3147 2016-05-24  Maciej W. Rozycki  <macro@imgtec.com>
3149         * config/tc-mips.c (md_apply_fix)
3150         <BFD_RELOC_MIPS16_TLS_TPREL_LO16>: Remove fall-through, adjust
3151         code accordingly.
3153 2016-05-24  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3155         * config/tc-xtensa.c (struct suffix_reloc_map): Change type of field
3156         operator to operatorT.
3157         (map_suffix_reloc_to_operator): Change return type to operatorT.
3159 2016-05-24  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3161         * config/tc-d30v.c (find_format): Change type of X_op to operatorT.
3163 2016-05-24  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3165         * config/tc-mmix.c (mmix_parse_predefined_name): Change type of
3166         handler_charp to const char *.
3168 2016-05-24  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3170         * config/tc-ft32.h (DEFAULT_TARGET_FORMAT): Remove.
3171         (ft32_target_format): Likewise.
3172         (TARGET_FORMAT): Adjust.
3174 2016-05-24  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3176         * config/tc-ia64.c (dot_rot): simplify allocations from obstacks.
3177         (ia64_frob_label): Likewise.
3179 2016-05-24  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3181         * config/tc-cr16.c (check_range): Make type of retval op_err.
3182         * config/tc-crx.c: Likewise.
3184 2016-05-23  Claudiu Zissulescu  <claziss@synopsys.com>
3186         * config/tc-arc.c (md_begin): Add XY registers.
3187         (cpu_types): Code density is default off for ARC EM.
3189 2016-05-23  Cupertino Miranda  <cmiranda@synopsys.com>
3191         * config/tc-arc.c (attributes_t): Renamed attribute class to
3192         attr_class.
3193         (find_opcode_match, assemble_insn, tokenize_extinsn): Changed.
3195 2016-05-23  Kuba Sejdak  <jakub.sejdak@phoesys.com>
3197         * configuse.tgt: Add entry for arm-phoenix.
3199 2016-05-23  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3201         * config/tc-tic54x.c (tic54x_sect): simplify string creation.
3203 2016-05-23  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3205         * config/tc-spu.c (APUOP): Use OPCODE as an unsigned constant.
3207 2016-05-23  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3209         * config/tc-tic54x.c (tic54x_mmregs): Adjust.
3210         (md_begin): Likewise.
3211         (encode_condition): Likewise.
3212         (encode_cc3): Likewise.
3213         (encode_cc2): Likewise.
3214         (encode_operand): Likewise.
3215         (tic54x_undefined_symbol): Likewise.
3217 2016-05-20  Matthew Fortune  <matthew.fortune@imgtec.com>
3219         * config/tc-mips.c (mips_cpu_info_table): Update comment.  Add
3220         p6600 entry.
3221         * doc/c-mips.texi: Document p6600 -march option.
3223 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
3225         PR gas/19600
3226         * config/tc-i386.c (md_apply_fix): Preserve addend for
3227         BFD_RELOC_386_GOT32 and BFD_RELOC_X86_64_GOT32.
3228         * testsuite/gas/i386/addend.d: New file.
3229         * testsuite/gas/i386/addend.s: Likewise.
3230         * testsuite/gas/i386/x86-64-addend.d: Likewise.
3231         * testsuite/gas/i386/x86-64-addend.s: Likewise.
3232         * testsuite/gas/i386/i386.exp: Run addend and x86-64-addend.
3233         * testsuite/gas/i386/reloc32.d: Updated.
3235 2016-05-20  Maciej W. Rozycki  <macro@imgtec.com>
3237         * config/tc-mips.c (append_insn): Correct the encoding of a
3238         constant argument for microMIPS JALX.
3239         (tc_gen_reloc): Correct the encoding of an in-place addend for
3240         microMIPS JALX.
3241         * testsuite/gas/mips/jalx-addend.d: New test.
3242         * testsuite/gas/mips/jalx-addend-n32.d: New test.
3243         * testsuite/gas/mips/jalx-addend-n64.d: New test.
3244         * testsuite/gas/mips/jalx-imm.d: New test.
3245         * testsuite/gas/mips/jalx-imm-n32.d: New test.
3246         * testsuite/gas/mips/jalx-imm-n64.d: New test.
3247         * testsuite/gas/mips/jalx-addend.s: New test source.
3248         * testsuite/gas/mips/jalx-imm.s: New test source.
3249         * testsuite/gas/mips/mips.exp: Run the new tests.
3251 2016-05-20  Maciej W. Rozycki  <macro@imgtec.com>
3253         * config/tc-mips.c: Correct tab-after-space formatting mistakes
3254         throughout.
3256 2016-05-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3258         * config/tc-arc.c (find_opcode_match): Remove casting away of
3259         const.
3260         * config/tc-arc.h (struct arc_flags): Make flgp field const.
3262 2016-05-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3264         * config/tc-arc.c (md_pcrel_from_section): Use BFD_VMA_FMT where
3265         appropriate.
3266         (md_convert_frag): Likewise.
3268 2016-05-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3270         * config/tc-arc.c (arc_opcode_hash_entry_iterator_next): Set
3271         cached opcode to NULL when we reach a non-matching opcode.
3272         * testsuite/gas/arc/asm-errors-2.d: New file.
3273         * testsuite/gas/arc/asm-errors-2.err: New file.
3274         * testsuite/gas/arc/asm-errors-2.s: New file.
3276 2016-05-18  Andrew Burgess  <andrew.burgess@embecosm.com>
3278         * config/tc-arc.c (tokenize_arguments): Add checks for array
3279         overflow.
3280         * testsuite/gas/arc/asm-errors.s: Addition test line added.
3281         * testsuite/gas/arc/asm-errors.err: Update expected results.
3283 2016-05-18  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3285         * config/tc-rx.c (struct cpu_type): Change the type of a field from
3286         int to enum rx_cpu_types.
3288 2016-05-18  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3290         * config/tc-dlx.c (struct machine_it): change the type of a field from
3291         int to bfd_reloc_code_real_type.
3292         * config/tc-tic4x.c: Likewise.
3294 2016-05-18  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3296         * config/tc-v850.c (v850_target_arch): change type to enum
3297         bfd_architecture.
3298         * config/tc-v850.h (v850_target_arch): Likewise.
3300 2016-05-18  Alan Modra  <amodra@gmail.com>
3302         * config/tc-ppc.c (ppc_insert_operand): Trim PPC_OPERAND_SIGNOPT
3303         allowed negative range.
3304         * testsuite/gas/ppc/power9.s: Test xxspltib of -128, not -256.
3305         * testsuite/gas/ppc/power9.d: Update.
3307 2016-05-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3309         * testsuite/gas/arm/archv8m-cmse-msr-base.d: Force Thumb when
3310         disassembling and stop skipping targets.
3311         * testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise.
3312         * testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise.
3313         * testsuite/gas/arm/archv8m-base.d: Also allow nops after the last
3314         instruction for targets that have stronger alignment requirement.
3315         * testsuite/gas/arm/archv8m-cmse-base.d: Likewise.
3316         * testsuite/gas/arm/archv8m-cmse-main-1.d: Likewise.
3317         * testsuite/gas/arm/archv8m-cmse-main-2.d: Likewise.
3318         * testsuite/gas/arm/archv8m-main-dsp-1.d: Likewise.
3319         * testsuite/gas/arm/archv8m-main-dsp-2.d: Likewise.
3320         * testsuite/gas/arm/archv8m-main-dsp-3.d: Likewise.
3321         * testsuite/gas/arm/archv8m-main.d: Likewise.
3322         * testsuite/gas/arm/archv8m.s: Add label.
3323         * testsuite/gas/arm/archv8m-cmse.s: Likewise.
3324         * testsuite/gas/arm/archv8m-cmse-msr.s: Likewise.
3325         * testsuite/gas/arm/archv8m-cmse-main.s: Likewise.
3327 2016-05-16  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3329         * config/tc-m32r.c (mach_table): Make static and const.
3331 2016-05-16  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3333         * config/tc-vax.c (flonum_gen2vax): Adjust prototype to match
3334         definition.
3336 2016-05-16  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3338         * config/tc-mn10300.c (md_begin): set linkrelax here instead of
3339         defining it.
3340         * config/tc-msp430.c (md_begin): Likewise.
3342 2016-05-16  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3344         * config/tc-m68hc11.c (fixup8): Change variables type from int to
3345         bfd_reloc_code_real_type where appropriate.
3346         (fixup16): Likewise.
3347         (fixup8_xg): Likewise.
3349 2016-05-15  Maciej W. Rozycki  <macro@imgtec.com>
3351         * config/tc-sh64.c (shmedia_check_limits): Constify `msg'.
3353 2016-05-13  Peter Bergner <bergner@vnet.ibm.com>
3355         * testsuite/gas/ppc/power9.d <xxspltib>: Add additional operand tests.
3356         * testsuite/gas/ppc/power9.s: Likewise.
3358 2016-05-13  Alan Modra  <amodra@gmail.com>
3360         * config/obj-coff.c (weak_uniquify): Delete unused var.
3362 2016-05-13  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3364         * app.c (app_push): Use XNEW and related macros.
3365         * as.c (parse_args): Likewise.
3366         * cgen.c (make_right_shifted_expr): Likewise.
3367         (gas_cgen_tc_gen_reloc): Likewise.
3368         * config/bfin-defs.h: Likewise.
3369         * config/bfin-parse.y: Likewise.
3370         * config/obj-coff.c (stack_init): Likewise.
3371         (stack_push): Likewise.
3372         (coff_obj_symbol_new_hook): Likewise.
3373         (coff_obj_symbol_clone_hook): Likewise.
3374         (add_lineno): Likewise.
3375         (coff_frob_symbol): Likewise.
3376         * config/obj-elf.c (obj_elf_section_name): Likewise.
3377         (build_group_lists): Likewise.
3378         * config/obj-evax.c (evax_symbol_new_hook): Likewise.
3379         * config/obj-macho.c (obj_mach_o_indirect_symbol): Likewise.
3380         * config/tc-aarch64.c (insert_reg_alias): Likewise.
3381         (find_or_make_literal_pool): Likewise.
3382         (add_to_lit_pool): Likewise.
3383         (fill_instruction_hash_table): Likewise.
3384         * config/tc-alpha.c (load_expression): Likewise.
3385         (emit_jsrjmp): Likewise.
3386         (s_alpha_ent): Likewise.
3387         (s_alpha_end): Likewise.
3388         (s_alpha_linkage): Likewise.
3389         (md_begin): Likewise.
3390         (tc_gen_reloc): Likewise.
3391         * config/tc-arc.c (arc_insert_opcode): Likewise.
3392         (arc_extcorereg): Likewise.
3393         * config/tc-bfin.c: Likewise.
3394         * config/tc-cr16.c: Likewise.
3395         * config/tc-cris.c: Likewise.
3396         * config/tc-crx.c (preprocess_reglist): Likewise.
3397         * config/tc-d10v.c: Likewise.
3398         * config/tc-frv.c (frv_insert_vliw_insn): Likewise.
3399         (frv_tomcat_shuffle): Likewise.
3400         * config/tc-h8300.c: Likewise.
3401         * config/tc-i370.c (i370_macro): Likewise.
3402         * config/tc-i386.c (lex_got): Likewise.
3403         (md_parse_option): Likewise.
3404         * config/tc-ia64.c (alloc_record): Likewise.
3405         (set_imask): Likewise.
3406         (save_prologue_count): Likewise.
3407         (dot_proc): Likewise.
3408         (dot_endp): Likewise.
3409         (ia64_frob_label): Likewise.
3410         (add_qp_imply): Likewise.
3411         (add_qp_mutex): Likewise.
3412         (mark_resource): Likewise.
3413         (dot_alias): Likewise.
3414         * config/tc-m68hc11.c: Likewise.
3415         * config/tc-m68k.c (m68k_frob_label): Likewise.
3416         (s_save): Likewise.
3417         (mri_control_label): Likewise.
3418         (push_mri_control): Likewise.
3419         (build_mri_control_operand): Likewise.
3420         (s_mri_else): Likewise.
3421         (s_mri_break): Likewise.
3422         (s_mri_next): Likewise.
3423         (s_mri_for): Likewise.
3424         (s_mri_endw): Likewise.
3425         * config/tc-metag.c (create_mnemonic_htab): Likewise.
3426         * config/tc-microblaze.c: Likewise.
3427         * config/tc-mmix.c (s_loc): Likewise.
3428         * config/tc-nds32.c (nds32_relax_hint): Likewise.
3429         * config/tc-nios2.c (nios2_insn_reloc_new): Likewise.
3430         * config/tc-rl78.c: Likewise.
3431         * config/tc-rx.c (rx_include): Likewise.
3432         * config/tc-sh.c: Likewise.
3433         * config/tc-sh64.c (shmedia_frob_section_type): Likewise.
3434         * config/tc-sparc.c: Likewise.
3435         * config/tc-spu.c: Likewise.
3436         * config/tc-tic6x.c (static tic6x_unwind_info *tic6x_get_unwind): Likewise.
3437         (tic6x_start_unwind_section): Likewise.
3438         * config/tc-tilegx.c: Likewise.
3439         * config/tc-tilepro.c: Likewise.
3440         * config/tc-v850.c: Likewise.
3441         * config/tc-visium.c: Likewise.
3442         * config/tc-xgate.c: Likewise.
3443         * config/tc-xtensa.c (xtensa_translate_old_userreg_ops): Likewise.
3444         (new_resource_table): Likewise.
3445         (resize_resource_table): Likewise.
3446         (xtensa_create_trampoline_frag): Likewise.
3447         (xtensa_maybe_create_literal_pool_frag): Likewise.
3448         (cache_literal_section): Likewise.
3449         * config/xtensa-relax.c (append_transition): Likewise.
3450         (append_condition): Likewise.
3451         (append_value_condition): Likewise.
3452         (append_constant_value_condition): Likewise.
3453         (append_literal_op): Likewise.
3454         (append_label_op): Likewise.
3455         (append_constant_op): Likewise.
3456         (append_field_op): Likewise.
3457         (append_user_fn_field_op): Likewise.
3458         (enter_opname_n): Likewise.
3459         (enter_opname): Likewise.
3460         (split_string): Likewise.
3461         (parse_insn_templ): Likewise.
3462         (clone_req_or_option_list): Likewise.
3463         (clone_req_option_list): Likewise.
3464         (parse_option_cond): Likewise.
3465         (parse_insn_pattern): Likewise.
3466         (parse_insn_repl): Likewise.
3467         (build_transition): Likewise.
3468         (build_transition_table): Likewise.
3469         * dw2gencfi.c (alloc_fde_entry): Likewise.
3470         (alloc_cfi_insn_data): Likewise.
3471         (cfi_add_CFA_remember_state): Likewise.
3472         (dot_cfi_escape): Likewise.
3473         (dot_cfi_fde_data): Likewise.
3474         (select_cie_for_fde): Likewise.
3475         * dwarf2dbg.c (dwarf2_directive_loc): Likewise.
3476         * ecoff.c (ecoff_add_bytes): Likewise.
3477         (ecoff_build_debug): Likewise.
3478         * input-scrub.c (input_scrub_push): Likewise.
3479         (input_scrub_begin): Likewise.
3480         (input_scrub_next_buffer): Likewise.
3481         * itbl-ops.c (append_insns_as_macros): Likewise.
3482         (alloc_entry): Likewise.
3483         (alloc_field): Likewise.
3484         * listing.c (listing_newline): Likewise.
3485         (listing_listing): Likewise.
3486         * macro.c (get_any_string): Likewise.
3487         (delete_macro): Likewise.
3488         * stabs.c (generate_asm_file): Likewise.
3489         (stabs_generate_asm_lineno): Likewise.
3490         * subsegs.c (subseg_change): Likewise.
3491         (subseg_get): Likewise.
3492         * symbols.c (define_dollar_label): Likewise.
3493         (symbol_relc_make_sym): Likewise.
3494         * write.c (write_relocs): Likewise.
3496 2016-05-13  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3498         * config/obj-coff.c (obj_coff_def): Simplify string copying.
3499         (weak_name2altname): Likewise.
3500         (weak_uniquify): Likewise.
3501         (obj_coff_section): Likewise.
3502         (obj_coff_init_stab_section): Likewise.
3503         * config/obj-elf.c (obj_elf_section_name): Likewise.
3504         (obj_elf_init_stab_section): Likewise.
3505         * config/obj-evax.c (evax_shorten_name): Likewise.
3506         * config/obj-macho.c (obj_mach_o_make_or_get_sect): Likewise.
3507         * config/tc-aarch64.c (create_register_alias): Likewise.
3508         * config/tc-alpha.c (load_expression): Likewise.
3509         (s_alpha_file): Likewise.
3510         (s_alpha_section_name): Likewise.
3511         (tc_gen_reloc): Likewise.
3512         * config/tc-arc.c (md_assemble): Likewise.
3513         * config/tc-arm.c (create_neon_reg_alias): Likewise.
3514         (start_unwind_section): Likewise.
3515         * config/tc-hppa.c (pa_build_unwind_subspace): Likewise.
3516         (hppa_elf_mark_end_of_function): Likewise.
3517         * config/tc-nios2.c (nios2_modify_arg): Likewise.
3518         (nios2_negate_arg): Likewise.
3519         * config/tc-rx.c (rx_section): Likewise.
3520         * config/tc-sh64.c (sh64_consume_datalabel): Likewise.
3521         * config/tc-tic30.c (tic30_find_parallel_insn): Likewise.
3522         * config/tc-tic54x.c (tic54x_include): Likewise.
3523         (tic54x_macro_info): Likewise.
3524         (subsym_get_arg): Likewise.
3525         (subsym_substitute): Likewise.
3526         (tic54x_start_line_hook): Likewise.
3527         * config/tc-xtensa.c (xtensa_literal_prefix): Likewise.
3528         (xg_reverse_shift_count): Likewise.
3529         * config/xtensa-relax.c (enter_opname_n): Likewise.
3530         (split_string): Likewise.
3531         * dwarf2dbg.c (get_filenum): Likewise.
3532         (process_entries): Likewise.
3533         * expr.c (operand): Likewise.
3534         * itbl-ops.c (alloc_entry): Likewise.
3535         * listing.c (listing_message): Likewise.
3536         (listing_title): Likewise.
3537         * macro.c (check_macro): Likewise.
3538         * stabs.c (s_xstab): Likewise.
3539         * symbols.c (symbol_relc_make_expr): Likewise.
3540         * write.c (compress_debug): Likewise.
3542 2016-05-12  Nick Clifton  <nickc@redhat.com>
3544         PR target/20068
3545         * testsuite/gas/arm/pr20068.d: Use correct regexp syntax.
3547 2016-05-11  Nick Clifton  <nickc@redhat.com>
3549         PR target/20068
3550         * testsuite/gas/arm/pr20068.d: Adjust expected output to allow for
3551         big endian ARM configurations.
3553 2016-05-11  Andrew Bennett  <andrew.bennett@imgtec.com>
3554             Matthew Fortune  <matthew.fortune@imgtec.com>
3556         * config/tc-mips.c (options): Add OPTION_DSPR3 and
3557         OPTION_NO_DSPR3.
3558         (md_longopts): Likewise.
3559         (md_show_usage): Add help for -mdspr3 and -mno-dspr3.
3560         (mips_ases): Define availability for DSPr3.
3561         (mips_ase_groups): Add ASE_DSPR3 to the DSP group.
3562         (mips_convert_ase_flags): Map ASE_DSPR3 to AFL_ASE_DSPR3.
3563         * doc/as.texinfo: Document -mdspr3, -mno-dspr3.  Fix -mdspr2
3564         formatting.
3565         * doc/c-mips.texi: Document -mdspr3, -mno-dspr3, .set dspr3 and
3566         .set nodspr3.  Fix -mdspr2 formatting.
3567         * testsuite/gas/mips/mips32-dspr3.d: New file.
3568         * testsuite/gas/mips/mips32-dspr3.s: Likewise.
3569         * testsuite/gas/mips/mips.exp: Run mips32-dspr3 test.
3571 2016-05-11  Nick Clifton  <nickc@redhat.com>
3573         PR target/20068
3574         * config/tc-arm.c (add_to_lit_pool): Ensure that the padding added
3575         to the pool uses O_constant.
3576         * testsuite/gas/arm/pr20068.s: New test.
3577         * testsuite/gas/arm/pr20068.d: Test driver.
3579 2016-05-11  Nick Clifton  <nickc@redhat.com>
3581         * testsuite/gas/arm/archv8m-cmse-base.d: Skip for non-ELF ARM targets.
3582         * testsuite/gas/arm/archv8m-cmse-main-1.d: Likewise.
3583         * testsuite/gas/arm/archv8m-cmse-main-2.d: Likewise.
3584         * testsuite/gas/arm/archv8m-cmse-msr-base.d: Likewise.
3585         * testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise.
3586         * testsuite/gas/arm/archv8m-main-dsp-1.d: Likewise.
3587         * testsuite/gas/arm/archv8m-main-dsp-2.d: Likewise.
3588         * testsuite/gas/arm/archv8m-main-dsp-3.d: Likewise.
3589         * testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise.
3591 2016-05-10  Alexander Fomin  <alexander.fomin@intel.com>
3593         * testsuite/gas/i386/i386.exp: Run RDPID tests.
3594         * testsuite/gas/i386/prefix.d: Adjust.
3595         * testsuite/gas/i386/rdpid.s: New test.
3596         * testsuite/gas/i386/rdpid.d: Ditto.
3597         * testsuite/gas/i386/rdpid-intel.d: Ditto.
3598         * testsuite/gas/i386/x86-64-rdpid.s: Ditto.
3599         * testsuite/gas/i386/x86-64-rdpid.d: Ditto.
3600         * testsuite/gas/i386/x86-64-rdpid-intel.d: Ditto.
3602 2016-05-10  Alexander Fomin  <alexander.fomin@intel.com>
3604         * config/tc-i386.c (cpu_arch): Add RDPID.
3605         * doc/c-i386.texi: Document RDPID.
3607 2016-05-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3609         * config/tc-arm.c (arm_adjust_symtab): Use ARM_SET_SYM_BRANCH_TYPE to
3610         set branch type of a symbol.
3612 2016-05-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3614         * NEWS: Document ARMv8-M and ARMv8-M Security and DSP Extensions.
3615         * config/tc-arm.c (arm_ext_dsp): New feature for Thumb DSP
3616         instructions.
3617         (arm_extensions): Add dsp extension for ARMv8-M Mainline.
3618         (aeabi_set_public_attributes): Memorize the feature bits of the
3619         architecture selected for Tag_CPU_arch.  Use it to set
3620         Tag_DSP_extension to 1 for ARMv8-M Mainline with DSP extension.
3621         (arm_convert_symbolic_attribute): Define Tag_DSP_extension.
3622         * testsuite/gas/arm/arch7em-bad.d: Rename to ...
3623         * testsuite/gas/arm/arch7em-bad-1.d: This.
3624         * testsuite/gas/arm/arch7em-bad-2.d: New file.
3625         * testsuite/gas/arm/arch7em-bad-3.d: Likewise.
3626         * testsuite/gas/arm/archv8m-main-dsp-1.d: Likewise.
3627         * testsuite/gas/arm/archv8m-main-dsp-2.d: Likewise.
3628         * testsuite/gas/arm/archv8m-main-dsp-3.d: Likewise.
3629         * testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise.
3630         * testsuite/gas/arm/archv8m-main-dsp-5.d: Likewise.
3631         * testsuite/gas/arm/attr-march-armv8m.main.dsp.d: Likewise.
3633 2016-05-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3635         * config/tc-arm.c (struct arm_option_extension_value_table): Make
3636         allowed_archs an array with 2 entries.
3637         (ARM_EXT_OPT): Adapt to only fill the first entry of allowed_archs.
3638         (ARM_EXT_OPT2): New macro filling the two entries of allowed_archs.
3639         (arm_extensions): Use separate entries in allowed_archs when several
3640         archs are allowed to use an extension and change ARCH_ANY in
3641         ARM_ARCH_NONE in allowed_archs.
3642         (arm_parse_extension): Check that, for each allowed_archs entry, all
3643         bits are set in the current architecture, ignoring ARM_ANY entries.
3644         (s_arm_arch_extension): Likewise.
3646 2016-05-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3648         * config/tc-arm.c (arm_ext_m): Add feature bit ARM_EXT2_V8M_MAIN.
3649         (arm_ext_v8m_main): New feature set for bit ARM_EXT2_V8M_MAIN.
3650         (arm_ext_v8m_m_only): New feature set for instructions in ARMv8-M not
3651         shared with a non M profile architecture.
3652         (do_rn): New function.
3653         (known_t32_only_insn): Check opcode against arm_ext_v8m_m_only rather
3654         than arm_ext_v8m.
3655         (v7m_psrs): Add ARMv8-M security extensions new special registers.
3656         (insns): Add ARMv8-M Security Extensions instructions.
3657         (aeabi_set_public_attributes): Use arm_ext_v8m_m_only instead of
3658         arm_ext_v8m_m to decide the profile and the Thumb ISA.
3659         * testsuite/gas/arm/archv8m-cmse.s: New file.
3660         * testsuite/gas/arm/archv8m-cmse-main.s: Likewise..
3661         * testsuite/gas/arm/archv8m-cmse-msr.s: Likewise.
3662         * testsuite/gas/arm/any-cmse.d: Likewise.
3663         * testsuite/gas/arm/any-cmse-main.d: Likewise.
3664         * testsuite/gas/arm/archv8m-cmse-base.d: Likewise.
3665         * testsuite/gas/arm/archv8m-cmse-msr-base.d: Likewise.
3666         * testsuite/gas/arm/archv8m-cmse-main-1.d: Likewise.
3667         * testsuite/gas/arm/archv8m-cmse-main-2.d: Likewise.
3668         * testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise.
3670 2016-05-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
3672         * testsuite/gas/sparc/sparc5vis4.s: Fix mnemonic of faligndatai.
3673         * testsuite/gas/sparc/sparc5vis4.d: Likewise.
3675 2016-05-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3677         * config/tc-arm.c (fpu_arch_vfp_v1): Mark with ATTRIBUTE_UNUSED.
3678         (fpu_arch_vfp_v3): Likewise.
3679         (fpu_arch_neon_v1): Likewise.
3680         (arm_arch_full): Likewise.
3681         (parse_neon_el_struct_list): Initialize fields of firsttype.
3683 2016-05-03  Claudiu Zissulescu  <claziss@synopsys.com>
3685         * config/tc-arc.c (syntaxclass): Add SYNTAX_NOP and SYNTAX_1OP.
3686         (arc_extinsn): Handle new introduced syntax.
3687         * testsuite/gas/arc/textinsn1op.d: New file.
3688         * testsuite/gas/arc/textinsn1op.s: Likewise.
3689         * doc/c-arc.texi: Document SYNTAX_NOP and SYNTAX_1OP.
3691 2016-05-03  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
3693         * testsuite/gas/lns/lns.exp: Add avr to list of targets using
3694         DW_LNS_fixed_advance_pc.
3696 2016-04-27  Alan Modra  <amodra@gmail.com>
3698         * as.h (inline, __PTR_TO_INT, __INT_TO_PTR): Don't define.
3699         (xmemdup0): New inline function.
3701 2016-04-22  Maciej W. Rozycki  <macro@imgtec.com>
3703         * config/tc-mips.c (code_option_type): New enum.
3704         (parse_code_option): Return status indicating option type.
3705         (s_mipsset): Update `parse_code_option' call site accordingly.
3706         Always set register sizes from the ISA with ISA overrides.
3707         (s_module): Update `parse_code_option' call site.
3708         * testsuite/gas/mips/isa-override-1.d: New test.
3709         * testsuite/gas/mips/micromips@isa-override-1.d: New test.
3710         * testsuite/gas/mips/mips1@isa-override-1.d: New test.
3711         * testsuite/gas/mips/mips2@isa-override-1.d: New test.
3712         * testsuite/gas/mips/mips32@isa-override-1.d: New test.
3713         * testsuite/gas/mips/mips32r2@isa-override-1.d: New test.
3714         * testsuite/gas/mips/mips32r3@isa-override-1.d: New test.
3715         * testsuite/gas/mips/mips32r5@isa-override-1.d: New test.
3716         * testsuite/gas/mips/mips32r6@isa-override-1.d: New test.
3717         * testsuite/gas/mips/mips64r2@isa-override-1.d: New test.
3718         * testsuite/gas/mips/mips64r3@isa-override-1.d: New test.
3719         * testsuite/gas/mips/mips64r5@isa-override-1.d: New test.
3720         * testsuite/gas/mips/mips64r6@isa-override-1.d: New test.
3721         * testsuite/gas/mips/r3000@isa-override-1.d: New test.
3722         * testsuite/gas/mips/r3900@isa-override-1.d: New test.
3723         * testsuite/gas/mips/r5900@isa-override-1.d: New test.
3724         * testsuite/gas/mips/octeon@isa-override-1.d: New test.
3725         * testsuite/gas/mips/octeon3@isa-override-1.d: New test.
3726         * testsuite/gas/mips/isa-override-2.l: New list test.
3727         * testsuite/gas/mips/mips1@isa-override-2.l: New list test.
3728         * testsuite/gas/mips/mips2@isa-override-2.l: New list test.
3729         * testsuite/gas/mips/mips32@isa-override-2.l: New list test.
3730         * testsuite/gas/mips/mips32r2@isa-override-2.l: New list test.
3731         * testsuite/gas/mips/mips32r3@isa-override-2.l: New list test.
3732         * testsuite/gas/mips/mips32r5@isa-override-2.l: New list test.
3733         * testsuite/gas/mips/mips32r6@isa-override-2.l: New list test.
3734         * testsuite/gas/mips/r3000@isa-override-2.l: New list test.
3735         * testsuite/gas/mips/r3900@isa-override-2.l: New list test.
3736         * testsuite/gas/mips/octeon3@isa-override-2.l: New list test.
3737         * testsuite/gas/mips/octeon3@isa-override-1.l: New stderr
3738         output.
3739         * testsuite/gas/mips/isa-override-1.s: New test source.
3740         * testsuite/gas/mips/r5900@isa-override-1.s: New test source.
3741         * testsuite/gas/mips/isa-override-2.s: New test source.
3742         * testsuite/gas/mips/mips1@isa-override-2.s: New test source.
3743         * testsuite/gas/mips/mips2@isa-override-2.s: New test source.
3744         * testsuite/gas/mips/mips32@isa-override-2.s: New test source.
3745         * testsuite/gas/mips/mips32r2@isa-override-2.s: New test source.
3746         * testsuite/gas/mips/mips32r3@isa-override-2.s: New test source.
3747         * testsuite/gas/mips/mips32r5@isa-override-2.s: New test source.
3748         * testsuite/gas/mips/mips32r6@isa-override-2.s: New test source.
3749         * testsuite/gas/mips/r3000@isa-override-2.s: New test source.
3750         * testsuite/gas/mips/r3900@isa-override-2.s: New test source.
3751         * testsuite/gas/mips/octeon3@isa-override-2.s: New test source.
3752         * testsuite/gas/mips/mips.exp: Run the new tests.
3754 2016-04-20  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3756         * cgen.c: Likewise.
3757         * config/tc-bfin.c: Likewise.
3758         * config/tc-ia64.c: Likewise.
3759         * config/tc-mep.c: Likewise.
3760         * config/tc-metag.c: Likewise.
3761         * config/tc-nios2.c: Likewise.
3762         * config/tc-rl78.c: Likewise.
3764 2016-04-20  Andrew Burgess  <andrew.burgess@embecosm.com>
3766         * doc/c-arc.texi (ARC Options): Add nps400 to list of valus for
3767         -mcpu.  Add cross reference to .cpu directive from -mcpu option.
3768         (ARC Directives): Add NPS400 to .cpu directive list.
3770 2016-04-20  Matthew Wahab  <matthew.wahab@arm.com>
3772         * config/tc-aarch64.c (aarch64_features): Add "ras".
3773         * doc/c-aarch64.texi (AArch64 Extensions): Add "ras".
3774         * testsuite/gas/aarch64/armv8-ras-1.d: New.
3775         * testsuite/gas/aarch64/armv8-ras-1.s: New.
3776         * testsuite/gas/aarch64/illegal-ras-1.d: New.
3777         * testsuite/gas/aarch64/illegal-ras-1.s: New.
3779 2016-04-19  Andrew Burgess  <andrew.burgess@embecosm.com>
3781         * testsuite/gas/arc/nps400-6.d: New file.
3782         * testsuite/gas/arc/nps400-6.s: New file.
3784 2016-04-19  Andrew Burgess  <andrew.burgess@embecosm.com>
3786         * testsuite/gas/arc/nps400-4.d: New file.
3787         * testsuite/gas/arc/nps400-4.s: New file.
3788         * testsuite/gas/arc/nps400-5.d: New file.
3789         * testsuite/gas/arc/nps400-5.s: New file.
3791 2016-04-19  Martin Galvan  <martin.galvan@tallertechnologies.com>
3793         * doc/as.texinfo (.cfi_remember_state, .cfi_restore_state): Improve
3794         documentation.
3796 2016-04-17  Andrew Burgess  <andrew.burgess@embecosm.com>
3798         Revert prevous change.
3799         * config/tc-arc.c (arc_option): Make .cpu directive
3800         case-sensitive again.
3802 2016-04-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3804         * config/tc-arc.c (arc_option): Make .cpu directive
3805         case-insensitive.
3807 2016-04-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3809         * config/tc-arc.c (arc_option): Allow NPS400 in .cpu directive.
3811 2016-04-15  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3813         * config/tc-mips.c (md_begin): Remove useless assignment.
3815 2016-04-15  H.J. Lu  <hongjiu.lu@intel.com>
3817         * Makefile.in: Regenerated with automake 1.11.6.
3818         * aclocal.m4: Likewise.
3819         * doc/Makefile.in: Likewise.
3821 2016-04-15  Alan Modra  <amodra@gmail.com>
3823         * config/tc-ppc.c (toc_reloc_types): Wrap in #ifdef OBJ_ELF
3825 2016-04-14  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3827         * config/tc-nios2.c (nios2_as_options): Make file static.
3828         * config/tc-ppc.c (toc_reloc_ypes): Likewise.
3829         * config/tc-sparc.c (native_op_table): Likewise.
3831 2016-04-14  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
3833         * config/tc-m32c.c (M32C_Macros): Remove.
3834         * config/tc-msp430.c (option_numbers): Likewise.
3836 2016-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
3838         * testsuite/gas/arc/nps400-3.d: New file.
3839         * testsuite/gas/arc/nps400-3.s: New file.
3841 2016-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
3843         * testsuite/gas/arc/add_s-err.s: Update target pattern.
3844         * testsuite/gas/arc/warn.s: Likewise.
3845         * testsuite/gas/elf/elf.exp: Run test for arc.
3847 2016-04-14  Nick Clifton  <nickc@redhat.com>
3849         PR target/19938
3850         * testsuite/gas/i386/ilp32/x86-64-unwind.d: Allow for the string
3851         sections possibly having the SHF_STRINGS flag bit set.
3852         * testsuite/gas/i386/x86-64-unwind.d: Likewise.
3854 2016-04-12  Claudiu Zissulescu  <claziss@synopsys.com>
3856         * config/tc-arc.c (mach_type_specified_p): Change type to
3857         bfd_boolean.
3858         (arc_option): Set private flags when parsing cpu pseudo-op.
3859         (md_parse_option): Set mach_type_specified_p to TRUE.
3861 2016-04-13  Nick Clifton  <nickc@redhat.com>
3863         PR target/19937
3864         * testsuite/gas/v850/pr19937.s: New test.
3865         * testsuite/gas/v850/pr19937.d: New test control file.
3866         * testsuite/gas/v850/basic.exp: Run the new test.
3868 2016-04-13  Maciej W. Rozycki  <macro@imgtec.com>
3869             Andrew Bennett  <andrew.bennett@imgtec.com>
3871         * config/tc-mips.c (relaxed_branch_length): Use the long
3872         sequence where the target is a weak symbol.
3873         (relaxed_micromips_32bit_branch_length): Likewise.
3874         (relaxed_micromips_16bit_branch_length): Likewise.
3875         * testsuite/gas/mips/branch-weak-1.d: New test.
3876         * testsuite/gas/mips/branch-weak-2.d: New test.
3877         * testsuite/gas/mips/branch-weak-3.d: New test.
3878         * testsuite/gas/mips/branch-weak-4.d: New test.
3879         * testsuite/gas/mips/branch-weak-5.d: New test.
3880         * testsuite/gas/mips/branch-weak.l: New stderr output.
3881         * testsuite/gas/mips/branch-weak.s: New test source.
3882         * testsuite/gas/mips/mips.exp: Run the new tests.
3884 2016-04-13  Maciej W. Rozycki  <macro@imgtec.com>
3886         * config/tc-mips.c (relaxed_branch_length): Use the long
3887         sequence where the distance cannot be determined.
3888         (relaxed_micromips_32bit_branch_length): Likewise.
3889         * testsuite/gas/mips/branch-extern-1.d: New test.
3890         * testsuite/gas/mips/branch-extern-2.d: New test.
3891         * testsuite/gas/mips/branch-extern-3.d: New test.
3892         * testsuite/gas/mips/branch-extern-4.d: New test.
3893         * testsuite/gas/mips/branch-extern.l: New stderr output.
3894         * testsuite/gas/mips/branch-extern.s: New test source.
3895         * testsuite/gas/mips/branch-section-1.d: New test.
3896         * testsuite/gas/mips/branch-section-2.d: New test.
3897         * testsuite/gas/mips/branch-section-3.d: New test.
3898         * testsuite/gas/mips/branch-section-4.d: New test.
3899         * testsuite/gas/mips/branch-section.l: New stderr output.
3900         * testsuite/gas/mips/branch-section.s: New test source.
3901         * testsuite/gas/mips/mips.exp: Run the new tests.
3903 2016-04-12  Claudiu Zissulescu  <claziss@synopsys.com>
3905         * testsuite/gas/arc/textauxregister.d: New file.
3906         * testsuite/gas/arc/textauxregister.s: Likewise.
3907         * testsuite/gas/arc/textcondcode.d: Likewise.
3908         * testsuite/gas/arc/textcondcode.s: Likewise.
3909         * testsuite/gas/arc/textcoreregister.d: Likewise.
3910         * testsuite/gas/arc/textcoreregister.s: Likewise.
3911         * testsuite/gas/arc/textpseudoop.d: Likewise.
3912         * testsuite/gas/arc/textpseudoop.s: Likewise.
3913         * testsuite/gas/arc/ld2.d: Update test.
3914         * testsuite/gas/arc/st.d: Likewise.
3915         * testsuite/gas/arc/taux.d: Likewise.
3916         * doc/c-arc.texi (ARC Directives): Add .extCondCode,
3917         .extCoreRegister and .extAuxRegister documentation.
3918         * config/tc-arc.c (arc_extcorereg): New function.
3919         (md_pseudo_table): Add .extCondCode, .extCoreRegister and
3920         .extAuxRegister pseudo-ops.
3921         (extRegister_t): New type.
3922         (ext_condcode, arc_aux_hash): New global variable.
3923         (find_opcode_match): Check for extensions.
3924         (preprocess_operands): Likewise.
3925         (md_begin): Add aux registers in a hash.
3926         (assemble_insn): Update use arc_flags member.
3927         (tokenize_extregister): New function.
3928         (create_extcore_section): Likewise.
3929         * config/tc-arc.h (arc_flags): Delete code, add flgp.
3931 2016-04-12  Claudiu Zissulescu  <claziss@synopsys.com>
3933         * testsuite/gas/arc/noargs_a7.d: New file.
3934         * testsuite/gas/arc/noargs_a7.s: Likewise.
3935         * testsuite/gas/arc/noargs_hs.d: Likewise.
3936         * testsuite/gas/arc/noargs_hs.s: Likewise.
3938 2016-04-12  Claudiu Zissulescu  <claziss@synopsys.com>
3940         * testsuite/gas/arc/textinsn-errors.d: New File.
3941         * testsuite/gas/arc/textinsn-errors.err: Likewise.
3942         * testsuite/gas/arc/textinsn-errors.s: Likewise.
3943         * testsuite/gas/arc/textinsn2op.d: Likewise.
3944         * testsuite/gas/arc/textinsn2op.s: Likewise.
3945         * testsuite/gas/arc/textinsn2op01.d: Likewise.
3946         * testsuite/gas/arc/textinsn2op01.s: Likewise.
3947         * testsuite/gas/arc/textinsn3op.d: Likewise.
3948         * testsuite/gas/arc/textinsn3op.s: Likewise.
3949         * doc/c-arc.texi (ARC Directives): Add .extInstruction
3950         documentation.
3951         * config/tc-arc.c (arcext_section): New variable.
3952         (arc_extinsn): New function.
3953         (md_pseudo_table): Add .extInstruction pseudo op.
3954         (attributes_t): New type.
3955         (suffixclass, syntaxclass, syntaxclassmod): New constant
3956         structures.
3957         (find_opcode_match): Remove arc_num_opcodes.
3958         (md_begin): Likewise.
3959         (tokenize_extinsn): New function.
3960         (arc_set_ext_seg): Likewise.
3961         (create_extinst_section): Likewise.
3963 2016-04-12  Claudiu Zissulescu  <claziss@synopsys.com>
3965         * config/tc-arc.c (preprocess_operands): Mark AUX symbol.
3966         (arc_adjust_symtab): New function.
3967         * config/tc-arc.h (ARC_FLAG_AUX): Define.
3968         (obj_adjust_symtab): Likewise.
3969         * testsuite/gas/arc/taux.d: New file.
3970         * testsuite/gas/arc/taux.s: Likewise.
3972 2016-04-09  Maciej W. Rozycki  <macro@imgtec.com>
3974         * config/tc-mips.c (s_option): Sanitize `.option picX'
3975         pseudo-op.
3976         * testsuite/gas/mips/option-pic-1.d: New test.
3977         * testsuite/gas/mips/option-pic-2.l: New list test.
3978         * testsuite/gas/mips/option-pic-1.s: New test source.
3979         * testsuite/gas/mips/option-pic-2.s: New test source.
3980         * testsuite/gas/mips/mips.exp: Run the new tests.
3982 2016-04-09  Maciej W. Rozycki  <macro@imgtec.com>
3984         * config/tc-mips.c (s_option): Reject `.option picX' if VxWorks
3985         PIC.
3986         * testsuite/gas/mips/option-pic-vxworks-1.l: New list test.
3987         * testsuite/gas/mips/option-pic-vxworks-2.l: New list test.
3988         * testsuite/gas/mips/option-pic-vxworks-1.s: New test source.
3989         * testsuite/gas/mips/option-pic-vxworks-2.s: New test source.
3990         * testsuite/gas/mips/mips.exp: Run the new tests.
3992 2016-04-09  Maciej W. Rozycki  <macro@imgtec.com>
3994         * config/tc-mips.c (can_swap_branch_p): Correct call formatting.
3996 2016-04-09  Maciej W. Rozycki  <macro@imgtec.com>
3998         * messages.c (as_bad): Fix a typo in description.
4000 2016-04-09  Maciej W. Rozycki  <macro@imgtec.com>
4002         * config/tc-mips.c (mips_check_options): Unify messages.
4004 2016-04-09  Maciej W. Rozycki  <macro@imgtec.com>
4006         * config/tc-mips.c (mips_check_options): Use `opts->isa'
4007         consistently.
4009 2016-04-08  Nick Clifton  <nickc@redhat.com>
4011         PR target/19910
4012         * testsuite/gas/sparc/pr19910-1.d: Adjust regexps to work with
4013         COFF and AOUT sparc targets.
4015 2016-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
4017         * config/tc-arc.h (MAX_FLAG_NAME_LENGTH): Increase to 7.
4018         * testsuite/gas/arc/nps400-2.d: New file.
4019         * testsuite/gas/arc/nps400-2.s: New file.
4021 2016-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
4023         * config/tc-arc.c (struct arc_opcode_hash_entry_iterator): New
4024         structure.
4025         (arc_opcode_hash_entry_iterator_init): New function.
4026         (arc_opcode_hash_entry_iterator_next): New function.
4027         (find_opcode_match): Iterate over all arc_opcode entries
4028         referenced by the arc_opcode_hash_entry passed in as a parameter.
4030 2016-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
4032         * config/tc-arc.c (arc_find_opcode): Now returns
4033         arc_opcode_hash_entry pointer.
4034         (find_opcode_match): Update argument type, extract arc_opcode from
4035         incoming arc_opcode_hash_entry.
4036         (find_special_case_pseudo): Update return type.
4037         (find_special_case_flag): Update return type.
4038         (find_special_case): Update return type.
4039         (assemble_tokens): Lookup arc_opcode_hash_entry based on
4040         instruction mnemonic, then use find_opcode_match to identify
4041         specific arc_opcode.
4043 2016-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
4045         * config/tc-arc.c (struct arc_opcode_hash_entry): New structure.
4046         (arc_find_opcode): New function.
4047         (find_special_case_pseudo): Use arc_find_opcode.
4048         (find_special_case_flag): Likewise.
4049         (assemble_tokens): Likewise.
4050         (md_begin): Build hash using struct arc_opcode_hash_entry.
4052 2016-04-07  Claudiu Zissulescu  <claziss@synopsys.com>
4054         * config/tc-arc.c (arc_option): Prepare string for automatic
4055         translation.
4056         (declare_register): Likewise.
4058 2016-04-06  James Greenhalgh  <james.greenhalgh@arm.com>
4060         * doc/c-aarch64.texi (Architecture Extensions): Add entry for LSE.
4061         Correct entry for RDMA.  Alpha sort entries.
4063 2016-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
4065         * config/tc-arc.c (tokenize_flags): Allow greater range of
4066         characters into flag names.
4068 2016-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
4070         * config/tc-arc.c (find_opcode_match): Handle O_symbol case, add
4071         new de_fault label.
4072         (preprocess_operands): Delete.
4073         (assemble_tokens): Remove call to preprocess_operands.
4075 2016-04-07  Nick Clifton  <nickc@redhat.com>
4077         PR gas/19910
4078         * config/tc-sparc.c (sparc_ip): Report an error if the expression
4079         inside a %-macro could not be fully parsed.
4080         * expr.c (integer_constant): Accept and ignore U suffixes to
4081         integers.
4082         (operand): When a missing closing parenthesis is encountered,
4083         report the character that was found instead.
4084         * testsuite/gas/mips/tls-ill.l: Update expected error message.
4085         * testsuite/gas/sparc/pr19910-1.d: New test driver.
4086         * testsuite/gas/sparc/pr19910-1.s: New test.
4087         * testsuite/gas/sparc/pr19910-2.l: Expected error output.
4088         * testsuite/gas/sparc/pr19910-2.s: New test.
4089         * testsuite/gas/sparc/sparc.exp: Run the new tests.
4091 2016-04-06  Nick Clifton  <nickc@redhat.com>
4093         * config/tc-msp430.c (msp430_operands): Check for a NOP preceding
4094         an EINT instruction.  Warn/fix as necessary.
4095         * testsuite/gas/msp430/bad.s: Add test of EINT without preceding NOP.
4096         * testsuite/gas/msp430/bad.l: Update expected messages.
4098 2016-04-05  Andrew Burgess  <andrew.burgess@embecosm.com>
4100         * testsuite/gas/arc/nps400-1.d: Update expected results.
4101         * testsuite/gas/arc/nps400-1.s: Additional test cases.
4103 2016-04-05  Claudiu Zissulescu  <claziss@synopsys.com>
4105         * config/tc-arc.c (is_code_density_p): Compare directly the
4106         subclass field.
4107         (is_spfp_p, is_dpfp_p, is_spfp_p): Define.
4108         (check_cpu_feature): New function.
4109         (find_opcode_match): Use check_cpu_feature function.
4110         (preprocess_operands): Likewise.
4111         (md_parse_option): Use mfpuda, mdpfp, mspfp options.
4112         * testsuite/gas/arc/tdpfp.d: New file.
4113         * testsuite/gas/arc/tfpuda.d: Likewise.
4114         * testsuite/gas/arc/tfpx.s: Likewise.
4116 2016-04-05  Jiong Wang  <jiong.wang@arm.com>
4118         * config/tc-arm.c (do_neon_mac_maybe_scalar): Allow F16.
4119         * testsuite/gas/arm/armv8-2-fp16-simd.s: New tests.
4120         * testsuite/gas/arm/armv8-2-fp16-simd.d: New expected results.
4121         * testsuite/gas/arm/armv8-2-fp16-simd-thum.d: Likewise for Thumb.
4122         * testsuite/gas/arm/armv8-2-fp16-simd-warning.l: New warning results.
4123         * testsuite/gas/arm/simd_by_scalar_low_regbank.s: New test source.
4124         * testsuite/gas/arm/simd_by_scalar_low_regbank.d: New testcase.
4125         * testsuite/gas/arm/simd_by_scalar_low_regbank_thumb.d: Likewise
4126         for Thumb.
4127         * testsuite/gas/arm/simd_by_scalar_low_regbank.l: New warning results.
4129 2016-04-05  Claudiu Zissulescu  <claziss@synopsys.com>
4131         * config/tc-arc.c (assemble_insn): Prohibit pc-rel relocations for
4132         JUMP instructions type.
4133         * testsuite/gas/arc/relocs-errors.d: New file.
4134         * testsuite/gas/arc/relocs-errors.err: Likewise.
4135         * testsuite/gas/arc/relocs-errors.s: Likewise.
4137 2016-04-04  H.J. Lu  <hongjiu.lu@intel.com>
4139         PR gas/19909
4140         * config/tc-i386.c (check_VecOperands): Try vec_disp8 encoding
4141         only if i.disp_encoding != disp_encoding_32bit.
4142         * gas/testsuite/gas/i386/disp32.s: Add tests for vmovdqu64.d32.
4143         * gas/testsuite/gas/i386/x86-64-disp32.s: Likewise.
4144         * gas/testsuite/gas/i386/disp32.d: Updated.
4145         * gas/testsuite/gas/i386/x86-64-disp32.d: Likewise.
4147 2016-04-04  H.J. Lu  <hongjiu.lu@intel.com>
4149         PR gas/19498
4150         * testsuite/gas/i386/i386.exp: Run pr19498.
4151         * testsuite/gas/i386/pr19498.d: New file.
4152         * testsuite/gas/i386/pr19498.s: Likewise.
4154 2016-04-04  Andrew Burgess  <andrew.burgess@embecosm.com>
4156         * config/tc-arc.h: Include 'opcode/arc.h'.
4157         (MAX_INSN_ARGS): Delete.
4158         (MAX_INSN_FLGS): Delete.
4160 2016-04-04  Alan Modra  <amodra@gmail.com>
4162         PR 19498
4163         * symbols.c (resolve_symbol_value): Clear sy_resolving on exit
4164         from function on all paths that set sy_resolving.
4166 2016-04-03  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4168         * app.c (app_push): use XNEW macro.
4169         * as.c: Likewise.
4170         * config/obj-elf.c (obj_elf_change_section): Likewise.
4171         (elf_copy_symbol_attributes): Likewise.
4172         (obj_elf_size): Likewise.
4173         (build_group_lists): Likewise.
4174         * config/tc-aarch64.c (add_operand_error_record): Likewise.
4175         (md_assemble): Likewise.
4176         (tc_gen_reloc): Likewise.
4177         (get_upper_str): Likewise.
4178         (aarch64_parse_features): Likewise.
4179         * config/tc-arm.c (insert_reg_alias): Likewise.
4180         (insert_neon_reg_alias): Likewise.
4181         (find_or_make_literal_pool): Likewise.
4182         (s_arm_elf_cons): Likewise.
4183         (add_unwind_opcode): Likewise.
4184         (arm_parse_extension): Likewise.
4185         * config/tc-avr.c (create_record_for_frag): Likewise.
4186         * config/tc-crx.c: Likewise.
4187         * config/tc-d30v.c: Likewise.
4188         * config/tc-dlx.c (s_proc): Likewise.
4189         * config/tc-ft32.c: Likewise.
4190         * config/tc-h8300.c: Likewise.
4191         * config/tc-hppa.c (pa_proc): Likewise.
4192         (create_new_space): Likewise.
4193         (create_new_subspace): Likewise.
4194         * config/tc-i860.c: Likewise.
4195         * config/tc-i960.c: Likewise.
4196         * config/tc-ia64.c: Likewise.
4197         * config/tc-iq2000.c (iq2000_add_macro): Likewise.
4198         (iq2000_record_hi16): Likewise.
4199         * config/tc-m32c.c (m32c_indirect_operand): Likewise.
4200         * config/tc-m32r.c (debug_sym): Likewise.
4201         (m32r_record_hi16): Likewise.
4202         * config/tc-m68k.c (m68k_ip): Likewise.
4203         (md_begin): Likewise.
4204         * config/tc-mcore.c: Likewise.
4205         * config/tc-microblaze.c (check_got): Likewise.
4206         * config/tc-mips.c (append_insn): Likewise.
4207         (s_mipsset): Likewise.
4208         (mips_record_label): Likewise.
4209         (s_mips_end): Likewise.
4210         * config/tc-mmix.c (mmix_frob_file): Likewise.
4211         * config/tc-mn10200.c: Likewise.
4212         * config/tc-mn10300.c: Likewise.
4213         * config/tc-moxie.c: Likewise.
4214         * config/tc-msp430.c: Likewise.
4215         * config/tc-nds32.c (nds32_elf_save_pseudo_pattern): Likewise.
4216         * config/tc-ns32k.c: Likewise.
4217         * config/tc-or1k.c: Likewise.
4218         * config/tc-pdp11.c: Likewise.
4219         * config/tc-pj.c (fake_opcode): Likewise.
4220         * config/tc-ppc.c (ppc_apuinfo_section_add): Likewise.
4221         (ppc_macro): Likewise.
4222         (ppc_dwsect): Likewise.
4223         (ppc_machine): Likewise.
4224         * config/tc-rl78.c (rl78_frag_init): Likewise.
4225         * config/tc-rx.c (rx_frag_init): Likewise.
4226         * config/tc-s390.c (s390_lit_suffix): Likewise.
4227         (s390_machine): Likewise.
4228         (s390_machinemode): Likewise.
4229         * config/tc-score.c (s3_insert_reg): Likewise.
4230         (s3_gen_reloc): Likewise.
4231         * config/tc-score7.c (s7_insert_reg): Likewise.
4232         (s7_gen_reloc): Likewise.
4233         * config/tc-tic30.c (tic30_operand): Likewise.
4234         * config/tc-tic4x.c (tic4x_inst_make): Likewise.
4235         * config/tc-tic54x.c (stag_add_field): Likewise.
4236         (tic54x_struct): Likewise.
4237         (tic54x_space): Likewise.
4238         (tic54x_field): Likewise.
4239         (tic54x_mlib): Likewise.
4240         (subsym_substitute): Likewise.
4241         * config/tc-tic6x.c (tic6x_frob_label): Likewise.
4242         * config/tc-vax.c: Likewise.
4243         * config/tc-xc16x.c: Likewise.
4244         * config/tc-xtensa.c (xtensa_add_insn_label): Likewise.
4245         (directive_push): Likewise.
4246         (xtensa_begin_directive): Likewise.
4247         (tokenize_arguments): Likewise.
4248         (xtensa_add_literal_sym): Likewise.
4249         (new_resource_table): Likewise.
4250         (resize_resource_table): Likewise.
4251         (emit_single_op): Likewise.
4252         (xtensa_create_trampoline_frag): Likewise.
4253         (xtensa_maybe_create_literal_pool_frag): Likewise.
4254         (xtensa_add_config_info): Likewise.
4255         (xtensa_realloc_fixup_cache): Likewise.
4256         (add_subseg_info): Likewise.
4257         (cache_literal_section): Likewise.
4258         (add_xt_block_frags): Likewise.
4259         (add_xt_prop_frags): Likewise.
4260         (init_op_placement_info_table): Likewise.
4261         (build_section_rename): Likewise.
4262         * config/tc-z80.c: Likewise.
4263         * config/tc-z8k.c: Likewise.
4264         * depend.c (register_dependency): Likewise.
4265         * dwarf2dbg.c (get_line_subseg): Likewise.
4266         (dwarf2_gen_line_info_1): Likewise.
4267         (get_filenum): Likewise.
4268         * ecoff.c (allocate_scope): Likewise.
4269         (allocate_vlinks): Likewise.
4270         (allocate_shash): Likewise.
4271         (allocate_thash): Likewise.
4272         (allocate_tag): Likewise.
4273         (allocate_forward): Likewise.
4274         (allocate_thead): Likewise.
4275         (allocate_lineno_list): Likewise.
4276         * expr.c (make_expr_symbol): Likewise.
4277         * hash.c (hash_new_sized): Likewise.
4278         * input-file.c (input_file_push): Likewise.
4279         * listing.c (file_info): Likewise.
4280         (listing_newline): Likewise.
4281         * macro.c (new_formal): Likewise.
4282         (define_macro): Likewise.
4283         * remap.c (add_debug_prefix_map): Likewise.
4284         * symbols.c (symbol_find_noref): Likewise.
4285         (define_dollar_label): Likewise.
4286         (fb_label_instance_inc): Likewise.
4287         (symbol_relc_make_value): Likewise.
4289 2016-04-03  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4291         * config/obj-elf.c (obj_elf_vendor_attribute): Use xstrdup.
4292         * config/tc-ppc.c (ppc_frob_file_before_adjust): Likewise.
4293         (ppc_znop): Likewise.
4294         (ppc_pe_section): Likewise.
4295         (ppc_frob_symbol): Likewise.
4296         * config/tc-tic30.c (tic30_operand): Likewise.
4297         * config/tc-tic4x.c (tic4x_sect): Likewise.
4298         (tic4x_usect): Likewise.
4300 2016-04-03  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4302         * config/tc-alpha.c: Const qualify FLT_CHARS.
4303         * config/atof-ieee.c: Remove declarations of FLT_CHARS and EXP_CHARS.
4304         * config/tc-cris.h: Likewise.
4305         * expr.c: Likewise.
4306         * config/tc-mmix.c (md_atof): Adjust comment.
4307         * config/tc-mmix.h: Stop defining FLT_CHARS and EXP_CHARS as macros.
4308         * tc.h: Declare FLT_CHARS and EXP_CHARS.
4310 2016-04-03  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4312         * config/tc-score.c (s3_gen_reloc): Add const qualifiers.
4313         * config/tc-score7.c (s7_gen_reloc): Likewise.
4315 2016-04-03  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4317         * config/tc-arm.c (do_t_branch): Change the type of reloc to
4318         bfd_reloc_code_real_type.
4320 2016-04-03  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4322         * config/bfin-parse.y (current_inputline): Remove definition.
4323         * config/tc-bfin.c (md_assemble): Simplify use of current_inputline.
4325 2016-04-03  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4327         * config/tc-avr.c (md_parse_option): Use strcasecmp () to compare
4328         strings.
4330 2016-04-02  Alan Modra  <amodra@gmail.com>
4332         PR 19896
4333         * read.c (assign_symbol): Consume rest of line after an error
4334         rather than continuing to process the line.
4336 2016-04-01  Andrew Burgess  <andrew.burgess@embecosm.com>
4338         * config/tc-arc.h (MAX_FLAG_NAME_LENGHT): Rename to...
4339         (MAX_FLAG_NAME_LENGTH): ...this.
4340         (struct arc_flags): Update to use MAX_FLAG_NAME_LENGTH.
4341         * config/tc-arc.c (tokenize_flags): Likewise.
4343 2016-04-01  Alan Modra  <amodra@gmail.com>
4345         * cgen.c (weak_operand_overflow_check): Return const char*.
4346         * messages.c (as_internal_value_out_of_range): Formatting.
4347         (as_warn_value_out_of_range): Consify prefix param.
4348         (as_bad_value_out_of_range): Likewise.
4349         * read.c (s_errwarn): Constify msg..
4350         (s_float_space, float_cons): ..and err.
4351         * as.h (as_warn_value_out_of_range, as_bad_value_out_of_range,
4352         ieee_md_atof, vax_md_atof): Update prototypes.
4353         * tc.h (md_atof): Update prototype.
4354         * config/atof-ieee.c (ieee_md_atof): Return const char*.
4355         * config/atof-vax.c (vax_md_atof): Likewise.
4356         * config/obj-elf.c (obj_elf_parse_section_letters): Constify bad_msg.
4357         * config/tc-aarch64.c (md_atof): Return const char*.
4358         * config/tc-alpha.c (s_alpha_section_name): Likewise.
4359         (s_alpha_comm): Constify sec_name.
4360         (section_name): Constify.
4361         (s_alpha_section): Consify name..
4362         (alpha_elf_section_letter): ..and ptr_msg param..
4363         (md_atof): ..and return.
4364         * config/tc-alpha.h (alpha_elf_section_letter): Update prototype.
4365         * config/tc-arc.c (md_atof): Return const char*.
4366         * config/tc-arm.c (md_atof): Likewise.
4367         * config/tc-avr.c (md_atof): Likewise.
4368         * config/tc-bfin.c (md_atof): Likewise.
4369         * config/tc-cr16.c (md_atof): Likewise.
4370         * config/tc-cris.c (md_atof): Likewise.
4371         * config/tc-crx.c (md_atof): Likewise.
4372         * config/tc-d10v.c (md_atof): Likewise.
4373         * config/tc-d30v.c (md_atof): Likewise.
4374         * config/tc-dlx.c (md_atof): Likewise.
4375         * config/tc-epiphany.c (md_atof): Likewise.
4376         * config/tc-fr30.c (md_atof): Likewise.
4377         * config/tc-frv.c (md_atof): Likewise.
4378         * config/tc-ft32.c (md_atof): Likewise.
4379         * config/tc-h8300.c (md_atof): Likewise.
4380         * config/tc-hppa.c (struct default_subspace_dict): Constify name.
4381         (struct default_space_dict): Likewise.
4382         (create_new_space): Constify name param.
4383         (create_new_subspace): Likewise.
4384         (is_defined_space, is_defined_subspace): Likewise.
4385         (pa_parse_space_stmt): Constify space_name param.
4386         (md_atof): Return const char*.
4387         (pa_spaces_begin): Constify name.
4388         * config/tc-i370.c (md_atof): Return const char*.
4389         * config/tc-i386.c (md_atof): Likewise.
4390         (x86_64_section_letter): Constify ptr_msg param.
4391         * config/tc-i386.h (x86_64_section_letter): Update prototype.
4392         * config/tc-i860.c (struct i860_it): Constify error.
4393         (md_atof): Return const char*.
4394         * config/tc-i960.c (md_atof): Likewise.
4395         * config/tc-ia64.c (md_atof): Likewise.
4396         (ia64_elf_section_letter): Constify ptr_msg param.
4397         * config/tc-ia64.h (ia64_elf_section_letter): Update prototype.
4398         * config/tc-ip2k.c (md_atof): Return const char*.
4399         * config/tc-iq2000.c (md_atof): Likewise.
4400         * config/tc-lm32.c (md_atof): Likewise.
4401         * config/tc-m32c.c (md_atof): Likewise.
4402         * config/tc-m32r.c (md_atof): Likewise.
4403         * config/tc-m68hc11.c (md_atof): Likewise.
4404         * config/tc-m68k.c (md_atof): Likewise.
4405         * config/tc-mcore.c (md_atof): Likewise.
4406         * config/tc-mep.c (md_atof): Likewise.
4407         (mep_elf_section_letter): Constify ptr_msg param.
4408         * config/tc-mep.h (mep_elf_section_letter): Update prototype.
4409         * config/tc-metag.c (md_atof): Return const char*.
4410         * config/tc-microblaze.c (md_atof): Likewise.
4411         * config/tc-microblaze.h (md_atof): Delete prototype.
4412         * config/tc-mips.c (mips_parse_argument_token): Constify err.
4413         (md_atof): Return const char*.
4414         * config/tc-mmix.c (md_atof): Likewise.
4415         * config/tc-mn10200.c (md_atof): Likewise.
4416         * config/tc-mn10300.c (md_atof): Likewise.
4417         * config/tc-moxie.c (md_atof): Likewise.
4418         * config/tc-msp430.c (md_atof): Likewise.
4419         * config/tc-mt.c (md_atof): Likewise.
4420         * config/tc-nds32.c (md_atof): Likewise.
4421         * config/tc-nios2.c (md_atof): Likewise.
4422         (nios2_elf_section_letter): Constify ptr_msg param.
4423         * config/tc-nios2.h (nios2_elf_section_letter): Update prototype.
4424         * config/tc-ns32k.c (md_atof): Return const char*.
4425         * config/tc-or1k.c (md_atof): Likewise.
4426         * config/tc-pdp11.c (struct pdp11_code): Constify error.
4427         (md_atof): Return const char*.
4428         * config/tc-pj.c (md_atof): Likewise.
4429         * config/tc-ppc.c (md_atof): Likewise.
4430         * config/tc-rl78.c (md_atof): Likewise.
4431         * config/tc-rx.c (md_atof): Likewise.
4432         * config/tc-s390.c (md_atof): Likewise.
4433         * config/tc-score.c (s3_atof, md_atof): Likewise.
4434         * config/tc-sh.c (md_atof): Likewise.
4435         * config/tc-sparc.c (struct sparc_it): Constify error.
4436         (md_atof): Return const char*.
4437         * config/tc-spu.c (md_atof): Likewise.
4438         * config/tc-tic30.c (md_atof): Likewise.
4439         * config/tc-tic4x.c (md_atof): Likewise.
4440         * config/tc-tic54x.c (md_atof): Likewise.
4441         * config/tc-tic6x.c (md_atof): Likewise.
4442         * config/tc-tilegx.c (md_atof): Likewise.
4443         * config/tc-tilepro.c (md_atof): Likewise.
4444         * config/tc-v850.c (parse_register_list, md_atof): Likewise.
4445         * config/tc-vax.c (md_atof): Likewise.
4446         * config/tc-visium.c (md_atof): Likewise.
4447         * config/tc-xc16x.c (md_atof): Likewise.
4448         * config/tc-xgate.c (md_atof): Likewise.
4449         * config/tc-xstormy16.c (md_atof): Likewise.
4450         * config/tc-xtensa.c (md_atof): Likewise.
4451         * config/tc-z80.c (md_atof): Likewise.
4452         * config/tc-z8k.c (md_atof): Likewise.
4454 2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4456         * config/tc-xtensa.c (struct rename_section_struct): Make old_name
4457         const.
4458         (xtensa_section_rename): Make argument type const char *.
4459         * config/tc-xtensa.h (xtensa_section_rename): Adjust.
4461 2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4463         * config/tc-i960.c (parse_ldconst): Cast to char * when assigning to
4464         args[0].
4466 2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4468         * config/tc-m32c.c (m32c_md_end): cast the argument to md_assemble to
4469         char *.
4470         (m32c_indirect_operand): Likewise.
4471         * config/tc-nds32.c (do_pseudo_b): Likewise.
4472         (do_pseudo_bal): Likewise.
4473         (do_pseudo_ls_bhw): Likewise.
4475 2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4477         * as.c (parse_args): Cast literal to char * when assigning to optarg.
4479 2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4481         * config/tc-ia64.c (md_assemble): Add temporary variable to pass to
4482         get_symbol_name ().
4483         * config/tc-sparc.c (s_register): Cast a literal to char * in
4484         assignment.
4486 2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4488         * config/tc-i960.c (parse_expr): Cast to char * when assigning to
4489         input_line_pointer.
4490         * config/tc-m32r.c (expand_debug_syms): Likewise.
4491         * config/tc-msp430.c (msp430_dstoperand): Likewise.
4492         * config/tc-z80.c (md_begin): Likewise.
4493         * stabs.c (stabs_generate_asm_func): Likewise.
4495 2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4497         * cgen.c: Modernize the way functions declare arguments.
4498         * config/tc-bfin.c: Likewise.
4499         * config/tc-pdp11.c: Likewise.
4500         * literal.c: Likewise.
4501         * read.c: Likewise.
4502         * stabs.c: Likewise.
4504 2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4506         * config/tc-aarch64.c (aarch64_handle_align): Make the type of some
4507         variables unsigned char[].
4508         * config/tc-alpha.c (alpha_handle_align): Likewise.
4509         * config/tc-arm.c (arm_handle_align): Likewise.
4510         * config/tc-z80.c: Likewise.
4512 2016-03-30  Nick Clifton  <nickc@redhat.com>
4514         PR target/19880
4515         * config/tc-arm.c (do_t_push_pop): Cast bitmask to unsigned before
4516         shifting.
4518 2016-03-30  Claudiu Zissulescu  <claziss@synopsys.com>
4520         * testsuite/gas/all/gas.exp: Don't xfail on ARC.
4521         * testsuite/gas/elf/elf.exp: Likewise.
4522         * testsuite/gas/all/redef3.d: Allow execution for ARC.
4524 2016-03-30  Claudiu Zissulescu  <claziss@synopsys.com>
4526         * testsuite/gas/arc/warn.exp: Fix matching pattern.
4528 2016-03-29  Claudiu Zissulescu  <claziss@synopsys.com>
4530         * testsuite/gas/arc/ext2op.d: New file.
4531         * testsuite/gas/arc/ext2op.s: Likewise.
4532         * testsuite/gas/arc/ext3op.d: Likewise.
4533         * testsuite/gas/arc/ext3op.s: Likewise.
4535 2016-03-29  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4537         * config/tc-aarch64.c (struct aarch64_long_option_table): Ad const
4538         qualifier.
4539         * config/tc-alpha.c (md_parse_option): Likewise.
4540         * config/tc-arc.c (md_parse_option): Likewise.
4541         * config/tc-arm.c (struct arm_long_option_table): Likewise.
4542         (md_parse_option): Likewise.
4543         * config/tc-avr.c (md_parse_option): Likewise.
4544         * config/tc-bfin.c (md_parse_option): Likewise.
4545         * config/tc-cr16.c (md_parse_option): Likewise.
4546         * config/tc-cris.c (s_cris_arch): Likewise.
4547         (md_parse_option): Likewise.
4548         * config/tc-crx.c (md_parse_option): Likewise.
4549         * config/tc-d10v.c (md_parse_option): Likewise.
4550         * config/tc-d30v.c (md_parse_option): Likewise.
4551         * config/tc-dlx.c (md_parse_option): Likewise.
4552         * config/tc-epiphany.c (md_parse_option): Likewise.
4553         * config/tc-fr30.c (md_parse_option): Likewise.
4554         * config/tc-frv.c (md_parse_option): Likewise.
4555         * config/tc-ft32.c (md_parse_option): Likewise.
4556         * config/tc-h8300.c (md_parse_option): Likewise.
4557         * config/tc-hppa.c (md_parse_option): Likewise.
4558         * config/tc-i370.c (md_parse_option): Likewise.
4559         * config/tc-i386.c (md_parse_option): Likewise.
4560         * config/tc-i860.c (md_parse_option): Likewise.
4561         * config/tc-i960.c (md_parse_option): Likewise.
4562         * config/tc-ia64.c (md_parse_option): Likewise.
4563         * config/tc-ip2k.c (md_parse_option): Likewise.
4564         * config/tc-iq2000.c (md_parse_option): Likewise.
4565         * config/tc-lm32.c (md_parse_option): Likewise.
4566         * config/tc-m32c.c (md_parse_option): Likewise.
4567         * config/tc-m32r.c (md_parse_option): Likewise.
4568         * config/tc-m68hc11.c (md_parse_option): Likewise.
4569         * config/tc-m68k.c (md_parse_option): Likewise.
4570         * config/tc-mcore.c (md_parse_option): Likewise.
4571         * config/tc-mep.c (md_parse_option): Likewise.
4572         * config/tc-metag.c (struct metag_long_option): Likewise.
4573         (md_parse_option): Likewise.
4574         * config/tc-microblaze.c (md_parse_option): Likewise.
4575         * config/tc-microblaze.h (md_parse_option): Remove prototype.
4576         * config/tc-mips.c (md_parse_option): Adjust.
4577         * config/tc-mmix.c (md_parse_option): Likewise.
4578         * config/tc-mn10200.c (md_parse_option): Likewise.
4579         * config/tc-mn10300.c (md_parse_option): Likewise.
4580         * config/tc-moxie.c (md_parse_option): Likewise.
4581         * config/tc-msp430.c (md_parse_option): Likewise.
4582         * config/tc-mt.c (md_parse_option): Likewise.
4583                 * config/tc-nds32.c (md_parse_option): Likewise.
4584                 * config/tc-nds32.h (nds32_parse_option): Likewise.
4585         * config/tc-nios2.c (md_parse_option): Likewise.
4586         * config/tc-ns32k.c (md_parse_option): Likewise.
4587         * config/tc-or1k.c (md_parse_option): Likewise.
4588         * config/tc-pdp11.c (md_parse_option): Likewise.
4589         * config/tc-pj.c (md_parse_option): Likewise.
4590         * config/tc-ppc.c (md_parse_option): Likewise.
4591         * config/tc-rl78.c (md_parse_option): Likewise.
4592         * config/tc-rx.c (md_parse_option): Likewise.
4593         * config/tc-s390.c (s390_parse_cpu): Likewise.
4594         * config/tc-score.c (md_parse_option): Likewise.
4595         * config/tc-sh.c (md_parse_option): Likewise.
4596         * config/tc-sparc.c (md_parse_option): Likewise.
4597         * config/tc-spu.c (md_parse_option): Likewise.
4598         * config/tc-tic30.c (md_parse_option): Likewise.
4599         * config/tc-tic4x.c (md_parse_option): Likewise.
4600         * config/tc-tic54x.c (md_parse_option): Likewise.
4601         * config/tc-tic6x.c (md_parse_option): Likewise.
4602         * config/tc-tilegx.c (md_parse_option): Likewise.
4603         * config/tc-tilepro.c (md_parse_option): Likewise.
4604         * config/tc-v850.c (md_parse_option): Likewise.
4605         * config/tc-vax.c (md_parse_option): Likewise.
4606         * config/tc-visium.c (struct visium_long_option_table): Likewise.
4607         * config/tc-xc16x.c (md_parse_option): Likewise.
4608         * config/tc-xgate.c (md_parse_option): Likewise.
4609         * config/tc-xstormy16.c (md_parse_option): Likewise.
4610         * config/tc-xtensa.c (md_parse_option): Likewise.
4611         * config/tc-z80.c (md_parse_option): Likewise.
4612         * config/tc-z8k.c (md_parse_option): Likewise.
4613         * tc.h (md_parse_option): Likewise.
4615 2016-03-29  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4617         * config/tc-bfin.c (gencode): Use XOBNEW obstack_alloc () wrapper.
4618         * config/tc-hppa.c (fix_new_hppa): Likewise.
4619         (pa_vtable_entry): Likewise.
4620         (pa_vtable_inherit): Likewise.
4621         * config/tc-m68k.c (md_begin): Likewise.
4623 2016-03-28  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4625         * config/obj-elf.c (obj_elf_section_name): Return const char *.
4626         * config/obj-elf.h (obj_elf_section_name): Adjust.
4627         * config/tc-aarch64.c (aarch64_parse_features): Likewise.
4628         (aarch64_parse_cpu): Likewise.
4629         (aarch64_parse_arch): Likewise.
4630         * config/tc-arm.c (arm_parse_extension): Likewise.
4631         (arm_parse_cpu): Likewise.
4632         (arm_parse_arch): Likewise.
4633         * config/tc-nds32.c: Likewise.
4634         * config/xtensa-relax.c (parse_special_fn): Likewise.
4635         * stabs.c (generate_asm_file): Likewise.
4637 2016-03-25  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4639         * config/tc-cr16.c (cr16_assemble): New function.
4640         (md_assemble): Call cr16_assemble.
4642 2016-03-25  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4644         * as.c (parse_args): Adjust.
4645         * as.h (flag_size_check): Rename to flag_allow_nonconst_size.
4646         * config/obj-elf.c (elf_frob_symbol): Adjust.
4648 2016-03-24  Jose E. Marchesi  <jose.marchesi@oracle.com>
4650         * config/tc-sparc.c (sparc_ip): Remove the V9 restriction on ASR
4651         registers to be in the 16..31 range.
4653 2016-03-24  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4655         * config/tc-microblaze.c (md_assemble): Cast opc to char * when calling
4656         frag_var ().
4658 2016-03-24  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4660         * config/tc-visium.c (md_atof): Localize the string returned on
4661         failure.
4663 2016-03-22  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4665         * config/tc-h8300.c (h8300_elf_section): Add const qualifiers.
4666         * config/tc-ia64.c (obj_elf_vms_common): Likewise.
4667         * config/tc-m68hc11.c (md_begin): Likewise.
4668         (print_opcode_list): Likewise.
4669         * config/tc-msp430.c (msp430_section): Likewise.
4670         * config/tc-score.c (struct s3_insn_to_dependency): Likewise.
4671         (s3_build_dependency_insn_hsh): Likewise.
4672         * config/tc-score7.c (struct s7_insn_to_dependency): Likewise.
4673         (s7_build_dependency_insn_hsh): Likewise.
4674         * config/tc-tic4x.c: Likewise.
4675         * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
4676         (subsym_get_arg): Likewise.
4677         * config/tc-xtensa.c (struct suffix_reloc_map): Likewise.
4678         (get_directive): Likewise.
4679         (cache_literal_section): Likewise.
4680         * config/xtensa-relax.c: Likewise.
4681         * symbols.c (symbol_create): Likewise.
4682         (local_symbol_make): Likewise.
4683         (symbol_relc_make_expr): Likewise.
4685 2016-03-22  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4687         * config/tc-pdp11.c (md_assemble): Remove useless if and assignment to
4688         str.
4690 2016-03-22  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4692         * config/tc-sparc.c (sparc_regname_to_dw2regnum): Replace strchr ()
4693         call with a switch.
4695 2016-03-22  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4697         * config/tc-ia64.c (ia64_do_align): Remove.
4698         (ia64_cons_align): Call do_align () directly.
4699         (dot_proc): Likewise.
4700         (stmt_float_cons): Likewise.
4702 2016-03-22  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4704         * listing.c (listing_message): Use XNEW style allocation macros.
4705         * read.c (read_a_source_file): Likewise.
4706         (read_symbol_name): Likewise.
4707         (s_mri_common): Likewise.
4708         (assign_symbol): Likewise.
4709         (s_reloc): Likewise.
4710         (emit_expr_with_reloc): Likewise.
4711         (s_incbin): Likewise.
4712         (s_include): Likewise.
4713         * sb.c (sb_build): Likewise.
4714         (sb_check): Likewise.
4716 2016-03-22  Alan Modra  <amodra@gmail.com>
4718         * write.c (record_alignment): Revert 2016-02-18 change.
4720 2016-03-22  Alan Modra  <amodra@gmail.com>
4722         * config/tc-alpha.c (load_expression): Replace alloca with xmalloc.
4723         (emit_jsrjmp, tc_gen_reloc): Likewise.
4724         * config/tc-i370.c (i370_macro): Likewise.
4726 2016-03-22  Nick Clifton  <nickc@redhat.com>
4728         * configure: Regenerate.
4730 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
4732         * testsuite/gas/arc/nps400-0.d: New file.
4733         * testsuite/gas/arc/nps400-0.s: New file.
4734         * testsuite/gas/arc/nps400-1.d: New file.
4735         * testsuite/gas/arc/nps400-1.s: New file.
4737 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
4739         * config/tc-arc.c (find_opcode_match): Move lnflg, and i
4740         declarations to start of block.  Reset code on all flags before
4741         attempting to match them.  Handle multiple hits on the same flag.
4742         Handle flag class.
4743         * testsuite/gas/arc/asm-errors.d: New file.
4744         * testsuite/gas/arc/asm-errors.err: New file.
4745         * testsuite/gas/arc/asm-errors.s: New file.
4747 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
4749         * config/tc-arc.c (cpu_types): Add nps400 entry.
4750         (check_zol): Handle nps400.
4752 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
4754         * config/tc-arc.c (arc_select_cpu): Remove use of
4755         EF_ARC_CPU_GENERIC.
4757 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
4759         * config/tc-arc.c (arc_target): Delay initialisation until
4760         arc_select_cpu.
4761         (arc_target_name): Likewise.
4762         (arc_features): Likewise.
4763         (arc_mach_type): Likewise.
4764         (cpu_types): Remove "all" entry.
4765         (arc_select_cpu): New function, most of the content is from...
4766         (md_parse_option): ... here.  Call new arc_select_cpu.
4767         (md_begin): Call arc_select_cpu if needed, default is now arc700.
4769 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
4771         * testsuite/gas/arc/inline-data-1.d: Add target restriction.
4772         * testsuite/gas/arc/inline-data-2.d: New file.
4774 2016-03-21  Nick Clifton  <nickc@redhat.com>
4776         * atof-generic.c: Replace use of alloca with call to xmalloc.
4777         * cgen.c: Likewise.
4778         * dwarf2dbg.c: Likewise.
4779         * macro.c: Likewise.
4780         * remap.c: Likewise.
4781         * stabs.c: Likewise.
4782         * symbols.c: Likewise.
4783         * config/obj-elf.c: Likewise.
4784         * config/tc-aarch64.c: Likewise.
4785         * config/tc-arc.c: Likewise.
4786         * config/tc-arm.c: Likewise.
4787         * config/tc-avr.c: Likewise.
4788         * config/tc-ia64.c: Likewise.
4789         * config/tc-mips.c: Likewise.
4790         * config/tc-msp430.c: Likewise.
4791         * config/tc-nds32.c: Likewise.
4792         * config/tc-ppc.c: Likewise.
4793         * config/tc-sh.c: Likewise.
4794         * config/tc-tic30.c: Likewise.
4795         * config/tc-tic54x.c: Likewise.
4796         * config/tc-xstormy16.c: Likewise.
4797         * config/te-vms.c: Likewise.
4798         * configure: Regenerate.
4800 2016-03-20  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4802         * tc-i386.c (f32_1): Change type to unsigned char[].
4803         (f32_2): Likewise.
4804         (f32_3): Likewise.
4805         (f32_4): Likewise.
4806         (f32_5): Likewise.
4807         (f32_6): Likewise.
4808         (f32_7): Likewise.
4809         (f32_8): Likewise.
4810         (f32_9): Likewise.
4811         (f32_10): Likewise.
4812         (f32_11): Likewise.
4813         (f32_12): Likewise.
4814         (f32_13): Likewise.
4815         (f32_14): Likewise.
4816         (f16_3): Likewise.
4817         (f16_4): Likewise.
4818         (f16_5): Likewise.
4819         (f16_6): Likewise.
4820         (f16_7): Likewise.
4821         (f16_8): Likewise.
4822         (jump_31): Likewise.
4823         (f32_patt): Likewise.
4824         (f16_patt): Likewise.
4825         (alt_3): Likewise.
4826         (alt_4): Likewise.
4827         (alt_5): Likewise.
4828         (alt_6): Likewise.
4829         (alt_7): Likewise.
4830         (alt_8): Likewise.
4831         (alt_9): Likewise.
4832         (alt_10): Likewise.
4833         (alt_patt): Likewise.
4835 2016-03-18  Nick Clifton  <nickc@redhat.com>
4837         * doc/c-aarch64.texi (AArch64 Directives): Add descriptions of
4838         .cpu, .dword, .even, .inst. .tlsdescadd, .tlsdesccall,
4839         .tlsdescldr and .xword directives.
4841         PR target/19721
4842         * testsuite/gas/aarch64/pr19721.s: New test source file.
4843         * testsuite/gas/aarch64/pr19721.d: New test driver file.
4845         * doc/as.texinfo: Place the target specific command line options
4846         into their own man page section.
4848 2016-03-16  Jiong Wang  <jiong.wang@arm.com>
4850         * config/tc-arm.c (N_S_32): New.
4851         (N_F_16_32): Likewise.
4852         (N_SUF_32): Support N_F16.
4853         (N_IF_32): Likewise.
4854         (neon_dyadic_misc): Likewise.
4855         (do_neon_cmp): Likewise.
4856         (do_neon_cmp_inv): Likewise.
4857         (do_neon_mul): Likewise.
4858         (do_neon_fcmp_absolute): Likewise.
4859         (do_neon_step): Likewise.
4860         (do_neon_abs_neg): Likewise.
4861         (CVT_FLAVOR_VAR): Likewise.
4862         (do_neon_cvt_1): Likewise.
4863         (do_neon_recip_est): Likewise.
4864         (do_vmaxnm): Likewise.
4865         (do_vrint_1): Likewise.
4866         (neon_check_type): Check architecture support for FP16 extension.
4867         (insns): Update comments.
4868         * testsuite/gas/arm/armv8-2-fp16-simd.s: New test source.
4869         * testsuite/gas/arm/armv8-2-fp16-simd.d: New testcase for arm mode.
4870         * testsuite/gas/arm/armv8-2-fp16-simd-thumb.d: Likewise for thumb mode.
4871         * testsuite/gas/arm/armv8-2-fp16-simd-warning.d: New rejection test for
4872         arm mode.
4873         * testsuite/gas/arm/armv8-2-fp16-simd-warning-thumb.d: Likewise for
4874         thumb mode.
4875         * testsuite/gas/arm/armv8-2-fp16-simd-warning.l: New expected rejection
4876         error file.
4878 2016-03-16  Nick Clifton  <nickc@redhat.com>
4880         * read.c (emit_expr_with_reloc): Add code check a bignum with
4881         nbytes == 1.
4882         * config/rx/rx-parse.y (rx_intop): Accept bignum values for sizes
4883         other than 32-bits.
4884         * testsuite/gas/elf/bignum.s: New test source file.
4885         * testsuite/gas/elf/bignum.d: New test driver file.
4886         * testsuite/gas/elf/elf.exp: Run the new test.
4888 2016-03-15  Ulrich Drepper  <drepper@gmail.com>
4890         * doc/c-i386.texi (Register Naming): Update to details of the
4891         latest architecture version.
4893 2016-03-10  Mickael Guene  <mickael.guene@st.com>
4895         PR gas/19744
4896         * config/tc-arm.c (do_arit): Protect against bad relocations usage.
4897         (do_mov): Likewise.
4898         (do_t_add_sub): Allow pcrop relocations for Thumb-2 targets.
4899         (do_t_mov_cmp): Likewise.
4900         (do_t_add_sub): Protect against bad relocations usage.
4901         (do_t_mov_cmp): Likewise.
4902         * testsuite/gas/arm/adds-thumb1-reloc-local-armv7-m.s: New.
4903         * testsuite/gas/arm/adds-thumb1-reloc-local-armv7-m.d: New.
4904         * testsuite/gas/arm/movs-thumb1-reloc-local-armv7-m.s: New.
4905         * testsuite/gas/arm/movs-thumb1-reloc-local-armv7-m.d: New.
4907 2016-03-09  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4909         * config/tc-arm.c (neon_alignment_bit): Rename do_align to
4910         do_alignment.
4911         (do_neon_ld_st_lane): Likewise.
4912         (do_neon_ld_dup): Likewise.
4914 2016-03-08  Andrew Burgess  <andrew.burgess@embecosm.com>
4916         * testsuite/gas/arc/inline-data-1.d: New file.
4917         * testsuite/gas/arc/inline-data-1.s: New file.
4919 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4921         * config/tc-arm.c (arm_cpus): Add cortex-r8.
4922         * doc/c-arm.texi: Add cortex-r8.
4924 2016-03-07  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
4926         * config/tc-arc.c: Add const qualifiers.
4927         * config/tc-h8300.c (md_begin): Likewise.
4928         * config/tc-ia64.c (print_prmask): Likewise.
4929         * config/tc-msp430.c (msp430_operands): Likewise.
4930         * config/tc-nds32.c (struct suffix_name): Likewise.
4931         (struct nds32_parse_option_table): Likewise.
4932         (struct nds32_set_option_table): Likewise.
4933         (do_pseudo_pushpopm): Likewise.
4934         (do_pseudo_pushpop_stack): Likewise.
4935         (nds32_relax_relocs): Likewise.
4936         (nds32_flag): Likewise.
4937         (struct nds32_hint_map): Likewise.
4938         (nds32_find_reloc_table): Likewise.
4939         (nds32_match_hint_insn): Likewise.
4940         * config/tc-s390.c: Likewise.
4941         * config/tc-sh.c (get_specific): Likewise.
4942         * config/tc-tic30.c: Likewise.
4943         * config/tc-tic4x.c (tic4x_inst_add): Likewise.
4944         (tic4x_indirect_parse): Likewise.
4945         * config/tc-vax.c (vax_cons): Likewise.
4946         * config/tc-z80.c (struct reg_entry): Likewise.
4947         * config/tc-epiphany.c (md_assemble): Adjust.
4948         (epiphany_assemble): New function.
4949         (epiphany_elf_section_rtn): Call do_align directly.
4950         (epiphany_elf_section_text): Likewise.
4951         * config/tc-ip2k.c (ip2k_elf_section_rtn): Likewise.
4952         (ip2k_elf_section_text): Likewise.
4953         * read.c (do_align): Make it not static.
4954         * read.h (do_align): New prototype.
4956 2016-03-04  Matthew Wahab  <matthew.wahab@arm.com>
4958         * config/tc-arm.c (aeabi_set_public_attributes): Emit attribute
4959         for ARMv8.1 AdvSIMD use.
4960         * testsuite/gas/arm/attr-march-armv8-a+rdma.d: New.
4961         * testsuite/gas/arm/attr-march-armv8_1-a+simd.d: New.
4963 2016-03-04  Matthew Wahab  <matthew.wahab@arm.com>
4965         * config/gas/tc-arm.c (fpu_neon_ext_v8_1): Restrict to the ARMv8.1 RDMA
4966         feature.
4967         (record_feature_use): New.
4968         (mark_feature_used): Use record_feature_use.
4969         (do_neon_qrdmlah): New.
4970         (insns): Use do_neon_qrdmlah for vqrdmlah and vqrdmlsh and
4971         variants.
4972         (arm_extensions): Put into alphabetical order.  Re-indent "simd"
4973         and "rdma" entries.  Fix the incorrect merge value for "+rdma".
4974         * testsuite/gas/arm/armv8-a+rdma-warning.d: New.
4975         * testsuite/gas/arm/armv8-a+rdma.d: Add assembler command line options.
4976         Make source file explicit.
4977         * testsuite/gas/arm/armv8-a+rdma.l: New.
4978         * testsuite/gas/arm/armv8-a+rdma.s: Remove .arch and .arch_extension
4979         directives.  Fix white-space.
4980         * testsuite/gas/arm/armv8_1-a+simd.d: New.
4982 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
4984         * testsuite/gas/i386/x86_64-intel.d: Adjusted for COFF.
4986 2016-02-29  Cupertino Miranda  <cmiranda@synopsys.com>
4987             Claudiu Zissulescu  <Claudiu.Zissulescu@synopsys.com>
4989         * config/tc-arc.c (arc_extra_reloc): Change size to 0.
4990         (tc_arc_fix_adjustable): Changed default return value to 1.
4991         * testsuite/gas/arc/j.d: Updated expected symbol
4992         * testsuite/gas/arc/jl.d: Likewise
4993         * testsuite/gas/arc/relax-avoid1.d: Likewise
4994         * testsuite/gas/arc/st.d: Likewise
4996 2016-02-29  Claudiu Zissulescu  <Claudiu.Zissulescu@synopsys.com>
4998         * config/tc-arc.c: Enable code density instructions for ARC EM.
5000 2016-02-26  H.J. Lu  <hongjiu.lu@intel.com>
5002         PR ld/19645
5003         * NEWS: Mention --enable-elf-stt-common and --elf-stt-common=
5004         for ELF assemblers.
5005         * as.c (flag_use_elf_stt_common): New.
5006         (show_usage): Add --elf-stt-common=.
5007         (option_values): Add OPTION_ELF_STT_COMMON.
5008         (std_longopts): Add --elf-stt-common=.
5009         (parse_args): Handle --elf-stt-common=.
5010         * as.h (flag_use_elf_stt_common): New.
5011         * config.in: Regenerated.
5012         * configure: Likewise.
5013         * configure.ac: Add --enable-elf-stt-common and define
5014         DEFAULT_GENERATE_ELF_STT_COMMON.
5015         * gas/write.c (write_object_file): Set BFD_CONVERT_ELF_COMMON
5016         and BFD_USE_ELF_STT_COMMON if flag_use_elf_stt_common is set.
5017         * doc/as.texinfo: Document --elf-stt-common=.
5018         * testsuite/gas/elf/common3.s: New file.
5019         * testsuite/gas/elf/common3a.d: Likewise.
5020         * testsuite/gas/elf/common3b.d: Likewise.
5021         * testsuite/gas/elf/common4.s: Likewise.
5022         * testsuite/gas/elf/common4a.d: Likewise.
5023         * testsuite/gas/elf/common4b.d: Likewise.
5024         * testsuite/gas/i386/dw2-compress-3b.d: Likewise.
5025         * testsuite/gas/i386/dw2-compressed-3b.d: Likewise.
5026         * testsuite/gas/elf/elf.exp: Run common3a, common3b, common4a
5027         and common4b.
5028         * testsuite/gas/i386/dw2-compress-3.d: Renamed to ...
5029         * testsuite/gas/i386/dw2-compress-3a.d: This.  Pass
5030         --elf-stt-common=no to as.
5031         * testsuite/gas/i386/dw2-compressed-3.d: Renamed to ...
5032         * testsuite/gas/i386/dw2-compressed-3a.d: This.  Pass
5033         --elf-stt-common=no to as.
5034         * testsuite/gas/i386/i386.exp: Run dw2-compress-3a,
5035         dw2-compress-3b, dw2-compressed-3a and dw2-compressed-3b instead
5036         of dw2-compress-3 and dw2-compressed-3.
5038 2016-02-25  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
5040         * as.c (select_emulation_mode): Add const qualifiers.
5041         * as.h: Likewise.
5042         * config/bfin-defs.h: Likewise.
5043         * config/bfin-parse.y: Likewise.
5044         * config/rx-parse.y: Likewise.
5045         * config/tc-aarch64.c (struct aarch64_option_table): Likewise.
5046         (struct aarch64_cpu_option_table): Likewise.
5047         (struct aarch64_arch_option_table): Likewise.
5048         (struct aarch64_option_cpu_value_table): Likewise.
5049         (struct aarch64_long_option_table): Likewise.
5050         (struct aarch64_option_abi_value_table): Likewise.
5051         * config/tc-arm.c (struct reloc_entry): Likewise.
5052         (tc_gen_reloc): Likewise.
5053         (struct arm_option_table): Likewise.
5054         (struct arm_legacy_option_table): Likewise.
5055         (struct arm_cpu_option_table): Likewise.
5056         (struct arm_arch_option_table): Likewise.
5057         (struct arm_option_extension_value_table): Likewise.
5058         (struct arm_option_fpu_value_table): Likewise.
5059         (struct arm_option_value_table): Likewise.
5060         (struct arm_long_option_table): Likewise.
5061         * config/tc-avr.c (struct avr_opcodes_s): Likewise.
5062         (struct mcu_type_s): Likewise.
5063         (struct exp_mod_s): Likewise.
5064         (avr_operand): Likewise.
5065         (avr_operands): Likewise.
5066         * config/tc-d10v.c (md_begin): Likewise.
5067         * config/tc-dlx.c: Likewise.
5068         * config/tc-fr30.c (fr30_is_colon_insn): Likewise.
5069         * config/tc-ft32.c (parse_condition): Likewise.
5070         * config/tc-h8300.c (do_a_fix_imm): Likewise.
5071         * config/tc-hppa.c (pa_ip): Likewise.
5072         (hppa_regname_to_dw2regnum): Likewise.
5073         * config/tc-i370.c (i370_elf_suffix): Likewise.
5074         * config/tc-i960.c (struct tabentry): Likewise.
5075         * config/tc-m32r.c: Likewise.
5076         * config/tc-m68k.c: Likewise.
5077         * config/tc-m68k.h: Likewise.
5078         * config/tc-mcore.c (parse_psrmod): Likewise.
5079         * config/tc-metag.c (struct metag_core_option): Likewise.
5080         (struct metag_long_option): Likewise.
5081         * config/tc-microblaze.c: Likewise.
5082         * config/tc-mips.c (macro): Likewise.
5083         * config/tc-mn10200.c: Likewise.
5084         * config/tc-mn10300.c: Likewise.
5085         * config/tc-msp430.c (struct rcodes_s): Likewise.
5086         (struct hcodes_s): Likewise.
5087         (md_parse_option): Likewise.
5088         * config/tc-ns32k.c (struct ns32k_option): Likewise.
5089         (optlist): Likewise.
5090         * config/tc-ppc.c (ppc_elf_suffix): Likewise.
5091         (tc_ppc_regname_to_dw2regnum): Likewise.
5092         * config/tc-ppc.h: Likewise.
5093         * config/tc-rl78.c: Likewise.
5094         * config/tc-rx.c (struct cpu_type): Likewise.
5095         * config/tc-sh.c (sh_regname_to_dw2regnum): Likewise.
5096         * config/tc-sparc.c (struct priv_reg_entry): Likewise.
5097         (sparc_ip): Likewise.
5098         * config/tc-spu.c (insn_fmt_string): Likewise.
5099         * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
5100         * config/tc-v850.c: Likewise.
5101         * config/tc-visium.c (struct visium_arch_option_table): Likewise.
5102         (struct visium_long_option_table): Likewise.
5103         * config/tc-xgate.c: Likewise.
5104         * config/tc-z8k.c: Likewise.
5105         * read.c (add_include_dir): Likewise.
5106         * read.h: Likewise.
5108 2016-02-25  Andrew Burgess  <andrew.burgess@embecosm.com>
5110         * testsuite/gas/all/gas.exp: Change target pattern to cover
5111         arceb-*.
5112         * testsuite/gas/all/redef3.d: Likewise.
5113         * testsuite/gas/elf/elf.exp: Likewise.
5115 2016-02-24  Renlin Li  <renlin.li@arm.com>
5117         * config/tc-arm.c (BAD_FP16): New error message macro.
5118         (do_scalar_fp16_v82_encode): Change the coproc field to 9 for armv8.2
5119         fp16 scalar instructions.
5120         (neon_check_type): Allow different size from key.
5121         (do_vfp_nsyn_add_sub): Add support SE_H shape support.
5122         (try_vfp_nsyn): Likewise.
5123         (do_vfp_nsyn_mla_mls): Likewise.
5124         (do_vfp_nsyn_fma_fms): Likewise.
5125         (do_vfp_nsyn_ldm_stm): Likewise
5126         (do_vfp_nsyn_sqrt): Likewise
5127         (do_vfp_nsyn_div): Likewise
5128         (do_vfp_nsyn_nmul): Likewise.
5129         (do_vfp_nsyn_cmp): Likewise.
5130         (do_neon_shll): Likewise.
5131         (do_vfp_nsyn_cvt_fpv8): Likewise.
5132         (do_neon_cvttb_2): Likewise.
5133         (do_neon_mov): Likewise.
5134         (do_neon_rshift_round_imm): Likewise.
5135         (do_neon_ldr_str): Likewise.
5136         (do_vfp_nsyn_fpv8): Likewise.
5137         (do_vmaxnm): Likewise.
5138         (do_vrint_1): Likewise.
5139         (insns): New entry for vins, vmovx.
5140         (md_apply_fix): Left shift 1 bit for fp16 vldr/vstr.
5141         * testsuite/gas/arm/armv8-2-fp16-scalar-thumb.d: New.
5142         * testsuite/gas/arm/armv8-2-fp16-scalar.d: New.
5143         * testsuite/gas/arm/armv8-2-fp16-scalar.s: New.
5144         * testsuite/gas/arm/armv8-2-fp16-scalar-bad.s: New
5145         * testsuite/gas/arm/armv8-2-fp16-scalar-bad.d: New
5146         * testsuite/gas/arm/armv8-2-fp16-scalar-bad.l: New
5148 2016-02-24  Renlin Li  <renlin.li@arm.com>
5150         * config/tc-arm.c (NEON_ENC_TAB): Add fp16 instruction shape.
5151         (neon_shape_class): New SC_HALF.
5152         (neon_shape_el): New SE_H.
5153         (neon_shape_el_size): New size for SE_H.
5154         (N_F_ALL): New macro to aggregate N_F16, N_F32, N_64.
5155         (neon_select_shape): Add SE_H support code.
5156         (el_type_of_type_chk): Use N_F_ALL.
5157         (do_vfp_nsyn_cvt): Add SE_H shape support.
5158         (do_neon_cvtz): Likewise.
5159         (do_neon_cvt_1): Likewise.
5160         (do_neon_cvttb_1): Likewise.
5162 2016-02-24  Renlin Li  <renlin.li@arm.com>
5164         * testsuite/gas/arm/copro.d: Adjust output.
5165         * testsuite/gas/arm/copro.s: Adjust co-processor num.
5167 2016-02-24  Renlin Li  <renlin.li@arm.com>
5169         * testsuite/gas/arm/mask_1.d: New.
5170         * testsuite/gas/arm/mask_1.s: New.
5172 2016-02-24  Renlin Li  <renlin.li@arm.com>
5174         * testsuite/gas/arm/copro.s: Use coprocessor other than 10, 11.
5175         * testsuite/gas/arm/copro.d: Update.
5177 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5179         * config/tc-arm.c (arm_cpus): Add entry for cortex-a32.
5180         * doc/c-arm.texi (ARM Options): Document cortex-a32.
5182 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5184         * doc/c-arm.texi (ARM Options): Document cortex-a17.
5186 2016-02-23  H.J. Lu  <hongjiu.lu@intel.com>
5188         * testsuite/gas/elf/elf.exp: Skip tests for common directive on
5189         hpux.
5191 2016-02-22  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
5193         * output-file.c (output_file_create): Make file name argument const.
5194         (output_file_close): Likewise.
5195         * output-file.h (output_file_create): Adjust.
5196         (output_file_close): Likewise.
5197         * depend.c (quote_string_for_make): Make src argument const char *.
5198         (register_dependency): Likewise.
5199         (wrap_output): Likewise.
5200         * as.h (register_dependency): Adjust.
5201         * config/tc-xtensa.c (finish_vinsn): Remove unnecessary calls to
5202         as_where ();
5203         * symbols.c (S_SET_EXTERNAL): Likewise.
5204         * input-scrub.c (as_where): Return the file name.
5205         * as.h (as_where): Adjust prototype.
5206         * app.c (do_scrub_chars): Adjust.
5207         * cond.c (s_elseif): Likewise.
5208         (s_else): Likewise.
5209         (initialize_cframe): Likewise.
5210         * config/obj-coff.c (obj_coff_init_stab_section): Likewise.
5211         * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
5212         * config/obj-som.c (obj_som_init_stab_section): Likewise.
5213         * config/tc-aarch64.c (output_info): Likewise.
5214         * config/tc-ia64.c (md_assemble): Likewise.
5215         (dot_alias): Likewise.
5216         * config/tc-m68k.c (m68k_frob_label): Likewise.
5217         * config/tc-mmix.c (s_bspec): Likewise.
5218         (mmix_handle_mmixal): Likewise.
5219         * config/tc-rx.c (rx_include): Likewise.
5220         * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
5221         (tic54x_adjust_symtab): Likewise.
5222         * config/tc-xtensa.c (directive_push): Likewise.
5223         (xtensa_sanity_check): Likewise.
5224         (xtensa_relax_frag): Likewise.
5225         (md_convert_frag): Likewise.
5226         (tinsn_to_slotbuf): Likewise.
5227         * dwarf2dbg.c (dwarf2_where): Likewise.
5228         * ecoff.c (add_file): Likewise.
5229         (ecoff_generate_asm_lineno): Likewise.
5230         * expr.c (make_expr_symbol): Likewise.
5231         * frags.c (frag_new): Likewise.
5232         (frag_var_init): Likewise.
5233         * listing.c (listing_newline): Likewise.
5234         * messages.c (identify): Likewise.
5235         (as_show_where): Likewise.
5236         (as_warn_internal): Likewise.
5237         (as_bad_internal): Likewise.
5238         * read.c (s_irp): Likewise.
5239         (s_macro): Likewise.
5240         (s_reloc): Likewise.
5241         * stabs.c (stabs_generate_asm_file): Likewise.
5242         (stabs_generate_asm_lineno): Likewise.
5243         (stabs_generate_asm_func): Likewise.
5244         * write.c (fix_new_internal): Likewise.
5245         * as.h (PRINTF_WHERE_LIKE): Make file name argument const.
5246         (as_warn_value_out_of_range): Adjust prototype.
5247         (as_bad_value_out_of_range): Adjust prototype.
5248         * messages.c (identify): Make file name argument const char *.
5249         (as_warn_internal): Likewise.
5250         (as_warn_where): Likewise.
5251         (as_bad_internal): Likewise.
5252         (as_bad_where): Likewise.
5253         (as_internal_value_out_of_range): Likewise.
5254         (as_warn_value_out_of_range): Likewise.
5255         (as_bad_value_out_of_range): Likewise.
5256         * as.h (found_comment_file): Change type to const char *.
5257         * cond.c (file_line::file): Likewise.
5258         * config/obj-coff.c (obj_coff_init_stab_section): Make variable const.
5259         * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
5260         * config/obj-som.c (obj_som_init_stab_section): Likewise.
5261         * config/tc-aarch64.c (output_info): Likewise.
5262         * config/tc-alpha.c (insert_operand): Likewise.
5263         * config/tc-arc.c (insert_operand): Likewise.
5264         * config/tc-d30v.c (check_size): Likewise.
5265         * config/tc-ia64.c (struct alias): Likewise.
5266         * config/tc-m68k.c (struct label_line): Likewise.
5267         * config/tc-mcore.c (md_apply_fix): Likewise.
5268         * config/tc-microblaze.c (md_estimate_size_before_relax): Likewise.
5269         * config/tc-mips.c (mips16_immed): Likewise.
5270         * config/tc-mmix.c (mmix_handle_mmixal): Likewise.
5271         * config/tc-ppc.c (ppc_insert_operand): Likewise.
5272         * config/tc-rx.c (rx_include): Likewise.
5273         * config/tc-s390.c (s390_insert_operand): Likewise.
5274         * config/tc-tic54x.c (tic54x_set_default_include): Likewise.
5275         (tic54x_adjust_symtab): Likewise.
5276         * config/tc-tilegx.c (insert_operand): Likewise.
5277         (apply_special_operator): Likewise.
5278         * config/tc-tilepro.c (insert_operand): Likewise.
5279         * config/tc-xtensa.c (directive_push): Likewise.
5280         * ecoff.c (add_file): Likewise.
5281         (ecoff_generate_asm_lineno): Likewise.
5282         * listing.c (listing_newline): Likewise.
5283         * read.c (s_irp): Likewise.
5284         * write.c (install_reloc): Likewise.
5285         * write.h (struct fix): Likewise.
5286         * input-file.c (file_name): Change type to const char *.
5287         (saved_file::file_name): Likewise.
5288         (input_file_open): Change type of argument to const char *.
5289         * input-file.h (input_file_open): Adjust.
5290         * input-scrub.c (logical_input_file): change type to const char *.
5291         (physical_input_file): Likewise.
5292         (struct input_save): Adjust.
5293         (input_scrub_push): Adjust.
5294         (input_scrub_begin): Adjust.
5295         (as_where): Adjust.
5296         * input-scrub.c (input_scrub_new_file): Make file name argument const.
5297         (input_scrub_include_file): Likewise.
5298         (new_logical_line_flags): Likewise.
5299         (new_logical_line): Likewise.
5300         * as.h: Adjust.
5301         * frags.h (struct frag): Change type of fr_file to const char *.
5302         * expr.c (expr_symbol_where): Change type of file argument to
5303         const char **.
5304         * expr.h (expr_symbol_where): Likewise.
5305         * config/tc-i370.c (md_apply_fix): adjust.
5306         * config/tc-mmix.c (mmix_md_end): Likewise.
5307         * config/tc-ppc.c (md_apply_fix): Likewise.
5308         * config/tc-s390.c (md_apply_fix): Likewise.
5309         * symbols.c (report_op_error): Likewise.
5310         (resolve_symbol_value): Likewise.
5311         * config/tc-ia64.c (slot::src_file): Change type to const char *.
5312         (rsrc::file): Likewise.
5313         * config/tc-xtensa.c (xtensa_sanity_check): Change type of variable to
5314         const char *.
5315         (xtensa_relax_frag): Likewise.
5316         (md_convert_frag): Likewise.
5317         (tinsn_to_slotbuf): Likewise.
5318         * expr.c (expr_symbol_line): Likewise.
5319         * macro.c (define_macro): Likewise.
5320         * macro.h (macro_struct): Likewise.
5321         * messages.c (as_show_where): Likewise.
5322         * read.c (s_macro): Likewise.
5323         * stabs.c (stabs_generate_asm_file): Likewise.
5324         (generate_asm_file): Likewise.
5325         (stabs_generate_asm_lineno): Likewise.
5326         * write.h (struct reloc_list): Likewise.
5327         * input-scrub.c (as_where): Change return type to const char *.
5328         * as.h (as_wheree): Adjust.
5330 2016-02-21  H.J. Lu  <hongjiu.lu@intel.com>
5332         * write.c (compress_debug): Move BFD compression bits setting
5333         to ...
5334         (write_object_file): Here.
5336 2016-02-20  H.J. Lu  <hongjiu.lu@intel.com>
5338         * config/tc-i386.c (register_number): Check RegVRex.
5339         * testsuite/gas/i386/x86-64-avx512f.s: Add a test for vgatherqpd
5340         with %zmm19 and %zmm3.
5341         * testsuite/gas/i386/x86-64-avx512f-intel.d: Updated.
5342         * testsuite/gas/i386/x86-64-avx512f.d: Likewise.
5344 2016-02-19  Matthew Wahab  <matthew.wahab@arm.com>
5345             Jiong Wang  <jiong.wang@arm.com>
5347         * config/tc-arm.c (arm_ext_fp16): New.
5348         (arm_extensions): New entry for "fp16".
5350 2016-02-19  Nick Clifton  <nickc@redhat.com>
5352         PR 19630
5353         * read.c (read_a_source_file): Check for assemble_one returning
5354         with input_line_pointer set to NULL.
5356 2016-02-19  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
5358         * listing.c (rebuffer_line): Change return type to void.
5360         * symbols.c (decode_local_label_name): Make type a const char *.
5361         * listing.c (print_source): Make type of p const char *.
5362         (print_line): Make type of string const char *.
5363         (buffer_line): Return const char *.
5364         (title): Make type const char *.
5365         (subtitle): Likewise.
5366         (listing_listing): Make type of p const char *.
5367         * messages.c (as_internal_value_out_of_range): Make type of prefix
5368         const char *.
5369         * stabs.c (s_stab_generic): make type of stab_secname, stabstr_secname
5370         and string const char *.
5371         * read.c (_bfd_rel): Make type of name const char *.
5372         * app.c (out_string): Change type to const char *.
5373         (struct app_save::out_string): Likewise.
5375 2016-02-18  Dan Gisselquist  <dgisselq@verizon.net>
5376             Nick Clifton  <nickc@redhat.com>
5378         * read.c (finish_bundle): Avoid recording a negative alignment.
5379         (do_align): Use unsigned values for n, len and max.  Only create
5380         a frag if the alignment requirement is greater than the minimum
5381         byte alignment.  Avoid recording a negative alignment.
5382         (s_align): Use unsigned values where appropriate.
5383         (bss_alloc): Use an unsigned value for the alignment.
5384         (sizeof_sleb128): Add a comment noting that we encode one octet
5385         per byte, regardless of the value of OCTETS_PER_BYTE_POWER.
5386         (emit_leb129_expr): Abort if the emitted encoding was longer than
5387         expected.
5388         * read.h (output_leb128): Update prototype.
5389         (sizeof_leb128): Update prototype.
5390         (bss_alloc): Update prototype.
5391         * write.c (record_alignment): Use an unsigned value for the
5392         alignment.  Do not record alignments less than the minimum
5393         alignment for a byte.
5394         * write.h (record_alignment): Update prototype.
5396 2016-02-17  Max Filippov  <jcmvbkbc@gmail.com>
5398         * config/tc-xtensa.c (xtensa_move_literals): Fix check for
5399         .init.literal/.fini.literal section name.
5400         * testsuite/gas/xtensa/all.exp: Add init-fini-literals to the
5401         list of xtensa tests.
5402         * testsuite/gas/xtensa/init-fini-literals.d: New file:
5403         init-fini-literals test result patterns.
5404         * testsuite/gas/xtensa/init-fini-literals.s: New file:
5405         init-fini-literals test.
5407 2016-02-17  Nick Clifton  <nickc@redhat.com>
5409         * config/tc-msp430.c (msp430_mcu_data): Sync with data from TI's
5410         devices.csv file as of March 2016.
5412 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
5414         * config/tc-arc.c (tc_arc_frame_initial_instructions): New
5415         function.
5416         (tc_arc_regname_to_dw2regnum): Likewise.
5417         * config/tc-arc.h (TARGET_USE_CFIPOP): Define
5418         (tc_cfi_frame_initial_instructions): Likewise.
5419         (tc_regname_to_dw2regnum): Likewise.
5420         * testsuite/gas/cfi/cfi-arc-1.d: New file.
5421         * testsuite/gas/cfi/cfi-arc-1.s: Likewise.
5422         * testsuite/gas/cfi/cfi.exp: Allow running tests for arc.
5424 2016-02-16  Trevor Saunders  <tbsaunde@tbsaunde.org>
5426         * doc/internals.texi (S_IS_EXTERN): Remove.
5428 2016-02-16  Nick Clifton  <nickc@redhat.com>
5430         * doc/as.texinfo (Section): Fix up texinfo snafus in previous
5431         update.
5433 2016-02-16  Renlin Li  <renlin.li@arm.com>
5435         PR gas/19620
5436         * config/tc-aarch64.c (parse_half): Remove restrictions on symbol name.
5437         * testsuite/gas/aarch64/movw_label.d: New.
5438         * testsuite/gas/aarch64/movw_label.s: New.
5440 2016-02-15  Vinay Kumar G. <Vinay.G@kpit.com>
5442         PR gas/19556
5443         * config/rx-parse.y (MOV):  Opcode generation for index
5444         register addressing mode.
5445         * testsuite/gas/rx/rx.exp: Updated for new testcase.
5446         * testsuite/gas/rx/pr19665.s: New file.
5447         * testsuite/gas/rx/pr19665.s: New file.
5448         * testsuite/gas/rx/mov.d: Update expected output.
5450 2016-02-15  Nick Clifton  <nickc@redhat.com>
5452         * doc/as.texinfo (.section): Document that numeric values can now
5453         be used for the flags and type fields of the ELF target's .section
5454         directive.  Add notes about the restrictions on setting flags and
5455         types.
5456         * config/obj-elf.c (obj_elf_change_section): Allow known sections
5457         to be given processor specific section types.  Allow processor and
5458         application specific flags of a section to be set after
5459         definition.
5460         (obj_elf_parse_section_letters): Handle parsing numeric values.
5461         (obj_elf_section_type): Handle parsing numeric values.
5462         (obj_elf_section): Allow numeric type values.
5463         * config/obj-elf.h (obj_elf_change_section): Update prototype.
5464         * testsuite/gas/elf/section10.d: New test.
5465         * testsuite/gas/elf/section10.s: Source file for new test.
5466         * testsuite/gas/elf/elf.exp: Run the new test.
5467         * testsuite/gas/i386/ilp32/x86-64-unwind.d: Remove dependency upon
5468         the description of the flags produced by readelf.
5469         * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
5470         * NEWS: Mention the new feature.
5472 2016-02-11  Nick Clifton  <nickc@redhat.com>
5474         PR gas/19614
5475         * dw2gencfi.c (cfi_sections_set): Delay setting this variable
5476         until it is actually used.
5477         (cfi_set_sections): Set cfi_sections_set to true.
5478         (dot_cfi_startproc): Likewise.
5479         (dot_cfi_endproc): Likewise.
5480         (dot_cfi_fde_data): Likewise.
5481         (cfi_finish): Likewise.
5482         (dot_cfi_sections): Do not set cfi_sections_set.
5483         * doc/as.texinfo (.cfi_sections): Note that targets can provide
5484         their own cfi section name.  Also note that the directive can be
5485         reissued provided that CFI generation has not started.
5486         * testsuite/gas/mips/compact-eh-err2.s: Add .cfi_startproc and
5487         .cfi_endproc directives so that the redefinition of .cfi_sections
5488         will trigger the generation of the error message.
5489         * testsuite/gas/mips/compact-eh-err2.l: Update expected line
5490         number of error message.
5492 2016-02-10  Claudiu Zissulescu  <claziss@synopsys.com>
5493             Janek van Oirschot <jvanoirs@synopsys.com>
5495         * config/tc-arc.h (TC_FRAG_TYPE, TC_PCREL_ADJUST, MAX_INSN_ARGS)
5496         (MAX_INSN_FLGS, MAX_FLAG_NAME_LENGHT, TC_GENERIC_RELAX_TABLE):
5497         Define.
5498         (arc_flags, arc_relax_type): New structure.
5499         * config/tc-arc.c (FRAG_MAX_GROWTH, RELAX_TABLE_ENTRY)
5500         (RELAX_TABLE_ENTRY_MAX): New define.
5501         (relaxation_state, md_relax_table, arc_relaxable_insns)
5502         (arc_num_relaxable_ins): New variable.
5503         (rlx_operand_type, arc_rlx_types): New enums.
5504         (arc_relaxable_ins): New structure.
5505         (OPTION_RELAX): New option.
5506         (arc_insn): New relax member.
5507         (arc_flags): Remove.
5508         (relax_insn_p): New function.
5509         (apply_fixups): Likewise.
5510         (relaxable_operand): Likewise.
5511         (may_relax_expr): Likewise.
5512         (relaxable_flag): Likewise.
5513         (arc_pcrel_adjust): Likewise.
5514         (md_estimate_size_before_relax): Implement.
5515         (md_convert_frag): Likewise.
5516         (md_parse_option): Handle new mrelax option.
5517         (md_show_usage): Likewise.
5518         (assemble_insn): Set relax member.
5519         (emit_insn0): New function.
5520         (emit_insn1): Likewise.
5521         (emit_insn): Handle relaxation case.
5522         * NEWS: Mention the new relaxation option.
5523         * doc/c-arc.texi (ARC Options): Document new mrelax option.
5524         * doc/as.texinfo (Target ARC Options): Likewise.
5525         * testsuite/gas/arc/relax-avoid1.d: New file.
5526         * testsuite/gas/arc/relax-avoid1.s: Likewise.
5527         * testsuite/gas/arc/relax-avoid2.d: Likewise.
5528         * testsuite/gas/arc/relax-avoid2.s: Likewise.
5529         * testsuite/gas/arc/relax-avoid3.d: Likewise.
5530         * testsuite/gas/arc/relax-avoid3.s: Likewise.
5531         * testsuite/gas/arc/relax-b.d: Likewise.
5532         * testsuite/gas/arc/relax-b.s: Likewise.
5534 2016-02-08  Nick Clifton  <nickc@redhat.com>
5536         * config/tc-ia64.c (dot_prologue): Fix formatting.
5538 2016-02-04  Nick Clifton  <nickc@redhat.com>
5540         * config/obj-elf.c (obj_elf_change_section): Remove support for
5541         ARM NOREAD sections.
5542         * config/tc-arm.c (arm_elf_section_letter): Delete.
5543         * config/tc-arm.h (md_elf_section_letter): Delete.
5544         * doc/c-arm.texi (ARM Section Attribute): Delete section.
5545         * testsuite/gas/arm/section-execute-only.d: Delete.
5546         * testsuite/gas/arm/section-execute-only.s: Delete.
5548 2016-02-04  Nick Clifton  <nickc@redhat.com>
5550         PR target/19561
5551         * config/tc-msp430.c (msp430_operands): Remove case 7.  Use case 2
5552         to handle encoding of RRUX instruction.
5553         * testsuite/gas/msp430/msp430x.s: Add more tests of the extended
5554         shift instructions.
5555         * testsuite/gas/msp430/msp430x.d: Update expected disassembly.
5557 2016-02-03  Max Filippov  <jcmvbkbc@gmail.com>
5559         * config/tc-xtensa.c (md_apply_fix): Mark BFD_RELOC_XTENSA_DIFF*
5560         substitutions for BFD_RELOC_* as unsigned.
5561         * testsuite/gas/xtensa/all.exp: Add loc to list of xtensa tests.
5562         * testsuite/gas/xtensa/loc.d: New file: loc test result patterns.
5563         * testsuite/gas/xtensa/loc.s: New file: loc test.
5565 2016-02-03  Kevin Buettner  <kevinb@redhat.com>
5567         * config/tc-msp430.h (DWARF2_ADDR_SIZE): Set to 4.
5569 2016-02-03  H.J. Lu  <hongjiu.lu@intel.com>
5571         PR gas/19520
5572         * NEWS: Mention new command line option -mrelax-relocations and
5573         new configure option --enable-x86-relax-relocations for x86
5574         target.
5575         * config.in: Regenerated.
5576         * configure.ac: Add --enable-x86-relax-relocations.
5577         (ac_default_x86_relax_relocations): New.  Default to 1 except
5578         for x86 Solaris targets older than Solaris 12.
5579         (DEFAULT_GENERATE_X86_RELAX_RELOCATIONS): Define.
5580         * configure: Likewise.
5581         * config/tc-i386.c (generate_relax_relocations): New.
5582         (OPTION_MRELAX_RELOCATIONS): Likewise.
5583         (output_disp): Don't generate relax relocations if
5584         generate_relax_relocations is 0.
5585         (md_longopts): Add -mrelax-relocations.
5586         (md_show_usage): Likewise.
5587         (md_parse_option): Handle OPTION_MRELAX_RELOCATIONS.
5588         * doc/c-i386.texi: Document -mrelax-relocations=.
5589         * testsuite/gas/i386/got-no-relax.d: New file.
5590         * testsuite/gas/i386/x86-64-gotpcrel-no-relax.d: Likewise.
5591         * testsuite/gas/i386/got.d: Pass -mrelax-relocations=yes to as.
5592         * testsuite/gas/i386/localpic.d: Likewise.
5593         * testsuite/gas/i386/mixed-mode-reloc32.d: Likewise.
5594         * testsuite/gas/i386/reloc32.d: Likewise.
5595         * testsuite/gas/i386/x86-64-gotpcrel.d: Likewise.
5596         * testsuite/gas/i386/x86-64-localpic.d: Likewise.
5597         * testsuite/gas/i386/ilp32/x86-64-gotpcrel.d: Likewise.
5598         * testsuite/gas/i386/ilp32/x86-64-localpic.d: Likewise.
5599         * testsuite/gas/i386/i386.exp: Run got-no-relax and
5600         x86-64-gotpcrel-no-relax.
5602 2016-02-03  H.J. Lu  <hongjiu.lu@intel.com>
5604         * NEWS: Mention new command line option -mfence-as-lock-add=yes
5605         for x86 target.
5607 2016-02-03  H.J. Lu  <hongjiu.lu@intel.com>
5609         * NEWS: Remove duplicated marker for 2.26.
5611 2016-02-02  Renlin Li  <renlin.li@arm.com>
5613         * testsuite/gas/arm/thumb2_it_search.d: Skip non-elf targets.
5615 2016-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
5617         * testsuite/gas/ip2k/allinsn.d: New file.
5618         * testsuite/gas/ip2k/allinsn.s: New file.
5619         * testsuite/gas/ip2k/ip2k-allinsn.exp: New file.
5621 2016-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
5623         * testsuite/gas/epiphany/addr-syntax.d: Add explicit 0 offset to
5624         some load instructions.
5625         * testsuite/gas/epiphany/allinsn.d: Likewise.
5626         * testsuite/gas/epiphany/regression.d: Likewise.
5628 2016-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
5630         * testsuite/gas/epiphany/addr-syntax.d: Remove unneeded '.l'
5631         suffixes from instruction mnemonics in expected output.
5632         * testsuite/gas/epiphany/allinsn.d: Likewise.
5633         * testsuite/gas/epiphany/regression.d: Likewise.
5634         * testsuite/gas/epiphany/sample.d: Likewise.
5636 2016-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
5638         * testsuite/gas/epiphany/addr-syntax.d: Update expected register
5639         names.
5640         * testsuite/gas/epiphany/allinsn.d: Likewise.
5641         * testsuite/gas/epiphany/sample.d: Likewise.
5643 2016-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
5645         * testsuite/gas/epiphany/sample.d: Update expected output.
5647 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
5649         * config/tc-arc.c (md_apply_fix): Allow addendum.
5650         (arc_reloc_op): Allow complex expressions for tpoff.
5651         (md_apply_fix): Handle resolved TLS local symbol.
5652         * testsuite/gas/arc/tls-relocs1.d: New file.
5653         * testsuite/gas/arc/tls-relocs1.s: Likewise.
5655 2016-02-01  Loria  <Loria@phantasia.org>
5657         PR target/19311
5658         * config/tc-arm.c (encode_arm_immediate): Recode to improve
5659         efficiency and avoid an LLVM loop optimization bug.
5661 2016-02-01  Nick Clifton  <nickc@redhat.com>
5663         * config/tc-microblaze.c (parse_imm): Fix compile time warning
5664         message extending a negative 32-bit value into a larger signed
5665         value on a 32-bit host.
5667 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
5669         PR gas/19532
5670         * configure.ac (compressed_debug_sections): Replace == with =.
5671         * configure: Regenerated.
5673 2016-01-29  Andrew Senkevich  <andrew.senkevich@intel.com>
5674             H.J. Lu  <hongjiu.lu@intel.com>
5676         * config/tc-i386.c (avoid_fence): New.
5677         (output_insn): Encode as lock addl $0x0, (%{r,e}sp) if avoid_fence
5678         is true.
5679         (OPTION_FENCE_AS_LOCK_ADD): New.
5680         (md_longopts): Add -mfence-as-lock-add.
5681         (md_parse_option): Handle -mfence-as-lock-add.
5682         (md_show_usage): Add -mfence-as-lock-add=[no|yes].
5683         * doc/c-i386.texi (-mfence-as-lock-add): Document.
5684         * testsuite/gas/i386/i386.exp: Run new tests.
5685         * testsuite/gas/i386/fence-as-lock-add.s: New.
5686         * testsuite/gas/i386/fence-as-lock-add-yes.d: Likewise.
5687         * testsuite/gas/i386/fence-as-lock-add-no.d: Likewise.
5688         * testsuite/gas/i386/x86-64-fence-as-lock-add-yes.d: Likewise.
5689         * testsuite/gas/i386/x86-64-fence-as-lock-add-no.d: Likewise.
5691 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
5693         * configure.ac (compressed_debug_sections): Remove trailing `]'.
5694         * configure: Regenerated.
5696 2016-01-25  H.J. Lu  <hongjiu.lu@intel.com>
5698         * config/tc-i386.c (OPTION_OMIT_LOCK_PREFIX): Renamed to ...
5699         (OPTION_MOMIT_LOCK_PREFIX): This.
5700         (md_longopts): Updated.
5701         (md_parse_option): Likewise.
5703 2016-01-25  Catherine Moore  <clm@codesourcery.com>
5705         * config/mips/tc-mips.c (md_begin): Avoid gp-relative addressing
5706         if abicalls are in effect.
5707         * testsuite/gas/mips/sdata-gp.s: New test.
5708         * testsuite/gas/mips/sdata-gp.d: New expected output
5709         * testsuite/gas/mips/mips.exp: Run new test.
5711 2016-01-25  Renlin Li  <renlin.li@arm.com>
5713         * testsuite/gas/arm/thumb2_it_search.d: New.
5714         * testsuite/gas/arm/thumb2_it_search.s: New.
5716 2016-01-21  Nick Clifton  <nickc@redhat.com>
5718         PR gas/19454
5719         * testsuite/gas/arm/mapshort-elf.d: Fix expected output to cope
5720         with arm-netbsdelf target.
5721         * testsuite/gas/arm/blx-bl-convert.d: Skip for netbsdelf.
5723 2016-01-20  Nick Clifton  <nickc@redhat.com>
5725         PR 19456
5726         * testsuite/gas/arm/weakdef-1.d: Skip for VxWorks.
5727         * testsuite/gas/arm/blx-bl-convert.d
5728         * testsuite/gas/arm/plt-1.d: Likewise.
5729         * testsuite/gas/arm/reloc-bad.d: Likewise.
5730         * testsuite/gas/arm/thumb-w-good.d: Likewise.
5731         * testsuite/gas/arm/thumb2_pool.d: Likewise.
5732         * testsuite/gas/arm/ldconst.d: Adjust so that it works with VxWorks
5733         * testsuite/gas/arm/tls_vxworks.d: Update expected output.
5735         PR 19499
5736         * doc/as.texinfo (Errors): Correct documentation describing the
5737         interaction of .file and .line with warning and error messages.
5739         PR 19458
5740         * testsuite/gas/arm/armv8_2-a.d: Skip for COFF based targets.
5741         * testsuite/gas/arm/archv8m-main.d: Likewise.
5742         * testsuite/gas/arm/archv8m-base.d: Likewise.
5744 2016-01-20  Matthew Wahab  <matthew.wahab@arm.com>
5746         * testsuite/gas/aarch64/armv8_2-a-illegal.d: New.
5747         * testsuite/gas/aarch64/armv8_2-a-illegal.l: New.
5748         * testsuite/gas/aarch64/armv8_2-a-illegal.s: New.
5750 2016-01-20  Mickael Guene  <mickael.guene@st.com>
5751             Terry Guo  <terry.guo@arm.com>
5753         * config/obj-elf.c (obj_elf_change_section) : Allow arm section with
5754         SHF_ARM_NOREAD section flag.
5755         * config/tc-arm.h (md_elf_section_letter) : Implement this hook to
5756         handle letter 'y'.
5757         (arm_elf_section_letter) : Declare it.
5758         * config/tc-arm.c (arm_elf_section_letter): Handle letter 'y' to set
5759         SHF_ARM_NOREAD section flag.
5760         * doc/c-arm.texi (ARM section attribute): Document the 'y' attribute.
5762         * testsuite/gas/arm/section-execute-only.s: New test case.
5763         * testsuite/gas/arm/section-execute-only.d: Expected output.
5765 2016-01-18  Maciej W. Rozycki  <macro@imgtec.com>
5767         * config/tc-mips.c (micromips_insn_length): Remove the mention
5768         of 48-bit microMIPS instructions.
5770 2016-01-18  Alan Modra  <amodra@gmail.com>
5772         * configure: Regenerate.
5774 2016-01-17  Alan Modra  <amodra@gmail.com>
5776         * configure: Regenerate.
5778 2016-01-17  Alan Modra  <amodra@gmail.com>
5780         * testsuite/gas/cfi/cfi.exp: Exclude m68hc11/12 from m68k test.
5782 2016-01-14  Nick Clifton  <nickc@redhat.com>
5784         * testsuite/gas/rl78/sp-relative-movw.s: New test.
5785         * testsuite/gas/rl78/sp-relative-movw.d: Expected disassembly.
5786         * testsuite/gas/rl78/rl78.exp: Run the new test.
5788 2016-01-14  Matthew Wahab  <matthew.wahab@arm.com>
5790         * testsuite/gas/aarch64/illegal-sysreg-2.l: New.
5791         * testsuite/gas/aarch64/illegal-sysreg-2.d: New.
5793 2016-01-13  Maciej W. Rozycki  <macro@imgtec.com>
5795         * config/tc-nios2.c (output_movia): Preset `code' to 0.
5797 2016-01-13  Yoshinori Sato  <ysato@users.sourceforge.jp>
5799         * config/tc-h8300.c (get_operand): Remove spurious condition in
5800         test for closing parenthesis.
5802 2016-01-12  Matthew Wahab  <matthew.wahab@arm.com>
5804         * config/tc-arm.c (arm_ext_v8_2): New.
5805         (insns): Add "esb".
5806         * testsuite/gas/arm/armv8_2-a.d: New.
5807         * testsuite/gas/arm/armv8_2-a.s: New.
5809 2016-01-12  Alan Modra  <amodra@gmail.com>
5811         * testsuite/gas/ppc/vsx3.d: Accept nop padding.
5813 2016-01-11  Peter Bergner <bergner@vnet.ibm.com>
5815         * testsuite/gas/ppc/power9.d <xscmpnedp, xvcmpnedp, xvcmpnedp.,
5816         xvcmpnesp, xvcmpnesp.>: Delete tests.
5817         * testsuite/gas/ppc/power9.s: Likewise.
5818         * testsuite/gas/ppc/vsx3.d: Likewise.
5819         * testsuite/gas/ppc/vsx3.s: Likewise.
5821 2016-01-08  Andreas Schwab  <schwab@linux-m68k.org>
5823         PR gas/13050
5824         * testsuite/gas/m68k/all.exp: Add tests p13050-1 and p13050-2.
5825         * testsuite/gas/m68k/p13050-1.s: New file.
5826         * testsuite/gas/m68k/p13050-2.d: New file.
5827         * testsuite/gas/m68k/p13050-2.s: New file.
5829 2016-01-06  Andrew Burgess  <andrew.burgess@embecosm.com>
5831         * testsuite/gas/arc/adc.d: Add 'R_' prefix to relocation names.
5832         * testsuite/gas/arc/add.d: Likewise.
5833         * testsuite/gas/arc/and.d: Likewise.
5834         * testsuite/gas/arc/asl.d: Likewise.
5835         * testsuite/gas/arc/asr.d: Likewise.
5836         * testsuite/gas/arc/bic.d: Likewise.
5837         * testsuite/gas/arc/extb.d: Likewise.
5838         * testsuite/gas/arc/extw.d: Likewise.
5839         * testsuite/gas/arc/j.d: Likewise.
5840         * testsuite/gas/arc/jl.d: Likewise.
5841         * testsuite/gas/arc/ld2.d: Likewise.
5842         * testsuite/gas/arc/lsr.d: Likewise.
5843         * testsuite/gas/arc/mov.d: Likewise.
5844         * testsuite/gas/arc/or.d: Likewise.
5845         * testsuite/gas/arc/pcl-relocs.d: Likewise.
5846         * testsuite/gas/arc/pcrel-relocs.d: Likewise.
5847         * testsuite/gas/arc/pic-relocs.d: Likewise.
5848         * testsuite/gas/arc/plt-relocs.d: Likewise.
5849         * testsuite/gas/arc/rlc.d: Likewise.
5850         * testsuite/gas/arc/ror.d: Likewise.
5851         * testsuite/gas/arc/rrc.d: Likewise.
5852         * testsuite/gas/arc/sbc.d: Likewise.
5853         * testsuite/gas/arc/sda-relocs.d: Likewise.
5854         * testsuite/gas/arc/sda-relocs2.d: Likewise.
5855         * testsuite/gas/arc/sexb.d: Likewise.
5856         * testsuite/gas/arc/sexw.d: Likewise.
5857         * testsuite/gas/arc/st.d: Likewise.
5858         * testsuite/gas/arc/sub.d: Likewise.
5859         * testsuite/gas/arc/tls-relocs.d: Likewise.
5860         * testsuite/gas/arc/xor.d: Likewise.
5862 2016-01-01  Alan Modra  <amodra@gmail.com>
5864         Update year range in copyright notice of all files.
5866 For older changes see ChangeLog-2015 and testsuite/ChangeLog-2015
5868 Copyright (C) 2016 Free Software Foundation, Inc.
5870 Copying and distribution of this file, with or without modification,
5871 are permitted in any medium without royalty provided the copyright
5872 notice and this notice are preserved.
5874 Local Variables:
5875 mode: change-log
5876 left-margin: 8
5877 fill-column: 74
5878 version-control: never
5879 End: