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