1 2019-05-14 John Darrington <john@darrington.wattle.id.au>
3 * doc/as.texi (Machine Dependencies): Fix misaligned menu entry.
5 2019-05-15 Alan Modra <amodra@gmail.com>
7 * config/tc-csky.c (md_convert_frag): Initialise trailing
8 padding for COND_JUMP_PIC.
10 2019-05-15 Alan Modra <amodra@gmail.com>
12 * dwarf2dbg.c: Whitespace fixes.
13 (get_filenum): Don't strdup "file". Adjust error message.
14 (dwarf2_directive_filename): Use an unsigned type for "num".
15 Catch truncation of file number and overflow of get_filenum
16 XRESIZEVEC multiplication. Delete dead code.
18 2019-05-15 Alan Modra <amodra@gmail.com>
21 * config/tc-tic54x.c (tic54x_start_line_hook): Do skip end of line
22 chars in setting endp.
24 2019-05-14 Nick Clifton <nickc@redhat.com>
27 * config/tc-i386-intel.c (i386_intel_simplify_register): Reject
28 illegal register numbers.
30 2019-05-10 Nick Clifton <nickc@redhat.com>
33 * macro.c (get_any_string): Increase size of buffer used to hold
34 decimal value of expression result.
35 * dw2gencfi.c (get_debugseg_name): Handle an empty name.
36 * dwarf2dbg.c (get_filenum): Catch integer wraparound when
37 extending allocate file array.
38 (dwarf2_directive_filename): Add extra checks of the computed file
40 * config/tc-arm.c (arm_tc_equal_in_insn): Insert copy of name into
42 (s_arm_eabi_attribute): Check for obj_elf_vendor_attribute
44 * config/tc-i386.c (i386_output_nops): Catch an attempt to
45 generate nops of negative lengths.
46 * as.h (MAX_LITTLENUMS): Move definition to here from...
47 * config/atof-ieee.c: ...here.
48 * config/tc-aarch64.c: ...here.
49 * config/tc-arc.c: ...here.
50 * config/tc-arm.c: ...here.
51 * config/tc-epiphany.c: ...here.
52 * config/tc-i386.c: ...here.
53 * config/tc-ia64.c: ...here. (And correct the value).
54 * config/tc-m32c.c: ...here.
55 * config/tc-m32r.c: ...here.
56 * config/tc-metag.c: ...here.
57 * config/tc-microblaze.c: ...here.
58 * config/tc-nds32.c: ...here.
59 * config/tc-or1k.c: ...here.
60 * config/tc-score.c: ...here.
61 * config/tc-score7.c: ...here.
62 * config/tc-tic4x.c: ...here.
63 * config/tc-tilegx.c: ...here.
64 * config/tc-tilepro.c: ...here.
65 * config/tc-visium.c: ...here.
66 * config/tc-sh.c (md_assemble): Add check for an instruction with
68 * config/tc-mips.c (mips_lookup_insn): Add check for very short
70 * config/tc-tic54x.c: Use unsigned chars to access is_end_of_line
72 (tic54x_start_line_hook): Check for an empty line.
73 (next_line_shows_parallel): Do not walk off the end of the string.
74 (tic54x_macro_start): Check for too much macro nesting.
75 (tic54x_start_label): Add label_start parameter. Use this
76 parameter to check the first character of the label.
78 * config/tc-tic54x.h (TC_START_LABEL_WITHOUT_COLON): Pass
79 line_start variable to tic54x_start_label.
81 2019-05-10 Faraz Shahbazker <fshahbazker@wavecomp.com>
83 * config/tc-mips.c (macro) <M_ADD_I, M_SUB_I, M_DADD_I, M_DSUB_I>:
84 Add expansions for MIPS r6.
85 * testsuite/gas/mips/add.s: Enable tests for R6.
86 * testsuite/gas/mips/daddi.s: Annotate to test DADD for R6.
87 * testsuite/gas/mips/mipsr6@add.d: Likewise.
88 * gas/testsuite/gas/mips/mipsr6@dadd.d: New test.
89 * gas/testsuite/gas/mips/mips.exp: Run the new test.
91 2019-05-09 Matthew Malcomson <matthew.malcomson@arm.com>
93 * testsuite/gas/aarch64/sve2.d: Remove file format restriction.
95 2019-05-09 Matthew Malcomson <matthew.malcomson@arm.com>
97 * testsuite/gas/aarch64/illegal-sve2-aes.d: New test.
98 * testsuite/gas/aarch64/illegal-sve2-bitperm.d: New test.
99 * testsuite/gas/aarch64/illegal-sve2-sha3.d: Test new instructions.
100 * testsuite/gas/aarch64/illegal-sve2-sm4.d: Test new instructions.
101 * testsuite/gas/aarch64/illegal-sve2-sve1ext.d: Test new instructions.
102 * testsuite/gas/aarch64/illegal-sve2-sve1ext.l: Test new instructions.
103 * testsuite/gas/aarch64/illegal-sve2.d: Test new instructions.
104 * testsuite/gas/aarch64/illegal-sve2.l: Test new instructions.
105 * testsuite/gas/aarch64/illegal-sve2.s: Test new instructions.
106 * testsuite/gas/aarch64/sve1-extended-sve2.s: New test.
107 * testsuite/gas/aarch64/sve2.d: Test new instructions.
108 * testsuite/gas/aarch64/sve2.s: Test new instructions.
110 2019-05-09 Matthew Malcomson <matthew.malcomson@arm.com>
112 * config/tc-aarch64.c (parse_operands): Handle new SVE_SHLIMM_UNPRED_22
115 2019-05-09 Matthew Malcomson <matthew.malcomson@arm.com>
117 * config/tc-aarch64.c (parse_operands): Handle new SVE_Zm4_11_INDEX
120 2019-05-09 Matthew Malcomson <matthew.malcomson@arm.com>
122 * config/tc-aarch64.c (parse_operands): Handle new SVE_SHRIMM_UNPRED_22
125 2019-05-09 Matthew Malcomson <matthew.malcomson@arm.com>
127 * config/tc-aarch64.c (REG_ZR): Macro specifying zero register.
128 (parse_address_main): Account for new addressing mode [Zn.S, Xm].
129 (parse_operands): Handle new SVE_ADDR_ZX operand.
131 2019-05-09 Matthew Malcomson <matthew.malcomson@arm.com>
133 * config/tc-aarch64.c (parse_operands): Handle new SVE_Zm3_11_INDEX
136 2019-05-09 Matthew Malcomson <matthew.malcomson@arm.com>
138 * config/tc-aarch64.c (parse_operands): Handle new SVE_IMM_ROT3 operand.
140 2019-05-09 Matthew Malcomson <matthew.malcomson@arm.com>
142 * config/tc-aarch64.c: Add command line architecture feature flags
143 "sve2", "sve2-sm4", "sve2-aes", "sve2-sha3", "bitperm".
144 * doc/c-aarch64.texi: Document new architecture feature flags.
146 2019-05-08 Alan Modra <amodra@gmail.com>
148 * testsuite/gas/elf/dwarf2-1.s,
149 * testsuite/gas/elf/dwarf2-2.s,
150 * testsuite/gas/elf/dwarf2-5.s,
151 * testsuite/gas/elf/dwarf2-7.s,
152 * testsuite/gas/elf/dwarf2-8.s,
153 * testsuite/gas/elf/dwarf2-9.s,
154 * testsuite/gas/elf/dwarf2-10.s,
155 * testsuite/gas/elf/dwarf2-11.s,
156 * testsuite/gas/elf/dwarf2-12.s,
157 * testsuite/gas/elf/dwarf2-13.s,
158 * testsuite/gas/elf/dwarf2-14.s,
159 * testsuite/gas/elf/dwarf2-15.s,
160 * testsuite/gas/elf/dwarf2-16.s,
161 * testsuite/gas/elf/dwarf2-17.s,
162 * testsuite/gas/elf/dwarf2-18.s,
163 * testsuite/gas/elf/dwarf2-19.s: Double size of align and simulated
165 * testsuite/gas/elf/dwarf2-1.d,
166 * testsuite/gas/elf/dwarf2-2.d,
167 * testsuite/gas/elf/dwarf2-5.d,
168 * testsuite/gas/elf/dwarf2-7.d,
169 * testsuite/gas/elf/dwarf2-8.d,
170 * testsuite/gas/elf/dwarf2-9.d,
171 * testsuite/gas/elf/dwarf2-10.d,
172 * testsuite/gas/elf/dwarf2-11.d,
173 * testsuite/gas/elf/dwarf2-12.d,
174 * testsuite/gas/elf/dwarf2-13.d,
175 * testsuite/gas/elf/dwarf2-14.d,
176 * testsuite/gas/elf/dwarf2-15.d,
177 * testsuite/gas/elf/dwarf2-16.d,
178 * testsuite/gas/elf/dwarf2-17.d,
179 * testsuite/gas/elf/dwarf2-18.d,
180 * testsuite/gas/elf/dwarf2-19.d: Use xfail rather than notarget.
181 Remove avr, pru, tile, xtensa from xfails. Update expected output.
182 * testsuite/gas/elf/elf.exp: Sort targets.
183 (dump_opts): Pass {as -mno-relax} for riscv, {as -mno-link-relax}
184 for avr and pru, and {as --no-link-relax} for xtensa to dwarf tests.
185 * testsuite/gas/elf/section2.e-miwmmxt: Delete unused file.
187 2019-05-08 Alan Modra <amodra@gmail.com>
189 * config/tc-xtensa.c (opt_linkrelax): New variable.
190 (md_parse_option): Set it here.
191 (md_begin): Copy opt_linkrelax to linkrelax.
193 2019-05-07 Alexandre Oliva <aoliva@redhat.com>
195 * testsuite/gas/elf/dwarf2-18.d: Xfail mep-*.
196 * testsuite/gas/elf/dwarf2-19.d: Likewise.
198 2019-05-07 Alan Modra <amodra@gmail.com>
200 * symbols.c (use_complex_relocs_for): Formatting. Factor out
203 2019-05-06 Andrew Bennett <andrew.bennett@imgtec.com>
204 Faraz Shahbazker <fshahbazker@wavecomp.com>
206 * config/tc-mips.c (mips_set_ase): Handle ASE_EVA_R6.
207 (macro) <M_LLWPE_AB, M_SCWPE_AB>: New cases.
208 (mips_after_parse_args): Translate EVA to EVA_R6.
209 * testsuite/gas/mips/ase-errors-1.s: Add new instructions.
210 * testsuite/gas/mips/eva.s: Likewise.
211 * testsuite/gas/mips/ase-errors-1.l: Check errors for
213 * testsuite/gas/mips/mipsr6@eva.d: Check new test cases.
215 2019-05-06 Alan Modra <amodra@gmail.com>
217 * symbols.c (symbol_relc_make_sym): Do not access sym->sy_value
220 2019-05-06 Alan Modra <amodra@gmail.com>
222 * config/tc-ppc.c (ppc_fix_adjustable): Exclude all GOT and PLT
223 relocs, and VLE sdarel relocs.
224 * testsuite/gas/ppc/power4.d: Adjust.
226 2019-05-05 Alexandre Oliva <aoliva@redhat.com>
228 * dwarf2dbg.c (set_or_check_view): Skip heads when assigning
230 (dwarf2_gen_line_info_1): Skip heads.
231 (size_inc_line_addr, emit_inc_line_addr): Drop
232 DW_LNS_advance_pc for zero addr delta.
233 (dwarf2_finish): Assign views for heads of segments.
234 * testsuite/gas/elf/dwarf2-19.d: New.
235 * testsuite/gas/elf/dwarf2-19.s: New.
236 * testsuite/gas/elf/elf.exp: Test it.
238 2019-05-04 Alan Modra <amodra@gmail.com>
240 * config/tc-m32c.c (insn_size): Delete static var.
241 (md_begin): Don't set it.
242 (m32c_md_end): Delete.
243 (md_assemble): Add insn_size auto var.
244 * config/tc-m32c.h (md_end): Don't define.
245 (m32c_md_end): Delete.
246 (NOP_OPCODE, HANDLE_ALIGN, MAX_MEM_FOR_RS_ALIGN_CODE): Define.
247 * testsuite/gas/all/align.d: Remove m32c from notarget list.
248 * testsuite/gas/all/incbin.d: Likewise.
249 * testsuite/gas/elf/dwarf2-11.d: Likewise.
250 * testsuite/gas/macros/semi.d: Likewise.
251 * testsuite/gas/all/gas.exp (do_comment): Similarly.
253 2019-05-02 H.J. Lu <hongjiu.lu@intel.com>
256 * config/tc-i386.c (process_suffix): Issue a warning to IRET
257 without a suffix for .code16gcc.
258 * testsuite/gas/i386/jump16.s: Add tests for iretX.
259 * testsuite/gas/i386/jump16.d: Updated.
260 * testsuite/gas/i386/jump16.e: New file.
262 2019-05-01 Sudakshina Das <sudi.das@arm.com>
264 * config/tc-aarch64.c (parse_operands): Add case for
265 AARCH64_OPND_TME_UIMM16.
266 (aarch64_features): Add "tme".
267 * doc/c-aarch64.texi: Document the same.
268 * testsuite/gas/aarch64/tme-invalid.d: New test.
269 * testsuite/gas/aarch64/tme-invalid.l: New test.
270 * testsuite/gas/aarch64/tme-invalid.s: New test.
271 * testsuite/gas/aarch64/tme.d: New test.
272 * testsuite/gas/aarch64/tme.s: New test.
274 2019-04-29 John Darrington <john@darrington.wattle.id.au>
276 * testsuite/gas/s12z/truncated.d: New file.
277 * testsuite/gas/s12z/truncated.s: New file.
278 * testsuite/gas/s12z/s12z.exp: Add new test.
280 2019-04-26 Andrew Bennett <andrew.bennett@imgtec.com>
281 Faraz Shahbazker <fshahbazker@wavecomp.com>
283 * config/tc-mips.c (macro) <M_LLWP_AB, M_LLDP_AB, M_SCWP_AB,
284 M_SCDP_AB>: New cases and expansions for paired instructions.
285 * testsuite/gas/mips/llpscp-32.s: New test source.
286 * testsuite/gas/mips/llpscp-64.s: Likewise.
287 * testsuite/gas/mips/llpscp-32.d: New test.
288 * testsuite/gas/mips/llpscp-64.d: Likewise.
289 * testsuite/gas/mips/mips.exp: Run the new tests.
290 * testsuite/gas/mips/r6.s: Add new instructions to test source.
291 * testsuite/gas/mips/r6-64.s: Likewise.
292 * testsuite/gas/mips/r6-64-n32.d: Check new instructions.
293 * testsuite/gas/mips/r6-64-n64.d: Likewise.
294 * testsuite/gas/mips/r6-n32.d: Likewise.
295 * testsuite/gas/mips/r6-n64.d: Likwwise.
296 * testsuite/gas/mips/r6.d: Likewise.
298 2019-04-26 H.J. Lu <hongjiu.lu@intel.com>
301 * config/tc-i386.c (process_suffix): Don't add DATA_PREFIX_OPCODE
302 to IRET for .code16gcc.
303 * testsuite/gas/i386/jump16.s: Add IRET tests.
304 * testsuite/gas/i386/jump16.d: Updated.
306 2019-04-25 Alexandre Oliva <aoliva@redhat.com>
307 Alan Modra <amodra@gmail.com>
310 * frags.c (frag_gtoffset_p): New.
311 * frags.h (frag_gtoffset_p): Declare it.
312 * expr.c (resolve_expression): Use it.
314 2019-04-24 Alan Modra <amodra@gmail.com>
317 * symbols.c (resolve_symbol_value): When handling symbols
318 marked as sy_flags.resolved, return correct value for the
319 case of expression symbols left as an O_symbol expression.
320 Merge O_symbol code handling undefined and common symbols with
321 code handling special cases of expression symbols. Use
322 seg_left to test for undefined and common symbols. Don't
323 leave an O_symbol expression when X_add_symbol resolves to
324 the absolute_section. Init final_val later.
325 * testsuite/gas/mmix/basep-7.d: Adjust expected output.
327 2019-04-24 John Darrington <john@darrington.wattle.id.au>
329 * testsuite/gas/s12z/bit-manip-invalid.s: Extend test for BSET
330 and BCLR instructions with an invalid mode.
331 * testsuite/gas/s12z/bit-manip-invalid.d: ditto.
333 2019-04-19 Nick Clifton <nickc@redhat.com>
336 * config/tc-rx.h (md_relax_frag): Pass the max_iterations variable
337 to the relaxation function.
338 * config/tc-rx.c (rx_relax_frag): Add new parameter - the maximum
339 number of iterations. Make sure that our internal iteration limit
340 does not exceed this external iteration limit.
342 2019-04-18 Matthew Fortune <matthew.fortune@mips.com>
344 * config/tc-mips.c (match_non_zero_reg_operand): Update
346 * testsuite/gas/mips/r6-branch-constraints.l: Likewise.
348 2019-04-18 Jozef Lawrynowicz <jozef.l@mittosystems.com>
350 * config/tc-msp430.c (msp430_make_init_symbols): Define
351 __crt0_run_{preinit,init,fini}_array symbols if
352 .{preinit,init,fini}_array sections exist.
353 * testsuite/gas/msp430/fini-array.d: New test.
354 * testsuite/gas/msp430/init-array.d: New test.
355 * testsuite/gas/msp430/preinit-array.d: New test.
356 * testsuite/gas/msp430/fini-array.s: New test source.
357 * testsuite/gas/msp430/init-array.s: New test source.
358 * testsuite/gas/msp430/preinit-array.s: New test source.
359 * testsuite/gas/msp430/msp430.exp: Add new tests to driver.
361 2019-04-17 Jozef Lawrynowicz <jozef.l@mittosystems.com>
363 * config/tc-msp430.c (msp430_make_init_symbols): Define __crt0_init_bss
364 symbol when .lower.bss or .either.bss sections exist.
365 Define __crt0_movedata when .lower.data or .either.data sections exist.
366 * testsuite/gas/msp430/either-data-bss-sym.d: New test.
367 * testsuite/gas/msp430/low-data-bss-sym.d: New test.
368 * testsuite/gas/msp430/either-data-bss-sym.s: New test source.
369 * testsuite/gas/msp430/low-data-bss-sym.s: New test source.
370 * testsuite/gas/msp430/msp430.exp: Run new tests.
371 Enable large code model when running -mdata-region={upper,either}
374 2019-04-17 Jozef Lawrynowicz <jozef.l@mittosystems.com>
376 * config/tc-msp430.c (options): New OPTION_UNKNOWN_INTR_NOPS,
377 OPTION_NO_UNKNOWN_INTR_NOPS and do_unknown_interrupt_nops.
378 (md_parse_option): Handle OPTION_UNKNOWN_INTR_NOPS and
379 OPTION_NO_UNKNOWN_INTR_NOPS by setting do_unknown_interrupt_nops
381 (md_show_usage): Likewise.
382 (md_shortopts): Add "mu" for OPTION_UNKNOWN_INTR_NOPS and
383 "mU" for OPTION_NO_UNKNOWN_INTR_NOPS.
384 (md_longopts): Likewise.
385 (warn_eint_nop): Update comment.
386 (warn_unsure_interrupt): Don't warn if prev_insn_is_nop or
387 prev_insn_is_dint or we are assembling for 430 ISA.
388 (msp430_operands): Only call warn_unsure_interrupt if
389 do_unknown_interrupt_nops == TRUE.
390 * testsuite/gas/msp430/nop-unknown-intr.s: New test source file.
391 * testsuite/gas/msp430/nop-unknown-intr-430.d: New test.
392 * testsuite/gas/msp430/nop-unknown-intr-430x.d: New test.
393 * testsuite/gas/msp430/nop-unknown-intr-430x-ignore.d: New test.
394 * testsuite/gas/msp430/nop-unknown-intr-430.l: Warning output for new
396 * testsuite/gas/msp430/nop-unknown-intr-430x.l: Likewise.
397 * testsuite/gas/msp430/msp430.exp: Add new tests to driver.
399 2019-04-16 Alan Modra <amodra@gmail.com>
401 * testsuite/gas/all/weakref1.d: xfail nds32.
403 2019-04-16 Alan Modra <amodra@gmail.com>
405 * testsuite/gas/all/gas.exp: Remove ns32k xfails.
406 * testsuite/gas/all/weakref1u.d: Don't run for ns32k-*-*.
408 2019-04-16 Alan Modra <amodra@gmail.com>
410 * write.h: Don't include bit_fix.h.
411 (struct fix): Rearrange some fields. Delete fx_im_disp and
412 fx_bit_fixP. Use bitfields for fx_size and fx_pcrel_adjust.
413 * write.c (fix_new_internal): Don't init fx_im_disp and fx_bit_fixP.
414 (fixup_segment): Don't exclude overflow checks on fx_bit_fixP.
415 (print_fixup): Don't print im_disp.
416 * config/tc-cris.c (md_apply_fix): Remove tests of fx_bit_fixP
418 * config/tc-dlx.c (md_apply_fix): Remove wrong debug code. Set
419 fx_no_overflow when fx_bit_fixP.
420 * config/tc-dlx.h: Include bit_fix.h.
421 (TC_FIX_TYPE, tc_fix_data, TC_INIT_FIX_DATA): Define.
422 * config/tc-ns32k.c (fix_new_ns32k, fix_new_ns32k_exp): Set
423 fx_no_overflow when bit_fixP.
424 * config/tc-ns32k.h (TC_FIX_TYPE): Add fx_bit_fixP and fx_im_disp.
425 (fix_im_disp, fix_bit_fixP): Adjust to suit.
426 (TC_INIT_FIX_DATA, TC_FIX_DATA_PRINT): Likewise.
428 2019-04-16 Alan Modra <amodra@gmail.com>
430 * write.h (struct fix <fx_where>): Make unsigned.
431 (fix_new, fix_at_start, fix_new_exp): Adjust prototypes.
432 * write.c (fix_new, fix_new_exp, fix_at_start): Make "where" and
433 "size" parameters unsigned long.
434 (fix_new_internal): Likewise. Adjust error format string to suit.
435 * config/tc-mips.c (md_convert_frag): Remove cast of fx_where.
436 * config/tc-sparc.c (md_apply_fix): Likewise.
437 * config/tc-score.c (s3_convert_frag): Adjust for unsigned fx_where.
438 * config/tc-score7.c (s7_convert_frag): Likewise.
440 2019-04-16 Alan Modra <amodra@gmail.com>
442 * frags.h (struct frag <fr_fix>): Use unsigned type.
443 * frags.c (frag_new): Assert that current size exceeds
444 old_frags_var_max_size.
445 * ehopt.c (get_cie_info): Adjust for unsigned fr_fix.
446 * listing.c (calc_hex): Likewise.
447 * write.c (cvt_frag_to_fill, write_relocs): Likewise.
448 * config/tc-arc.c (md_convert_frag): Likewise.
449 * config/tc-avr.c (avr_patch_gccisr_frag): Likewise.
450 * config/tc-mips.c (md_convert_frag): Likewise.
451 * config/tc-rl78.c (md_convert_frag): Likewise.
452 * config/tc-rx.c (md_convert_frag): Likewise.
453 * config/tc-sparc.c (md_apply_fix): Likewise.
454 * config/tc-xtensa.c (next_instrs_are_b_retw): Likewise.
455 (unrelaxed_frag_min_insn_count, unrelaxed_frag_has_b_j): Likewise.
457 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
459 * config/tc-arm.c (parse_sys_vldr_vstr): New function.
460 (OP_VLDR): New enum operand_parse_code enumerator.
461 (parse_operands): Add logic for OP_VLDR.
462 (do_t_vldr_vstr_sysreg): New function.
463 (do_vldr_vstr): Likewise.
464 (insns): Guard VLDR and VSTR by arm_ext_v4t for Thumb mode.
465 (md_apply_fix): Add bound check for VLDR and VSTR co-processor offset.
466 Add masking logic for BFD_RELOC_ARM_T32_VLDR_VSTR_OFF_IMM relocation.
467 * testsuite/gas/arm/archv8m_1m-cmse-main-bad.s: Add examples of bad
468 uses of VLDR and VSTR.
469 * testsuite/gas/arm/archv8m_1m-cmse-main-bad.l: Add error messages for
471 * testsuite/gas/arm/archv8m_1m-cmse-main.s: Add examples of VLDR and
473 * testsuite/gas/arm/archv8m_1m-cmse-main.d: Add disassembly for the
476 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
478 * config/tc-arm.c (arm_typed_reg_parse): Fix typo in comment.
479 (enum reg_list_els): New REGLIST_VFP_S_VPR and REGLIST_VFP_D_VPR
481 (parse_vfp_reg_list): Add new partial_match parameter. Set
482 *partial_match to TRUE if at least one element in the register list has
483 matched. Add support for REGLIST_VFP_S_VPR and REGLIST_VFP_D_VPR
484 register lists which expect VPR as last element in the list.
485 (s_arm_unwind_save_vfp_armv6): Adapt call to parse_vfp_reg_list to new
487 (s_arm_unwind_save_vfp): Likewise.
488 (enum operand_parse_code): New OP_VRSDVLST enumerator.
489 (parse_operands): Adapt call to parse_vfp_reg_list to new prototype.
490 Handle new OP_VRSDVLST case.
491 (do_t_vscclrm): New function.
492 (insns): New entry for VSCCLRM instruction.
493 * testsuite/gas/arm/archv8m_1m-cmse-main-bad.s: Add invalid VSCCLRM
495 * testsuite/gas/arm/archv8m_1m-cmse-main-bad.l: Add error expectations
496 for above instructions.
497 * testsuite/gas/arm/archv8m_1m-cmse-main.s: Add tests for VSCCLRM
499 * testsuite/gas/arm/archv8m_1m-cmse-main.d: Add expected disassembly
500 for above instructions.
502 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
504 * config/tc-arm.c (enum reg_list_els): Define earlier and add
505 REGLIST_RN and REGLIST_CLRM enumerators.
506 (parse_reg_list): Add etype parameter to distinguish between regular
507 core register list and CLRM register list. Add logic to
508 recognize CLRM register list.
509 (parse_vfp_reg_list): Assert type is not for core register list.
510 (s_arm_unwind_save_core): Update call to parse_reg_list to new
512 (enum operand_parse_code): Declare OP_CLRMLST enumerator.
513 (parse_operands): Update call to parse_reg_list to new prototype. Add
514 logic for OP_CLRMLST.
515 (encode_thumb2_ldmstm): Rename into ...
516 (encode_thumb2_multi): This. Add do_io parameter. Add logic to
517 encode CLRM and guard LDM/STM only code by do_io.
518 (do_t_ldmstm): Adapt to use encode_thumb2_multi.
519 (do_t_push_pop): Likewise.
520 (do_t_clrm): New function.
521 (insns): Define CLRM.
522 * testsuite/gas/arm/archv8m_1m-cmse-main-bad.d: New file.
523 * testsuite/gas/arm/archv8m_1m-cmse-main-bad.l: Likewise.
524 * testsuite/gas/arm/archv8m_1m-cmse-main-bad.s: Likewise.
525 * testsuite/gas/arm/archv8m_1m-cmse-main.d: Likewise.
526 * testsuite/gas/arm/archv8m_1m-cmse-main.s: Likewise.
528 2019-04-15 Sudakshina Das <sudi.das@arm.com>
529 Andre Vieira <andre.simoesdiasvieira@arm.com>
531 * config/tc-arm.c (operand_parse_code): Add OP_LR and OP_oLR
532 for the LR operand and optional LR operand.
533 (parse_operands): Add switch cases for OP_LR and OP_oLR for
534 both type checking and value checking.
535 (encode_thumb32_addr_mode): New entries for DLS, WLS and LE.
536 (v8_1_loop_reloc): New helper function for handling labels
537 for the low overhead loop instructions.
538 (do_t_loloop): New function to encode DLS, WLS and LE.
539 (insns): New entries for WLS, DLS and LE.
540 (md_pcrel_from_section): New switch case
541 for BFD_RELOC_ARM_THUMB_LOOP12.
542 (md_appdy_fix): Likewise.
543 (tc_gen_reloc): Likewise.
544 * testsuite/gas/arm/armv8_1-m-tloop.s: New.
545 * testsuite/gas/arm/armv8_1-m-tloop.d: New.
546 * testsuite/gas/arm/armv8_1-m-tloop-bad.s: New.
547 * testsuite/gas/arm/armv8_1-m-tloop-bad.d: New.
548 * testsuite/gas/arm/armv8_1-m-tloop-bad.l: New.
550 2019-04-15 Sudakshina Das <sudi.das@arm.com>
551 Andre Vieira <andre.simoesdiasvieira@arm.com>
553 * config/tc-arm.c (T16_32_TAB): New entriy for bfcsel.
554 (do_t_v8_1_branch): New switch case for bfcsel.
556 (insns): New instruction for bfcsel.
557 (md_pcrel_from_section): New switch case
558 for BFD_RELOC_THUMB_PCREL_BFCSEL.
559 (md_appdy_fix): Likewise
560 (tc_gen_reloc): Likewise.
561 * testsuite/gas/arm/armv8_1-m-bfcsel.d: New.
562 * testsuite/gas/arm/armv8_1-m-bfcsel.s: New.
564 2019-04-15 Sudakshina Das <sudi.das@arm.com>
566 * config/tc-arm.c (md_pcrel_from_section): New switch case for
567 BFD_RELOC_ARM_THUMB_BF13.
568 (md_appdy_fix): Likewise.
569 (tc_gen_reloc): Likewise.
571 2019-04-15 Sudakshina Das <sudi.das@arm.com>
572 Andre Vieira <andre.simoesdiasvieira@arm.com>
574 * config/tc-arm.c (T16_32_TAB): New entrie for bfl.
575 (do_t_v8_1_branch): New switch case for bfl.
576 (insns): New instruction for bfl.
577 * testsuite/gas/arm/armv8_1-m-bfl.d: New.
578 * testsuite/gas/arm/armv8_1-m-bfl.s: New.
579 * testsuite/gas/arm/armv8_1-m-bfl-bad.s: New.
580 * testsuite/gas/arm/armv8_1-m-bfl-bad.d: New.
581 * testsuite/gas/arm/armv8_1-m-bfl-bad.l: New.
582 * testsuite/gas/arm/armv8_1-m-bfl-rel.d: New.
583 * testsuite/gas/arm/armv8_1-m-bfl-rel.s: New.
585 2019-04-15 Sudakshina Das <sudi.das@arm.com>
587 * config/tc-arm.c (md_pcrel_from_section): New switch case for
588 BFD_RELOC_ARM_THUMB_BF19.
589 (md_appdy_fix): Likewise.
590 (tc_gen_reloc): Likewise.
592 2019-04-15 Sudakshina Das <sudi.das@arm.com>
594 * config/tc-arm.c (T16_32_TAB): New entries for bfx and bflx.
595 (do_t_v8_1_branch): New switch cases for bfx and bflx.
596 (insns): New instruction for bfx and bflx.
597 * testsuite/gas/arm/armv8_1-m-bf-exchange.d: New.
598 * testsuite/gas/arm/armv8_1-m-bf-exchange.s: New.
599 * testsuite/gas/arm/armv8_1-m-bf-exchange-bad.s: New
600 * testsuite/gas/arm/armv8_1-m-bf-exchange-bad.l: New
601 * testsuite/gas/arm/armv8_1-m-bf-exchange-bad.d: New
603 2019-04-15 Sudakshina Das <sudi.das@arm.com>
604 Andre Vieira <andre.simoesdiasvieira@arm.com>
606 * config/tc-arm.c (T16_32_TAB): New entries for bf.
607 (do_t_branch_future): New.
608 (insns): New instruction for bf.
609 * testsuite/gas/arm/armv8_1-m-bf.d: New.
610 * testsuite/gas/arm/armv8_1-m-bf.s: New.
611 * testsuite/gas/arm/armv8_1-m-bf-bad.s: New.
612 * testsuite/gas/arm/armv8_1-m-bf-bad.l: New.
613 * testsuite/gas/arm/armv8_1-m-bf-bad.d: New.
614 * testsuite/gas/arm/armv8_1-m-bf-rel.d: New.
615 * testsuite/gas/arm/armv8_1-m-bf-rel.s: New.
617 2019-04-15 Sudakshina Das <sudi.das@arm.com>
619 * config/tc-arm.c (md_pcrel_from_section): New switch case for
620 BFD_RELOC_ARM_THUMB_BF17.
621 (md_appdy_fix): Likewise.
622 (tc_gen_reloc): Likewise.
624 2019-04-15 Sudakshina Das <sudi.das@arm.com>
626 * config/tc-arm.c (ARM_IT_MAX_RELOCS): New macro.
627 (arm_it): Member reloc renamed relocs and updated to an array.
628 Rest: Replace all occurrences of reloc to relocs[0].
630 2019-04-15 Sudakshina Das <sudi.das@arm.com>
632 * config/tc-arm.c (md_pcrel_from_section): New switch case
633 for BFD_RELOC_THUMB_PCREL_BRANCH5.
634 (v8_1_branch_value_check): New function to check branch
636 (md_appdy_fix): New switch case for
637 BFD_RELOC_THUMB_PCREL_BRANCH5.
638 (tc_gen_reloc): Likewise.
640 2019-04-15 Andre Vieira <andre.simoesdiasvieira@arm.com>
642 * config/tc-arm.c (do_neon_movhf): Remove fp-armv8 check.
643 (armv8_1m_main_ext_table): New extension table.
644 (arm_archs): Use the new extension table.
645 * doc/c-arm.texi: Add missing arch and document new extensions.
646 * testsuite/gas/arm/armv8.1-m.main-fp.d: New.
647 * testsuite/gas/arm/armv8.1-m.main-fp-dp.d: New.
648 * testsuite/gas/arm/armv8.1-m.main-hp.d: New.
650 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
652 * config/tc-arm.c (cpu_arch_ver): Add entry for Armv8.1-M Mainline
653 Tag_CPU_arch build attribute value. Reindent.
654 (get_aeabi_cpu_arch_from_fset): Update assert.
655 (aeabi_set_public_attributes): Update assert for Tag_DIV_use logic.
656 * testsuite/gas/arm/attr-march-armv8_1-m.main.d: New test.
658 2019-04-09 Matthew Fortune <matthew.fortune@mips.com>
660 * config/tc-mips.c (mips_cpu_info_table): Add i6500. Update
661 default ASEs for i6400.
662 * doc/c-mips.texi (-march): Document i6500.
663 * testsuite/gas/mips/elf_mach_i6400.d: New test.
664 * testsuite/gas/mips/elf_mach_i6500.d: New test.
665 * testsuite/gas/mips/mips.exp: Run the new tests.
667 2019-04-09 Matthew Fortune <matthew.fortune@mips.com>
669 * config/tc-mips.c (mips_set_options) <init_ase>: New field.
670 (file_mips_opts, mips_opts) <init_ase>: Initialize new field.
671 (file_mips_check_options): Propagate initial ASE settings.
672 (mips_after_parse_args, parse_code_option): Track the initial
673 ASE settings for a CPU.
674 (s_mipsset): Restore the initial ASE settings when reverting
676 * testsuite/gas/mips/elf_mach_p6600.d: New test.
677 * testsuite/gas/mips/mips.exp: Run the new test.
679 2019-04-12 John Darrington <john@darrington.wattle.id.au>
681 config/tc-s12z.h: Remove definition of macro TC_M68K
683 2019-04-01 John Darrington <john@darrington.wattle.id.au>
685 config/tc-s12z.c: Use bfd_boolean where appropriate.
687 2019-04-11 Max Filippov <jcmvbkbc@gmail.com>
689 * testsuite/gas/xtensa/loop-relax-2.d: New test definition.
690 * testsuite/gas/xtensa/loop-relax.d: New test definition.
691 * testsuite/gas/xtensa/loop-relax.s: New test source.
692 * testsuite/gas/xtensa/text-section-literals-1a.d: New test
694 * testsuite/gas/xtensa/text-section-literals-2.d: New test
696 * testsuite/gas/xtensa/text-section-literals-2.s: New test
698 * testsuite/gas/xtensa/text-section-literals-2a.d: New test
700 * testsuite/gas/xtensa/text-section-literals-3.d: New test
702 * testsuite/gas/xtensa/text-section-literals-3.s: New test
704 * testsuite/gas/xtensa/text-section-literals-4.d: New test
706 * testsuite/gas/xtensa/text-section-literals-4.s: New test
708 * testsuite/gas/xtensa/text-section-literals-4a.d: New test
711 2019-04-11 Max Filippov <jcmvbkbc@gmail.com>
713 * testsuite/gas/xtensa/all.exp: Remove all expect-based
714 tests and all explicit run_dump_test / run_list_test
715 invocations. Add run_dump_tests for all .d files in the
717 * testsuite/gas/xtensa/entry_align.d: New test definition.
718 * testsuite/gas/xtensa/entry_align.l: New test output.
719 * testsuite/gas/xtensa/entry_misalign.d: New test definition.
720 * testsuite/gas/xtensa/entry_misalign2.d: New test definition.
721 * testsuite/gas/xtensa/j_too_far.d: New test definition.
722 * testsuite/gas/xtensa/j_too_far.l: New test output.
723 * testsuite/gas/xtensa/loop_align.d: New test definition.
724 * testsuite/gas/xtensa/loop_misalign.d: New test definition.
725 * testsuite/gas/xtensa/trampoline-2.d: New test definition.
726 * testsuite/gas/xtensa/trampoline-2.l: Remove empty output.
727 * testsuite/gas/xtensa/xtensa-err.exp: Use positive logic.
729 2019-04-11 Max Filippov <jcmvbkbc@gmail.com>
731 * config/tc-xtensa.c (xtensa_literal_pseudo): Drop code that has
733 (get_literal_pool_location): Only search for the literal pool
734 when auto litpools is used, otherwise take one recorded in the
735 tc_segment_info_data.
736 (xtensa_assign_litpool_addresses): New function.
737 (xtensa_move_literals): Don't duplicate 'literal pool location
738 required...' error message. Call xtensa_assign_litpool_addresses.
740 2019-04-11 Max Filippov <jcmvbkbc@gmail.com>
742 * config/tc-xtensa.c (xtensa_is_init_fini): Add declaration.
743 (xtensa_mark_literal_pool_location): Don't add fill frag to literal
744 section that records literal pool location.
745 (md_begin): Call xtensa_mark_literal_pool_location when text
746 section literals or auto litpools are used.
747 (xtensa_elf_section_change_hook): Call
748 xtensa_mark_literal_pool_location when text section literals or
749 auto litpools are used, there's no literal pool location defined
750 for the current section and it's not .init or .fini.
751 * testsuite/gas/xtensa/auto-litpools-first1.d: Fix up addresses.
752 * testsuite/gas/xtensa/auto-litpools-first2.d: Likewise.
753 * testsuite/gas/xtensa/auto-litpools.d: Likewise.
755 2019-04-11 Sudakshina Das <sudi.das@arm.com>
757 * config/tc-aarch64.c (process_omitted_operand): Add case for
759 (parse_operands): Likewise.
760 * testsuite/gas/aarch64/armv8_5-a-memtag.d: Update tests.
761 * testsuite/gas/aarch64/armv8_5-a-memtag.s: Likewise.
762 * testsuite/gas/aarch64/illegal-memtag.l: Likewise.
763 * testsuite/gas/aarch64/illegal-memtag.s: Likewise.
765 2019-04-11 Sudakshina Das <sudi.das@arm.com>
767 * testsuite/gas/aarch64/armv8_5-a-memtag.d: New tests for ldgm and stgm.
768 * testsuite/gas/aarch64/armv8_5-a-memtag.s: Likewise.
769 * testsuite/gas/aarch64/illegal-memtag.l: Likewise.
770 * testsuite/gas/aarch64/illegal-memtag.s: Likewise.
772 2019-04-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
774 * config/tc-i386.c (need_plt32_p) [TE_SOLARIS]: Return FALSE.
775 * testsuite/gas/i386/solaris/solaris.exp: New driver.
776 * testsuite/gas/i386/solaris/reloc64.d,
777 testsuite/gas/i386/solaris/x86-64-jump.d,
778 testsuite/gas/i386/solaris/x86-64-mpx-branch-1.d,
779 testsuite/gas/i386/solaris/x86-64-mpx-branch-2.d,
780 testsuite/gas/i386/solaris/x86-64-nop-3.d,
781 testsuite/gas/i386/solaris/x86-64-nop-4.d,
782 testsuite/gas/i386/solaris/x86-64-nop-5.d,
783 testsuite/gas/i386/solaris/x86-64-relax-2.d,
784 testsuite/gas/i386/solaris/x86-64-relax-3.d: New tests.
785 * testsuite/gas/i386/reloc64.d,
786 testsuite/gas/i386/x86-64-jump.d,
787 testsuite/gas/i386/x86-64-mpx-branch-1.d,
788 testsuite/gas/i386/x86-64-mpx-branch-2.d,
789 testsuite/gas/i386/x86-64-nop-3.d,
790 testsuite/gas/i386/x86-64-nop-4.d,
791 testsuite/gas/i386/x86-64-nop-5.d,
792 testsuite/gas/i386/x86-64-relax-2.d,
793 testsuite/gas/i386/x86-64-relax-3.d: Skip on *-*-solaris*.
795 2019-04-10 Alan Modra <amodra@gmail.com>
797 * config/te-cloudabi.h: New file.
798 * config/tc-aarch64.c (aarch64_after_parse_args): Use TE_CLOUDABI
799 rather than TARGET_OS to select cloudabi.
800 * config/tc-i386.h (ELF_TARGET_FORMAT64): Define for TE_CLOUDABI.
801 * configure.tgt (*-*-cloudabi*): Set em=cloudabi.
803 2019-04-09 Robert Suchanek <robert.suchanek@mips.com>
805 * testsuite/gas/mips/mips.exp: Run hwr-names test.
806 * testsuite/gas/mips/hwr-names.s: Add test cases for RDHWR with
808 * testsuite/gas/mips/mipsr6@hwr-names.d: New file.
810 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
812 * config/tc-i386.c (output_insn): Support
813 GNU_PROPERTY_X86_ISA_1_AVX512_BF16.
814 * testsuite/gas/i386/property-2.s: Add AVX512_BF16 test.
815 * testsuite/gas/i386/property-2.d: Updated.
816 * testsuite/gas/i386/x86-64-property-2.d: Likewise.
818 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
820 * configure.tgt: Remove i386-*-kaos* and i386-*-chaos targets.
821 * testsuite/gas/i386/i386.exp: Remove *-*-caos* and "*-*-kaos*
824 2019-04-05 H.J. Lu <hongjiu.lu@intel.com>
826 * testsuite/gas/i386/i386.exp: Run -mx86-used-note=yes tests.
827 * testsuite/gas/i386/property-2.d: New file.
828 * testsuite/gas/i386/property-2.s: Likewise.
829 * testsuite/gas/i386/x86-64-property-2.d: Likewise.
831 2019-04-05 Xuepeng Guo <xuepeng.guo@intel.com>
833 * config/tc-i386.c (cpu_arch): Add .avx512_bf16.
834 (cpu_noarch): Add noavx512_bf16.
835 * doc/c-i386.texi: Document avx512_bf16.
836 * testsuite/gas/i386/avx512_bf16.d: New file.
837 * testsuite/gas/i386/avx512_bf16.s: Likewise.
838 * testsuite/gas/i386/avx512_bf16_vl-inval.l: Likewise.
839 * testsuite/gas/i386/avx512_bf16_vl-inval.s: Likewise.
840 * testsuite/gas/i386/avx512_bf16_vl.d: Likewise.
841 * testsuite/gas/i386/avx512_bf16_vl.s: Likewise.
842 * testsuite/gas/i386/x86-64-avx512_bf16.d: Likewise.
843 * testsuite/gas/i386/x86-64-avx512_bf16.s: Likewise.
844 * testsuite/gas/i386/x86-64-avx512_bf16_vl-inval.l: Likesie.
845 * testsuite/gas/i386/x86-64-avx512_bf16_vl-inval.s: Likewise.
846 * testsuite/gas/i386/x86-64-avx512_bf16_vl.d: Likewise.
847 * testsuite/gas/i386/x86-64-avx512_bf16_vl.s: Likewise.
848 * testsuite/gas/i386/i386.exp: Add BF16 related tests.
850 2019-04-05 Alan Modra <amodra@gmail.com>
852 * testsuite/gas/ppc/bc.s,
853 * testsuite/gas/ppc/bcat.d,
854 * testsuite/gas/ppc/bcaterr.d,
855 * testsuite/gas/ppc/bcaterr.l,
856 * testsuite/gas/ppc/bcy.d,
857 * testsuite/gas/ppc/bcyerr.d,
858 * testsuite/gas/ppc/bcyerr.l: New tests.
859 * testsuite/gas/ppc/ppc.exp: Run them.
861 2019-04-05 Alan Modra <amodra@gmail.com>
863 * testsuite/gas/ppc/476.d: Remove trailing spaces.
864 * testsuite/gas/ppc/a2.d: Likewise.
865 * testsuite/gas/ppc/booke.d: Likewise.
866 * testsuite/gas/ppc/booke_xcoff.d: Likewise.
867 * testsuite/gas/ppc/e500.d: Likewise.
868 * testsuite/gas/ppc/e500mc.d: Likewise.
869 * testsuite/gas/ppc/e6500.d: Likewise.
870 * testsuite/gas/ppc/htm.d: Likewise.
871 * testsuite/gas/ppc/power6.d: Likewise.
872 * testsuite/gas/ppc/power8.d: Likewise.
873 * testsuite/gas/ppc/power9.d: Likewise.
874 * testsuite/gas/ppc/vle.d: Likewise.
876 2019-04-04 Peter Bergner <bergner@linux.ibm.com>
879 * testsuite/gas/ppc/power8.s: (bdnztar, bdnztarl, bdztar, bdztarl,
880 btar, btarl, bdnztar-, bdnztarl-, bdnztar+, bdnztarl+, bdztar-,
881 bdztarl-, bdztar+, bdztarl+, bgetar, bnltar, bgetarl, bnltarl,
882 bletar, bngtar, bletarl, bngtarl, bnetar, bnetarl, bnstar, bnutar,
883 bnstarl, bnutarl, bgetar-, bnltar-, bgetarl-, bnltarl-, bletar-,
884 bngtar-, bletarl-, bngtarl-, bnetar-, bnetarl-, bnstar-, bnutar-,
885 bnstarl-, bnutarl-, bgetar+, bnltar+, bgetarl+, bnltarl+, bletar+,
886 bngtar+, bletarl+, bngtarl+, bnetar+, bnetarl+, bnstar+, bnutar+,
887 bnstarl+, bnutarl+, blttar, blttarl, bgttar, bgttarl, beqtar,
888 beqtarl, bsotar, buntar, bsotarl, buntarl, blttar-, blttarl-,
889 bgttar-, bgttarl-, beqtar-, beqtarl-, bsotar-, buntar-, bsotarl-,
890 buntarl-, blttar+, blttarl+, bgttar+, bgttarl+, beqtar+, beqtarl+,
891 bsotar+, buntar+, bsotarl+, buntarl+, bdnzftar, bdnzftarl, bdzftar,
892 bdzftarl, bftar, bftarl, bftar-, bftarl-, bftar+, bftarl+, bdnzttar,
893 bdnzttarl, bdzttar, bdzttarl, bttar, bttarl, bttar-, bttarl-, bttar+,
894 bttarl+): Add tests of extended mnemonics.
895 * testsuite/gas/ppc/power8.d: Likewise. Update previous bctar tests
896 to expect new extended mnemonics.
897 * testsuite/gas/ppc/a2.s: <bc, bc-, bc+, bcl, bcl-, bcl+>: Update test
898 to not use illegal BO value. Use a more convenient BI value.
899 * testsuite/gas/ppc/a2.d: Update tests for new expect output.
901 2019-04-03 Max Filippov <jcmvbkbc@gmail.com>
903 * config/tc-xtensa.c (convert_frag_immed): Drop
904 convert_frag_immed_finish_loop invocation.
905 (convert_frag_immed_finish_loop): Drop declaration and
907 * config/xtensa-relax.c (widen_spec_list): Replace loop
908 widening that uses addi/addmi with widening that uses l32r
911 2019-04-01 Andre Vieira <andre.simoesdiasvieira@arm.com>
913 * config/tc-arm.c (arm_ext_table): New struct type.
914 (arm_arch_option_table): Add new 'arm_ext_table' field.
915 (ARM_EXT,ARM_ADD,ARM_REMOVE, ALL_FP): New macros.
916 (armv5te_ext_table, armv7ve_ext_table, armv7a_ext_table,
917 armv7r_ext_table, armv7em_ext_table, armv8a_ext_table,
918 armv81a_ext_table, armv82a_ext_table, armv84a_ext_table,
919 armv85a_ext_table, armv8m_main_ext_table,
920 armv8r_ext_table): New architecture extension tables.
921 (ARM_ARCH_OPT): Add new default field.
922 (ARM_ARCH_OPT2): New macro.
923 (arm_archs): Extend some architectures with the new architecture
924 extension tables mentioned above.
925 (arm_extensions): Add DEPRECATED comment with instructions to
927 (arm_parse_extension): Change to use new extension tables.
928 (arm_parse_cpu): Don't change existing behavior.
929 (arm_parse_arch): Change to use new extension tables.
930 * doc/c-arm.texi: Document new architecture extensions.
931 * testsuite/gas/arm/attr-mfpu-neon-fp16.d: Change test to use new
932 extension option rather than -mfpu and change expected behaviour to
934 * testsuite/gas/arm/armv8-2-fp16-scalar-bad-ext.d: New.
935 * testsuite/gas/arm/armv8-2-fp16-scalar-ext.d: New.
936 * testsuite/gas/arm/armv8-2-fp16-scalar-thumb-ext.d: New.
937 * testsuite/gas/arm/armv8-2-fp16-simd-ext.d: New.
938 * testsuite/gas/arm/armv8-2-fp16-simd-thumb-ext.d: New.
939 * testsuite/gas/arm/armv8-2-fp16-simd-warning-ext.d: New.
940 * testsuite/gas/arm/armv8-2-fp16-simd-warning-thumb-ext.d: New.
941 * testsuite/gas/arm/armv8_2+rdma-ext.d: New.
942 * testsuite/gas/arm/armv8_2-a-fp16-thumb2-ext.d: New.
943 * testsuite/gas/arm/armv8_2-a-fp16_ext.d: New.
944 * testsuite/gas/arm/armv8_3-a-fp-bad-ext.d: New.
945 * testsuite/gas/arm/armv8_3-a-fp-ext.d: New.
946 * testsuite/gas/arm/armv8_3-a-fp16-ext.d: New.
947 * testsuite/gas/arm/armv8_3-a-simd-bad-ext.d: New.
948 * testsuite/gas/arm/armv8_4-a-fp16-ext.d: New.
949 * testsuite/gas/arm/armv8m.main+fp.d: New.
950 * testsuite/gas/arm/armv8m.main+fp.dp.d: New.
951 * testsuite/gas/arm/attr-ext-fpv5-d16.d: New.
952 * testsuite/gas/arm/attr-ext-fpv5.d: New.
953 * testsuite/gas/arm/attr-ext-idiv.d: New.
954 * testsuite/gas/arm/attr-ext-mp.d: New.
955 * testsuite/gas/arm/attr-ext-neon-fp16.d: New.
956 * testsuite/gas/arm/attr-ext-neon-vfpv3.d: New.
957 * testsuite/gas/arm/attr-ext-neon-vfpv4.d: New.
958 * testsuite/gas/arm/attr-ext-sec.d: New.
959 * testsuite/gas/arm/attr-ext-vfpv3-d16-fp16.d: New.
960 * testsuite/gas/arm/attr-ext-vfpv3-d16.d: New.
961 * testsuite/gas/arm/attr-ext-vfpv3-fp16.d: New.
962 * testsuite/gas/arm/attr-ext-vfpv3.d: New.
963 * testsuite/gas/arm/attr-ext-vfpv3xd-fp.d: New.
964 * testsuite/gas/arm/attr-ext-vfpv3xd.d: New.
965 * testsuite/gas/arm/attr-ext-vfpv4-d16.d: New.
966 * testsuite/gas/arm/attr-ext-vfpv4-sp-d16.d: New.
967 * testsuite/gas/arm/attr-ext-vfpv4.d: New.
968 * testsuite/gas/arm/dotprod-mandatory-ext.d: New.
969 * testsuite/gas/arm/fpv5-d16.s: New.
970 * testsuite/gas/arm/fpv5-sp-d16.s: New.
972 2019-03-28 Alan Modra <amodra@gmail.com>
975 * testsuite/gas/ppc/476.d: Update mtfsb*.
976 * testsuite/gas/ppc/a2.d: Likewise.
978 2019-03-21 Alan Modra <amodra@gmail.com>
980 * emul.h (struct emulation): Delete strip_underscore.
981 * emul-target.h (emul_strip_underscore): Don't define.
982 (emul_struct_name): Update initialization.
984 2019-03-21 Alan Modra <amodra@gmail.com>
986 * config/tc-d10v.c (md_apply_fix): Apply BFD_RELOC_8.
987 * config/tc-pdp11.c (md_apply_fix): Likewise.
988 * config/tc-d30v.c (md_apply_fix): Don't emit errors for BFD_RELOC_8,
989 BFD_RELOC_16, and BFD_RELOC_64.
990 * testsuite/gas/all/gas.exp: Move target exclusions for forward
991 test, but not cr16, to..
992 * testsuite/gas/all/forward.d: ..here, with explanation. Remove
993 d10v, d30v, and pdp11 xfails.
995 2019-03-19 H.J. Lu <hongjiu.lu@intel.com>
997 * config/tc-i386.c (optimize_encoding): Don't check AVX for
998 EVEX vector load/store optimization. Check both operands for
999 ZMM register. Update EVEX vector load/store opcode check.
1000 Choose EVEX Disp8 over VEX Disp32.
1001 * testsuite/gas/i386/optimize-1.d: Updated.
1002 * testsuite/gas/i386/optimize-1a.d: Likewise.
1003 * testsuite/gas/i386/optimize-2.d: Likewise.
1004 * testsuite/gas/i386/optimize-4.d: Likewise.
1005 * testsuite/gas/i386/optimize-5.d: Likewise.
1006 * testsuite/gas/i386/x86-64-optimize-2.d: Likewise.
1007 * testsuite/gas/i386/x86-64-optimize-2a.d: Likewise.
1008 * testsuite/gas/i386/x86-64-optimize-2b.d: Likewise.
1009 * testsuite/gas/i386/x86-64-optimize-3.d: Likewise.
1010 * testsuite/gas/i386/x86-64-optimize-5.d: Likewise.
1011 * testsuite/gas/i386/x86-64-optimize-6.d: Likewise.
1012 * testsuite/gas/i386/optimize-1.s: Add ZMM register load
1014 * testsuite/gas/i386/x86-64-optimize-2.s: Likewise.
1016 2019-03-19 H.J. Lu <hongjiu.lu@intel.com>
1019 * config/tc-i386.c (optimize_encoding): Check only
1020 cpu_arch_flags.bitfield.cpuavx512vl.
1021 * testsuite/gas/i386/i386.exp: Run x86-64-optimize-2b.
1022 * testsuite/gas/i386/x86-64-optimize-2.d: Revert the last
1024 * testsuite/gas/i386/x86-64-optimize-2b.d: New file.
1025 * testsuite/gas/i386/x86-64-optimize-2b.s: Likewise.
1027 2019-03-19 H.J. Lu <hongjiu.lu@intel.com>
1030 * testsuite/gas/i386/i386.exp: Change optimize-6a, optimize-7,
1031 x86-64-optimize-7a and x86-64-optimize-8 tests to run_list_test.
1032 Remove optimize-6c and x86-64-optimize-7c tests.
1033 * testsuite/gas/i386/noavx-3.l: Updated.
1034 * testsuite/gas/i386/noavx-4.d: Likewise.
1035 * testsuite/gas/i386/noavx-5.d: Likewise.
1036 * testsuite/gas/i386/noavx-3.s: Add AVX512F tests.
1037 * testsuite/gas/i386/noavx-4.s: Remove AVX512F tests.
1038 * testsuite/gas/i386/nosse-5.s: Likewise.
1039 * testsuite/gas/i386/optimize-6a.d: Removed.
1040 * testsuite/gas/i386/optimize-6c.d: Likewise.
1041 * testsuite/gas/i386/optimize-7.d: Likewise.
1042 * testsuite/gas/i386/x86-64-optimize-7a.d: Likewise.
1043 * testsuite/gas/i386/x86-64-optimize-7c.d: Likewise.
1044 * testsuite/gas/i386/x86-64-optimize-8.d: Likewise.
1045 * testsuite/gas/i386/optimize-6a.l: New file.
1046 * testsuite/gas/i386/optimize-6a.s: Likewise.
1047 * testsuite/gas/i386/optimize-7.l: Likewise.
1048 * testsuite/gas/i386/x86-64-optimize-7a.l: Likewise.
1049 * testsuite/gas/i386/x86-64-optimize-7a.s: Likewise.
1050 * testsuite/gas/i386/x86-64-optimize-8.l: Likewise.
1052 2019-03-18 Alan Modra <amodra@gmail.com>
1054 * config/m68k-parse.y (yylex): Use temp_ilp and restore_ilp.
1055 * as.c (macro_expr): Likewise.
1056 * macro.c (buffer_and_nest): Likewise.
1057 * read.c (temp_ilp): Remove FIXME.
1059 2019-03-18 H.J. Lu <hongjiu.lu@intel.com>
1061 * testsuite/gas/i386/att-regs.d: Pass -O0 to assembler.
1062 * testsuite/gas/i386/avx512bw-intel.d: Likewise.
1063 * testsuite/gas/i386/avx512bw.d: Likewise.
1064 * testsuite/gas/i386/avx512f-intel.d: Likewise.
1065 * testsuite/gas/i386/avx512f.d: Likewise.
1066 * testsuite/gas/i386/disp32.d: Likewise.
1067 * testsuite/gas/i386/intel-regs.d: Likewise.
1068 * testsuite/gas/i386/pseudos.d: Likewise.
1069 * testsuite/gas/i386/x86-64-disp32.d: Likewise.
1070 * testsuite/gas/i386/x86-64-pseudos.d: Likewise.
1072 2019-03-18 H.J. Lu <hongjiu.lu@intel.com>
1075 * config/tc-i386.c (optimize_encoding): Encode 128-bit and
1076 256-bit EVEX vector register load/store instructions as VEX
1077 vector register load/store instructions for -O1.
1078 * doc/c-i386.texi: Update -O1 documentation.
1079 * testsuite/gas/i386/i386.exp: Run PR gas/24348 tests.
1080 * testsuite/gas/i386/optimize-1.s: Add tests for EVEX vector
1081 load/store instructions.
1082 * testsuite/gas/i386/optimize-2.s: Likewise.
1083 * testsuite/gas/i386/optimize-3.s: Likewise.
1084 * testsuite/gas/i386/optimize-5.s: Likewise.
1085 * testsuite/gas/i386/x86-64-optimize-2.s: Likewise.
1086 * testsuite/gas/i386/x86-64-optimize-3.s: Likewise.
1087 * testsuite/gas/i386/x86-64-optimize-4.s: Likewise.
1088 * testsuite/gas/i386/x86-64-optimize-5.s: Likewise.
1089 * testsuite/gas/i386/x86-64-optimize-6.s: Likewise.
1090 * testsuite/gas/i386/optimize-1.d: Updated.
1091 * testsuite/gas/i386/optimize-2.d: Likewise.
1092 * testsuite/gas/i386/optimize-3.d: Likewise.
1093 * testsuite/gas/i386/optimize-4.d: Likewise.
1094 * testsuite/gas/i386/optimize-5.d: Likewise.
1095 * testsuite/gas/i386/x86-64-optimize-2.d: Likewise.
1096 * testsuite/gas/i386/x86-64-optimize-3.d: Likewise.
1097 * testsuite/gas/i386/x86-64-optimize-4.d: Likewise.
1098 * testsuite/gas/i386/x86-64-optimize-5.d: Likewise.
1099 * testsuite/gas/i386/x86-64-optimize-6.d: Likewise.
1100 * testsuite/gas/i386/optimize-7.d: New file.
1101 * testsuite/gas/i386/optimize-7.s: Likewise.
1102 * testsuite/gas/i386/x86-64-optimize-8.d: Likewise.
1103 * testsuite/gas/i386/x86-64-optimize-8.s: Likewise.
1105 2019-03-18 H.J. Lu <hongjiu.lu@intel.com>
1107 * config/tc-i386.c (optimize_encoding): Encode 256-bit/512-bit
1108 VEX/EVEX vector register clearing instructions with 128-bit VEX
1109 vector register clearing instructions at -O1.
1110 * doc/c-i386.texi: Update -O1 and -O2 documentation.
1111 * testsuite/gas/i386/i386.exp: Run optimize-1a and
1113 * testsuite/gas/i386/optimize-1a.d: New file.
1114 * testsuite/gas/i386/x86-64-optimize-2a.d: Likewise.
1116 2019-03-17 H.J. Lu <hongjiu.lu@intel.com>
1119 * config/tc-i386.c: Include <limits.h> if it exists and try
1120 including <sys/param.h> if we have it.
1121 (INT_MAX): Define if not defined.
1122 (md_parse_option): Set optimize to INT_MAX for -Os.
1123 * testsuite/gas/i386/optimize-2.s: Add a test.
1124 * testsuite/gas/i386/x86-64-optimize-3.s: Likewise.
1125 * testsuite/gas/i386/optimize-2.d: Updated.
1126 * testsuite/gas/i386/x86-64-optimize-3.d: Likewise.
1128 2019-03-17 H.J. Lu <hongjiu.lu@intel.com>
1131 * config/tc-i386.c (optimize_encoding): Encode 512-bit EVEX
1132 with 128-bit VEX encoding only when AVX is enabled and with
1133 128-bit EVEX encoding only when AVX512VL is enabled.
1134 * testsuite/gas/i386/i386.exp: Run PR gas/24352 tests.
1135 * testsuite/gas/i386/optimize-6.s: New file.
1136 * testsuite/gas/i386/optimize-6a.d: Likewise.
1137 * testsuite/gas/i386/optimize-6b.d: Likewise.
1138 * testsuite/gas/i386/optimize-6c.d: Likewise.
1139 * testsuite/gas/i386/x86-64-optimize-7.s: Likewise.
1140 * testsuite/gas/i386/x86-64-optimize-7a.d: Likewise.
1141 * testsuite/gas/i386/x86-64-optimize-7b.d: Likewise.
1142 * testsuite/gas/i386/x86-64-optimize-7c.d: Likewise.
1143 * testsuite/gas/i386/x86-64-optimize-2.d: Updated.
1145 2019-03-15 Li Hao <li.hao296@zte.com.cn>
1148 * config/tc-i386.c (parse_insn): Check mnemp before using it to
1149 determine if a suffix can be trimmed.
1151 2019-03-13 Christian Eggers <ceggers@gmx.de>
1153 * dwarf2dbg.c (out_set_addr): Align relocation within .debug_line.
1155 2019-03-13 Christian Eggers <ceggers@gmx.de>
1157 * dwarf2dbg.c (out_debug_line): Pad size of .debug_line section.
1159 2019-03-13 Christian Eggers <ceggers@gmx.de>
1161 * dwarf2dbg.c (out_debug_str): Use octets for .debug_string pointers.
1163 2019-03-13 Christian Eggers <ceggers@gmx.de>
1165 * dwarf2dbg.c (out_debug_line): Use octets for .debug_line prologue.
1167 2019-03-13 Christian Eggers <ceggers@gmx.de>
1169 * dwarf2dbg.c (out_debug_line): Use octets for dwarf2 headers.
1170 (out_debug_aranges, out_debug_info): Likewise.
1172 2019-03-13 Christian Eggers <ceggers@gmx.de>
1174 * symbols.h (symbol_temp_new_now_octets): Declare.
1175 (symbol_set_value_now_octets, symbol_octets_p): Declare.
1176 * symbols.c (struct symbol_flags): New member sy_octets.
1177 (symbol_temp_new_now_octets): New function.
1178 (resolve_symbol_value): Return octets instead of bytes if
1180 (symbol_set_value_now_octets): New function.
1181 (symbol_octets_p): New function.
1183 2019-03-13 Christian Eggers <ceggers@gmx.de>
1185 * dwarf2dbg.c (dwarf2_emit_insn): Fix calculation of line info offset.
1187 2019-03-12 Andreas Krebbel <krebbel@linux.ibm.com>
1189 * testsuite/gas/s390/zarch-arch13.s: Adjust testcase to optable changes.
1190 * testsuite/gas/s390/zarch-arch13.d: Likewise.
1192 2019-02-27 Matthew Malcomson <matthew.malcomson@arm.com>
1194 * testsuite/gas/aarch64/dotproduct.d: Use multiple "as" lines.
1195 * testsuite/gas/aarch64/dotproduct_armv8_4.d: Remove.
1196 * testsuite/gas/aarch64/dotproduct_armv8_4.s: Remove.
1197 * testsuite/gas/aarch64/illegal-dotproduct.d: Use multiple "as"
1199 * testsuite/gas/aarch64/ldst-rcpc-armv8_2.d: Remove.
1200 * testsuite/gas/aarch64/ldst-rcpc.d: Use multiple "as" lines.
1202 2019-02-24 Alan Modra <amodra@gmail.com>
1204 * config/tc-ppc.c (parse_tls_arg): Wrap in #ifdef OBJ_ELF.
1206 2019-02-24 Alan Modra <amodra@gmail.com>
1209 * config/obj-aout.c (obj_aout_frob_file_before_fix): Write to end
1210 of section to ensure file contents cover aligned section size.
1212 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1214 * config/tc-arm.c (arm_cpus): Add neoverse-n1.
1215 * doc/c-arm.texi (-mcpu): Document neoverse-n1 value.
1217 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1219 * config/tc-aarch64.c (aarch64_cpus): Add neoverse-e1.
1220 * doc/c-aarch64.texi (-mcpu): Document neoverse-e1 value.
1222 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1224 * config/tc-aarch64.c (aarch64_cpus): Add neoverse-n1.
1225 * doc/c-aarch64.texi (-mcpu): Document neoverse-n1 value.
1227 2019-02-19 Paul Hua <paul.hua.gm@gmail.com>
1229 * NEWS: Mention -m[no-]fix-loongson3-llsc.
1230 * configure.ac: Add --enable-mips-fix-loongson3-llsc.
1231 Define DEFAULT_MIPS_FIX_LOONGSON3_LLSC.
1232 * config.in: Regenerated.
1233 * configure: Likewise.
1234 * config/tc-mips.c (sync_insn, mips_fix_loongson3_llsc):
1236 (options): New OPTION_FIX_LOONGSON3_LLSC,
1237 OPTION_NO_FIX_LOONGSON3_LLSC.
1238 (md_longopts): Add -m[no-]fix-loongson3-llsc.
1239 (md_begin): Initialize sync insn.
1240 (fix_loongson3_llsc): New.
1241 (append_insn): Call fix_loongson3_llsc.
1242 (md_parse_option): Handle OPTION_FIX_LOONGSON3_LLSC,
1243 OPTION_NO_FIX_LOONGSON3_LLSC.
1244 (md_show_usage): Display -m[no-]fix-loongson3-llsc.
1245 * doc/c-mips.texi: Document -m[no-]fix-loongson3-llsc,
1246 --enable-mips-fix-loongson3-llsc=[yes|no].
1248 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
1251 * frags.c (frag_var_init): Pass max_chars to TC_FRAG_INIT as
1253 * config/tc-aarch64.h (TC_FRAG_INIT): Add and pass max_bytes to
1255 * /config/tc-arm.h (TC_FRAG_INIT): And and pass max_bytes to
1257 * config/tc-avr.h (TC_FRAG_INIT): And and ignore max_bytes.
1258 * config/tc-ia64.h (TC_FRAG_INIT): Likewise.
1259 * config/tc-mmix.h (TC_FRAG_INIT): Likewise.
1260 * config/tc-nds32.h (TC_FRAG_INIT): Likewise.
1261 * config/tc-ns32k.h (TC_FRAG_INIT): Likewise.
1262 * config/tc-rl78.h (TC_FRAG_INIT): Likewise.
1263 * config/tc-rx.h (TC_FRAG_INIT): Likewise.
1264 * config/tc-score.h (TC_FRAG_INIT): Likewise.
1265 * config/tc-tic54x.h (TC_FRAG_INIT): Likewise.
1266 * config/tc-tic6x.h (TC_FRAG_INIT): Likewise.
1267 * config/tc-xtensa.h (TC_FRAG_INIT): Likewise.
1268 * config/tc-i386.h (MAX_MEM_FOR_RS_ALIGN_CODE): Set to
1269 (alignment ? ((1 << alignment) - 1) : 1)
1270 (i386_tc_frag_data): Add max_bytes.
1271 (TC_FRAG_INIT): Add and track max_bytes.
1272 (HANDLE_ALIGN): Replace MAX_MEM_FOR_RS_ALIGN_CODE with
1273 fragP->tc_frag_data.max_bytes.
1274 * doc/internals.texi: Update TC_FRAG_TYPE with max_bytes.
1276 2019-02-08 Jim Wilson <jimw@sifive.com>
1278 * config/tc-riscv.c (validate_riscv_insn) <'C'>: Add 'z' support.
1279 (riscv_ip) <'C'>: Add 'z' support.
1281 2019-02-07 Tamar Christina <tamar.christina@arm.com>
1283 * config/tc-arm.c (insns): Redefine THUMB_VARIANT and ARM_VARIANT for
1285 * testsuite/gas/arm/armv8a-automatic-hlt.d: Update TAGs
1286 * testsuite/gas/arm/hlt.d: New test.
1287 * testsuite/gas/arm/hlt.s: New test.
1289 2019-02-07 Tamar Christina <tamar.christina@arm.com>
1291 * testsuite/gas/aarch64/undefined_advsimd_armv8_3.d: New test.
1292 * testsuite/gas/aarch64/undefined_advsimd_armv8_3.s: New test.
1294 2019-02-07 Tamar Christina <tamar.christina@arm.com>
1297 * testsuite/gas/aarch64/undefined_by_elem_sz_l.s: New test.
1298 * testsuite/gas/aarch64/undefined_by_elem_sz_l.d: New test.
1300 2019-02-07 Eric Botcazou <ebotcazou@adacore.com>
1302 * config/tc-visium.c (md_assemble) <mode_cad>: Align instruction on
1303 64-bit boundaries for the GR6.
1304 * testsuite/gas/visium/allinsn_gr6.s: Tweak.
1305 * testsuite/gas/visium/allinsn_gr6.d: Likewise.
1306 * testsuite/gas/visium/bra-1.d: New test.
1307 * testsuite/gas/visium/bra-1.s: Likewise.
1308 * testsuite/gas/visium/visium.exp: Run bra-1 test.
1310 2019-01-31 John Darrington <john@darrington.wattle.id.au>
1312 * config/tc-s12z.c (lex_imm): Add new argument exp_o.
1313 (emit_reloc): New function.
1314 (md_apply_fix): [BFD_RELOC_S12Z_OPR] Recognise that it
1315 can be either 2 bytes or 3 bytes long.
1316 * testsuite/gas/s12z/mov-imm-reloc.d: New file.
1317 * testsuite/gas/s12z/mov-imm-reloc.s: New file.
1318 * testsuite/gas/s12z/s12z.exp: Add them.
1320 2019-01-31 John Darrington <john@darrington.wattle.id.au>
1322 * config/tc-s12z.c (md_apply_fix): Fix incorrect limits.
1323 * testsuite/gas/s12z/pc-rel-bad.d: New file.
1324 * testsuite/gas/s12z/pc-rel-bad.l: New file.
1325 * testsuite/gas/s12z/pc-rel-bad.s: New file.
1326 * testsuite/gas/s12z/pc-rel-good.d: New file.
1327 * testsuite/gas/s12z/pc-rel-good.s: New file.
1328 * testsuite/gas/s12z/s12z.exp: Add them.
1330 2019-01-31 John Darrington <john@darrington.wattle.id.au>
1332 * config/tc-s12z.c (tfr): Emit warning if operands are the same.
1333 * testsuite/gas/s12z/exg.d: New test case.
1334 * testsuite/gas/s12z/exg.l: New file.
1336 2019-01-31 John Darrington <john@darrington.wattle.id.au>
1338 * config/tc-s12z.c (lex_opr): Add a parameter to indicate whether
1339 immediate mode operands should be permitted.
1340 * testsuite/s12z/imm-dest.d: New file.
1341 * testsuite/s12z/imm-dest.l: New file.
1342 * testsuite/s12z/imm-dest.s: New file.
1343 * testsuite/s12z/s12z.exp: Add them.
1345 2019-01-31 Andreas Krebbel <krebbel@linux.ibm.com>
1347 * config/tc-s390.c (s390_parse_cpu): New entry for arch13.
1348 * doc/c-s390.texi: Document arch13 march option.
1349 * testsuite/gas/s390/s390.exp: Run the arch13 related tests.
1350 * testsuite/gas/s390/zarch-arch13.d: New test.
1351 * testsuite/gas/s390/zarch-arch13.s: New test.
1352 * testsuite/gas/s390/zarch-z13.d: Expect the renamed mnemonics
1355 2019-01-31 Alan Modra <amodra@gmail.com>
1357 * config/tc-alpha.c (md_apply_fix): Correct range checks for
1358 BFD_RELOC_ALPHA_NOP, BFD_RELOC_ALPHA_LDA, BFD_RELOC_ALPHA_BSR.
1359 * config/tc-arm.c (md_apply_fix): Use llabs rather than abs.
1360 * config/tc-csky.c (get_macro_reg_vals): Pass s to csky_show_error.
1362 2019-01-28 Max Filippov <jcmvbkbc@gmail.com>
1364 * config/tc-xtensa.c (md_apply_fix): Mark fixups for constant
1365 symbols as done in md_apply_fix.
1366 * testsuite/gas/all/forward.d: Don't XFAIL for xtensa.
1368 2019-01-28 Nick Clifton <nickc@redhat.com>
1370 * po/fr.po: Updated French translation.
1371 * po/ru.po: Updated Russian translation.
1373 2019-01-28 Alan Modra <amodra@gmail.com>
1375 * configure.ac (ac_checking): Set from bfd/development.sh
1376 development variable.
1377 * configure: Regenerate.
1379 2019-01-25 Sudakshina Das <sudi.das@arm.com>
1381 * config/tc-aarch64.c (warn_unpredictable_ldst): Exempt
1382 stg, st2g, stzg and stz2g from Xt == Xn with writeback warning.
1383 * testsuite/gas/aarch64/armv8_5-a-memtag.d: Change tests for
1384 stg, stzg, st2g and stz2g.
1385 * testsuite/gas/aarch64/armv8_5-a-memtag.s: Likewise.
1386 * testsuite/gas/aarch64/illegal-memtag.l: Likewise.
1387 * testsuite/gas/aarch64/illegal-memtag.s: Likewise.
1389 2019-01-25 Sudakshina Das <sudi.das@arm.com>
1391 * testsuite/gas/aarch64/armv8_5-a-memtag.d: New tests for stzgm.
1392 * testsuite/gas/aarch64/armv8_5-a-memtag.s: Likewise.
1393 * testsuite/gas/aarch64/illegal-memtag.l: Likewise.
1394 * testsuite/gas/aarch64/illegal-memtag.s: Likewise.
1396 2019-01-25 Sudakshina Das <sudi.das@arm.com>
1397 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1399 * config/tc-aarch64.c (parse_address_main): Remove support for
1400 [base]! address expression.
1401 (parse_operands): Remove support for AARCH64_OPND_ADDR_SIMPLE_2.
1402 (warn_unpredictable_ldst): Remove support for ldstgv_indexed.
1403 * testsuite/gas/aarch64/armv8_5-a-memtag.d: Remove tests for ldgv
1405 * testsuite/gas/aarch64/armv8_5-a-memtag.s: Likewise.
1406 * testsuite/gas/aarch64/illegal-memtag.l: Likewise.
1407 * testsuite/gas/aarch64/illegal-memtag.s: Likewise.
1409 2019-01-25 Wu Heng <wu.heng@zte.com.cn>
1412 * macro.c (getstring): Check array bound before accessing.
1414 2019-01-25 Alan Modra <amodra@gmail.com>
1418 * read.c (stringer): Delete assertion.
1420 2019-01-21 Nick Clifton <nickc@redhat.com>
1422 * po/uk.po: Updated Ukranian translation.
1424 2019-01-19 Nick Clifton <nickc@redhat.com>
1426 * config.in: Regenerate.
1427 * configure: Regenerate.
1428 * po/gas.pot: Regenerate.
1430 2018-06-24 Nick Clifton <nickc@redhat.com>
1432 2.32 branch created.
1434 2019-01-17 Tamar Christina <tamar.christina@arm.com>
1436 * testsuite/gas/arm/archv6t2-1-pe.d: New test.
1437 * testsuite/gas/arm/archv6t2-1.d: Skip pe.
1438 * testsuite/gas/arm/csdb.d: Skip pe.
1439 * testsuite/gas/arm/sb-thumb1-pe.d: New test.
1440 * testsuite/gas/arm/sb-thumb1.d: Skip pe.
1441 * testsuite/gas/arm/sb-thumb2-pe.d: New test.
1442 * testsuite/gas/arm/sb-thumb2.d: Skip pe.
1443 * testsuite/gas/arm/udf.d: Skip pe.
1445 2019-01-16 Kito Cheng <kito@andestech.com>
1447 * testsuite/gas/riscv/attribute-empty.d: New.
1449 2019-01-16 Kito Cheng <kito@andestech.com>
1450 Nelson Chu <nelson@andestech.com>
1452 * config/tc-riscv.c (DEFAULT_RISCV_ATTR): Define to 0 if not defined.
1453 (riscv_set_options): Add `arch_attr` field.
1454 (riscv_opts): Set default value for arch_attr.
1455 (riscv_write_out_arch_attr): New.
1456 (riscv_set_public_attributes): Likewise.
1457 (riscv_md_end): Likewise.
1458 (riscv_convert_symbolic_attribute): Likewise.
1459 (s_riscv_attribute): Likewise.
1460 (explicit_arch_attr): Likewise.
1461 (riscv_pseudo_table): Add .attribute to the table.
1462 (options): Add OPTION_ARCH_ATTR and OPTION_NO_ARCH_ATTR
1463 enumeration constants.
1464 (md_longopts): Add `march-attr' and `mno-arch-attr' options.
1465 (md_parse_option): Handle the new options.
1466 (md_show_usage): Document the `march-attr' option.
1467 * config/tc-riscv.h (md_end): Define as riscv_md_end
1468 (riscv_md_end): Declare.
1469 (CONVERT_SYMBOLIC_ATTRIBUTE): Define as
1470 riscv_convert_symbolic_attribute.
1471 (riscv_convert_symbolic_attribute): Declare.
1472 (start_assemble): Declare.
1473 * testsuite/gas/elf/elf.exp: Adjust test case for section2.e.
1474 * testsuite/gas/elf/section2.e-riscv: New.
1475 * testsuite/gas/riscv/attribute-01.d: New test
1476 * testsuite/gas/riscv/attribute-02.d: Likewise.
1477 * testsuite/gas/riscv/attribute-03.d: Likewise.
1478 * testsuite/gas/riscv/attribute-04.d: Likewise.
1479 * testsuite/gas/riscv/attribute-04.s: Likewise.
1480 * testsuite/gas/riscv/attribute-05.d: Likewise.
1481 * testsuite/gas/riscv/attribute-05.s: Likewise.
1482 * testsuite/gas/riscv/attribute-06.d: Likewise.
1483 * testsuite/gas/riscv/attribute-06.s: Likewise.
1484 * testsuite/gas/riscv/attribute-07.d: Likewise.
1485 * testsuite/gas/riscv/attribute-07.s: Likewise.
1486 * testsuite/gas/riscv/attribute-08.d: Likewise.
1487 * testsuite/gas/riscv/attribute-08.s: Likewise.
1488 * testsuite/gas/riscv/attribute-unknown.d: Likewise.
1489 * testsuite/gas/riscv/attribute-unknown.s: Likewise.
1490 * testsuite/gas/riscv/empty.l: Likewise.
1491 * doc/c-riscv.texi (.attribute): Add documentation.
1492 * configure.ac (--enable-default-riscv-attribute): New options.
1493 * configure: Re-generate.
1494 * config.in: Re-generate.
1496 2019-01-16 John Darrington <john@darrington.wattle.id.au>
1498 * config/tc-s12z.c (lex_reg_name): Compare the length of the strings
1499 before the contents.
1500 * testsuite/gas/s12z/labels.d: New file.
1501 * testsuite/gas/s12z/labels.s: New file.
1502 * testsuite/gas/s12z/s12z.exp: Add them.
1503 * config/tc-s12z.c (tfr): Change as_bad to as_warn.
1504 Also fix message typo and semantics.
1505 * config/tc-s12z.c (emit_opr): Emit BFD_RELOC_S12Z_OPR instead of
1507 * testsuite/gas/s12z/opr-indirect-expr.d: Expect R_S12Z_OPR instead
1510 2019-01-14 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
1512 * config/tc-arm.c (arm_ext_v6k_v6t2): Define.
1513 (insns) [ARM_VARIANT]: Modified.
1514 (insns) [THUMB_VARIANT]: To implement few ARMv6K instructions
1516 * testsuite/gas/arm/archv6t2-1.d: New test.
1517 * testsuite/gas/arm/archv6t2-1.s: Likewise.
1518 * testsuite/gas/arm/archv6t2-2.d: Likewise.
1520 2019-01-11 Alan Modra <amodra@gmail.com>
1523 * testsuite/gas/m68hc11/lbranch-dwarf2.d: Adjust for PR23963 change.
1524 * testsuite/gas/m68hc11/opers12-dwarf2.d: Likewise.
1526 2019-01-10 Nick Clifton <nickc@redhat.com>
1529 * testsuite/gas/mips/mips16-branch-absolute-1.d: Adjust for the
1530 fact that control characters are now displayed as escape
1532 * testsuite/gas/mips/mips16-e.d: Likewise.
1533 * testsuite/gas/mips/mips16-pcrel-0.d: Likewise.
1534 * testsuite/gas/mips/mips16-pcrel-1.d: Likewise.
1535 * testsuite/gas/mips/mips16-pcrel-delay-0.d: Likewise.
1536 * testsuite/gas/mips/mips16-pcrel-delay-1.d: Likewise.
1537 * testsuite/gas/mips/mips16-pcrel-n32-0.d: Likewise.
1538 * testsuite/gas/mips/mips16-pcrel-n32-1.d: Likewise.
1539 * testsuite/gas/mips/mips16-pcrel-n64-sym32-0.d: Likewise.
1540 * testsuite/gas/mips/mips16-pcrel-n64-sym32-1.d: Likewise.
1541 * testsuite/gas/mips/mips16e2@mips16-pcrel-0.d: Likewise.
1542 * testsuite/gas/mips/mips16e2@mips16-pcrel-1.d: Likewise.
1543 * testsuite/gas/mips/mips16e2@mips16-pcrel-delay-0.d: Likewise.
1544 * testsuite/gas/mips/mips16e2@mips16-pcrel-delay-1.d: Likewise.
1545 * testsuite/gas/mips/mips16e2@mips16-pcrel-n32-0.d: Likewise.
1546 * testsuite/gas/mips/mips16e2@mips16-pcrel-n32-1.d: Likewise.
1547 * testsuite/gas/mips/mips16e2@mips16-pcrel-n64-sym32-0.d:
1549 * testsuite/gas/mips/mips16e2@mips16-pcrel-n64-sym32-1.d:
1551 * testsuite/gas/mips/mipsel16-e.d: Likewise.
1552 * testsuite/gas/mips/mipsr6@msa.d: Likewise.
1553 * testsuite/gas/mips/mipsr6@relax-swap3.d: Likewise.
1554 * testsuite/gas/mips/r6-64-n32.d: Likewise.
1555 * testsuite/gas/mips/r6-64-n64.d: Likewise.
1556 * testsuite/gas/mips/r6-n32.d: Likewise.
1557 * testsuite/gas/mips/r6-n64.d: Likewise.
1558 * testsuite/gas/mips/r6.d: Likewise.
1559 * testsuite/gas/mips/tmips16-e.d: Likewise.
1560 * testsuite/gas/mips/tmipsel16-e.d: Likewise.
1561 * testsuite/gas/mn10300/relax.d: Likewise.
1563 2019-01-09 John Darrington <john@darrington.wattle.id.au>
1565 * testsuite/gas/s12z/jsr.s: New case.
1566 * testsuite/gas/s12z/jsr.d: New case.
1568 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
1570 * configure: Regenerate.
1572 2019-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1574 * config/tc-aarch64.c (aarch64_cpus): Add ares.
1575 * doc/c-aarch64.texi (-mcpu): Document ares value.
1577 2019-01-08 Alan Modra <amodra@gmail.com>
1579 * testsuite/gas/rx/rx.exp: Create generated test source in
1581 * testsuite/gas/rx/Xtod.d, * testsuite/gas/rx/abs.d,
1582 * testsuite/gas/rx/adc.d, * testsuite/gas/rx/add.d,
1583 * testsuite/gas/rx/and.d, * testsuite/gas/rx/bclr.d,
1584 * testsuite/gas/rx/bcnd.d, * testsuite/gas/rx/bfmov.d,
1585 * testsuite/gas/rx/bmcnd.d, * testsuite/gas/rx/bnot.d,
1586 * testsuite/gas/rx/bra.d, * testsuite/gas/rx/brk.d,
1587 * testsuite/gas/rx/bset.d, * testsuite/gas/rx/bsr.d,
1588 * testsuite/gas/rx/btst.d, * testsuite/gas/rx/clrpsw.d,
1589 * testsuite/gas/rx/cmp.d, * testsuite/gas/rx/dabs.d,
1590 * testsuite/gas/rx/dadd.d, * testsuite/gas/rx/dbt.d,
1591 * testsuite/gas/rx/dcmp.d, * testsuite/gas/rx/ddiv.d,
1592 * testsuite/gas/rx/div.d, * testsuite/gas/rx/divu.d,
1593 * testsuite/gas/rx/dmov.d, * testsuite/gas/rx/dmul.d,
1594 * testsuite/gas/rx/dneg.d, * testsuite/gas/rx/dpopm.d,
1595 * testsuite/gas/rx/dpushm.d, * testsuite/gas/rx/dround.d,
1596 * testsuite/gas/rx/dsqrt.d, * testsuite/gas/rx/dsub.d,
1597 * testsuite/gas/rx/dtoX.d, * testsuite/gas/rx/emaca.d,
1598 * testsuite/gas/rx/emsba.d, * testsuite/gas/rx/emul.d,
1599 * testsuite/gas/rx/emula.d, * testsuite/gas/rx/emulu.d,
1600 * testsuite/gas/rx/fadd.d, * testsuite/gas/rx/fcmp.d,
1601 * testsuite/gas/rx/fdiv.d, * testsuite/gas/rx/fmul.d,
1602 * testsuite/gas/rx/fsqrt.d, * testsuite/gas/rx/fsub.d,
1603 * testsuite/gas/rx/ftoi.d, * testsuite/gas/rx/ftou.d,
1604 * testsuite/gas/rx/gprel.d, * testsuite/gas/rx/int.d,
1605 * testsuite/gas/rx/itof.d, * testsuite/gas/rx/jmp.d,
1606 * testsuite/gas/rx/jsr.d, * testsuite/gas/rx/machi.d,
1607 * testsuite/gas/rx/maclh.d, * testsuite/gas/rx/maclo.d,
1608 * testsuite/gas/rx/max.d, * testsuite/gas/rx/min.d,
1609 * testsuite/gas/rx/mov.d, * testsuite/gas/rx/movco.d,
1610 * testsuite/gas/rx/movli.d, * testsuite/gas/rx/movu.d,
1611 * testsuite/gas/rx/msbhi.d, * testsuite/gas/rx/msblh.d,
1612 * testsuite/gas/rx/msblo.d, * testsuite/gas/rx/mul.d,
1613 * testsuite/gas/rx/mulhi.d, * testsuite/gas/rx/mullh.d,
1614 * testsuite/gas/rx/mullo.d, * testsuite/gas/rx/mvfacgu.d,
1615 * testsuite/gas/rx/mvfachi.d, * testsuite/gas/rx/mvfaclo.d,
1616 * testsuite/gas/rx/mvfacmi.d, * testsuite/gas/rx/mvfc.d,
1617 * testsuite/gas/rx/mvfcp.d, * testsuite/gas/rx/mvfdc.d,
1618 * testsuite/gas/rx/mvfdr.d, * testsuite/gas/rx/mvtacgu.d,
1619 * testsuite/gas/rx/mvtachi.d, * testsuite/gas/rx/mvtaclo.d,
1620 * testsuite/gas/rx/mvtc.d, * testsuite/gas/rx/mvtcp.d,
1621 * testsuite/gas/rx/mvtdc.d, * testsuite/gas/rx/neg.d,
1622 * testsuite/gas/rx/nop.d, * testsuite/gas/rx/not.d,
1623 * testsuite/gas/rx/opecp.d, * testsuite/gas/rx/or.d,
1624 * testsuite/gas/rx/pop.d, * testsuite/gas/rx/popc.d,
1625 * testsuite/gas/rx/popm.d, * testsuite/gas/rx/push.d,
1626 * testsuite/gas/rx/pushc.d, * testsuite/gas/rx/pushm.d,
1627 * testsuite/gas/rx/r-bcc.d, * testsuite/gas/rx/r-bra.d,
1628 * testsuite/gas/rx/racl.d, * testsuite/gas/rx/racw.d,
1629 * testsuite/gas/rx/rdacl.d, * testsuite/gas/rx/rdacw.d,
1630 * testsuite/gas/rx/revl.d, * testsuite/gas/rx/revw.d,
1631 * testsuite/gas/rx/rmpa.d, * testsuite/gas/rx/rolc.d,
1632 * testsuite/gas/rx/rorc.d, * testsuite/gas/rx/rotl.d,
1633 * testsuite/gas/rx/rotr.d, * testsuite/gas/rx/round.d,
1634 * testsuite/gas/rx/rstr.d, * testsuite/gas/rx/rte.d,
1635 * testsuite/gas/rx/rtfi.d, * testsuite/gas/rx/rts.d,
1636 * testsuite/gas/rx/rtsd.d, * testsuite/gas/rx/sat.d,
1637 * testsuite/gas/rx/satr.d, * testsuite/gas/rx/save.d,
1638 * testsuite/gas/rx/sbb.d, * testsuite/gas/rx/sccnd.d,
1639 * testsuite/gas/rx/scmpu.d, * testsuite/gas/rx/setpsw.d,
1640 * testsuite/gas/rx/shar.d, * testsuite/gas/rx/shll.d,
1641 * testsuite/gas/rx/shlr.d, * testsuite/gas/rx/smovb.d,
1642 * testsuite/gas/rx/smovf.d, * testsuite/gas/rx/smovu.d,
1643 * testsuite/gas/rx/sstr.d, * testsuite/gas/rx/stnz.d,
1644 * testsuite/gas/rx/stz.d, * testsuite/gas/rx/sub.d,
1645 * testsuite/gas/rx/suntil.d, * testsuite/gas/rx/swhile.d,
1646 * testsuite/gas/rx/tst.d, * testsuite/gas/rx/utof.d,
1647 * testsuite/gas/rx/wait.d, * testsuite/gas/rx/xchg.d,
1648 * testsuite/gas/rx/xor.d: Add #source line.
1650 2019-01-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1652 * config/tc-arm.c (arm_cpus): Add ares.
1653 * doc/c-arm.texi (-mcpu): Document ares value.
1655 2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
1657 * config/rx-defs.h (rx_cpu_types): Add type RXV3 and RXV3FPU.
1658 (rx_bfield): Add prototype.
1659 (rx_post): Likewise.
1660 * config/rx-parse.y: Add v3 instructions and Double FPU registers.
1663 (rx_check_v3): New. check v3 type.
1664 (rx_check_dfpu): New. check have double support.
1665 (double_condition_table): New. dcmp<cond> contiditon.
1666 (check_condition): Multiple condition support.
1667 (rx_lex): RXv3 instructions support.
1668 Add parse dcmp<cond> instruction and Double FPU registers.
1669 (immediate): Disable optimize in dmov #imm case.
1670 (displacement): Add double displacement in dmov instraction.
1671 * config/tc-rx.c (rx_use_conventional_section_names):
1672 Invert default value in rx-*-linux target.
1673 (cpu_type): Add additional ELF flags.
1674 (cpu_type_list): Add RXv3.
1675 (md_parse_option): Refer elf_flags from cpu_type_list.
1676 (md_show_usage): Add rxv3 and rxv3-dfpu.
1677 (rx_bytesT): Add post byte.
1678 (rx_bfield): New. generate bfmov / bfmovz "imm" field.
1679 (rx_post): New. Set instruction post byte.
1680 (md_assemble): Add post byte.
1681 doc/c-rx.texi: Add cpu types.
1682 * testsuite/gas/rx/Xtod.d: New.
1683 * testsuite/gas/rx/Xtod.sm: New.
1684 * testsuite/gas/rx/bfmov.d: New.
1685 * testsuite/gas/rx/bfmov.sm: New.
1686 * testsuite/gas/rx/dabs.d: New.
1687 * testsuite/gas/rx/dabs.sm: New.
1688 * testsuite/gas/rx/dadd.d: New.
1689 * testsuite/gas/rx/dadd.sm: New.
1690 * testsuite/gas/rx/dcmp.d: New.
1691 * testsuite/gas/rx/dcmp.sm: New.
1692 * testsuite/gas/rx/ddiv.d: New.
1693 * testsuite/gas/rx/ddiv.sm: New.
1694 * testsuite/gas/rx/dmov.d: New.
1695 * testsuite/gas/rx/dmov.sm: New.
1696 * testsuite/gas/rx/dmul.d: New.
1697 * testsuite/gas/rx/dmul.sm: New.
1698 * testsuite/gas/rx/dneg.d: New.
1699 * testsuite/gas/rx/dneg.sm: New.
1700 * testsuite/gas/rx/dpopm.d: New.
1701 * testsuite/gas/rx/dpopm.sm: New.
1702 * testsuite/gas/rx/dpushm.d: New.
1703 * testsuite/gas/rx/dpushm.sm: New.
1704 * testsuite/gas/rx/dround.d: New.
1705 * testsuite/gas/rx/dround.sm: New.
1706 * testsuite/gas/rx/dsqrt.d: New.
1707 * testsuite/gas/rx/dsqrt.sm: New.
1708 * testsuite/gas/rx/dsub.d: New.
1709 * testsuite/gas/rx/dsub.sm: New.
1710 * testsuite/gas/rx/dtoX.d: New.
1711 * testsuite/gas/rx/dtoX.sm: New.
1712 * testsuite/gas/rx/macros.inc: Add double FPU registers.
1713 * testsuite/gas/rx/mvfdc.d: New.
1714 * testsuite/gas/rx/mvfdc.sm: New.
1715 * testsuite/gas/rx/mvfdr.d: New.
1716 * testsuite/gas/rx/mvfdr.sm: New.
1717 * testsuite/gas/rx/mvtdc.d: New.
1718 * testsuite/gas/rx/mvtdc.sm: New.
1719 * testsuite/gas/rx/rstr.d: New.
1720 * testsuite/gas/rx/rstr.sm: New.
1721 * testsuite/gas/rx/rx.exp: Use rxv3-dfpu option.
1722 * testsuite/gas/rx/save.d: New.
1723 * testsuite/gas/rx/save.sm: New.
1724 * testsuite/gas/rx/xor.d: New.
1725 * testsuite/gas/rx/xor.sm: Add pattern.
1727 2019-01-04 Wu Heng <wu.heng@zte.com.cn>
1730 * macro.c (get_any_string): Check for end of input whilst scanning
1733 2019-01-04 Wu Heng <wu.heng@zte.com.cn>
1736 * read.c (stringer): Fix handling of missing '>' character at end
1739 2019-01-01 Alan Modra <amodra@gmail.com>
1741 Update year range in copyright notice of all files.
1743 For older changes see ChangeLog-2018
1745 Copyright (C) 2019 Free Software Foundation, Inc.
1747 Copying and distribution of this file, with or without modification,
1748 are permitted in any medium without royalty provided the copyright
1749 notice and this notice are preserved.
1755 version-control: never