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