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