[PATCH 7/57][Arm][GAS] Add support for MVE instructions: vstr/vldr
[external/binutils.git] / gas / ChangeLog
1 2019-05-16  Andre Vieira  <andre.simoesdiasvieira@arm.com>
2
3         * config/tc-arm.c (struct arm_it): Make immisreg field larger to hold
4         type of register.
5         (enum shift_kind): Add SHIFT_UXTW shift kind.
6         (enum parse_shift_mode): Add SHIFT_UXTW_IMMEDIATE shift mode.
7         (parse_shift): Handle new shift type.
8         (parse_address_main): Accept new addressing modes.
9         (M_MNEM_vstrb, M_MNEM_vstrh, M_MNEM_vstrw, M_MNEM_vstrd,
10          M_MNEM_vldrb, M_MNEM_vldrh, M_MNEM_vldrw, M_MNEM_vldrd): New
11         instruction encodings.
12         (do_mve_vstr_vldr_QI): New encoding functions.
13         (do_mve_vstr_vldr_RQ): Likewise.
14         (do_mve_vstr_vldr_RI): Likewise.
15         (do_mve_vstr_vldr): Likewise.
16         * testsuite/gas/arm/mve-vldr-bad-1.d: New test.
17         * testsuite/gas/arm/mve-vldr-bad-1.l: New test.
18         * testsuite/gas/arm/mve-vldr-bad-1.s: New test.
19         * testsuite/gas/arm/mve-vldr-bad-2.d: New test.
20         * testsuite/gas/arm/mve-vldr-bad-2.l: New test.
21         * testsuite/gas/arm/mve-vldr-bad-2.s: New test.
22         * testsuite/gas/arm/mve-vldr-bad-3.d: New test.
23         * testsuite/gas/arm/mve-vldr-bad-3.l: New test.
24         * testsuite/gas/arm/mve-vldr-bad-3.s: New test.
25         * testsuite/gas/arm/mve-vstr-bad-1.d: New test.
26         * testsuite/gas/arm/mve-vstr-bad-1.l: New test.
27         * testsuite/gas/arm/mve-vstr-bad-1.s: New test.
28         * testsuite/gas/arm/mve-vstr-bad-2.d: New test.
29         * testsuite/gas/arm/mve-vstr-bad-2.l: New test.
30         * testsuite/gas/arm/mve-vstr-bad-2.s: New test.
31         * testsuite/gas/arm/mve-vstr-bad-3.d: New test.
32         * testsuite/gas/arm/mve-vstr-bad-3.l: New test.
33         * testsuite/gas/arm/mve-vstr-bad-3.s: New test.
34
35 2019-05-16  Andre Vieira  <andre.simoesdiasvieira@arm.com>
36
37         * config/tc-arm.c (enum it_instruction_type): Add MVE_UNPREDICABLE_INSN.
38         (BAD_EL_TYPE): New error message.
39         (parse_neon_el_struct_list): Adapt to be able to accept MVE variant.
40         (parse_address_main): Likewise.
41         (group_reloc_type): Add GROUP_MVE.
42         (enum operand_parse_code): Add new operands.
43         (parse_operands): Handle new operands.
44         (M_MNEM_vst20, M_MNEM_vst21, M_MNEM_vst40, M_MNEM_vst41, M_MNEM_vst42,
45          M_MNEM_vst43, M_MNEM_vld20, M_MNEM_vld21, M_MNEM_vld40, M_MNEM_vld41,
46          M_MNEM_vld42, M_MNEM_vld43): New encodings.
47         (do_mve_vst_vld): New encoding function.
48         (do_neon_ld_st_interleave): Use BAD_EL_TYPE.
49         (it_fsm_pre_encode): Handle new it_instruction_type
50         (handle_pred_state): Likewise.
51         * testsuite/gas/arm/mve-vstld-bad.d: New test.
52         * testsuite/gas/arm/mve-vstld-bad.l: New test.
53         * testsuite/gas/arm/mve-vstld-bad.s: New test.
54
55 2019-05-16  Andre Vieira  <andre.simoesdiasvieira@arm.com>
56
57         * config/tc-arm.c (BAD_MVE_AUTO): New error message.
58         (BAD_MVE_SRCDEST): Likewise.
59         (mark_feature_used): Diagnose MVE only instructions when in
60         auto-detection mode or -march=all.
61         (enum operand_parse_code): Define new operand.
62         (parse_operands): Handle new operand.
63         (M_MNEM_vmullt, M_MNEM_vmullb): New encodings.
64         (mve_encode_qqq): New encoding helper function.
65         (do_mve_vmull): New encoding function.
66         (insns): Handle new instructions.
67         * testsuite/gas/arm/mve-vmullbt-bad.d: New test.
68         * testsuite/gas/arm/mve-vmullbt-bad.l: New test.
69         * testsuite/gas/arm/mve-vmullbt-bad.s: New test.
70
71 2019-05-16  Andre Vieira  <andre.simoesdiasvieira@arm.com>
72
73         * config/tc-arm.c (struct asm_opcode): Make avalue a full int.
74         (BAD_ODD, BAD_EVEN, BAD_SIMD_TYPE): New errors.
75         (enum operand_parse_code): Handle new operands.
76         (parse_operands): Likewise.
77         (M_MNEM_vabav, M_MNEM_vmladav, M_MNEM_vmladava, M_MNEM_vmladavx,
78          M_MNEM_vmladavax, M_MNEM_vmlsdav, M_MNEM_vmlsdava, M_MNEM_vmlsdavx,
79          M_MNEM_vmlsdavax): Define new encodings.
80         (NEON_SHAPE_DEF): Add new shape.
81         (neon_check_type): Use BAD_SIMD_TYPE.
82         (mve_encode_rqq): New encoding helper function.
83         (do_mve_vabav, do_mve_vmladav): New encoding functions.
84         (mCEF): New MACRO.
85         * testsuite/gas/arm/mve-vabav-bad.d: New test.
86         * testsuite/gas/arm/mve-vabav-bad.l: New test.
87         * testsuite/gas/arm/mve-vabav-bad.s: New test.
88         * testsuite/gas/arm/mve-vmladav-bad.d: New test.
89         * testsuite/gas/arm/mve-vmladav-bad.l: New test.
90         * testsuite/gas/arm/mve-vmladav-bad.s: New test.
91         * testsuite/gas/arm/mve-vmlav-bad.d: New test.
92         * testsuite/gas/arm/mve-vmlav-bad.l: New test.
93         * testsuite/gas/arm/mve-vmlav-bad.s: New test.
94         * testsuite/gas/arm/mve-vmlsdav-bad.d: New test.
95         * testsuite/gas/arm/mve-vmlsdav-bad.l: New test.
96         * testsuite/gas/arm/mve-vmlsdav-bad.s: New test.
97
98 2019-05-16  Andre Vieira  <andre.simoesdiasvieira@arm.com>
99
100         * config/tc-arm.c (do_neon_abs_neg): Make it accept MVE variant.
101         (insns): Change vabs and vneg entries to accept MVE variants.
102         * testsuite/gas/arm/mve-vabsneg-bad-1.d: New test.
103         * testsuite/gas/arm/mve-vabsneg-bad-1.l: New test.
104         * testsuite/gas/arm/mve-vabsneg-bad-1.s: New test.
105         * testsuite/gas/arm/mve-vabsneg-bad-2.d: New test.
106         * testsuite/gas/arm/mve-vabsneg-bad-2.l: New test.
107         * testsuite/gas/arm/mve-vabsneg-bad-2.s: New test.
108
109 2019-05-16  Andre Vieira  <andre.simoesdiasvieira@arm.com>
110
111         * config/tc-arm.c (enum it_instruction_type): Rename to...
112         (enum pred_instruction_type): ... this. Include VPT types.
113         (it_insn_type): Rename to ...
114         (pred_insn_type): .. this.
115         (arm_it): Change comment.
116         (enum arm_reg_type): Add new value.
117         (reg_expected_msgs): New entry.
118         (asm_opcode): Add mayBeVecPred member.
119         (BAD_SYNTAX, BAD_NOT_VPT, BAD_OUT_VPT, BAD_VPT_COND, MVE_NOT_IT,
120          MVE_NOT_VPT, MVE_BAD_PC, MVE_BAD_SP): New diagnostic MACROS.
121         (arm_vcond_hsh): New table for vector condition codes.
122         (now_it): Rename to ...
123         (now_pred): ... this.
124         (now_it_compatible): Rename to ...
125         (now_pred_compatible): ... this.
126         (in_it_block): Rename to ...
127         (in_pred_block): ... this.
128         (handle_it_state): Rename to ...
129         (handle_pred_state): ... this. And change it to accept VPT blocks.
130         (set_it_insn_type): Rename to ...
131         (set_pred_insn_type): ... this.
132         (set_it_insn_type_nonvoid): Rename to ...
133         (set_pred_insn_type_nonvoid): ... this.
134         (set_it_insn_type_last): Rename to ...
135         (set_pred_insn_type_last): ... this.
136         (record_feature_use): Moved.
137         (mark_feature_used): Likewise.
138         (parse_typed_reg_or_scalar): Add new case for REG_TYPE_MQ.
139         (emit_insn): Use renamed functions and variables.
140         (enum operand_parse_code): Add new operands.
141         (parse_operands): Handle new operands.
142         (do_scalar_fp16_v82_encode): Change predication detection.
143         (do_it): Use renamed functions and variables.
144         (do_t_add_sub): Likewise.
145         (do_t_arit3): Likewise.
146         (do_t_arit3c): Likewise.
147         (do_t_blx): Likewise.
148         (do_t_branch): Likewise.
149         (do_t_bkpt_hlt1): Likewise.
150         (do_t_branch23): Likewise.
151         (do_t_bx): Likewise.
152         (do_t_bxj): Likewise.
153         (do_t_cond): Likewise.
154         (do_t_csdb): Likewise.
155         (do_t_cps): Likewise.
156         (do_t_cpsi): Likewise.
157         (do_t_cbz): Likewise.
158         (do_t_it): Likewise.
159         (do_mve_vpt): New function to handle VPT blocks.
160         (encode_thumb2_multi): Use renamed functions and variables.
161         (do_t_ldst): Use renamed functions and variables.
162         (do_t_mov_cmp): Likewise.
163         (do_t_mvn_tst): Likewise.
164         (do_t_mul): Likewise.
165         (do_t_nop): Likewise.
166         (do_t_neg): Likewise.
167         (do_t_rsb): Likewise.
168         (do_t_setend): Likewise.
169         (do_t_shift): Likewise.
170         (do_t_smc): Likewise.
171         (do_t_tb): Likewise.
172         (do_t_udf): Likewise.
173         (do_t_loloop): Likewise.
174         (do_neon_cvt_1): Likewise.
175         (do_vfp_nsyn_cvt_fpv8): Likewise.
176         (do_vsel): Likewise.
177         (do_vmaxnm): Likewise.
178         (do_vrint_1): Likewise.
179         (do_crypto_2op_1): Likewise.
180         (do_crypto_3op_1): Likewise.
181         (do_crc32_1): Likewise.
182         (it_fsm_pre_encode): Likewise.
183         (it_fsm_post_encode): Likewise.
184         (force_automatic_it_block_close): Likewise.
185         (check_it_blocks_finished): Likewise.
186         (check_pred_blocks_finished): Likewise.
187         (arm_cleanup): Likewise.
188         (now_it_add_mask): Rename to ...
189         (now_pred_add_mask): ... this. And use new variables and functions.
190         (NEON_ENC_TAB): Add entries for vabdl, vaddl and vsubl.
191         (N_I_MVE, N_F_MVE, N_SU_MVE): New MACROs.
192         (neon_check_type): Generalize error message.
193         (mve_encode_qqr): New MVE generic encoding function.
194         (neon_dyadic_misc): Change to accept MVE variants.
195         (do_neon_dyadic_if_su): Likewise.
196         (do_neon_addsub_if_i): Likewise.
197         (do_neon_dyadic_long): Likewise.
198         (vfp_or_neon_is_neon): Add extra checks.
199         (check_simd_pred_availability): Helper function to check SIMD
200         instruction availability with respect to predication.
201         (enum opcode_tag): New suffix value.
202         (opcode_lookup): Change to handle VPT blocks.
203         (new_automatic_it_block): Rename to ...
204         (close_automatic_it_block): ...this.
205         (TxCE, TxC3, TxC3w, TUE, TUEc, TUF, CE, C3, ToC, ToU,
206          toC, toU, CL, cCE, cCL, C3E, xCM_, UE, UF, NUF, nUF,
207          NCE_tag, NCE, NCEF, nCE_tag, nCE, nCEF): Add default value for new
208         field.
209         (mCEF, mnCEF, mnCE, MNUF, mnUF, mToC, MNCE, MNCEF): New MACROs.
210         (insns): Redefine vadd, vsub, cabd, vabdl, vaddl, vsubl to accept MVE
211         variants. Add entries for vscclrm, and vpst.
212         (md_begin): Add arm_vcond_hsh initialization.
213         * config/tc-arm.h (enum it_state): Rename to...
214         (enum pred_state): ...this.
215         (struct current_it): Rename to...
216         (struct current_pred): ...this.
217         (enum pred_type): New enum.
218         (struct arm_segment_info_type): Use current_pred.
219         * testsuite/gas/arm/armv8_3-a-fp-bad.l: Update error message.
220         * testsuite/gas/arm/armv8_3-a-simd-bad.l: Update error message.
221         * testsuite/gas/arm/dotprod-illegal.l: Update error message.
222         * testsuite/gas/arm/mve-vaddsubabd-bad-1.d: New test.
223         * testsuite/gas/arm/mve-vaddsubabd-bad-1.l: New test.
224         * testsuite/gas/arm/mve-vaddsubabd-bad-1.s: New test.
225         * testsuite/gas/arm/mve-vaddsubabd-bad-2.d: New test.
226         * testsuite/gas/arm/mve-vaddsubabd-bad-2.l: New test.
227         * testsuite/gas/arm/mve-vaddsubabd-bad-2.s: New test.
228         * testsuite/gas/arm/mve-vpst-bad.d: New test.
229         * testsuite/gas/arm/mve-vpst-bad.l: New test.
230         * testsuite/gas/arm/mve-vpst-bad.s: New test.
231         * testsuite/gas/arm/neon-ldst-es-bad.l: Updated error message.
232
233 2019-05-16  Andre Vieira  <andre.simoesdiasvieira@arm.com>
234
235         * config/tc-arm.c (mve_ext, mve_fp_ext): New features.
236         (armv8_1m_main_ext_table): Add new extensions.
237         (aeabi_set_public_attributes): Translate new features to new build attributes.
238         (arm_convert_symbolic_attribute): Add Tag_MVE_arch.
239         * doc/c-arm.texi: Document new extensions and new build attribute.
240
241 2019-05-15  John Darrington <john@darrington.wattle.id.au>
242
243         * config/tc-s12z.c (register_prefix): New variable.  (md_show_usage,
244         md_parse_option):  parse the new option.
245         (lex_reg_name): Scan the prefix if one is set.
246         * doc/c-s12z.texi (S12Z-Opts): Document the new option.
247         * testsuite/gas/s12z/reg-prefix.d: New file.
248         * testsuite/gas/s12z/reg-prefix.s: New file.
249         * testsuite/gas/s12z/s12z.exp: Add them.
250
251 2019-05-14  John Darrington <john@darrington.wattle.id.au>
252
253         * doc/as.texi (Machine Dependencies): Fix misaligned menu entry.
254
255 2019-05-15  Alan Modra  <amodra@gmail.com>
256
257         * config/tc-csky.c (md_convert_frag): Initialise trailing
258         padding for COND_JUMP_PIC.
259
260 2019-05-15  Alan Modra  <amodra@gmail.com>
261
262         * dwarf2dbg.c: Whitespace fixes.
263         (get_filenum): Don't strdup "file".  Adjust error message.
264         (dwarf2_directive_filename): Use an unsigned type for "num".
265         Catch truncation of file number and overflow of get_filenum
266         XRESIZEVEC multiplication.  Delete dead code.
267
268 2019-05-15  Alan Modra  <amodra@gmail.com>
269
270         PR 24538
271         * config/tc-tic54x.c (tic54x_start_line_hook): Do skip end of line
272         chars in setting endp.
273
274 2019-05-14  Nick Clifton  <nickc@redhat.com>
275
276         PR 24538
277         * config/tc-i386-intel.c (i386_intel_simplify_register): Reject
278         illegal register numbers.
279
280 2019-05-10  Nick Clifton  <nickc@redhat.com>
281
282         PR 24538
283         * macro.c (get_any_string): Increase size of buffer used to hold
284         decimal value of expression result.
285         * dw2gencfi.c (get_debugseg_name): Handle an empty name.
286         * dwarf2dbg.c (get_filenum): Catch integer wraparound when
287         extending allocate file array.
288         (dwarf2_directive_filename): Add extra checks of the computed file
289         number.
290         * config/tc-arm.c (arm_tc_equal_in_insn): Insert copy of name into
291         warning hash table.
292         (s_arm_eabi_attribute): Check for obj_elf_vendor_attribute
293         returning -1.
294         * config/tc-i386.c (i386_output_nops): Catch an attempt to
295         generate nops of negative lengths.
296         * as.h (MAX_LITTLENUMS): Move definition to here from...
297         * config/atof-ieee.c: ...here.
298         * config/tc-aarch64.c: ...here.
299         * config/tc-arc.c: ...here.
300         * config/tc-arm.c: ...here.
301         * config/tc-epiphany.c: ...here.
302         * config/tc-i386.c: ...here.
303         * config/tc-ia64.c: ...here.  (And correct the value).
304         * config/tc-m32c.c: ...here.
305         * config/tc-m32r.c: ...here.
306         * config/tc-metag.c: ...here.
307         * config/tc-microblaze.c: ...here.
308         * config/tc-nds32.c: ...here.
309         * config/tc-or1k.c: ...here.
310         * config/tc-score.c: ...here.
311         * config/tc-score7.c: ...here.
312         * config/tc-tic4x.c: ...here.
313         * config/tc-tilegx.c: ...here.
314         * config/tc-tilepro.c: ...here.
315         * config/tc-visium.c: ...here.
316         * config/tc-sh.c (md_assemble): Add check for an instruction with
317         no opcodes.
318         * config/tc-mips.c (mips_lookup_insn): Add check for very short
319         instruction name.
320         * config/tc-tic54x.c: Use unsigned chars to access is_end_of_line
321         array.
322         (tic54x_start_line_hook): Check for an empty line.
323         (next_line_shows_parallel): Do not walk off the end of the string.
324         (tic54x_macro_start): Check for too much macro nesting.
325         (tic54x_start_label): Add label_start parameter.  Use this
326         parameter to check the first character of the label.
327
328         * config/tc-tic54x.h (TC_START_LABEL_WITHOUT_COLON): Pass
329         line_start variable to tic54x_start_label.
330
331 2019-05-10  Faraz Shahbazker  <fshahbazker@wavecomp.com>
332
333         * config/tc-mips.c (macro) <M_ADD_I, M_SUB_I, M_DADD_I, M_DSUB_I>:
334         Add expansions for MIPS r6.
335         * testsuite/gas/mips/add.s: Enable tests for R6.
336         * testsuite/gas/mips/daddi.s: Annotate to test DADD for R6.
337         * testsuite/gas/mips/mipsr6@add.d: Likewise.
338         * gas/testsuite/gas/mips/mipsr6@dadd.d: New test.
339         * gas/testsuite/gas/mips/mips.exp: Run the new test.
340
341 2019-05-09  Matthew Malcomson  <matthew.malcomson@arm.com>
342
343         * testsuite/gas/aarch64/sve2.d: Remove file format restriction.
344
345 2019-05-09  Matthew Malcomson  <matthew.malcomson@arm.com>
346
347         * testsuite/gas/aarch64/illegal-sve2-aes.d: New test.
348         * testsuite/gas/aarch64/illegal-sve2-bitperm.d: New test.
349         * testsuite/gas/aarch64/illegal-sve2-sha3.d: Test new instructions.
350         * testsuite/gas/aarch64/illegal-sve2-sm4.d: Test new instructions.
351         * testsuite/gas/aarch64/illegal-sve2-sve1ext.d: Test new instructions.
352         * testsuite/gas/aarch64/illegal-sve2-sve1ext.l: Test new instructions.
353         * testsuite/gas/aarch64/illegal-sve2.d: Test new instructions.
354         * testsuite/gas/aarch64/illegal-sve2.l: Test new instructions.
355         * testsuite/gas/aarch64/illegal-sve2.s: Test new instructions.
356         * testsuite/gas/aarch64/sve1-extended-sve2.s: New test.
357         * testsuite/gas/aarch64/sve2.d: Test new instructions.
358         * testsuite/gas/aarch64/sve2.s: Test new instructions.
359
360 2019-05-09  Matthew Malcomson  <matthew.malcomson@arm.com>
361
362         * config/tc-aarch64.c (parse_operands): Handle new SVE_SHLIMM_UNPRED_22
363         operand.
364
365 2019-05-09  Matthew Malcomson  <matthew.malcomson@arm.com>
366
367         * config/tc-aarch64.c (parse_operands): Handle new SVE_Zm4_11_INDEX
368         operand.
369
370 2019-05-09  Matthew Malcomson  <matthew.malcomson@arm.com>
371
372         * config/tc-aarch64.c (parse_operands): Handle new SVE_SHRIMM_UNPRED_22
373         operand.
374
375 2019-05-09  Matthew Malcomson  <matthew.malcomson@arm.com>
376
377         * config/tc-aarch64.c (REG_ZR): Macro specifying zero register.
378         (parse_address_main): Account for new addressing mode [Zn.S, Xm].
379         (parse_operands): Handle new SVE_ADDR_ZX operand.
380
381 2019-05-09  Matthew Malcomson  <matthew.malcomson@arm.com>
382
383         * config/tc-aarch64.c (parse_operands): Handle new SVE_Zm3_11_INDEX
384         operand.
385
386 2019-05-09  Matthew Malcomson  <matthew.malcomson@arm.com>
387
388         * config/tc-aarch64.c (parse_operands): Handle new SVE_IMM_ROT3 operand.
389
390 2019-05-09  Matthew Malcomson  <matthew.malcomson@arm.com>
391
392         * config/tc-aarch64.c: Add command line architecture feature flags
393         "sve2", "sve2-sm4", "sve2-aes", "sve2-sha3", "bitperm".
394         * doc/c-aarch64.texi: Document new architecture feature flags.
395
396 2019-05-08  Alan Modra  <amodra@gmail.com>
397
398         * testsuite/gas/elf/dwarf2-1.s,
399         * testsuite/gas/elf/dwarf2-2.s,
400         * testsuite/gas/elf/dwarf2-5.s,
401         * testsuite/gas/elf/dwarf2-7.s,
402         * testsuite/gas/elf/dwarf2-8.s,
403         * testsuite/gas/elf/dwarf2-9.s,
404         * testsuite/gas/elf/dwarf2-10.s,
405         * testsuite/gas/elf/dwarf2-11.s,
406         * testsuite/gas/elf/dwarf2-12.s,
407         * testsuite/gas/elf/dwarf2-13.s,
408         * testsuite/gas/elf/dwarf2-14.s,
409         * testsuite/gas/elf/dwarf2-15.s,
410         * testsuite/gas/elf/dwarf2-16.s,
411         * testsuite/gas/elf/dwarf2-17.s,
412         * testsuite/gas/elf/dwarf2-18.s,
413         * testsuite/gas/elf/dwarf2-19.s: Double size of align and simulated
414         instructions.
415         * testsuite/gas/elf/dwarf2-1.d,
416         * testsuite/gas/elf/dwarf2-2.d,
417         * testsuite/gas/elf/dwarf2-5.d,
418         * testsuite/gas/elf/dwarf2-7.d,
419         * testsuite/gas/elf/dwarf2-8.d,
420         * testsuite/gas/elf/dwarf2-9.d,
421         * testsuite/gas/elf/dwarf2-10.d,
422         * testsuite/gas/elf/dwarf2-11.d,
423         * testsuite/gas/elf/dwarf2-12.d,
424         * testsuite/gas/elf/dwarf2-13.d,
425         * testsuite/gas/elf/dwarf2-14.d,
426         * testsuite/gas/elf/dwarf2-15.d,
427         * testsuite/gas/elf/dwarf2-16.d,
428         * testsuite/gas/elf/dwarf2-17.d,
429         * testsuite/gas/elf/dwarf2-18.d,
430         * testsuite/gas/elf/dwarf2-19.d: Use xfail rather than notarget.
431         Remove avr, pru, tile, xtensa from xfails.  Update expected output.
432         * testsuite/gas/elf/elf.exp: Sort targets.
433         (dump_opts): Pass {as -mno-relax} for riscv, {as -mno-link-relax}
434         for avr and pru, and {as --no-link-relax} for xtensa to dwarf tests.
435         * testsuite/gas/elf/section2.e-miwmmxt: Delete unused file.
436
437 2019-05-08  Alan Modra  <amodra@gmail.com>
438
439         * config/tc-xtensa.c (opt_linkrelax): New variable.
440         (md_parse_option): Set it here.
441         (md_begin): Copy opt_linkrelax to linkrelax.
442
443 2019-05-07  Alexandre Oliva <aoliva@redhat.com>
444
445         * testsuite/gas/elf/dwarf2-18.d: Xfail mep-*.
446         * testsuite/gas/elf/dwarf2-19.d: Likewise.
447
448 2019-05-07  Alan Modra  <amodra@gmail.com>
449
450         * symbols.c (use_complex_relocs_for): Formatting.  Factor out
451         X_add_symbol tests.
452
453 2019-05-06  Andrew Bennett  <andrew.bennett@imgtec.com>
454             Faraz Shahbazker  <fshahbazker@wavecomp.com>
455
456         * config/tc-mips.c (mips_set_ase): Handle ASE_EVA_R6.
457         (macro) <M_LLWPE_AB, M_SCWPE_AB>: New cases.
458         (mips_after_parse_args): Translate EVA to EVA_R6.
459         * testsuite/gas/mips/ase-errors-1.s: Add new instructions.
460         * testsuite/gas/mips/eva.s: Likewise.
461         * testsuite/gas/mips/ase-errors-1.l: Check errors for
462          new instructions.
463         * testsuite/gas/mips/mipsr6@eva.d: Check new test cases.
464
465 2019-05-06  Alan Modra  <amodra@gmail.com>
466
467         * symbols.c (symbol_relc_make_sym): Do not access sym->sy_value
468         directly.
469
470 2019-05-06  Alan Modra  <amodra@gmail.com>
471
472         * config/tc-ppc.c (ppc_fix_adjustable): Exclude all GOT and PLT
473         relocs, and VLE sdarel relocs.
474         * testsuite/gas/ppc/power4.d: Adjust.
475
476 2019-05-05  Alexandre Oliva <aoliva@redhat.com>
477
478         * dwarf2dbg.c (set_or_check_view): Skip heads when assigning
479         views of prior locs.
480         (dwarf2_gen_line_info_1): Skip heads.
481         (size_inc_line_addr, emit_inc_line_addr): Drop
482         DW_LNS_advance_pc for zero addr delta.
483         (dwarf2_finish): Assign views for heads of segments.
484         * testsuite/gas/elf/dwarf2-19.d: New.
485         * testsuite/gas/elf/dwarf2-19.s: New.
486         * testsuite/gas/elf/elf.exp: Test it.
487
488 2019-05-04  Alan Modra  <amodra@gmail.com>
489
490         * config/tc-m32c.c (insn_size): Delete static var.
491         (md_begin): Don't set it.
492         (m32c_md_end): Delete.
493         (md_assemble): Add insn_size auto var.
494         * config/tc-m32c.h (md_end): Don't define.
495         (m32c_md_end): Delete.
496         (NOP_OPCODE, HANDLE_ALIGN, MAX_MEM_FOR_RS_ALIGN_CODE): Define.
497         * testsuite/gas/all/align.d: Remove m32c from notarget list.
498         * testsuite/gas/all/incbin.d: Likewise.
499         * testsuite/gas/elf/dwarf2-11.d: Likewise.
500         * testsuite/gas/macros/semi.d: Likewise.
501         * testsuite/gas/all/gas.exp (do_comment): Similarly.
502
503 2019-05-02  H.J. Lu  <hongjiu.lu@intel.com>
504
505         PR gas/24485
506         * config/tc-i386.c (process_suffix): Issue a warning to IRET
507         without a suffix for .code16gcc.
508         * testsuite/gas/i386/jump16.s: Add tests for iretX.
509         * testsuite/gas/i386/jump16.d: Updated.
510         * testsuite/gas/i386/jump16.e: New file.
511
512 2019-05-01  Sudakshina Das  <sudi.das@arm.com>
513
514         * config/tc-aarch64.c (parse_operands): Add case for
515         AARCH64_OPND_TME_UIMM16.
516         (aarch64_features): Add "tme".
517         * doc/c-aarch64.texi: Document the same.
518         * testsuite/gas/aarch64/tme-invalid.d: New test.
519         * testsuite/gas/aarch64/tme-invalid.l: New test.
520         * testsuite/gas/aarch64/tme-invalid.s: New test.
521         * testsuite/gas/aarch64/tme.d: New test.
522         * testsuite/gas/aarch64/tme.s: New test.
523
524 2019-04-29  John Darrington <john@darrington.wattle.id.au>
525
526         * testsuite/gas/s12z/truncated.d: New file.
527         * testsuite/gas/s12z/truncated.s: New file.
528         * testsuite/gas/s12z/s12z.exp: Add new test.
529
530 2019-04-26  Andrew Bennett  <andrew.bennett@imgtec.com>
531             Faraz Shahbazker  <fshahbazker@wavecomp.com>
532
533         * config/tc-mips.c (macro) <M_LLWP_AB, M_LLDP_AB, M_SCWP_AB,
534         M_SCDP_AB>: New cases and expansions for paired instructions.
535         * testsuite/gas/mips/llpscp-32.s: New test source.
536         * testsuite/gas/mips/llpscp-64.s: Likewise.
537         * testsuite/gas/mips/llpscp-32.d: New test.
538         * testsuite/gas/mips/llpscp-64.d: Likewise.
539         * testsuite/gas/mips/mips.exp: Run the new tests.
540         * testsuite/gas/mips/r6.s: Add new instructions to test source.
541         * testsuite/gas/mips/r6-64.s: Likewise.
542         * testsuite/gas/mips/r6-64-n32.d: Check new instructions.
543         * testsuite/gas/mips/r6-64-n64.d: Likewise.
544         * testsuite/gas/mips/r6-n32.d: Likewise.
545         * testsuite/gas/mips/r6-n64.d: Likwwise.
546         * testsuite/gas/mips/r6.d: Likewise.
547
548 2019-04-26  H.J. Lu  <hongjiu.lu@intel.com>
549
550         PR gas/24485
551         * config/tc-i386.c (process_suffix): Don't add DATA_PREFIX_OPCODE
552         to IRET for .code16gcc.
553         * testsuite/gas/i386/jump16.s: Add IRET tests.
554         * testsuite/gas/i386/jump16.d: Updated.
555
556 2019-04-25  Alexandre Oliva  <aoliva@redhat.com>
557             Alan Modra  <amodra@gmail.com>
558
559         PR gas/24444
560         * frags.c (frag_gtoffset_p): New.
561         * frags.h (frag_gtoffset_p): Declare it.
562         * expr.c (resolve_expression): Use it.
563
564 2019-04-24  Alan Modra  <amodra@gmail.com>
565
566         PR 24444
567         * symbols.c (resolve_symbol_value): When handling symbols
568         marked as sy_flags.resolved, return correct value for the
569         case of expression symbols left as an O_symbol expression.
570         Merge O_symbol code handling undefined and common symbols with
571         code handling special cases of expression symbols.  Use
572         seg_left to test for undefined and common symbols.  Don't
573         leave an O_symbol expression when X_add_symbol resolves to
574         the absolute_section.  Init final_val later.
575         * testsuite/gas/mmix/basep-7.d: Adjust expected output.
576
577 2019-04-24  John Darrington <john@darrington.wattle.id.au>
578
579         * testsuite/gas/s12z/bit-manip-invalid.s: Extend test for BSET
580         and BCLR instructions with an invalid mode.
581         * testsuite/gas/s12z/bit-manip-invalid.d: ditto.
582
583 2019-04-19  Nick Clifton  <nickc@redhat.com>
584
585         PR 24464
586         * config/tc-rx.h (md_relax_frag): Pass the max_iterations variable
587         to the relaxation function.
588         * config/tc-rx.c (rx_relax_frag): Add new parameter - the maximum
589         number of iterations.  Make sure that our internal iteration limit
590         does not exceed this external iteration limit.
591
592 2019-04-18  Matthew Fortune  <matthew.fortune@mips.com>
593
594         * config/tc-mips.c (match_non_zero_reg_operand): Update
595         warning message.
596         * testsuite/gas/mips/r6-branch-constraints.l: Likewise.
597
598 2019-04-18  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
599
600         * config/tc-msp430.c (msp430_make_init_symbols): Define
601         __crt0_run_{preinit,init,fini}_array symbols if
602         .{preinit,init,fini}_array sections exist.
603         * testsuite/gas/msp430/fini-array.d: New test.
604         * testsuite/gas/msp430/init-array.d: New test.
605         * testsuite/gas/msp430/preinit-array.d: New test.
606         * testsuite/gas/msp430/fini-array.s: New test source.
607         * testsuite/gas/msp430/init-array.s: New test source.
608         * testsuite/gas/msp430/preinit-array.s: New test source.
609         * testsuite/gas/msp430/msp430.exp: Add new tests to driver.
610
611 2019-04-17  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
612
613         * config/tc-msp430.c (msp430_make_init_symbols): Define __crt0_init_bss
614         symbol when .lower.bss or .either.bss sections exist.
615         Define __crt0_movedata when .lower.data or .either.data sections exist.
616         * testsuite/gas/msp430/either-data-bss-sym.d: New test.
617         * testsuite/gas/msp430/low-data-bss-sym.d: New test.
618         * testsuite/gas/msp430/either-data-bss-sym.s: New test source.
619         * testsuite/gas/msp430/low-data-bss-sym.s: New test source.
620         * testsuite/gas/msp430/msp430.exp: Run new tests.
621         Enable large code model when running -mdata-region={upper,either}
622         tests.
623
624 2019-04-17  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
625
626         * config/tc-msp430.c (options): New OPTION_UNKNOWN_INTR_NOPS,
627         OPTION_NO_UNKNOWN_INTR_NOPS and do_unknown_interrupt_nops.
628         (md_parse_option): Handle OPTION_UNKNOWN_INTR_NOPS and
629         OPTION_NO_UNKNOWN_INTR_NOPS by setting do_unknown_interrupt_nops
630         accordingly.
631         (md_show_usage): Likewise.
632         (md_shortopts): Add "mu" for OPTION_UNKNOWN_INTR_NOPS and
633         "mU" for OPTION_NO_UNKNOWN_INTR_NOPS.
634         (md_longopts): Likewise.
635         (warn_eint_nop): Update comment.
636         (warn_unsure_interrupt): Don't warn if prev_insn_is_nop or
637         prev_insn_is_dint or we are assembling for 430 ISA.
638         (msp430_operands): Only call warn_unsure_interrupt if
639         do_unknown_interrupt_nops == TRUE.
640         * testsuite/gas/msp430/nop-unknown-intr.s: New test source file.
641         * testsuite/gas/msp430/nop-unknown-intr-430.d: New test.
642         * testsuite/gas/msp430/nop-unknown-intr-430x.d: New test.
643         * testsuite/gas/msp430/nop-unknown-intr-430x-ignore.d: New test.
644         * testsuite/gas/msp430/nop-unknown-intr-430.l: Warning output for new
645         test.
646         * testsuite/gas/msp430/nop-unknown-intr-430x.l: Likewise.
647         * testsuite/gas/msp430/msp430.exp: Add new tests to driver.
648
649 2019-04-16  Alan Modra  <amodra@gmail.com>
650
651         * testsuite/gas/all/weakref1.d: xfail nds32.
652
653 2019-04-16  Alan Modra  <amodra@gmail.com>
654
655         * testsuite/gas/all/gas.exp: Remove ns32k xfails.
656         * testsuite/gas/all/weakref1u.d: Don't run for ns32k-*-*.
657
658 2019-04-16  Alan Modra  <amodra@gmail.com>
659
660         * write.h: Don't include bit_fix.h.
661         (struct fix): Rearrange some fields.  Delete fx_im_disp and
662         fx_bit_fixP.  Use bitfields for fx_size and fx_pcrel_adjust.
663         * write.c (fix_new_internal): Don't init fx_im_disp and fx_bit_fixP.
664         (fixup_segment): Don't exclude overflow checks on fx_bit_fixP.
665         (print_fixup): Don't print im_disp.
666         * config/tc-cris.c (md_apply_fix): Remove tests of fx_bit_fixP
667         and fx_im_disp.
668         * config/tc-dlx.c (md_apply_fix): Remove wrong debug code.  Set
669         fx_no_overflow when fx_bit_fixP.
670         * config/tc-dlx.h: Include bit_fix.h.
671         (TC_FIX_TYPE, tc_fix_data, TC_INIT_FIX_DATA): Define.
672         * config/tc-ns32k.c (fix_new_ns32k, fix_new_ns32k_exp): Set
673         fx_no_overflow when bit_fixP.
674         * config/tc-ns32k.h (TC_FIX_TYPE): Add fx_bit_fixP and fx_im_disp.
675         (fix_im_disp, fix_bit_fixP): Adjust to suit.
676         (TC_INIT_FIX_DATA, TC_FIX_DATA_PRINT): Likewise.
677
678 2019-04-16  Alan Modra  <amodra@gmail.com>
679
680         * write.h (struct fix <fx_where>): Make unsigned.
681         (fix_new, fix_at_start, fix_new_exp): Adjust prototypes.
682         * write.c (fix_new, fix_new_exp, fix_at_start): Make "where" and
683         "size" parameters unsigned long.
684         (fix_new_internal): Likewise.  Adjust error format string to suit.
685         * config/tc-mips.c (md_convert_frag): Remove cast of fx_where.
686         * config/tc-sparc.c (md_apply_fix): Likewise.
687         * config/tc-score.c (s3_convert_frag): Adjust for unsigned fx_where.
688         * config/tc-score7.c (s7_convert_frag): Likewise.
689
690 2019-04-16  Alan Modra  <amodra@gmail.com>
691
692         * frags.h (struct frag <fr_fix>): Use unsigned type.
693         * frags.c (frag_new): Assert that current size exceeds
694         old_frags_var_max_size.
695         * ehopt.c (get_cie_info): Adjust for unsigned fr_fix.
696         * listing.c (calc_hex): Likewise.
697         * write.c (cvt_frag_to_fill, write_relocs): Likewise.
698         * config/tc-arc.c (md_convert_frag): Likewise.
699         * config/tc-avr.c (avr_patch_gccisr_frag): Likewise.
700         * config/tc-mips.c (md_convert_frag): Likewise.
701         * config/tc-rl78.c (md_convert_frag): Likewise.
702         * config/tc-rx.c (md_convert_frag): Likewise.
703         * config/tc-sparc.c (md_apply_fix): Likewise.
704         * config/tc-xtensa.c (next_instrs_are_b_retw): Likewise.
705         (unrelaxed_frag_min_insn_count, unrelaxed_frag_has_b_j): Likewise.
706
707 2019-04-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
708
709         * config/tc-arm.c (parse_sys_vldr_vstr): New function.
710         (OP_VLDR): New enum operand_parse_code enumerator.
711         (parse_operands): Add logic for OP_VLDR.
712         (do_t_vldr_vstr_sysreg): New function.
713         (do_vldr_vstr): Likewise.
714         (insns): Guard VLDR and VSTR by arm_ext_v4t for Thumb mode.
715         (md_apply_fix): Add bound check for VLDR and VSTR co-processor offset.
716         Add masking logic for BFD_RELOC_ARM_T32_VLDR_VSTR_OFF_IMM relocation.
717         * testsuite/gas/arm/archv8m_1m-cmse-main-bad.s: Add examples of bad
718         uses of VLDR and VSTR.
719         * testsuite/gas/arm/archv8m_1m-cmse-main-bad.l: Add error messages for
720         above bad uses.
721         * testsuite/gas/arm/archv8m_1m-cmse-main.s: Add examples of VLDR and
722         VSTR valid uses.
723         * testsuite/gas/arm/archv8m_1m-cmse-main.d: Add disassembly for the
724         above examples.
725
726 2019-04-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
727
728         * config/tc-arm.c (arm_typed_reg_parse): Fix typo in comment.
729         (enum reg_list_els): New REGLIST_VFP_S_VPR and REGLIST_VFP_D_VPR
730         enumerators.
731         (parse_vfp_reg_list): Add new partial_match parameter.  Set
732         *partial_match to TRUE if at least one element in the register list has
733         matched.  Add support for REGLIST_VFP_S_VPR and REGLIST_VFP_D_VPR
734         register lists which expect VPR as last element in the list.
735         (s_arm_unwind_save_vfp_armv6): Adapt call to parse_vfp_reg_list to new
736         prototype.
737         (s_arm_unwind_save_vfp): Likewise.
738         (enum operand_parse_code): New OP_VRSDVLST enumerator.
739         (parse_operands): Adapt call to parse_vfp_reg_list to new prototype.
740         Handle new OP_VRSDVLST case.
741         (do_t_vscclrm): New function.
742         (insns): New entry for VSCCLRM instruction.
743         * testsuite/gas/arm/archv8m_1m-cmse-main-bad.s: Add invalid VSCCLRM
744         instructions.
745         * testsuite/gas/arm/archv8m_1m-cmse-main-bad.l: Add error expectations
746         for above instructions.
747         * testsuite/gas/arm/archv8m_1m-cmse-main.s: Add tests for VSCCLRM
748         instruction.
749         * testsuite/gas/arm/archv8m_1m-cmse-main.d: Add expected disassembly
750         for above instructions.
751
752 2019-04-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
753
754         * config/tc-arm.c (enum reg_list_els): Define earlier and add
755         REGLIST_RN and REGLIST_CLRM enumerators.
756         (parse_reg_list): Add etype parameter to distinguish between regular
757         core register list and CLRM register list.  Add logic to
758         recognize CLRM register list.
759         (parse_vfp_reg_list): Assert type is not for core register list.
760         (s_arm_unwind_save_core): Update call to parse_reg_list to new
761         prototype.
762         (enum operand_parse_code): Declare OP_CLRMLST enumerator.
763         (parse_operands): Update call to parse_reg_list to new prototype.  Add
764         logic for OP_CLRMLST.
765         (encode_thumb2_ldmstm): Rename into ...
766         (encode_thumb2_multi): This.  Add do_io parameter.  Add logic to
767         encode CLRM and guard LDM/STM only code by do_io.
768         (do_t_ldmstm): Adapt to use encode_thumb2_multi.
769         (do_t_push_pop): Likewise.
770         (do_t_clrm): New function.
771         (insns): Define CLRM.
772         * testsuite/gas/arm/archv8m_1m-cmse-main-bad.d: New file.
773         * testsuite/gas/arm/archv8m_1m-cmse-main-bad.l: Likewise.
774         * testsuite/gas/arm/archv8m_1m-cmse-main-bad.s: Likewise.
775         * testsuite/gas/arm/archv8m_1m-cmse-main.d: Likewise.
776         * testsuite/gas/arm/archv8m_1m-cmse-main.s: Likewise.
777
778 2019-04-15  Sudakshina Das  <sudi.das@arm.com>
779             Andre Vieira  <andre.simoesdiasvieira@arm.com>
780
781         * config/tc-arm.c (operand_parse_code): Add OP_LR and OP_oLR
782         for the LR operand and optional LR operand.
783         (parse_operands): Add switch cases for OP_LR and OP_oLR for
784         both type checking and value checking.
785         (encode_thumb32_addr_mode): New entries for DLS, WLS and LE.
786         (v8_1_loop_reloc): New helper function for handling labels
787         for the low overhead loop instructions.
788         (do_t_loloop): New function to encode DLS, WLS and LE.
789         (insns): New entries for WLS, DLS and LE.
790         (md_pcrel_from_section): New switch case
791         for BFD_RELOC_ARM_THUMB_LOOP12.
792         (md_appdy_fix): Likewise.
793         (tc_gen_reloc): Likewise.
794         * testsuite/gas/arm/armv8_1-m-tloop.s: New.
795         * testsuite/gas/arm/armv8_1-m-tloop.d: New.
796         * testsuite/gas/arm/armv8_1-m-tloop-bad.s: New.
797         * testsuite/gas/arm/armv8_1-m-tloop-bad.d: New.
798         * testsuite/gas/arm/armv8_1-m-tloop-bad.l: New.
799
800 2019-04-15  Sudakshina Das  <sudi.das@arm.com>
801             Andre Vieira  <andre.simoesdiasvieira@arm.com>
802
803         * config/tc-arm.c (T16_32_TAB): New entriy for bfcsel.
804         (do_t_v8_1_branch): New switch case for bfcsel.
805         (toU): Define.
806         (insns): New instruction for bfcsel.
807         (md_pcrel_from_section): New switch case
808         for BFD_RELOC_THUMB_PCREL_BFCSEL.
809         (md_appdy_fix): Likewise
810         (tc_gen_reloc): Likewise.
811         * testsuite/gas/arm/armv8_1-m-bfcsel.d: New.
812         * testsuite/gas/arm/armv8_1-m-bfcsel.s: New.
813
814 2019-04-15  Sudakshina Das  <sudi.das@arm.com>
815
816         * config/tc-arm.c (md_pcrel_from_section): New switch case for
817         BFD_RELOC_ARM_THUMB_BF13.
818         (md_appdy_fix): Likewise.
819         (tc_gen_reloc): Likewise.
820
821 2019-04-15  Sudakshina Das  <sudi.das@arm.com>
822             Andre Vieira  <andre.simoesdiasvieira@arm.com>
823
824         * config/tc-arm.c (T16_32_TAB): New entrie for bfl.
825         (do_t_v8_1_branch): New switch case for bfl.
826         (insns): New instruction for bfl.
827         * testsuite/gas/arm/armv8_1-m-bfl.d: New.
828         * testsuite/gas/arm/armv8_1-m-bfl.s: New.
829         * testsuite/gas/arm/armv8_1-m-bfl-bad.s: New.
830         * testsuite/gas/arm/armv8_1-m-bfl-bad.d: New.
831         * testsuite/gas/arm/armv8_1-m-bfl-bad.l: New.
832         * testsuite/gas/arm/armv8_1-m-bfl-rel.d: New.
833         * testsuite/gas/arm/armv8_1-m-bfl-rel.s: New.
834
835 2019-04-15  Sudakshina Das  <sudi.das@arm.com>
836
837         * config/tc-arm.c (md_pcrel_from_section): New switch case for
838         BFD_RELOC_ARM_THUMB_BF19.
839         (md_appdy_fix): Likewise.
840         (tc_gen_reloc): Likewise.
841
842 2019-04-15  Sudakshina Das  <sudi.das@arm.com>
843
844         * config/tc-arm.c (T16_32_TAB): New entries for bfx and bflx.
845         (do_t_v8_1_branch): New switch cases for bfx and bflx.
846         (insns): New instruction for bfx and bflx.
847         * testsuite/gas/arm/armv8_1-m-bf-exchange.d: New.
848         * testsuite/gas/arm/armv8_1-m-bf-exchange.s: New.
849         * testsuite/gas/arm/armv8_1-m-bf-exchange-bad.s: New
850         * testsuite/gas/arm/armv8_1-m-bf-exchange-bad.l: New
851         * testsuite/gas/arm/armv8_1-m-bf-exchange-bad.d: New
852
853 2019-04-15  Sudakshina Das  <sudi.das@arm.com>
854             Andre Vieira  <andre.simoesdiasvieira@arm.com>
855
856         * config/tc-arm.c (T16_32_TAB): New entries for bf.
857         (do_t_branch_future): New.
858         (insns): New instruction for bf.
859         * testsuite/gas/arm/armv8_1-m-bf.d: New.
860         * testsuite/gas/arm/armv8_1-m-bf.s: New.
861         * testsuite/gas/arm/armv8_1-m-bf-bad.s: New.
862         * testsuite/gas/arm/armv8_1-m-bf-bad.l: New.
863         * testsuite/gas/arm/armv8_1-m-bf-bad.d: New.
864         * testsuite/gas/arm/armv8_1-m-bf-rel.d: New.
865         * testsuite/gas/arm/armv8_1-m-bf-rel.s: New.
866
867 2019-04-15  Sudakshina Das  <sudi.das@arm.com>
868
869         * config/tc-arm.c (md_pcrel_from_section): New switch case for
870         BFD_RELOC_ARM_THUMB_BF17.
871         (md_appdy_fix): Likewise.
872         (tc_gen_reloc): Likewise.
873
874 2019-04-15  Sudakshina Das  <sudi.das@arm.com>
875
876         * config/tc-arm.c (ARM_IT_MAX_RELOCS): New macro.
877         (arm_it): Member reloc renamed relocs and updated to an array.
878         Rest: Replace all occurrences of reloc to relocs[0].
879
880 2019-04-15  Sudakshina Das  <sudi.das@arm.com>
881
882         * config/tc-arm.c (md_pcrel_from_section): New switch case
883         for BFD_RELOC_THUMB_PCREL_BRANCH5.
884         (v8_1_branch_value_check): New function to check branch
885         offsets.
886         (md_appdy_fix): New switch case for
887         BFD_RELOC_THUMB_PCREL_BRANCH5.
888         (tc_gen_reloc): Likewise.
889
890 2019-04-15  Andre Vieira  <andre.simoesdiasvieira@arm.com>
891
892         * config/tc-arm.c (do_neon_movhf): Remove fp-armv8 check.
893         (armv8_1m_main_ext_table): New extension table.
894         (arm_archs): Use the new extension table.
895         * doc/c-arm.texi: Add missing arch and document new extensions.
896         * testsuite/gas/arm/armv8.1-m.main-fp.d: New.
897         * testsuite/gas/arm/armv8.1-m.main-fp-dp.d: New.
898         * testsuite/gas/arm/armv8.1-m.main-hp.d: New.
899
900 2019-04-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
901
902         * config/tc-arm.c (cpu_arch_ver): Add entry for Armv8.1-M Mainline
903         Tag_CPU_arch build attribute value.  Reindent.
904         (get_aeabi_cpu_arch_from_fset): Update assert.
905         (aeabi_set_public_attributes): Update assert for Tag_DIV_use logic.
906         * testsuite/gas/arm/attr-march-armv8_1-m.main.d: New test.
907
908 2019-04-09  Matthew Fortune  <matthew.fortune@mips.com>
909
910         * config/tc-mips.c (mips_cpu_info_table): Add i6500.  Update
911         default ASEs for i6400.
912         * doc/c-mips.texi (-march): Document i6500.
913         * testsuite/gas/mips/elf_mach_i6400.d: New test.
914         * testsuite/gas/mips/elf_mach_i6500.d: New test.
915         * testsuite/gas/mips/mips.exp: Run the new tests.
916
917 2019-04-09  Matthew Fortune  <matthew.fortune@mips.com>
918
919         * config/tc-mips.c (mips_set_options) <init_ase>: New field.
920         (file_mips_opts, mips_opts) <init_ase>: Initialize new field.
921         (file_mips_check_options): Propagate initial ASE settings.
922         (mips_after_parse_args, parse_code_option): Track the initial
923         ASE settings for a CPU.
924         (s_mipsset): Restore the initial ASE settings when reverting
925         to the default arch.
926         * testsuite/gas/mips/elf_mach_p6600.d: New test.
927         * testsuite/gas/mips/mips.exp: Run the new test.
928
929 2019-04-12  John Darrington <john@darrington.wattle.id.au>
930
931         config/tc-s12z.h: Remove definition of macro TC_M68K
932
933 2019-04-01  John Darrington <john@darrington.wattle.id.au>
934
935         config/tc-s12z.c: Use bfd_boolean where appropriate.
936
937 2019-04-11  Max Filippov  <jcmvbkbc@gmail.com>
938
939         * testsuite/gas/xtensa/loop-relax-2.d: New test definition.
940         * testsuite/gas/xtensa/loop-relax.d: New test definition.
941         * testsuite/gas/xtensa/loop-relax.s: New test source.
942         * testsuite/gas/xtensa/text-section-literals-1a.d: New test
943         definition.
944         * testsuite/gas/xtensa/text-section-literals-2.d: New test
945         definition.
946         * testsuite/gas/xtensa/text-section-literals-2.s: New test
947         source.
948         * testsuite/gas/xtensa/text-section-literals-2a.d: New test
949         definition.
950         * testsuite/gas/xtensa/text-section-literals-3.d: New test
951         definition.
952         * testsuite/gas/xtensa/text-section-literals-3.s: New test
953         source.
954         * testsuite/gas/xtensa/text-section-literals-4.d: New test
955         definition.
956         * testsuite/gas/xtensa/text-section-literals-4.s: New test
957         source.
958         * testsuite/gas/xtensa/text-section-literals-4a.d: New test
959         definition.
960
961 2019-04-11  Max Filippov  <jcmvbkbc@gmail.com>
962
963         * testsuite/gas/xtensa/all.exp: Remove all expect-based
964         tests and all explicit run_dump_test / run_list_test
965         invocations. Add run_dump_tests for all .d files in the
966         test subdirectory.
967         * testsuite/gas/xtensa/entry_align.d: New test definition.
968         * testsuite/gas/xtensa/entry_align.l: New test output.
969         * testsuite/gas/xtensa/entry_misalign.d: New test definition.
970         * testsuite/gas/xtensa/entry_misalign2.d: New test definition.
971         * testsuite/gas/xtensa/j_too_far.d: New test definition.
972         * testsuite/gas/xtensa/j_too_far.l: New test output.
973         * testsuite/gas/xtensa/loop_align.d: New test definition.
974         * testsuite/gas/xtensa/loop_misalign.d: New test definition.
975         * testsuite/gas/xtensa/trampoline-2.d: New test definition.
976         * testsuite/gas/xtensa/trampoline-2.l: Remove empty output.
977         * testsuite/gas/xtensa/xtensa-err.exp: Use positive logic.
978
979 2019-04-11  Max Filippov  <jcmvbkbc@gmail.com>
980
981         * config/tc-xtensa.c (xtensa_literal_pseudo): Drop code that has
982         no effect.
983         (get_literal_pool_location): Only search for the literal pool
984         when auto litpools is used, otherwise take one recorded in the
985         tc_segment_info_data.
986         (xtensa_assign_litpool_addresses): New function.
987         (xtensa_move_literals): Don't duplicate 'literal pool location
988         required...' error message. Call xtensa_assign_litpool_addresses.
989
990 2019-04-11  Max Filippov  <jcmvbkbc@gmail.com>
991
992         * config/tc-xtensa.c (xtensa_is_init_fini): Add declaration.
993         (xtensa_mark_literal_pool_location): Don't add fill frag to literal
994         section that records literal pool location.
995         (md_begin): Call xtensa_mark_literal_pool_location when text
996         section literals or auto litpools are used.
997         (xtensa_elf_section_change_hook): Call
998         xtensa_mark_literal_pool_location when text section literals or
999         auto litpools are used, there's no literal pool location defined
1000         for the current section and it's not .init or .fini.
1001         * testsuite/gas/xtensa/auto-litpools-first1.d: Fix up addresses.
1002         * testsuite/gas/xtensa/auto-litpools-first2.d: Likewise.
1003         * testsuite/gas/xtensa/auto-litpools.d: Likewise.
1004
1005 2019-04-11  Sudakshina Das  <sudi.das@arm.com>
1006
1007         * config/tc-aarch64.c (process_omitted_operand): Add case for
1008         AARCH64_OPND_Rt_SP.
1009         (parse_operands): Likewise.
1010         * testsuite/gas/aarch64/armv8_5-a-memtag.d: Update tests.
1011         * testsuite/gas/aarch64/armv8_5-a-memtag.s: Likewise.
1012         * testsuite/gas/aarch64/illegal-memtag.l: Likewise.
1013         * testsuite/gas/aarch64/illegal-memtag.s: Likewise.
1014
1015 2019-04-11  Sudakshina Das  <sudi.das@arm.com>
1016
1017         * testsuite/gas/aarch64/armv8_5-a-memtag.d: New tests for ldgm and stgm.
1018         * testsuite/gas/aarch64/armv8_5-a-memtag.s: Likewise.
1019         * testsuite/gas/aarch64/illegal-memtag.l: Likewise.
1020         * testsuite/gas/aarch64/illegal-memtag.s: Likewise.
1021
1022 2019-04-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1023
1024         * config/tc-i386.c (need_plt32_p) [TE_SOLARIS]: Return FALSE.
1025         * testsuite/gas/i386/solaris/solaris.exp: New driver.
1026         * testsuite/gas/i386/solaris/reloc64.d,
1027         testsuite/gas/i386/solaris/x86-64-jump.d,
1028         testsuite/gas/i386/solaris/x86-64-mpx-branch-1.d,
1029         testsuite/gas/i386/solaris/x86-64-mpx-branch-2.d,
1030         testsuite/gas/i386/solaris/x86-64-nop-3.d,
1031         testsuite/gas/i386/solaris/x86-64-nop-4.d,
1032         testsuite/gas/i386/solaris/x86-64-nop-5.d,
1033         testsuite/gas/i386/solaris/x86-64-relax-2.d,
1034         testsuite/gas/i386/solaris/x86-64-relax-3.d: New tests.
1035         * testsuite/gas/i386/reloc64.d,
1036         testsuite/gas/i386/x86-64-jump.d,
1037         testsuite/gas/i386/x86-64-mpx-branch-1.d,
1038         testsuite/gas/i386/x86-64-mpx-branch-2.d,
1039         testsuite/gas/i386/x86-64-nop-3.d,
1040         testsuite/gas/i386/x86-64-nop-4.d,
1041         testsuite/gas/i386/x86-64-nop-5.d,
1042         testsuite/gas/i386/x86-64-relax-2.d,
1043         testsuite/gas/i386/x86-64-relax-3.d: Skip on *-*-solaris*.
1044
1045 2019-04-10  Alan Modra  <amodra@gmail.com>
1046
1047         * config/te-cloudabi.h: New file.
1048         * config/tc-aarch64.c (aarch64_after_parse_args): Use TE_CLOUDABI
1049         rather than TARGET_OS to select cloudabi.
1050         * config/tc-i386.h (ELF_TARGET_FORMAT64): Define for TE_CLOUDABI.
1051         * configure.tgt (*-*-cloudabi*): Set em=cloudabi.
1052
1053 2019-04-09  Robert Suchanek  <robert.suchanek@mips.com>
1054
1055         * testsuite/gas/mips/mips.exp: Run hwr-names test.
1056         * testsuite/gas/mips/hwr-names.s: Add test cases for RDHWR with
1057         the SEL field.
1058         * testsuite/gas/mips/mipsr6@hwr-names.d: New file.
1059
1060 2019-04-08  H.J. Lu  <hongjiu.lu@intel.com>
1061
1062         * config/tc-i386.c (output_insn): Support
1063         GNU_PROPERTY_X86_ISA_1_AVX512_BF16.
1064         * testsuite/gas/i386/property-2.s: Add AVX512_BF16 test.
1065         * testsuite/gas/i386/property-2.d: Updated.
1066         * testsuite/gas/i386/x86-64-property-2.d: Likewise.
1067
1068 2019-04-08  H.J. Lu  <hongjiu.lu@intel.com>
1069
1070         * configure.tgt: Remove i386-*-kaos* and i386-*-chaos targets.
1071         * testsuite/gas/i386/i386.exp: Remove *-*-caos* and "*-*-kaos*
1072         check.
1073
1074 2019-04-05  H.J. Lu  <hongjiu.lu@intel.com>
1075
1076         * testsuite/gas/i386/i386.exp: Run -mx86-used-note=yes tests.
1077         * testsuite/gas/i386/property-2.d: New file.
1078         * testsuite/gas/i386/property-2.s: Likewise.
1079         * testsuite/gas/i386/x86-64-property-2.d: Likewise.
1080
1081 2019-04-05  Xuepeng Guo  <xuepeng.guo@intel.com>
1082
1083         * config/tc-i386.c (cpu_arch): Add .avx512_bf16.
1084         (cpu_noarch): Add noavx512_bf16.
1085         * doc/c-i386.texi: Document avx512_bf16.
1086         * testsuite/gas/i386/avx512_bf16.d: New file.
1087         * testsuite/gas/i386/avx512_bf16.s: Likewise.
1088         * testsuite/gas/i386/avx512_bf16_vl-inval.l: Likewise.
1089         * testsuite/gas/i386/avx512_bf16_vl-inval.s: Likewise.
1090         * testsuite/gas/i386/avx512_bf16_vl.d: Likewise.
1091         * testsuite/gas/i386/avx512_bf16_vl.s: Likewise.
1092         * testsuite/gas/i386/x86-64-avx512_bf16.d: Likewise.
1093         * testsuite/gas/i386/x86-64-avx512_bf16.s: Likewise.
1094         * testsuite/gas/i386/x86-64-avx512_bf16_vl-inval.l: Likesie.
1095         * testsuite/gas/i386/x86-64-avx512_bf16_vl-inval.s: Likewise.
1096         * testsuite/gas/i386/x86-64-avx512_bf16_vl.d: Likewise.
1097         * testsuite/gas/i386/x86-64-avx512_bf16_vl.s: Likewise.
1098         * testsuite/gas/i386/i386.exp: Add BF16 related tests.
1099
1100 2019-04-05  Alan Modra  <amodra@gmail.com>
1101
1102         * testsuite/gas/ppc/bc.s,
1103         * testsuite/gas/ppc/bcat.d,
1104         * testsuite/gas/ppc/bcaterr.d,
1105         * testsuite/gas/ppc/bcaterr.l,
1106         * testsuite/gas/ppc/bcy.d,
1107         * testsuite/gas/ppc/bcyerr.d,
1108         * testsuite/gas/ppc/bcyerr.l: New tests.
1109         * testsuite/gas/ppc/ppc.exp: Run them.
1110
1111 2019-04-05  Alan Modra  <amodra@gmail.com>
1112
1113         * testsuite/gas/ppc/476.d: Remove trailing spaces.
1114         * testsuite/gas/ppc/a2.d: Likewise.
1115         * testsuite/gas/ppc/booke.d: Likewise.
1116         * testsuite/gas/ppc/booke_xcoff.d: Likewise.
1117         * testsuite/gas/ppc/e500.d: Likewise.
1118         * testsuite/gas/ppc/e500mc.d: Likewise.
1119         * testsuite/gas/ppc/e6500.d: Likewise.
1120         * testsuite/gas/ppc/htm.d: Likewise.
1121         * testsuite/gas/ppc/power6.d: Likewise.
1122         * testsuite/gas/ppc/power8.d: Likewise.
1123         * testsuite/gas/ppc/power9.d: Likewise.
1124         * testsuite/gas/ppc/vle.d: Likewise.
1125
1126 2019-04-04  Peter Bergner  <bergner@linux.ibm.com>
1127
1128         PR gas/24349
1129         * testsuite/gas/ppc/power8.s: (bdnztar, bdnztarl, bdztar, bdztarl,
1130         btar, btarl, bdnztar-, bdnztarl-, bdnztar+, bdnztarl+, bdztar-,
1131         bdztarl-, bdztar+, bdztarl+, bgetar, bnltar, bgetarl, bnltarl,
1132         bletar, bngtar, bletarl, bngtarl, bnetar, bnetarl, bnstar, bnutar,
1133         bnstarl, bnutarl, bgetar-, bnltar-, bgetarl-, bnltarl-, bletar-,
1134         bngtar-, bletarl-, bngtarl-, bnetar-, bnetarl-, bnstar-, bnutar-,
1135         bnstarl-, bnutarl-, bgetar+, bnltar+, bgetarl+, bnltarl+, bletar+,
1136         bngtar+, bletarl+, bngtarl+, bnetar+, bnetarl+, bnstar+, bnutar+,
1137         bnstarl+, bnutarl+, blttar, blttarl, bgttar, bgttarl, beqtar,
1138         beqtarl, bsotar, buntar, bsotarl, buntarl, blttar-, blttarl-,
1139         bgttar-, bgttarl-, beqtar-, beqtarl-, bsotar-, buntar-, bsotarl-,
1140         buntarl-, blttar+, blttarl+, bgttar+, bgttarl+, beqtar+, beqtarl+,
1141         bsotar+, buntar+, bsotarl+, buntarl+, bdnzftar, bdnzftarl, bdzftar,
1142         bdzftarl, bftar, bftarl, bftar-, bftarl-, bftar+, bftarl+, bdnzttar,
1143         bdnzttarl, bdzttar, bdzttarl, bttar, bttarl, bttar-, bttarl-, bttar+,
1144         bttarl+): Add tests of extended mnemonics.
1145         * testsuite/gas/ppc/power8.d: Likewise.  Update previous bctar tests
1146         to expect new extended mnemonics.
1147         * testsuite/gas/ppc/a2.s: <bc, bc-, bc+, bcl, bcl-, bcl+>: Update test
1148         to not use illegal BO value.  Use a more convenient BI value.
1149         * testsuite/gas/ppc/a2.d: Update tests for new expect output.
1150
1151 2019-04-03  Max Filippov  <jcmvbkbc@gmail.com>
1152
1153         * config/tc-xtensa.c (convert_frag_immed): Drop
1154         convert_frag_immed_finish_loop invocation.
1155         (convert_frag_immed_finish_loop): Drop declaration and
1156         definition.
1157         * config/xtensa-relax.c (widen_spec_list): Replace loop
1158         widening that uses addi/addmi with widening that uses l32r
1159         and const16.
1160
1161 2019-04-01  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1162
1163         * config/tc-arm.c (arm_ext_table): New struct type.
1164         (arm_arch_option_table): Add new 'arm_ext_table' field.
1165         (ARM_EXT,ARM_ADD,ARM_REMOVE, ALL_FP): New macros.
1166         (armv5te_ext_table, armv7ve_ext_table, armv7a_ext_table,
1167         armv7r_ext_table, armv7em_ext_table, armv8a_ext_table,
1168         armv81a_ext_table, armv82a_ext_table, armv84a_ext_table,
1169         armv85a_ext_table, armv8m_main_ext_table,
1170         armv8r_ext_table): New architecture extension tables.
1171         (ARM_ARCH_OPT): Add new default field.
1172         (ARM_ARCH_OPT2): New macro.
1173         (arm_archs): Extend some architectures with the new architecture
1174         extension tables mentioned above.
1175         (arm_extensions): Add DEPRECATED comment with instructions to
1176         use new table.
1177         (arm_parse_extension): Change to use new extension tables.
1178         (arm_parse_cpu): Don't change existing behavior.
1179         (arm_parse_arch): Change to use new extension tables.
1180         * doc/c-arm.texi: Document new architecture extensions.
1181         * testsuite/gas/arm/attr-mfpu-neon-fp16.d: Change test to use new
1182         extension option rather than -mfpu and change expected behaviour to
1183         sane outputs.
1184         * testsuite/gas/arm/armv8-2-fp16-scalar-bad-ext.d: New.
1185         * testsuite/gas/arm/armv8-2-fp16-scalar-ext.d: New.
1186         * testsuite/gas/arm/armv8-2-fp16-scalar-thumb-ext.d: New.
1187         * testsuite/gas/arm/armv8-2-fp16-simd-ext.d: New.
1188         * testsuite/gas/arm/armv8-2-fp16-simd-thumb-ext.d: New.
1189         * testsuite/gas/arm/armv8-2-fp16-simd-warning-ext.d: New.
1190         * testsuite/gas/arm/armv8-2-fp16-simd-warning-thumb-ext.d: New.
1191         * testsuite/gas/arm/armv8_2+rdma-ext.d: New.
1192         * testsuite/gas/arm/armv8_2-a-fp16-thumb2-ext.d: New.
1193         * testsuite/gas/arm/armv8_2-a-fp16_ext.d: New.
1194         * testsuite/gas/arm/armv8_3-a-fp-bad-ext.d: New.
1195         * testsuite/gas/arm/armv8_3-a-fp-ext.d: New.
1196         * testsuite/gas/arm/armv8_3-a-fp16-ext.d: New.
1197         * testsuite/gas/arm/armv8_3-a-simd-bad-ext.d: New.
1198         * testsuite/gas/arm/armv8_4-a-fp16-ext.d: New.
1199         * testsuite/gas/arm/armv8m.main+fp.d: New.
1200         * testsuite/gas/arm/armv8m.main+fp.dp.d: New.
1201         * testsuite/gas/arm/attr-ext-fpv5-d16.d: New.
1202         * testsuite/gas/arm/attr-ext-fpv5.d: New.
1203         * testsuite/gas/arm/attr-ext-idiv.d: New.
1204         * testsuite/gas/arm/attr-ext-mp.d: New.
1205         * testsuite/gas/arm/attr-ext-neon-fp16.d: New.
1206         * testsuite/gas/arm/attr-ext-neon-vfpv3.d: New.
1207         * testsuite/gas/arm/attr-ext-neon-vfpv4.d: New.
1208         * testsuite/gas/arm/attr-ext-sec.d: New.
1209         * testsuite/gas/arm/attr-ext-vfpv3-d16-fp16.d: New.
1210         * testsuite/gas/arm/attr-ext-vfpv3-d16.d: New.
1211         * testsuite/gas/arm/attr-ext-vfpv3-fp16.d: New.
1212         * testsuite/gas/arm/attr-ext-vfpv3.d: New.
1213         * testsuite/gas/arm/attr-ext-vfpv3xd-fp.d: New.
1214         * testsuite/gas/arm/attr-ext-vfpv3xd.d: New.
1215         * testsuite/gas/arm/attr-ext-vfpv4-d16.d: New.
1216         * testsuite/gas/arm/attr-ext-vfpv4-sp-d16.d: New.
1217         * testsuite/gas/arm/attr-ext-vfpv4.d: New.
1218         * testsuite/gas/arm/dotprod-mandatory-ext.d: New.
1219         * testsuite/gas/arm/fpv5-d16.s: New.
1220         * testsuite/gas/arm/fpv5-sp-d16.s: New.
1221
1222 2019-03-28  Alan Modra  <amodra@gmail.com>
1223
1224         PR 24390
1225         * testsuite/gas/ppc/476.d: Update mtfsb*.
1226         * testsuite/gas/ppc/a2.d: Likewise.
1227
1228 2019-03-21  Alan Modra  <amodra@gmail.com>
1229
1230         * emul.h (struct emulation): Delete strip_underscore.
1231         * emul-target.h (emul_strip_underscore): Don't define.
1232         (emul_struct_name): Update initialization.
1233
1234 2019-03-21  Alan Modra  <amodra@gmail.com>
1235
1236         * config/tc-d10v.c (md_apply_fix): Apply BFD_RELOC_8.
1237         * config/tc-pdp11.c (md_apply_fix): Likewise.
1238         * config/tc-d30v.c (md_apply_fix): Don't emit errors for BFD_RELOC_8,
1239         BFD_RELOC_16, and BFD_RELOC_64.
1240         * testsuite/gas/all/gas.exp: Move target exclusions for forward
1241         test, but not cr16, to..
1242         * testsuite/gas/all/forward.d: ..here, with explanation.  Remove
1243         d10v, d30v, and pdp11 xfails.
1244
1245 2019-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1246
1247         * config/tc-i386.c (optimize_encoding): Don't check AVX for
1248         EVEX vector load/store optimization.  Check both operands for
1249         ZMM register.  Update EVEX vector load/store opcode check.
1250         Choose EVEX Disp8 over VEX Disp32.
1251         * testsuite/gas/i386/optimize-1.d: Updated.
1252         * testsuite/gas/i386/optimize-1a.d: Likewise.
1253         * testsuite/gas/i386/optimize-2.d: Likewise.
1254         * testsuite/gas/i386/optimize-4.d: Likewise.
1255         * testsuite/gas/i386/optimize-5.d: Likewise.
1256         * testsuite/gas/i386/x86-64-optimize-2.d: Likewise.
1257         * testsuite/gas/i386/x86-64-optimize-2a.d: Likewise.
1258         * testsuite/gas/i386/x86-64-optimize-2b.d: Likewise.
1259         * testsuite/gas/i386/x86-64-optimize-3.d: Likewise.
1260         * testsuite/gas/i386/x86-64-optimize-5.d: Likewise.
1261         * testsuite/gas/i386/x86-64-optimize-6.d: Likewise.
1262         * testsuite/gas/i386/optimize-1.s: Add ZMM register load
1263         test.
1264         * testsuite/gas/i386/x86-64-optimize-2.s: Likewise.
1265
1266 2019-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1267
1268         PR gas/24352
1269         * config/tc-i386.c (optimize_encoding): Check only
1270         cpu_arch_flags.bitfield.cpuavx512vl.
1271         * testsuite/gas/i386/i386.exp: Run x86-64-optimize-2b.
1272         * testsuite/gas/i386/x86-64-optimize-2.d: Revert the last
1273         change.
1274         * testsuite/gas/i386/x86-64-optimize-2b.d: New file.
1275         * testsuite/gas/i386/x86-64-optimize-2b.s: Likewise.
1276
1277 2019-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1278
1279         PR gas/24359
1280         * testsuite/gas/i386/i386.exp: Change optimize-6a, optimize-7,
1281         x86-64-optimize-7a and x86-64-optimize-8 tests to run_list_test.
1282         Remove optimize-6c and x86-64-optimize-7c tests.
1283         * testsuite/gas/i386/noavx-3.l: Updated.
1284         * testsuite/gas/i386/noavx-4.d: Likewise.
1285         * testsuite/gas/i386/noavx-5.d: Likewise.
1286         * testsuite/gas/i386/noavx-3.s: Add AVX512F tests.
1287         * testsuite/gas/i386/noavx-4.s: Remove AVX512F tests.
1288         * testsuite/gas/i386/nosse-5.s: Likewise.
1289         * testsuite/gas/i386/optimize-6a.d: Removed.
1290         * testsuite/gas/i386/optimize-6c.d: Likewise.
1291         * testsuite/gas/i386/optimize-7.d: Likewise.
1292         * testsuite/gas/i386/x86-64-optimize-7a.d: Likewise.
1293         * testsuite/gas/i386/x86-64-optimize-7c.d: Likewise.
1294         * testsuite/gas/i386/x86-64-optimize-8.d: Likewise.
1295         * testsuite/gas/i386/optimize-6a.l: New file.
1296         * testsuite/gas/i386/optimize-6a.s: Likewise.
1297         * testsuite/gas/i386/optimize-7.l: Likewise.
1298         * testsuite/gas/i386/x86-64-optimize-7a.l: Likewise.
1299         * testsuite/gas/i386/x86-64-optimize-7a.s: Likewise.
1300         * testsuite/gas/i386/x86-64-optimize-8.l: Likewise.
1301
1302 2019-03-18  Alan Modra  <amodra@gmail.com>
1303
1304         * config/m68k-parse.y (yylex): Use temp_ilp and restore_ilp.
1305         * as.c (macro_expr): Likewise.
1306         * macro.c (buffer_and_nest): Likewise.
1307         * read.c (temp_ilp): Remove FIXME.
1308
1309 2019-03-18  H.J. Lu  <hongjiu.lu@intel.com>
1310
1311         * testsuite/gas/i386/att-regs.d: Pass -O0 to assembler.
1312         * testsuite/gas/i386/avx512bw-intel.d: Likewise.
1313         * testsuite/gas/i386/avx512bw.d: Likewise.
1314         * testsuite/gas/i386/avx512f-intel.d: Likewise.
1315         * testsuite/gas/i386/avx512f.d: Likewise.
1316         * testsuite/gas/i386/disp32.d: Likewise.
1317         * testsuite/gas/i386/intel-regs.d: Likewise.
1318         * testsuite/gas/i386/pseudos.d: Likewise.
1319         * testsuite/gas/i386/x86-64-disp32.d: Likewise.
1320         * testsuite/gas/i386/x86-64-pseudos.d: Likewise.
1321
1322 2019-03-18  H.J. Lu  <hongjiu.lu@intel.com>
1323
1324         PR gas/24348
1325         * config/tc-i386.c (optimize_encoding): Encode 128-bit and
1326         256-bit EVEX vector register load/store instructions as VEX
1327         vector register load/store instructions for -O1.
1328         * doc/c-i386.texi: Update -O1 documentation.
1329         * testsuite/gas/i386/i386.exp: Run PR gas/24348 tests.
1330         * testsuite/gas/i386/optimize-1.s: Add tests for EVEX vector
1331         load/store instructions.
1332         * testsuite/gas/i386/optimize-2.s: Likewise.
1333         * testsuite/gas/i386/optimize-3.s: Likewise.
1334         * testsuite/gas/i386/optimize-5.s: Likewise.
1335         * testsuite/gas/i386/x86-64-optimize-2.s: Likewise.
1336         * testsuite/gas/i386/x86-64-optimize-3.s: Likewise.
1337         * testsuite/gas/i386/x86-64-optimize-4.s: Likewise.
1338         * testsuite/gas/i386/x86-64-optimize-5.s: Likewise.
1339         * testsuite/gas/i386/x86-64-optimize-6.s: Likewise.
1340         * testsuite/gas/i386/optimize-1.d: Updated.
1341         * testsuite/gas/i386/optimize-2.d: Likewise.
1342         * testsuite/gas/i386/optimize-3.d: Likewise.
1343         * testsuite/gas/i386/optimize-4.d: Likewise.
1344         * testsuite/gas/i386/optimize-5.d: Likewise.
1345         * testsuite/gas/i386/x86-64-optimize-2.d: Likewise.
1346         * testsuite/gas/i386/x86-64-optimize-3.d: Likewise.
1347         * testsuite/gas/i386/x86-64-optimize-4.d: Likewise.
1348         * testsuite/gas/i386/x86-64-optimize-5.d: Likewise.
1349         * testsuite/gas/i386/x86-64-optimize-6.d: Likewise.
1350         * testsuite/gas/i386/optimize-7.d: New file.
1351         * testsuite/gas/i386/optimize-7.s: Likewise.
1352         * testsuite/gas/i386/x86-64-optimize-8.d: Likewise.
1353         * testsuite/gas/i386/x86-64-optimize-8.s: Likewise.
1354
1355 2019-03-18  H.J. Lu  <hongjiu.lu@intel.com>
1356
1357         * config/tc-i386.c (optimize_encoding): Encode 256-bit/512-bit
1358         VEX/EVEX vector register clearing instructions with 128-bit VEX
1359         vector register clearing instructions at -O1.
1360         * doc/c-i386.texi: Update -O1 and -O2 documentation.
1361         * testsuite/gas/i386/i386.exp: Run optimize-1a and
1362         x86-64-optimize-2a.
1363         * testsuite/gas/i386/optimize-1a.d: New file.
1364         * testsuite/gas/i386/x86-64-optimize-2a.d: Likewise.
1365
1366 2019-03-17  H.J. Lu  <hongjiu.lu@intel.com>
1367
1368         PR gas/24353
1369         * config/tc-i386.c: Include <limits.h> if it exists and try
1370         including <sys/param.h> if we have it.
1371         (INT_MAX): Define if not defined.
1372         (md_parse_option): Set optimize to INT_MAX for -Os.
1373         * testsuite/gas/i386/optimize-2.s: Add a test.
1374         * testsuite/gas/i386/x86-64-optimize-3.s: Likewise.
1375         * testsuite/gas/i386/optimize-2.d: Updated.
1376         * testsuite/gas/i386/x86-64-optimize-3.d: Likewise.
1377
1378 2019-03-17  H.J. Lu  <hongjiu.lu@intel.com>
1379
1380         PR gas/24352
1381         * config/tc-i386.c (optimize_encoding): Encode 512-bit EVEX
1382         with 128-bit VEX encoding only when AVX is enabled and with
1383         128-bit EVEX encoding only when AVX512VL is enabled.
1384         * testsuite/gas/i386/i386.exp: Run PR gas/24352 tests.
1385         * testsuite/gas/i386/optimize-6.s: New file.
1386         * testsuite/gas/i386/optimize-6a.d: Likewise.
1387         * testsuite/gas/i386/optimize-6b.d: Likewise.
1388         * testsuite/gas/i386/optimize-6c.d: Likewise.
1389         * testsuite/gas/i386/x86-64-optimize-7.s: Likewise.
1390         * testsuite/gas/i386/x86-64-optimize-7a.d: Likewise.
1391         * testsuite/gas/i386/x86-64-optimize-7b.d: Likewise.
1392         * testsuite/gas/i386/x86-64-optimize-7c.d: Likewise.
1393         * testsuite/gas/i386/x86-64-optimize-2.d: Updated.
1394
1395 2019-03-15  Li Hao  <li.hao296@zte.com.cn>
1396
1397         PR 24308
1398         * config/tc-i386.c (parse_insn): Check mnemp before using it to
1399         determine if a suffix can be trimmed.
1400
1401 2019-03-13  Christian Eggers  <ceggers@gmx.de>
1402
1403         * dwarf2dbg.c (out_set_addr): Align relocation within .debug_line.
1404
1405 2019-03-13  Christian Eggers  <ceggers@gmx.de>
1406
1407         * dwarf2dbg.c (out_debug_line): Pad size of .debug_line section.
1408
1409 2019-03-13  Christian Eggers  <ceggers@gmx.de>
1410
1411         * dwarf2dbg.c (out_debug_str): Use octets for .debug_string pointers.
1412
1413 2019-03-13  Christian Eggers  <ceggers@gmx.de>
1414
1415         * dwarf2dbg.c (out_debug_line): Use octets for .debug_line prologue.
1416
1417 2019-03-13  Christian Eggers  <ceggers@gmx.de>
1418
1419         * dwarf2dbg.c (out_debug_line): Use octets for dwarf2 headers.
1420         (out_debug_aranges, out_debug_info): Likewise.
1421
1422 2019-03-13  Christian Eggers  <ceggers@gmx.de>
1423
1424         * symbols.h (symbol_temp_new_now_octets): Declare.
1425         (symbol_set_value_now_octets, symbol_octets_p): Declare.
1426         * symbols.c (struct symbol_flags): New member sy_octets.
1427         (symbol_temp_new_now_octets): New function.
1428         (resolve_symbol_value): Return octets instead of bytes if
1429         sy_octets is set.
1430         (symbol_set_value_now_octets): New function.
1431         (symbol_octets_p): New function.
1432
1433 2019-03-13  Christian Eggers  <ceggers@gmx.de>
1434
1435         * dwarf2dbg.c (dwarf2_emit_insn): Fix calculation of line info offset.
1436
1437 2019-03-12  Andreas Krebbel  <krebbel@linux.ibm.com>
1438
1439         * testsuite/gas/s390/zarch-arch13.s: Adjust testcase to optable changes.
1440         * testsuite/gas/s390/zarch-arch13.d: Likewise.
1441
1442 2019-02-27  Matthew Malcomson  <matthew.malcomson@arm.com>
1443
1444         * testsuite/gas/aarch64/dotproduct.d: Use multiple "as" lines.
1445         * testsuite/gas/aarch64/dotproduct_armv8_4.d: Remove.
1446         * testsuite/gas/aarch64/dotproduct_armv8_4.s: Remove.
1447         * testsuite/gas/aarch64/illegal-dotproduct.d: Use multiple "as"
1448         lines.
1449         * testsuite/gas/aarch64/ldst-rcpc-armv8_2.d: Remove.
1450         * testsuite/gas/aarch64/ldst-rcpc.d: Use multiple "as" lines.
1451
1452 2019-02-24  Alan Modra  <amodra@gmail.com>
1453
1454         * config/tc-ppc.c (parse_tls_arg): Wrap in #ifdef OBJ_ELF.
1455
1456 2019-02-24  Alan Modra  <amodra@gmail.com>
1457
1458         PR 24144
1459         * config/obj-aout.c (obj_aout_frob_file_before_fix): Write to end
1460         of section to ensure file contents cover aligned section size.
1461
1462 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1463
1464         * config/tc-arm.c (arm_cpus): Add neoverse-n1.
1465         * doc/c-arm.texi (-mcpu): Document neoverse-n1 value.
1466
1467 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1468
1469         * config/tc-aarch64.c (aarch64_cpus): Add neoverse-e1.
1470         * doc/c-aarch64.texi (-mcpu): Document neoverse-e1 value.
1471
1472 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1473
1474         * config/tc-aarch64.c (aarch64_cpus): Add neoverse-n1.
1475         * doc/c-aarch64.texi (-mcpu): Document neoverse-n1 value.
1476
1477 2019-02-19  Paul Hua  <paul.hua.gm@gmail.com>
1478
1479         * NEWS: Mention -m[no-]fix-loongson3-llsc.
1480         * configure.ac: Add --enable-mips-fix-loongson3-llsc.
1481         Define DEFAULT_MIPS_FIX_LOONGSON3_LLSC.
1482         * config.in: Regenerated.
1483         * configure: Likewise.
1484         * config/tc-mips.c (sync_insn, mips_fix_loongson3_llsc):
1485         New variables.
1486         (options): New OPTION_FIX_LOONGSON3_LLSC,
1487         OPTION_NO_FIX_LOONGSON3_LLSC.
1488         (md_longopts): Add -m[no-]fix-loongson3-llsc.
1489         (md_begin): Initialize sync insn.
1490         (fix_loongson3_llsc): New.
1491         (append_insn): Call fix_loongson3_llsc.
1492         (md_parse_option): Handle OPTION_FIX_LOONGSON3_LLSC,
1493         OPTION_NO_FIX_LOONGSON3_LLSC.
1494         (md_show_usage): Display -m[no-]fix-loongson3-llsc.
1495         * doc/c-mips.texi: Document -m[no-]fix-loongson3-llsc,
1496         --enable-mips-fix-loongson3-llsc=[yes|no].
1497
1498 2019-02-10  H.J. Lu  <hongjiu.lu@intel.com>
1499
1500         PR gas/24165
1501         * frags.c (frag_var_init): Pass max_chars to TC_FRAG_INIT as
1502         max_bytes.
1503         * config/tc-aarch64.h (TC_FRAG_INIT): Add and pass max_bytes to
1504         aarch64_init_frag.
1505         * /config/tc-arm.h (TC_FRAG_INIT): And and pass max_bytes to
1506         arm_init_frag.
1507         * config/tc-avr.h (TC_FRAG_INIT): And and ignore max_bytes.
1508         * config/tc-ia64.h (TC_FRAG_INIT): Likewise.
1509         * config/tc-mmix.h (TC_FRAG_INIT): Likewise.
1510         * config/tc-nds32.h (TC_FRAG_INIT): Likewise.
1511         * config/tc-ns32k.h (TC_FRAG_INIT): Likewise.
1512         * config/tc-rl78.h (TC_FRAG_INIT): Likewise.
1513         * config/tc-rx.h (TC_FRAG_INIT): Likewise.
1514         * config/tc-score.h (TC_FRAG_INIT): Likewise.
1515         * config/tc-tic54x.h (TC_FRAG_INIT): Likewise.
1516         * config/tc-tic6x.h (TC_FRAG_INIT): Likewise.
1517         * config/tc-xtensa.h (TC_FRAG_INIT): Likewise.
1518         * config/tc-i386.h (MAX_MEM_FOR_RS_ALIGN_CODE): Set to
1519         (alignment ? ((1 << alignment) - 1) : 1)
1520         (i386_tc_frag_data): Add max_bytes.
1521         (TC_FRAG_INIT): Add and track max_bytes.
1522         (HANDLE_ALIGN): Replace MAX_MEM_FOR_RS_ALIGN_CODE with
1523         fragP->tc_frag_data.max_bytes.
1524         * doc/internals.texi: Update TC_FRAG_TYPE with max_bytes.
1525
1526 2019-02-08  Jim Wilson  <jimw@sifive.com>
1527
1528         * config/tc-riscv.c (validate_riscv_insn) <'C'>: Add 'z' support.
1529         (riscv_ip) <'C'>: Add 'z' support.
1530
1531 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
1532
1533         * config/tc-arm.c (insns): Redefine THUMB_VARIANT and ARM_VARIANT for
1534         hlt to armv1.
1535         * testsuite/gas/arm/armv8a-automatic-hlt.d: Update TAGs
1536         * testsuite/gas/arm/hlt.d: New test.
1537         * testsuite/gas/arm/hlt.s: New test.
1538
1539 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
1540
1541         * testsuite/gas/aarch64/undefined_advsimd_armv8_3.d: New test.
1542         * testsuite/gas/aarch64/undefined_advsimd_armv8_3.s: New test.
1543
1544 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
1545
1546         PR binutils/23212
1547         * testsuite/gas/aarch64/undefined_by_elem_sz_l.s: New test.
1548         * testsuite/gas/aarch64/undefined_by_elem_sz_l.d: New test.
1549
1550 2019-02-07  Eric Botcazou  <ebotcazou@adacore.com>
1551
1552         * config/tc-visium.c (md_assemble) <mode_cad>: Align instruction on
1553         64-bit boundaries for the GR6.
1554         * testsuite/gas/visium/allinsn_gr6.s: Tweak.
1555         * testsuite/gas/visium/allinsn_gr6.d: Likewise.
1556         * testsuite/gas/visium/bra-1.d: New test.
1557         * testsuite/gas/visium/bra-1.s: Likewise.
1558         * testsuite/gas/visium/visium.exp: Run bra-1 test.
1559
1560 2019-01-31  John Darrington <john@darrington.wattle.id.au>
1561
1562         * config/tc-s12z.c (lex_imm): Add new argument exp_o.
1563         (emit_reloc): New function.
1564         (md_apply_fix): [BFD_RELOC_S12Z_OPR] Recognise that it
1565         can be either 2 bytes or 3 bytes long.
1566         * testsuite/gas/s12z/mov-imm-reloc.d: New file.
1567         * testsuite/gas/s12z/mov-imm-reloc.s: New file.
1568         * testsuite/gas/s12z/s12z.exp: Add them.
1569
1570 2019-01-31  John Darrington <john@darrington.wattle.id.au>
1571
1572         * config/tc-s12z.c (md_apply_fix): Fix incorrect limits.
1573         * testsuite/gas/s12z/pc-rel-bad.d: New file.
1574         * testsuite/gas/s12z/pc-rel-bad.l: New file.
1575         * testsuite/gas/s12z/pc-rel-bad.s: New file.
1576         * testsuite/gas/s12z/pc-rel-good.d: New file.
1577         * testsuite/gas/s12z/pc-rel-good.s: New file.
1578         * testsuite/gas/s12z/s12z.exp: Add them.
1579
1580 2019-01-31  John Darrington <john@darrington.wattle.id.au>
1581
1582         * config/tc-s12z.c (tfr): Emit warning if operands are the same.
1583         * testsuite/gas/s12z/exg.d: New test case.
1584         * testsuite/gas/s12z/exg.l: New file.
1585
1586 2019-01-31  John Darrington <john@darrington.wattle.id.au>
1587
1588         * config/tc-s12z.c (lex_opr): Add a parameter to indicate whether
1589         immediate mode operands should be permitted.
1590         * testsuite/s12z/imm-dest.d: New file.
1591         * testsuite/s12z/imm-dest.l: New file.
1592         * testsuite/s12z/imm-dest.s: New file.
1593         * testsuite/s12z/s12z.exp: Add them.
1594
1595 2019-01-31  Andreas Krebbel  <krebbel@linux.ibm.com>
1596
1597         * config/tc-s390.c (s390_parse_cpu): New entry for arch13.
1598         * doc/c-s390.texi: Document arch13 march option.
1599         * testsuite/gas/s390/s390.exp: Run the arch13 related tests.
1600         * testsuite/gas/s390/zarch-arch13.d: New test.
1601         * testsuite/gas/s390/zarch-arch13.s: New test.
1602         * testsuite/gas/s390/zarch-z13.d: Expect the renamed mnemonics
1603         also for z13.
1604
1605 2019-01-31  Alan Modra  <amodra@gmail.com>
1606
1607         * config/tc-alpha.c (md_apply_fix): Correct range checks for
1608         BFD_RELOC_ALPHA_NOP, BFD_RELOC_ALPHA_LDA, BFD_RELOC_ALPHA_BSR.
1609         * config/tc-arm.c (md_apply_fix): Use llabs rather than abs.
1610         * config/tc-csky.c (get_macro_reg_vals): Pass s to csky_show_error.
1611
1612 2019-01-28  Max Filippov  <jcmvbkbc@gmail.com>
1613
1614         * config/tc-xtensa.c (md_apply_fix): Mark fixups for constant
1615         symbols as done in md_apply_fix.
1616         * testsuite/gas/all/forward.d: Don't XFAIL for xtensa.
1617
1618 2019-01-28  Nick Clifton  <nickc@redhat.com>
1619
1620         * po/fr.po: Updated French translation.
1621         * po/ru.po: Updated Russian translation.
1622
1623 2019-01-28  Alan Modra  <amodra@gmail.com>
1624
1625         * configure.ac (ac_checking): Set from bfd/development.sh
1626         development variable.
1627         * configure: Regenerate.
1628
1629 2019-01-25  Sudakshina Das  <sudi.das@arm.com>
1630
1631         * config/tc-aarch64.c (warn_unpredictable_ldst): Exempt
1632         stg, st2g, stzg and stz2g from Xt == Xn with writeback warning.
1633         * testsuite/gas/aarch64/armv8_5-a-memtag.d: Change tests for
1634         stg, stzg, st2g and stz2g.
1635         * testsuite/gas/aarch64/armv8_5-a-memtag.s: Likewise.
1636         * testsuite/gas/aarch64/illegal-memtag.l: Likewise.
1637         * testsuite/gas/aarch64/illegal-memtag.s: Likewise.
1638
1639 2019-01-25  Sudakshina Das  <sudi.das@arm.com>
1640
1641         * testsuite/gas/aarch64/armv8_5-a-memtag.d: New tests for stzgm.
1642         * testsuite/gas/aarch64/armv8_5-a-memtag.s: Likewise.
1643         * testsuite/gas/aarch64/illegal-memtag.l: Likewise.
1644         * testsuite/gas/aarch64/illegal-memtag.s: Likewise.
1645
1646 2019-01-25  Sudakshina Das  <sudi.das@arm.com>
1647             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1648
1649         * config/tc-aarch64.c (parse_address_main): Remove support for
1650         [base]! address expression.
1651         (parse_operands): Remove support for AARCH64_OPND_ADDR_SIMPLE_2.
1652         (warn_unpredictable_ldst): Remove support for ldstgv_indexed.
1653         * testsuite/gas/aarch64/armv8_5-a-memtag.d: Remove tests for ldgv
1654         and stgv.
1655         * testsuite/gas/aarch64/armv8_5-a-memtag.s: Likewise.
1656         * testsuite/gas/aarch64/illegal-memtag.l: Likewise.
1657         * testsuite/gas/aarch64/illegal-memtag.s: Likewise.
1658
1659 2019-01-25  Wu Heng  <wu.heng@zte.com.cn>
1660
1661         PR gas/23940
1662         * macro.c (getstring): Check array bound before accessing.
1663
1664 2019-01-25  Alan Modra  <amodra@gmail.com>
1665
1666         PR 20902
1667         PR 24125
1668         * read.c (stringer): Delete assertion.
1669
1670 2019-01-21  Nick Clifton  <nickc@redhat.com>
1671
1672         * po/uk.po: Updated Ukranian translation.
1673
1674 2019-01-19  Nick Clifton  <nickc@redhat.com>
1675
1676         * config.in: Regenerate.
1677         * configure: Regenerate.
1678         * po/gas.pot: Regenerate.
1679
1680 2018-06-24  Nick Clifton  <nickc@redhat.com>
1681
1682         2.32 branch created.
1683
1684 2019-01-17  Tamar Christina  <tamar.christina@arm.com>
1685
1686         * testsuite/gas/arm/archv6t2-1-pe.d: New test.
1687         * testsuite/gas/arm/archv6t2-1.d: Skip pe.
1688         * testsuite/gas/arm/csdb.d: Skip pe.
1689         * testsuite/gas/arm/sb-thumb1-pe.d: New test.
1690         * testsuite/gas/arm/sb-thumb1.d: Skip pe.
1691         * testsuite/gas/arm/sb-thumb2-pe.d: New test.
1692         * testsuite/gas/arm/sb-thumb2.d: Skip pe.
1693         * testsuite/gas/arm/udf.d: Skip pe.
1694
1695 2019-01-16  Kito Cheng  <kito@andestech.com>
1696
1697         * testsuite/gas/riscv/attribute-empty.d: New.
1698
1699 2019-01-16  Kito Cheng  <kito@andestech.com>
1700             Nelson Chu  <nelson@andestech.com>
1701
1702         * config/tc-riscv.c (DEFAULT_RISCV_ATTR): Define to 0 if not defined.
1703         (riscv_set_options): Add `arch_attr` field.
1704         (riscv_opts): Set default value for arch_attr.
1705         (riscv_write_out_arch_attr): New.
1706         (riscv_set_public_attributes): Likewise.
1707         (riscv_md_end): Likewise.
1708         (riscv_convert_symbolic_attribute): Likewise.
1709         (s_riscv_attribute): Likewise.
1710         (explicit_arch_attr): Likewise.
1711         (riscv_pseudo_table): Add .attribute to the table.
1712         (options): Add OPTION_ARCH_ATTR and OPTION_NO_ARCH_ATTR
1713         enumeration constants.
1714         (md_longopts): Add `march-attr' and `mno-arch-attr' options.
1715         (md_parse_option): Handle the new options.
1716         (md_show_usage): Document the `march-attr' option.
1717         * config/tc-riscv.h (md_end): Define as riscv_md_end
1718         (riscv_md_end): Declare.
1719         (CONVERT_SYMBOLIC_ATTRIBUTE): Define as
1720         riscv_convert_symbolic_attribute.
1721         (riscv_convert_symbolic_attribute): Declare.
1722         (start_assemble): Declare.
1723         * testsuite/gas/elf/elf.exp: Adjust test case for section2.e.
1724         * testsuite/gas/elf/section2.e-riscv: New.
1725         * testsuite/gas/riscv/attribute-01.d: New test
1726         * testsuite/gas/riscv/attribute-02.d: Likewise.
1727         * testsuite/gas/riscv/attribute-03.d: Likewise.
1728         * testsuite/gas/riscv/attribute-04.d: Likewise.
1729         * testsuite/gas/riscv/attribute-04.s: Likewise.
1730         * testsuite/gas/riscv/attribute-05.d: Likewise.
1731         * testsuite/gas/riscv/attribute-05.s: Likewise.
1732         * testsuite/gas/riscv/attribute-06.d: Likewise.
1733         * testsuite/gas/riscv/attribute-06.s: Likewise.
1734         * testsuite/gas/riscv/attribute-07.d: Likewise.
1735         * testsuite/gas/riscv/attribute-07.s: Likewise.
1736         * testsuite/gas/riscv/attribute-08.d: Likewise.
1737         * testsuite/gas/riscv/attribute-08.s: Likewise.
1738         * testsuite/gas/riscv/attribute-unknown.d: Likewise.
1739         * testsuite/gas/riscv/attribute-unknown.s: Likewise.
1740         * testsuite/gas/riscv/empty.l: Likewise.
1741         * doc/c-riscv.texi (.attribute): Add documentation.
1742         * configure.ac (--enable-default-riscv-attribute): New options.
1743         * configure: Re-generate.
1744         * config.in: Re-generate.
1745
1746 2019-01-16  John Darrington <john@darrington.wattle.id.au>
1747
1748         * config/tc-s12z.c (lex_reg_name): Compare the length of the strings
1749         before the contents.
1750         * testsuite/gas/s12z/labels.d: New file.
1751         * testsuite/gas/s12z/labels.s: New file.
1752         * testsuite/gas/s12z/s12z.exp: Add them.
1753         * config/tc-s12z.c (tfr): Change as_bad to as_warn.
1754         Also fix message typo and semantics.
1755         * config/tc-s12z.c (emit_opr): Emit BFD_RELOC_S12Z_OPR instead of
1756         BFD_RELOC_24.
1757         * testsuite/gas/s12z/opr-indirect-expr.d: Expect R_S12Z_OPR instead
1758         of R_S12Z_EXT24.
1759
1760 2019-01-14  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
1761
1762         * config/tc-arm.c (arm_ext_v6k_v6t2): Define.
1763         (insns) [ARM_VARIANT]: Modified.
1764         (insns) [THUMB_VARIANT]: To implement few ARMv6K instructions
1765         in ARMv6T2 as well.
1766         * testsuite/gas/arm/archv6t2-1.d: New test.
1767         * testsuite/gas/arm/archv6t2-1.s: Likewise.
1768         * testsuite/gas/arm/archv6t2-2.d: Likewise.
1769
1770 2019-01-11  Alan Modra  <amodra@gmail.com>
1771
1772         PR 23963
1773         * testsuite/gas/m68hc11/lbranch-dwarf2.d: Adjust for PR23963 change.
1774         * testsuite/gas/m68hc11/opers12-dwarf2.d: Likewise.
1775
1776 2019-01-10  Nick Clifton  <nickc@redhat.com>
1777
1778         PR 23963
1779         * testsuite/gas/mips/mips16-branch-absolute-1.d: Adjust for the
1780         fact that control characters are now displayed as escape
1781         sequences.
1782         * testsuite/gas/mips/mips16-e.d: Likewise.
1783         * testsuite/gas/mips/mips16-pcrel-0.d: Likewise.
1784         * testsuite/gas/mips/mips16-pcrel-1.d: Likewise.
1785         * testsuite/gas/mips/mips16-pcrel-delay-0.d: Likewise.
1786         * testsuite/gas/mips/mips16-pcrel-delay-1.d: Likewise.
1787         * testsuite/gas/mips/mips16-pcrel-n32-0.d: Likewise.
1788         * testsuite/gas/mips/mips16-pcrel-n32-1.d: Likewise.
1789         * testsuite/gas/mips/mips16-pcrel-n64-sym32-0.d: Likewise.
1790         * testsuite/gas/mips/mips16-pcrel-n64-sym32-1.d: Likewise.
1791         * testsuite/gas/mips/mips16e2@mips16-pcrel-0.d: Likewise.
1792         * testsuite/gas/mips/mips16e2@mips16-pcrel-1.d: Likewise.
1793         * testsuite/gas/mips/mips16e2@mips16-pcrel-delay-0.d: Likewise.
1794         * testsuite/gas/mips/mips16e2@mips16-pcrel-delay-1.d: Likewise.
1795         * testsuite/gas/mips/mips16e2@mips16-pcrel-n32-0.d: Likewise.
1796         * testsuite/gas/mips/mips16e2@mips16-pcrel-n32-1.d: Likewise.
1797         * testsuite/gas/mips/mips16e2@mips16-pcrel-n64-sym32-0.d:
1798         Likewise.
1799         * testsuite/gas/mips/mips16e2@mips16-pcrel-n64-sym32-1.d:
1800         Likewise.
1801         * testsuite/gas/mips/mipsel16-e.d: Likewise.
1802         * testsuite/gas/mips/mipsr6@msa.d: Likewise.
1803         * testsuite/gas/mips/mipsr6@relax-swap3.d: Likewise.
1804         * testsuite/gas/mips/r6-64-n32.d: Likewise.
1805         * testsuite/gas/mips/r6-64-n64.d: Likewise.
1806         * testsuite/gas/mips/r6-n32.d: Likewise.
1807         * testsuite/gas/mips/r6-n64.d: Likewise.
1808         * testsuite/gas/mips/r6.d: Likewise.
1809         * testsuite/gas/mips/tmips16-e.d: Likewise.
1810         * testsuite/gas/mips/tmipsel16-e.d: Likewise.
1811         * testsuite/gas/mn10300/relax.d: Likewise.
1812
1813 2019-01-09  John Darrington <john@darrington.wattle.id.au>
1814
1815         * testsuite/gas/s12z/jsr.s: New case.
1816         * testsuite/gas/s12z/jsr.d: New case.
1817
1818 2019-01-09  Andrew Paprocki  <andrew@ishiboo.com>
1819
1820         * configure: Regenerate.
1821
1822 2019-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1823
1824         * config/tc-aarch64.c (aarch64_cpus): Add ares.
1825         * doc/c-aarch64.texi (-mcpu): Document ares value.
1826
1827 2019-01-08  Alan Modra  <amodra@gmail.com>
1828
1829         * testsuite/gas/rx/rx.exp: Create generated test source in
1830         current directory.
1831         * testsuite/gas/rx/Xtod.d, * testsuite/gas/rx/abs.d,
1832         * testsuite/gas/rx/adc.d, * testsuite/gas/rx/add.d,
1833         * testsuite/gas/rx/and.d, * testsuite/gas/rx/bclr.d,
1834         * testsuite/gas/rx/bcnd.d, * testsuite/gas/rx/bfmov.d,
1835         * testsuite/gas/rx/bmcnd.d, * testsuite/gas/rx/bnot.d,
1836         * testsuite/gas/rx/bra.d, * testsuite/gas/rx/brk.d,
1837         * testsuite/gas/rx/bset.d, * testsuite/gas/rx/bsr.d,
1838         * testsuite/gas/rx/btst.d, * testsuite/gas/rx/clrpsw.d,
1839         * testsuite/gas/rx/cmp.d, * testsuite/gas/rx/dabs.d,
1840         * testsuite/gas/rx/dadd.d, * testsuite/gas/rx/dbt.d,
1841         * testsuite/gas/rx/dcmp.d, * testsuite/gas/rx/ddiv.d,
1842         * testsuite/gas/rx/div.d, * testsuite/gas/rx/divu.d,
1843         * testsuite/gas/rx/dmov.d, * testsuite/gas/rx/dmul.d,
1844         * testsuite/gas/rx/dneg.d, * testsuite/gas/rx/dpopm.d,
1845         * testsuite/gas/rx/dpushm.d, * testsuite/gas/rx/dround.d,
1846         * testsuite/gas/rx/dsqrt.d, * testsuite/gas/rx/dsub.d,
1847         * testsuite/gas/rx/dtoX.d, * testsuite/gas/rx/emaca.d,
1848         * testsuite/gas/rx/emsba.d, * testsuite/gas/rx/emul.d,
1849         * testsuite/gas/rx/emula.d, * testsuite/gas/rx/emulu.d,
1850         * testsuite/gas/rx/fadd.d, * testsuite/gas/rx/fcmp.d,
1851         * testsuite/gas/rx/fdiv.d, * testsuite/gas/rx/fmul.d,
1852         * testsuite/gas/rx/fsqrt.d, * testsuite/gas/rx/fsub.d,
1853         * testsuite/gas/rx/ftoi.d, * testsuite/gas/rx/ftou.d,
1854         * testsuite/gas/rx/gprel.d, * testsuite/gas/rx/int.d,
1855         * testsuite/gas/rx/itof.d, * testsuite/gas/rx/jmp.d,
1856         * testsuite/gas/rx/jsr.d, * testsuite/gas/rx/machi.d,
1857         * testsuite/gas/rx/maclh.d, * testsuite/gas/rx/maclo.d,
1858         * testsuite/gas/rx/max.d, * testsuite/gas/rx/min.d,
1859         * testsuite/gas/rx/mov.d, * testsuite/gas/rx/movco.d,
1860         * testsuite/gas/rx/movli.d, * testsuite/gas/rx/movu.d,
1861         * testsuite/gas/rx/msbhi.d, * testsuite/gas/rx/msblh.d,
1862         * testsuite/gas/rx/msblo.d, * testsuite/gas/rx/mul.d,
1863         * testsuite/gas/rx/mulhi.d, * testsuite/gas/rx/mullh.d,
1864         * testsuite/gas/rx/mullo.d, * testsuite/gas/rx/mvfacgu.d,
1865         * testsuite/gas/rx/mvfachi.d, * testsuite/gas/rx/mvfaclo.d,
1866         * testsuite/gas/rx/mvfacmi.d, * testsuite/gas/rx/mvfc.d,
1867         * testsuite/gas/rx/mvfcp.d, * testsuite/gas/rx/mvfdc.d,
1868         * testsuite/gas/rx/mvfdr.d, * testsuite/gas/rx/mvtacgu.d,
1869         * testsuite/gas/rx/mvtachi.d, * testsuite/gas/rx/mvtaclo.d,
1870         * testsuite/gas/rx/mvtc.d, * testsuite/gas/rx/mvtcp.d,
1871         * testsuite/gas/rx/mvtdc.d, * testsuite/gas/rx/neg.d,
1872         * testsuite/gas/rx/nop.d, * testsuite/gas/rx/not.d,
1873         * testsuite/gas/rx/opecp.d, * testsuite/gas/rx/or.d,
1874         * testsuite/gas/rx/pop.d, * testsuite/gas/rx/popc.d,
1875         * testsuite/gas/rx/popm.d, * testsuite/gas/rx/push.d,
1876         * testsuite/gas/rx/pushc.d, * testsuite/gas/rx/pushm.d,
1877         * testsuite/gas/rx/r-bcc.d, * testsuite/gas/rx/r-bra.d,
1878         * testsuite/gas/rx/racl.d, * testsuite/gas/rx/racw.d,
1879         * testsuite/gas/rx/rdacl.d, * testsuite/gas/rx/rdacw.d,
1880         * testsuite/gas/rx/revl.d, * testsuite/gas/rx/revw.d,
1881         * testsuite/gas/rx/rmpa.d, * testsuite/gas/rx/rolc.d,
1882         * testsuite/gas/rx/rorc.d, * testsuite/gas/rx/rotl.d,
1883         * testsuite/gas/rx/rotr.d, * testsuite/gas/rx/round.d,
1884         * testsuite/gas/rx/rstr.d, * testsuite/gas/rx/rte.d,
1885         * testsuite/gas/rx/rtfi.d, * testsuite/gas/rx/rts.d,
1886         * testsuite/gas/rx/rtsd.d, * testsuite/gas/rx/sat.d,
1887         * testsuite/gas/rx/satr.d, * testsuite/gas/rx/save.d,
1888         * testsuite/gas/rx/sbb.d, * testsuite/gas/rx/sccnd.d,
1889         * testsuite/gas/rx/scmpu.d, * testsuite/gas/rx/setpsw.d,
1890         * testsuite/gas/rx/shar.d, * testsuite/gas/rx/shll.d,
1891         * testsuite/gas/rx/shlr.d, * testsuite/gas/rx/smovb.d,
1892         * testsuite/gas/rx/smovf.d, * testsuite/gas/rx/smovu.d,
1893         * testsuite/gas/rx/sstr.d, * testsuite/gas/rx/stnz.d,
1894         * testsuite/gas/rx/stz.d, * testsuite/gas/rx/sub.d,
1895         * testsuite/gas/rx/suntil.d, * testsuite/gas/rx/swhile.d,
1896         * testsuite/gas/rx/tst.d, * testsuite/gas/rx/utof.d,
1897         * testsuite/gas/rx/wait.d, * testsuite/gas/rx/xchg.d,
1898         * testsuite/gas/rx/xor.d: Add #source line.
1899
1900 2019-01-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1901
1902         * config/tc-arm.c (arm_cpus): Add ares.
1903         * doc/c-arm.texi (-mcpu): Document ares value.
1904
1905 2019-01-05  Yoshinori Sato  <ysato@users.sourceforge.jp>
1906
1907         * config/rx-defs.h (rx_cpu_types): Add type RXV3 and RXV3FPU.
1908         (rx_bfield): Add prototype.
1909         (rx_post): Likewise.
1910         * config/rx-parse.y: Add v3 instructions and Double FPU registers.
1911         (DSIZE): Define.
1912         (POST): Define.
1913         (rx_check_v3): New. check v3 type.
1914         (rx_check_dfpu): New. check have double support.
1915         (double_condition_table): New. dcmp<cond> contiditon.
1916         (check_condition): Multiple condition support.
1917         (rx_lex): RXv3 instructions support.
1918         Add parse dcmp<cond> instruction and Double FPU registers.
1919         (immediate): Disable optimize in dmov #imm case.
1920         (displacement): Add double displacement in dmov instraction.
1921         * config/tc-rx.c (rx_use_conventional_section_names):
1922         Invert default value in rx-*-linux target.
1923         (cpu_type): Add additional ELF flags.
1924         (cpu_type_list): Add RXv3.
1925         (md_parse_option): Refer elf_flags from cpu_type_list.
1926         (md_show_usage): Add rxv3 and rxv3-dfpu.
1927         (rx_bytesT): Add post byte.
1928         (rx_bfield): New. generate bfmov / bfmovz "imm" field.
1929         (rx_post): New. Set instruction post byte.
1930         (md_assemble): Add post byte.
1931         doc/c-rx.texi: Add cpu types.
1932         * testsuite/gas/rx/Xtod.d: New.
1933         * testsuite/gas/rx/Xtod.sm: New.
1934         * testsuite/gas/rx/bfmov.d: New.
1935         * testsuite/gas/rx/bfmov.sm: New.
1936         * testsuite/gas/rx/dabs.d: New.
1937         * testsuite/gas/rx/dabs.sm: New.
1938         * testsuite/gas/rx/dadd.d: New.
1939         * testsuite/gas/rx/dadd.sm: New.
1940         * testsuite/gas/rx/dcmp.d: New.
1941         * testsuite/gas/rx/dcmp.sm: New.
1942         * testsuite/gas/rx/ddiv.d: New.
1943         * testsuite/gas/rx/ddiv.sm: New.
1944         * testsuite/gas/rx/dmov.d: New.
1945         * testsuite/gas/rx/dmov.sm: New.
1946         * testsuite/gas/rx/dmul.d: New.
1947         * testsuite/gas/rx/dmul.sm: New.
1948         * testsuite/gas/rx/dneg.d: New.
1949         * testsuite/gas/rx/dneg.sm: New.
1950         * testsuite/gas/rx/dpopm.d: New.
1951         * testsuite/gas/rx/dpopm.sm: New.
1952         * testsuite/gas/rx/dpushm.d: New.
1953         * testsuite/gas/rx/dpushm.sm: New.
1954         * testsuite/gas/rx/dround.d: New.
1955         * testsuite/gas/rx/dround.sm: New.
1956         * testsuite/gas/rx/dsqrt.d: New.
1957         * testsuite/gas/rx/dsqrt.sm: New.
1958         * testsuite/gas/rx/dsub.d: New.
1959         * testsuite/gas/rx/dsub.sm: New.
1960         * testsuite/gas/rx/dtoX.d: New.
1961         * testsuite/gas/rx/dtoX.sm: New.
1962         * testsuite/gas/rx/macros.inc: Add double FPU registers.
1963         * testsuite/gas/rx/mvfdc.d: New.
1964         * testsuite/gas/rx/mvfdc.sm: New.
1965         * testsuite/gas/rx/mvfdr.d: New.
1966         * testsuite/gas/rx/mvfdr.sm: New.
1967         * testsuite/gas/rx/mvtdc.d: New.
1968         * testsuite/gas/rx/mvtdc.sm: New.
1969         * testsuite/gas/rx/rstr.d: New.
1970         * testsuite/gas/rx/rstr.sm: New.
1971         * testsuite/gas/rx/rx.exp: Use rxv3-dfpu option.
1972         * testsuite/gas/rx/save.d: New.
1973         * testsuite/gas/rx/save.sm: New.
1974         * testsuite/gas/rx/xor.d: New.
1975         * testsuite/gas/rx/xor.sm: Add pattern.
1976
1977 2019-01-04  Wu Heng  <wu.heng@zte.com.cn>
1978
1979         PR 24010
1980         * macro.c (get_any_string): Check for end of input whilst scanning
1981         for separators.
1982
1983 2019-01-04  Wu Heng  <wu.heng@zte.com.cn>
1984
1985         PR 24009
1986         * read.c (stringer): Fix handling of missing '>' character at end
1987         of <...> sequence.
1988
1989 2019-01-01  Alan Modra  <amodra@gmail.com>
1990
1991         Update year range in copyright notice of all files.
1992
1993 For older changes see ChangeLog-2018
1994 \f
1995 Copyright (C) 2019 Free Software Foundation, Inc.
1996
1997 Copying and distribution of this file, with or without modification,
1998 are permitted in any medium without royalty provided the copyright
1999 notice and this notice are preserved.
2000
2001 Local Variables:
2002 mode: change-log
2003 left-margin: 8
2004 fill-column: 74
2005 version-control: never
2006 End: