power10 on ppc32
[deliverable/binutils-gdb.git] / gas / ChangeLog
1 2020-09-09 Alan Modra <amodra@gmail.com>
2
3 * config/tc-ppc.c (md_assemble): Emit prefix insn by parts when
4 valueT is smaller than 64 bits.
5
6 2020-09-07 Cooper Qu <cooper.qu@linux.alibaba.com>
7
8 * config/tc-csky.c (CSKYV2_ISA_DSP): CSKY_ISA_DSPE60.
9 (CSKY_ISA_860): Likewise.
10
11 2020-09-07 Cooper Qu <cooper.qu@linux.alibaba.com>
12
13 * config/tc-csky.c (float_abi): New.
14 (md_longopts): Add mfloat-abi.
15 (struct sky_option_value_table): New.
16 (csky_float_abis): New, the possible values for -mfloat-abi.
17 (parse_float_abi): New funtion.
18 (md_show_usage): Show help information for -mfloat-abi.
19 (set_csky_attribute): Store float-abi value.
20
21 2020-09-07 Cooper Qu <cooper.qu@linux.alibaba.com>
22
23 * config/tc-csky.c (float_work_fpuv3_fmovi): New function,
24 helper function to encode fpuv3 fmovi instructions.
25 (float_work_fpuv3_fstore): New function.
26 (struct literal): Add new member 'offset'.
27 (csky_cpus): New cpu CK860f.
28 (enter_literal): Return literal pool pointer instead of offset.
29 (parse_rt): Adjust the change of enter_literal.
30 (parse_rtf): Likewise.
31 (v1_work_lrw): Likewise.
32 (v1_work_jbsr): Likewise.
33 (v2_work_lrw): Likewise.
34 (v2_work_jbsr): Likewise.
35 (v2_work_jsri): Likewise.
36 (vdsp_work_vlrw): Likewise.
37 (is_freglist_legal): Add handler for FPUV3.
38 (parse_type_freg): Likewise.
39 (is_imm_within_range): Set e.X_add_number if it is a signed and
40 negtive number.
41 (get_operand_value): Add handler for OPRND_TYPE_IMM9b,
42 OPRND_TYPE_HFLOAT_FMOVI, OPRND_TYPE_SFLOAT_FMOVI
43 and OPRND_TYPE_DFLOAT_FMOVI.
44 (float_to_half): Convert float number to harf float.
45 * testsuite/gas/csky/case-fpuv3-ck860f/ : New folder containing
46 the test cases for FPUV3, they are divided by instruction
47 operands format and both have legal cases and illegal cases.
48
49 2020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
50 Kuan-Lin Chen <kuanlinchentw@gmail.com>
51
52 * config/tc-msp430.c (msp430_insert_uleb128_fixes): New.
53 (msp430_md_end): Call msp430_insert_uleb128_fixes.
54
55 2020-09-08 Alex Coplan <alex.coplan@arm.com>
56
57 * config/tc-aarch64.c (aarch64_cpus): Add Cortex-R82.
58 * doc/c-aarch64.texi: Document -mcpu=cortex-r82.
59
60 2020-09-08 Alex Coplan <alex.coplan@arm.com>
61
62 * config/tc-aarch64.c (parse_sys_reg): Also pass sysreg name to
63 validation function.
64 (parse_sys_ins_reg): Likewise.
65 (print_operands): Pass CPU features to aarch64_print_operand().
66 * testsuite/gas/aarch64/v8-r-bad-sysregs.d: New test.
67 * testsuite/gas/aarch64/v8-r-bad-sysregs.l: Error output.
68 * testsuite/gas/aarch64/v8-r-bad-sysregs.s: Input.
69 * testsuite/gas/aarch64/v8-r-sysregs-need-arch.d: New test.
70 * testsuite/gas/aarch64/v8-r-sysregs-need-arch.l: Error output.
71 * testsuite/gas/aarch64/v8-r-sysregs.d: New test.
72 * testsuite/gas/aarch64/v8-r-sysregs.s: Input for previous two tests.
73
74 2020-09-08 Alex Coplan <alex.coplan@arm.com>
75
76 * testsuite/gas/aarch64/dfb.d: New test.
77 * testsuite/gas/aarch64/dfb.s: Input.
78
79 2020-09-08 Alex Coplan <alex.coplan@arm.com>
80
81 * config/tc-aarch64.c (aarch64_archs): Add armv8-r.
82 * doc/c-aarch64.texi: Document -march=armv8-r.
83
84 2020-09-07 Mark Wielaard <mark@klomp.org>
85
86 * dwarf2dbg.c (add_line_strp): New function.
87 (out_dir_and_file_list): Take line_seg and sizeof_offset as
88 arguments, Use DW_FORM_line_strp for dir and file. Call
89 add_line_strp and set symbol offset for DWARF2_LINE_VERSION 5.
90 (out_debug_line): Call out_dir_and_file_list with line_seg and
91 sizeof_offset.
92 * gas/testsuite/gas/elf/dwarf-5-file0.d: Expect indirect line
93 strings.
94
95 2020-09-07 Mark Wielaard <mark@klomp.org>
96
97 * dwarf2dbg.c (DWARF2_RNGLISTS_VERSION): New constant.
98 (out_debug_ranges): Add ranges_sym argument and set it.
99 (out_debug_rnglists): New function.
100 (out_debug_info): Change ranges_seg argument to ranges_sym
101 and use it to set DW_AT_ranges value.
102 (dwarf2_finish): Remove ranges_seg, add ranges_sym. For
103 DWARF2_VERSION 5 call out_debug_rnglists.
104
105 2020-09-07 Mark Wielaard <mark@klomp.org>
106
107 * dwarf2dbg.c (dwarf2_directive_filename): Initialize with_md5 to
108 FALSE.
109 * gas/testsuite/gas/elf/dwarf-5-file0.s: Add a random bignum.
110
111 2020-09-01 Mark Wielaard <mark@klomp.org>
112
113 * dwarf2dbg.c (out_debug_abbrev): Use DW_FORM_sec_offset for DWARF
114 version 4 or higher.
115
116 2020-09-02 Alan Modra <amodra@gmail.com>
117
118 * expr.c (add_to_result, subtract_from_result): Use unsigned
119 addition and subtraction.
120
121 2020-09-02 Alan Modra <amodra@gmail.com>
122
123 * config/tc-z80.c (is_overflow): Avoid too large shift.
124
125 2020-09-02 Alan Modra <amodra@gmail.com>
126
127 * config/tc-sparc.c (in_signed_range): Use an unsigned type for
128 sign mask.
129
130 2020-09-02 Alan Modra <amodra@gmail.com>
131
132 * config/tc-nios2.c (md_apply_fix): Avoid too large shift.
133
134 2020-09-02 Alan Modra <amodra@gmail.com>
135
136 * config/tc-mips.c (load_register): Avoid too large shift.
137
138 2020-09-02 Alan Modra <amodra@gmail.com>
139
140 * config/tc-d30v.c (parallel_ok): Use 1UL for left shift expression.
141
142 2020-09-02 Alan Modra <amodra@gmail.com>
143
144 * config/rx-parse.y (rx_intop): Avoid too large shifts.
145 (rx_intop, rx_uintop, rx_disp3op, rx_disp5op, displacement),
146 (rtsd_immediate): Use correctly typed unsigned variables.
147
148 2020-09-02 Alan Modra <amodra@gmail.com>
149
150 * config/obj-macho.c (obj_mach_o_zerofill): Correct type of
151 constant shifted left.
152
153 2020-09-02 Alan Modra <amodra@gmail.com>
154
155 * config/bfin-lex.l: Use an unsigned type for "value".
156
157 2020-09-02 Alan Modra <amodra@gmail.com>
158
159 * config/tc-pdp11.c (md_number_to_chars): Condition nbytes=8 code
160 on BFD64.
161
162 2020-09-02 Cooper Qu <cooper.qu@linux.alibaba.com>
163
164 * config/tc-csky.c (csky_cpus): Add ck803r3.
165 (CSKY_ISA_803R3): Define.
166 (CSKY_ISA_803R2): Refine, use CSKY_ISA_803R1.
167
168 2020-09-02 Cooper Qu <cooper.qu@linux.alibaba.com>
169
170 * testsuite/gas/csky/cskyv2_dsp.d : Fix Encode of mulsws.
171
172 2020-09-02 Cooper Qu <cooper.qu@linux.alibaba.com>
173
174 * config/tc-csky.c (struct literal): New member bignum.
175 (dump_literals): Handle big constant.
176 (enter_literal): Likewise.
177 (parse_type_freg): Handle vector register.
178
179 2020-09-01 H.J. Lu <hongjiu.lu@intel.com>
180
181 * doc/as.texi: Document the .tls_common directive.
182
183 2020-09-01 Alan Modra <amodra@gmail.com>
184
185 PR 26420
186 PR 26421
187 PR 26425
188 PR 26427
189 * config/tc-arm.c (struct arm_it): Make size, size_req, cond and
190 uncond_value unsigned.
191 (parse_vfp_reg_list): Make setmask unsigned, vpr_str_len size_t.
192 (parse_big_immediate): Cast generic_bignum elements to unsigned.
193 (encode_thumb32_immediate): Shift left 0xffU.
194 (double_to_single): Make sign unsigned. Tidy.
195 (move_or_literal_pool): Cast LITTLE_NUM elements to uint64_t or
196 valueT.
197 (vfp_or_neon_is_neon): Adjust inst.uncond_value expression.
198 (md_assemble): Likewise.
199 (handle_pred_state): Make cond unsigned.
200 (thumb32_negate_data_op): Make variables unsigned.
201 (md_apply_fix): Make value and newval unsigned, adjust uses.
202
203 2020-08-31 Alan Modra <amodra@gmail.com>
204
205 PR 26510
206 * config/tc-z8k.c (buffer): Use unsigned char.
207 (apply_fix): Use unsigned char* pointers.
208 (build_bytes): Likewise and mask nibbles when packing.
209
210 2020-08-31 Alan Modra <amodra@gmail.com>
211
212 PR 26503
213 * config/tc-v850.c (parse_register_list): Shift 1u left.
214
215 2020-08-31 Alan Modra <amodra@gmail.com>
216
217 PR 26502
218 * config/tc-tic6x.c (md_apply_fix): Use unsigned variables.
219
220 2020-08-31 Alan Modra <amodra@gmail.com>
221
222 PR 26497
223 * config/tc-sh.c (assemble_ppi): Use unsigned variables.
224
225 2020-08-31 Alan Modra <amodra@gmail.com>
226
227 PR 26495
228 * config/tc-score.c (s3_apply_fix): Use unsigned variables.
229 * config/tc-score7.c (s7_apply_fix): Likewise.
230
231 2020-08-31 Alan Modra <amodra@gmail.com>
232
233 PR 26480
234 * config/tc-nios2.c (nios2_parse_reglist): Shift 1UL left.
235
236 2020-08-31 Alan Modra <amodra@gmail.com>
237
238 PR 26479
239 * config/tc-nios2.c (md_chars_to_number): Cast buf[i] before shifting.
240
241 2020-08-31 Alan Modra <amodra@gmail.com>
242
243 PR 26472
244 PR 26473
245 PR 26474
246 * config/tc-mips.c (operand_reg_mask): Shift 1u left.
247 (load_register): Shift 0xffffU left.
248
249 2020-08-31 Alan Modra <amodra@gmail.com>
250
251 PR 26471
252 * config/tc-metag.c (md_chars_to_number): Make retval unsigned.
253
254 2020-08-31 Alan Modra <amodra@gmail.com>
255
256 PR 26468
257 * config/tc-mep.c (md_convert_frag): Use uint32_t for addend and
258 other variables.
259
260 2020-08-31 Alan Modra <amodra@gmail.com>
261
262 PR 26493
263 * config/tc-riscv.c (riscv_ip): Cast X_add_number passed to
264 VALID_* macros to unsigned.
265
266 2020-08-31 Alan Modra <amodra@gmail.com>
267
268 * config/tc-crx.c: Formatting.
269 (CRX_PRINT): Wrap params in parentheses. Remove parens from uses
270 throughout file.
271 (reset_vars, get_register, get_copregister, get_optype, get_opbits),
272 (get_opflags, get_number_of_operands, parse_operand, gettrap),
273 (handle_LoadStor, getconstant, check_range, getreg_image),
274 (parse_operands, parse_insn, print_operand, print_constant),
275 (exponent2scale, mask_reg, process_label_constant, set_operand),
276 (assemble_insn, print_insn): Delete unnecessary forward declaration.
277 (print_insn): Make static.
278 (print_constant): Make "constant" unsigned.
279 (assemble_insn): Tidy REVERSE_MATCH index calc.
280 * expr.c (generic_bignum_to_int32): Cast elements to valueT.
281
282 2020-08-31 Alan Modra <amodra@gmail.com>
283
284 PR 26509
285 * config/tc-z80.c (is_overflow): Use 1UL in mask shift expression.
286
287 2020-08-30 Alan Modra <amodra@gmail.com>
288
289 * config/tc-tic4x.c (tic4x_gen_to_words): Rewrite mantissa
290 overflow test without UB. Avoid other UB shifts by making them
291 unsigned.
292
293 2020-08-31 Cooper Qu <cooper.qu@linux.alibaba.com>
294
295 * config/tc-csky.c (csky_error_state): New member 'arg_int'.
296 (SET_ERROR_NUMBER): Rename to SET_ERROR_STRING.
297 (SET_ERROR_INTEGER): New.
298 (err_formats): Add error format for ERROR_FREG_OVER_RANGE and
299 ERROR_VREG_OVER_RANGE.
300 (csky_show_error): Pass an integer argument for some error
301 numbers.
302 (parse_exp): Call SET_ERROR_STRING instead of SET_ERROR_NUMBER.
303 (parse_rt): Likewise.
304 (parse_type_ctrlreg): Likewise.
305 (csky_get_reg_val): Likewise.
306 (is_reglist_legal): Likewise.
307 (is_freglist_legal): Likewise.
308 (is_reglist_dash_comma_legal): Likewise.
309 (is_reg_lshift_illegal): Likewise.
310 (is_psr_bit): Likewise.
311 (parse_type_cpreg): Likewise.
312 (parse_type_cpcreg): Likewise.
313 (parse_type_areg): Likewise.
314 (parse_type_freg): Likewise.
315 (parse_ldst_imm): Likewise and call SET_ERROR_INTEGER.
316 (get_operand_value): Likewise.
317 (parse_operands_op): Likewise and call is_imm_within_range,
318 is_imm_within_range_ext and is_oimm_within_range.
319 (md_assemble): Likewise.
320 (is_imm_within_range): New.
321 (is_imm_within_range_ext): Rename from is_imm_over_range.
322 (is_oimm_within_range): Rename from is_oimm_over_range.
323 (v2_work_add_sub): Call SET_ERROR_INTEGER.
324 (csky_rolc): call is_imm_within_range instead of
325 is_imm_over_range.
326
327 2020-08-31 Cooper Qu <cooper.qu@linux.alibaba.com>
328
329 * config/tc-csky.c (md_begin): Add warning when -mdsp and
330 -mcpu=ck803ern are both added.
331 (parse_ldst_imm): Fix error message.
332
333 2020-08-30 Alan Modra <amodra@gmail.com>
334
335 * testsuite/gas/cr16/cbitb_test.d: Update expected output.
336 * testsuite/gas/cr16/cbitw_test.d: Likewise.
337 * testsuite/gas/cr16/sbitb_test.d: Likewise.
338 * testsuite/gas/cr16/sbitw_test.d: Likewise.
339 * testsuite/gas/cr16/storb_test.d: Likewise.
340 * testsuite/gas/cr16/storw_test.d: Likewise.
341 * testsuite/gas/cr16/tbitb_test.d: Likewise.
342 * testsuite/gas/cr16/tbitw_test.d: Likewise.
343
344 2020-08-30 Alan Modra <amodra@gmail.com>
345
346 PR 26437
347 PR 26438
348 * config/tc-cr16.c: Include limits.h, formatting.
349 (CR16_PRINT): Wrap params in parentheses. Remove parens from uses
350 throughout file.
351 (getconstant): Handle zero nbits.
352 (print_operand): Use unsigned variables. Simplify handling of
353 index regs.
354 (check_range): Use int32_t variables. Correct range checks.
355
356 2020-08-29 Alan Modra <amodra@gmail.com>
357
358 PR 26481
359 * config/tc-pj.c (md_assemble): Don't loop past end of
360 opcode->arg array.
361
362 2020-08-28 Alan Modra <amodra@gmail.com>
363
364 PR 26460
365 * config/tc-ia64.c (parse_operands): Don't access past end of
366 idesc->operands.
367
368 2020-08-26 Mark Wielaard <mark@klomp.org>
369
370 * as.c (parse_args): Handle bad -gdwarf options.
371
372 2020-08-28 Cooper Qu <cooper.qu@linux.alibaba.com>
373
374 * gas/config/tc-csky.c (md_begin): Set attributes.
375 (isa_flag): Change type to unsigned 64 bits.
376 (struct csky_cpu_info): Likewise.
377 (struct csky_macro_info): Likewise.
378 (set_csky_attribute): New.
379 * testsuite/gas/csky/802j.d: Ignore .csky.attributes section.
380 * testsuite/gas/csky/all.d: Likewise.
381 * testsuite/gas/csky/bsr1.d: Likewise.
382 * testsuite/gas/csky/csky_vdsp.d: Likewise.
383 * testsuite/gas/csky/cskyv2_all.d: Likewise.
384 * testsuite/gas/csky/cskyv2_ck803r2.d: Likewise.
385 * testsuite/gas/csky/cskyv2_ck860.d: Likewise.
386 * testsuite/gas/csky/cskyv2_dsp.d: Likewise.
387 * testsuite/gas/csky/cskyv2_elrw.d: Likewise.
388 * testsuite/gas/csky/cskyv2_float.d: Likewise.
389 * testsuite/gas/csky/enhance_dsp.d: Likewise.
390 * testsuite/gas/csky/java.d: Likewise.
391 * testsuite/gas/csky/v1_float.d: Likewise.
392 * testsuite/gas/csky/v2_float_part1.d: Likewise.
393 * testsuite/gas/csky/v2_float_part2.d: Likewise.
394 * testsuite/gas/csky/v2_tls_gd.d: Likewise.
395 * testsuite/gas/csky/v2_tls_ie.d: Likewise.
396 * testsuite/gas/csky/v2_tls_ld.d: Likewise.
397 * testsuite/gas/csky/v2_tls_le.d: Likewise.
398 * testsuite/gas/elf/elf.exp: Add handler for CSKY.
399 * testsuite/gas/elf/section2.e-csky: New.
400
401 2020-08-27 Alan Modra <amodra@gmail.com>
402
403 PR 26467
404 * cgen.c (weak_operand_overflow_check): Handle opmask for
405 operand length zero. Use 1UL constant.
406
407 2020-08-26 Alan Modra <amodra@gmail.com>
408
409 PR 26508
410 * config/tc-xtensa.c (xg_get_trampoline_chain): Return early
411 when n_entries is zero.
412
413 2020-08-26 Alan Modra <amodra@gmail.com>
414
415 PR 26448
416 * symbols.c: Include limits.h.
417 (resolve_symbol_value <O_left_shift, O_right_shift>): Do an
418 unsigned shift. Warn if shift count larger than valueT size.
419
420 2020-08-26 Alan Modra <amodra@gmail.com>
421
422 PR 26447
423 * expr.c (expr <O_left_shift>): Do an unsigned shift.
424
425 2020-08-25 Alan Modra <amodra@gmail.com>
426
427 2020-08-26 David Faust <david.faust@oracle.com>
428
429 * config/tc-bpf.c: Add option -mxbpf to select xbpf isa.
430 * testsuite/gas/bpf/indcall-1.d: New file.
431 * testsuite/gas/bpf/indcall-1.s: Likewise.
432 * testsuite/gas/bpf/indcall-bad-1.l: Likewise.
433 * testsuite/gas/bpf/indcall-bad-1.s: Likewise.
434 * testsuite/gas/bpf/bpf.exp: Run new tests.
435
436 2020-08-25 Alan Modra <amodra@gmail.com>
437
438 PR 26501
439 * gas/config/tc-tic54x.c (tic54x_undefined_symbol): Properly treat
440 misc_symbol_hash entries without values.
441
442 2020-08-25 Alan Modra <amodra@gmail.com>
443
444 PR 26500
445 * tc-tic4x.c (tic4x_inst_make): Don't die on terminating insn
446 with name = "".
447
448 2020-08-25 Alan Modra <amodra@gmail.com>
449
450 PR 26441
451 * config/tc-cr16.c (get_b_cc): Return NULL early if op isn't
452 two or three chars, and don't bother copying.
453
454 2020-08-25 Alan Modra <amodra@gmail.com>
455
456 PR 26426
457 * config/tc-arm.c (do_neon_mvn, do_neon_swp): Bail out on
458 NS_NULL shape.
459
460 2020-08-25 Alan Modra <amodra@gmail.com>
461
462 PR 26410
463 * symbols.c (dollar_label_count, dollar_label_max): Make size_t.
464 (dollar_label_clear): Don't call memset with NULL pointer.
465
466 2020-08-25 Alan Modra <amodra@gmail.com>
467
468 * config/tc-arc.c (declare_register_set): Avoid false positive
469 format-overflow warning.
470 * config/tc-epiphany.c (md_assemble): Likewise.
471 * config/tc-mips.c (md_begin): Likewise.
472 * config/tc-mmix.c (mmix_md_begin): Likewise.
473 * config/tc-nds32.c (nds32_elf_append_relax_relocs): Avoid false
474 positive "may be used uninitialized" warning.
475
476 2020-08-24 Cooper Qu <cooper.qu@linux.alibaba.com>
477
478 * config/tc-csky.c (csky_archs): Add item for CK860,
479 change ck810 and ck807's arch_flag.
480 (csky_cpus): Add item for CK860.
481 (md_begin): Enable DSP for CK810 and CK807 by default.
482 (md_apply_fix): Fix CKCORE_TLS_IE32 relocation failure.
483 * gas/testsuite/gas/csky/cskyv2_all.d: Change 'sync 0'
484 to 'sync'.
485 * gas/testsuite/gas/csky/cskyv2_all.s: Likewise.
486 * gas/testsuite/gas/csky/cskyv2_ck860.d: New.
487 * gas/testsuite/gas/csky/cskyv2_ck860.s: New.
488 * gas/testsuite/gas/csky/enhance_dsp.d: Change plsli.u16
489 to plsli.16.
490 * gas/testsuite/gas/csky/enhance_dsp.s: Likewise.
491
492 2020-08-24 Alan Modra <amodra@gmail.com>
493
494 * config/tc-tic54x.c (stag_add_field_symbols): Don't free "name"
495 in case where it isn't copied.
496 * config/tc-tic54x.h (LOCAL_LABELS_FB): Undef.
497 * testsuite/gas/tic54x/field.d: Dump section contents and symbols
498 rather than disassembling.
499 * testsuite/gas/tic54x/set.d: Adjust for newer disassembly.
500
501 2020-08-24 Alan Modra <amodra@gmail.com>
502
503 * config/tc-aarch64.c (md_begin): Don't bother checking for
504 out of memory failure from str_htab_create.
505 * config/tc-arc.c (arc_insert_opcode, md_begin): Likewise.
506 (arc_extcorereg, arc_stralloc): Likewise.
507 * config/tc-arm.c (md_begin): Likewise.
508 * config/tc-cr16.c (initialise_reg_hash_table, md_begin): Likewise.
509 * config/tc-cris.c (md_begin): Likewise.
510 * config/tc-crx.c (md_begin): Likewise.
511 * config/tc-pdp11.c (md_begin): Likewise.
512 * config/tc-score.c (s3_build_reg_hsh, s3_begin): Likewise.
513 * config/tc-score7.c (s7_build_reg_hsh, s7_begin): Likewise.
514
515 2020-08-24 Alan Modra <amodra@gmail.com>
516
517 * config/tc-arm.c (move_or_literal_pool): Avoid false positive
518 "may be used uninitialised".
519 (opcode_lookup): Likewise.
520
521 2020-08-24 Alan Modra <amodra@gmail.com>
522
523 PR 26526
524 * symbols.c (local_symbol_convert): Clear out xtra.
525
526 2020-08-21 Cooper Qu <cooper.qu@linux.alibaba.com>
527
528 * config/tc-csky.c (CSKY_ISA_803R2): New.
529 (csky_archs): Add ck803r2 series.
530 (md_begin): Fix warning about -medsp.
531 (csky_get_freg_val): Support lowercase of fpu register name.
532 * testsuite/gas/csky/cskyv2_ck803r2.s: New file.
533 * testsuite/gas/csky/cskyv2_ck803r2.d: New file.
534
535 2020-08-23 Alan Modra <amodra@gmail.com>
536
537 PR 26513
538 * hash.h (htab_insert): Update prototype and comment.
539 (struct string_tuple): Make "value" a const void*.
540 (string_tuple_alloc): Likewise.
541 (str_hash_find, str_hash_find_n): Cast returned value.
542 (str_hash_insert): Add "replace" parameter, and return slot pointer.
543 Free alloc'd element when not inserted.
544 * hash.c (htab_insert): Likewise. Return slot when element exists,
545 otherwise return NULL.
546 * read.c (pop_insert): Insert into hash table without first searching.
547 * config/tc-avr.c (md_begin): Likewise.
548 * config/tc-msp430.c (md_begin): Likewise.
549 * config/tc-nds32.c (nds32_init_nds32_pseudo_opcodes): Likewise.
550 * config/tc-v850.c (md_begin): Likewise.
551 * macro.c (do_formals, define_macro, macro_expand_body): Likewise.
552 (delete_macro): Delete from hash table.
553 * config/tc-tic54x.c (subsym_create_or_replace): Correct logic.
554
555 * symbols.c (local_symbol_make, symbol_table_insert): Allow
556 replacement of hash table entries.
557 * config/obj-coff-seh.c (seh_hash_insert): Likewise.
558 * config/obj-coff.c (tag_insert): Likewise.
559 * config/tc-iq2000.c (iq2000_add_macro): Likewise.
560 * config/tc-m68k.c (md_begin): Likewise for aliases.
561 * config/tc-tic4x.c (tic4x_asg): Likewise.
562 * config/tc-tic6x.c (md_begin): Likewise.
563
564 * dw2gencfi.c (dwcfi_hash_find_or_make): Disallow replacement of
565 hash table entries.
566 * ecoff.c (add_string, get_tag): Likewise.
567 * macro.c (expand_irp): Likewise.
568 * config/obj-elf.c (build_additional_section_info): Likewise.
569 * config/tc-aarch64.c (insert_reg_alias): Likewise.
570 (checked_hash_insert): Likewise.
571 * config/tc-alpha.c (get_alpha_reloc_tag, md_begin): Likewise.
572 * config/tc-arc.c (arc_insert_opcode, declare_register): Likewise.
573 (declare_addrtype, md_begin, arc_extcorereg): Likewise.
574 * config/tc-arm.c (insert_reg_alias): Likewise.
575 (arm_tc_equal_in_insn, md_begin): Likewise.
576 * config/tc-cr16.c (initialise_reg_hash_table, md_begin): Likewise.
577 * config/tc-cris.c (md_begin): Likewise.
578 * config/tc-crx.c (md_begin): Likewise.
579 * config/tc-csky.c (md_begin): Likewise.
580 * config/tc-d10v.c (md_begin): Likewise.
581 * config/tc-dlx.c (md_begin): Likewise.
582 * config/tc-ft32.c (md_begin): Likewise.
583 * config/tc-h8300.c (md_begin): Likewise.
584 * config/tc-hppa.c (md_begin): Likewise.
585 * config/tc-i386.c (md_begin): Likewise.
586 * config/tc-ia64.c (dot_rot, dot_entry, declare_register): Likewise.
587 (md_begin, dot_alias): Likewise.
588 * config/tc-m68hc11.c (md_begin): Likewise.
589 * config/tc-m68k.c (md_begin): Likewise.
590 * config/tc-mcore.c (md_begin): Likewise.
591 * config/tc-microblaze.c (md_begin): Likewise.
592 * config/tc-mips.c (md_begin): Likewise.
593 * config/tc-mmix.c (md_begin): Likewise.
594 * config/tc-mn10200.c (md_begin): Likewise.
595 * config/tc-mn10300.c (md_begin): Likewise.
596 * config/tc-moxie.c (md_begin): Likewise.
597 * config/tc-nds32.c (nds32_relax_hint, md_begin): Likewise.
598 * config/tc-nios2.c (md_begin): Likewise.
599 * config/tc-ns32k.c (md_begin): Likewise.
600 * config/tc-pdp11.c (md_begin): Likewise.
601 * config/tc-pj.c (fake_opcode, md_begin): Likewise.
602 * config/tc-ppc.c (ppc_setup_opcodes): Likewise.
603 * config/tc-pru.c (md_begin): Likewise.
604 * config/tc-riscv.c (init_ext_version_hash): Likewise.
605 (init_opcode_names_hash, hash_reg_name, init_opcode_hash): Likewise.
606 (riscv_init_csr_hash): Likewise.
607 * config/tc-s390.c (s390_setup_opcodes, md_begin): Likewise.
608 * config/tc-score.c (s3_insert_reg): Likewise.
609 (s3_build_score_ops_hsh, s3_build_dependency_insn_hsh): Likewise.
610 * config/tc-score7.c (s7_build_score_ops_hsh): Likewise.
611 (s7_build_dependency_insn_hsh, s7_insert_reg): Likewise.
612 * config/tc-sh.c (md_begin): Likewise.
613 * config/tc-sparc.c (md_begin): Likewise.
614 * config/tc-spu.c (md_begin): Likewise.
615 * config/tc-tic30.c (md_begin): Likewise.
616 * config/tc-tic4x.c (tic4x_inst_insert): Likewise.
617 * config/tc-tic54x.c (stag_add_field_symbols, md_begin): Likewise.
618 (tic54x_endstruct, tic54x_var, tic54x_macro_info): Likewise.
619 (subsym_substitute): Likewise.
620 * config/tc-tilegx.c (md_begin): Likewise.
621 * config/tc-tilepro.c (md_begin): Likewise.
622 * config/tc-vax.c (vip_begin): Likewise.
623 * config/tc-wasm32.c (md_begin): Likewise.
624 * config/tc-xgate.c (md_begin): Likewise.
625 * config/tc-z8k.c (md_begin): Likewise.
626 * testsuite/gas/ppc/dcbt.d,
627 * testsuite/gas/ppc/dcbt.s: New test.
628 * testsuite/gas/ppc/ppc.exp: Run it.
629
630 * ecoff.c (add_string): Report fatal error on duplicates.
631 * config/tc-alpha.c (md_begin): Likewise.
632 * config/tc-arc.c (arc_insert_opcode, declare_register): Likewise.
633 (declare_addrtype, md_begin, arc_extcorereg): Likewise.
634 * config/tc-cr16.c (initialise_reg_hash_table, md_begin): Likewise.
635 * config/tc-cris.c (md_begin): Likewise.
636 * config/tc-crx.c (md_begin): Likewise.
637 * config/tc-dlx.c (md_begin): Likewise.
638 * config/tc-hppa.c (md_begin): Likewise.
639 * config/tc-i386.c (md_begin): Likewise.
640 * config/tc-ia64.c (dot_rot, dot_entry, declare_register): Likewise.
641 (md_begin): Likewise.
642 * config/tc-m68k.c (md_begin): Likewise.
643 * config/tc-mips.c (md_begin): Likewise.
644 * config/tc-nios2.c (md_begin): Likewise.
645 * config/tc-ns32k.c (md_begin): Likewise.
646 * config/tc-ppc.c (ppc_setup_opcodes): Likewise.
647 * config/tc-pru.c (md_begin): Likewise.
648 * config/tc-riscv.c (init_ext_version_hash): Likewise.
649 (init_opcode_names_hash, hash_reg_name, init_opcode_hash): Likewise.
650 * config/tc-s390.c (s390_setup_opcodes, md_begin): Likewise.
651 * config/tc-sparc.c (md_begin): Likewise.
652 * config/tc-tic30.c (md_begin): Likewise.
653 * config/tc-tic4x.c (tic4x_inst_insert): Likewise.
654 * config/tc-tilegx.c (md_begin): Likewise.
655 * config/tc-tilepro.c (md_begin): Likewise.
656 * config/tc-vax.c (vip_begin): Likewise.
657
658 * config/tc-alpha.c,
659 * config/tc-arm.c,
660 * config/tc-avr.c,
661 * config/tc-cr16.c,
662 * config/tc-csky.c,
663 * config/tc-i386.c,
664 * config/tc-m68hc11.c,
665 * config/tc-m68k.c,
666 * config/tc-microblaze.c,
667 * config/tc-ns32k.c,
668 * config/tc-pj.c,
669 * config/tc-ppc.c,
670 * config/tc-score.c,
671 * config/tc-score7.c,
672 * config/tc-tic4x.c,
673 * config/tc-tic54x.c,
674 * config/tc-tilegx.c,
675 * config/tc-tilepro.c,
676 * config/tc-xgate.c: Formatting.
677
678 2020-08-21 Alan Modra <amodra@gmail.com>
679
680 * symbols.c (struct local_symbol): Add "hash" entry. Reorder fields.
681 Delete union. Adjust code throughout file.
682 (struct symbol): Add "hash", "name" and "x" entries. Reorder fields.
683 Split off some to..
684 (struct xsymbol): ..this. New struct. Adjust code throughout file
685 accessing these fields.
686 (struct symbol_entry): Delete.
687 (union symbol_entry): New.
688 (hash_symbol_entry): Adjust for symbol_entry_t change.
689 (symbol_entry_find): Likewise.
690 (eq_symbol_entry): Compare hash values too.
691 (symbol_entry_alloc): Delete.
692 (local_symbol_converted_p, local_symbol_mark_converted): Delete.
693 (local_symbol_get_real_symbol, local_symbol_set_real_symbol): Delete.
694 (local_hash): Delete.
695 (abs_symbol_x, dot_symbol_x): New static var.
696 (symbol_init): New function.
697 (symbol_create): Rewrite.
698 (LOCAL_SYMBOL_CHECK): Delete. Replace uses throughout with simple
699 test of flags.local_symbol.
700 (local_symbol_make): Adjust for struct local_symbol changes.
701 (local_symbol_convert): Rewrite. Adjust all callers.
702 (symbol_table_insert): Simplify.
703 (symbol_clone): Comment on local sym cloning. Handle split symbol
704 struct.
705 (get_real_sym): Delete. Remove all uses.
706 (symbol_find_exact_noref): Simplify.
707 (resolve_local_symbol): Don't resolve non-locals.
708 (S_SET_SEGMENT): Don't special case reg_section.
709 (S_SET_NAME): Set both name and bsym->name.
710 (symbol_mark_resolved, symbol_resolved_p): Simplify.
711 (symbol_symbolS): Update comment.
712 (symbol_begin): Don't create local_hash. Adjust abs_symbol setup.
713 (dot_symbol_init): Adjust dot_symbol setup.
714 (symbol_print_statistics): Delete local_hash stats.
715
716 2020-08-21 Alan Modra <amodra@gmail.com>
717
718 * symbols.c (struct symbol_flags): Rename sy_volatile to volatil,
719 and remove sy_ from other field names. Update throughout.
720 (struct symbol): Remove sy_ from field names. Delete unused
721 TARGET_SYMBOL_FIELDS. Update throughout file. Move after..
722 (struct local_symbol): ..here. Remove lsy_ from field names.
723 Delete unused TC_LOCAL_SYMFIELD_TYPE. Update throughout file.
724 (local_symbol_resolved_p, local_symbol_mark_resolved): Delete.
725 Expand uses throughout file.
726 (local_symbol_get_frag, local_symbol_set_frag): Likewise.
727 (symbol_new): Move symbol_table_frozen test to..
728 (symbol_append): ..here, and..
729 (symbol_insert): ..here.
730 (resolve_symbol_value, symbol_relc_make_expr): White space fixes.
731 (HANDLE_XADD_OPT1, HANDLE_XADD_OPT2): Likewise.
732 * config/obj-coff.h (RESOLVE_SYMBOL_REDEFINITION): Update.
733
734 2020-08-21 Alan Modra <amodra@gmail.com>
735
736 * symbols.h (symbol_new, symbol_create, local_symbol_make),
737 (symbol_temp_new): Arrange params as section, frag, offset.
738 * symbols.c: Adjust to suit.
739 * as.c: Likewise.
740 * cgen.c: Likewise.
741 * dwarf2dbg.c: Likewise.
742 * ecoff.c: Likewise.
743 * expr.c: Likewise.
744 * itbl-ops.c: Likewise.
745 * read.c: Likewise.
746 * stabs.c: Likewise.
747 * subsegs.c: Likewise.
748 * config/obj-coff.c: Likewise.
749 * config/obj-elf.c: Likewise.
750 * config/obj-macho.c: Likewise.
751 * config/tc-aarch64.c: Likewise.
752 * config/tc-alpha.c: Likewise.
753 * config/tc-arc.c: Likewise.
754 * config/tc-arm.c: Likewise.
755 * config/tc-avr.c: Likewise.
756 * config/tc-cr16.c: Likewise.
757 * config/tc-cris.c: Likewise.
758 * config/tc-csky.c: Likewise.
759 * config/tc-dlx.c: Likewise.
760 * config/tc-hppa.c: Likewise.
761 * config/tc-i386.c: Likewise.
762 * config/tc-ia64.c: Likewise.
763 * config/tc-m32r.c: Likewise.
764 * config/tc-m68k.c: Likewise.
765 * config/tc-mips.c: Likewise.
766 * config/tc-mmix.c: Likewise.
767 * config/tc-mn10200.c: Likewise.
768 * config/tc-mn10300.c: Likewise.
769 * config/tc-nds32.c: Likewise.
770 * config/tc-nios2.c: Likewise.
771 * config/tc-ppc.c: Likewise.
772 * config/tc-riscv.c: Likewise.
773 * config/tc-s390.c: Likewise.
774 * config/tc-sh.c: Likewise.
775 * config/tc-tic4x.c: Likewise.
776 * config/tc-tic54x.c: Likewise.
777 * config/tc-xtensa.c: Likewise.
778
779 2020-08-21 Cooper Qu <cooper.qu@linux.alibaba.com>
780
781 * config/tc-csky.c (csky_insn_info): Add member last_isize.
782 (md_assemble): Assign value to csky_insn.last_isize.
783 * testsuite/gas/csky/enhance_dsp.d: Test bloop's two operands form.
784 * testsuite/gas/csky/enhance_dsp.s: Likewise.
785
786 2020-08-20 Martin Liska <mliska@suse.cz>
787
788 * NEWS: Mention --reduce-memory-overheads and --hash-size arguments
789 options.
790 * as.c: Remove the options from help.
791 * doc/as.texi: Remove options.
792 * doc/internals.texi: Remove hash from documentation.
793 * hash.c (struct hash_entry): Remove.
794 (struct hash_control): Likewise.
795 (set_gas_hash_table_size): Likewise.
796 (hash_new_sized): Likewise.
797 (hash_new): Likewise.
798 (hash_die): Likewise.
799 (hash_lookup): Likewise.
800 (hash_insert): Likewise.
801 (hash_jam): Likewise.
802 (hash_replace): Likewise.
803 (hash_find): Likewise.
804 (hash_find_n): Likewise.
805 (hash_delete): Likewise.
806 (hash_traverse): Likewise.
807 (hash_print_statistics): Likewise.
808 (TABLES): Likewise.
809 (STATBUFSIZE): Likewise.
810 (main): Likewise.
811 (what): Likewise.
812 (destroy): Likewise.
813 (applicatee): Likewise.
814 (whattable): Likewise.
815 * hash.h (struct hash_control): Likewise.
816 (set_gas_hash_table_size): Likewise.
817 (hash_new): Likewise.
818 (hash_new_sized): Likewise.
819 (hash_die): Likewise.
820 (hash_insert): Likewise.
821 (hash_jam): Likewise.
822 (hash_replace): Likewise.
823 (hash_find): Likewise.
824 (hash_find_n): Likewise.
825 (hash_delete): Likewise.
826 (hash_traverse): Likewise.
827 (hash_print_statistics): Likewise.
828
829 2020-08-20 Martin Liska <mliska@suse.cz>
830
831 * config/obj-coff-seh.c (seh_hash_insert): Port to use new
832 str_htab type.
833 (seh_hash_find): Likewise.
834 (seh_hash_find_or_make): Likewise.
835 * config/obj-coff.c (tag_init): Likewise.
836 (tag_insert): Likewise.
837 (tag_find): Likewise.
838 * config/obj-elf.c (struct group_list): Likewise.
839 (build_additional_section_info): Likewise.
840 (free_section_idx): Likewise.
841 (elf_adjust_symtab): Likewise.
842 (elf_frob_file_after_relocs): Likewise.
843 * config/tc-aarch64.c (INSN_SIZE): Likewise.
844 (parse_reg): Likewise.
845 (insert_reg_alias): Likewise.
846 (create_register_alias): Likewise.
847 (s_unreq): Likewise.
848 (parse_shift): Likewise.
849 (parse_pldop): Likewise.
850 (parse_barrier): Likewise.
851 (parse_barrier_psb): Likewise.
852 (parse_bti_operand): Likewise.
853 (parse_sys_reg): Likewise.
854 (parse_sys_ins_reg): Likewise.
855 (lookup_mnemonic): Likewise.
856 (opcode_lookup): Likewise.
857 (parse_operands): Likewise.
858 (checked_hash_insert): Likewise.
859 (sysreg_hash_insert): Likewise.
860 (fill_instruction_hash_table): Likewise.
861 (md_begin): Likewise.
862 * config/tc-alpha.c (struct alpha_reloc_tag): Likewise.
863 (get_alpha_reloc_tag): Likewise.
864 (assemble_tokens_to_insn): Likewise.
865 (assemble_tokens): Likewise.
866 (md_begin): Likewise.
867 * config/tc-arc.c (arc_find_opcode): Likewise.
868 (arc_insert_opcode): Likewise.
869 (find_opcode_match): Likewise.
870 (declare_register): Likewise.
871 (declare_addrtype): Likewise.
872 (md_begin): Likewise.
873 (arc_parse_name): Likewise.
874 (tc_arc_regname_to_dw2regnum): Likewise.
875 (arc_extcorereg): Likewise.
876 * config/tc-arm.c (MVE_BAD_QREG): Likewise.
877 (arm_reg_parse_multi): Likewise.
878 (parse_reloc): Likewise.
879 (insert_reg_alias): Likewise.
880 (create_register_alias): Likewise.
881 (s_unreq): Likewise.
882 (parse_shift): Likewise.
883 (parse_psr): Likewise.
884 (parse_cond): Likewise.
885 (parse_barrier): Likewise.
886 (do_vfp_nsyn_opcode): Likewise.
887 (opcode_lookup): Likewise.
888 (arm_tc_equal_in_insn): Likewise.
889 (md_begin): Likewise.
890 * config/tc-avr.c (md_begin): Likewise.
891 (avr_ldi_expression): Likewise.
892 (md_assemble): Likewise.
893 (avr_update_gccisr): Likewise.
894 (avr_emit_insn): Likewise.
895 * config/tc-cr16.c (get_register): Likewise.
896 (get_register_pair): Likewise.
897 (get_index_register): Likewise.
898 (get_index_register_pair): Likewise.
899 (get_pregister): Likewise.
900 (get_pregisterp): Likewise.
901 (initialise_reg_hash_table): Likewise.
902 (md_begin): Likewise.
903 (cr16_assemble): Likewise.
904 (md_assemble): Likewise.
905 * config/tc-cris.c (cris_insn_first_word_frag): Likewise.
906 (md_begin): Likewise.
907 (cris_process_instruction): Likewise.
908 * config/tc-crx.c (get_register): Likewise.
909 (get_copregister): Likewise.
910 (md_begin): Likewise.
911 (md_assemble): Likewise.
912 * config/tc-csky.c (md_begin): Likewise.
913 (parse_opcode): Likewise.
914 (get_operand_value): Likewise.
915 (v1_work_jbsr): Likewise.
916 (v2_work_rotlc): Likewise.
917 (v2_work_bgeni): Likewise.
918 (v2_work_not): Likewise.
919 * config/tc-d10v.c (sizeof): Likewise.
920 (md_begin): Likewise.
921 (do_assemble): Likewise.
922 (md_apply_fix): Likewise.
923 * config/tc-d30v.c (sizeof): Likewise.
924 (md_begin): Likewise.
925 (do_assemble): Likewise.
926 * config/tc-dlx.c (RELOC_DLX_VTENTRY): Likewise.
927 (md_begin): Likewise.
928 (machine_ip): Likewise.
929 * config/tc-ft32.c (md_begin): Likewise.
930 (md_assemble): Likewise.
931 * config/tc-h8300.c (md_begin): Likewise.
932 (md_assemble): Likewise.
933 * config/tc-hppa.c (pa_ip): Likewise.
934 (md_begin): Likewise.
935 * config/tc-i386.c (md_begin): Likewise.
936 (i386_print_statistics): Likewise.
937 (parse_insn): Likewise.
938 (process_operands): Likewise.
939 (i386_index_check): Likewise.
940 (parse_real_register): Likewise.
941 * config/tc-ia64.c (dot_rot): Likewise.
942 (dot_entry): Likewise.
943 (declare_register): Likewise.
944 (md_begin): Likewise.
945 (ia64_parse_name): Likewise.
946 (md_assemble): Likewise.
947 (dot_alias): Likewise.
948 (do_alias): Likewise.
949 (ia64_adjust_symtab): Likewise.
950 (do_secalias): Likewise.
951 (ia64_frob_file): Likewise.
952 * config/tc-m68hc11.c (m68hc11_print_statistics): Likewise.
953 (md_begin): Likewise.
954 (print_insn_format): Likewise.
955 (md_assemble): Likewise.
956 * config/tc-m68k.c (tc_gen_reloc): Likewise.
957 (m68k_ip): Likewise.
958 (md_begin): Likewise.
959 * config/tc-mcore.c (md_begin): Likewise.
960 (md_assemble): Likewise.
961 * config/tc-microblaze.c (md_begin): Likewise.
962 (md_assemble): Likewise.
963 (md_apply_fix): Likewise.
964 * config/tc-mips.c (nopic_need_relax): Likewise.
965 (md_begin): Likewise.
966 (macro_build): Likewise.
967 (mips16_macro_build): Likewise.
968 (mips_lookup_insn): Likewise.
969 (mips_ip): Likewise.
970 (mips16_ip): Likewise.
971 * config/tc-mmix.c (sizeof): Likewise.
972 (mmix_md_begin): Likewise.
973 (md_assemble): Likewise.
974 * config/tc-mn10200.c (md_begin): Likewise.
975 (md_assemble): Likewise.
976 * config/tc-mn10300.c (HAVE_AM30): Likewise.
977 (md_begin): Likewise.
978 (md_assemble): Likewise.
979 * config/tc-moxie.c (md_begin): Likewise.
980 (md_assemble): Likewise.
981 * config/tc-msp430.c (md_begin): Likewise.
982 (msp430_operands): Likewise.
983 (md_assemble): Likewise.
984 * config/tc-nds32.c (PV_DONT_CARE): Likewise.
985 (builtin_isreg): Likewise.
986 (builtin_regnum): Likewise.
987 (nds32_init_nds32_pseudo_opcodes): Likewise.
988 (nds32_lookup_pseudo_opcode): Likewise.
989 (nds32_relax_hint): Likewise.
990 (md_begin): Likewise.
991 (nds32_find_reloc_table): Likewise.
992 (nds32_elf_append_relax_relocs_traverse): Likewise.
993 (nds32_relax_branch_instructions): Likewise.
994 (md_convert_frag): Likewise.
995 (nds32_elf_analysis_relax_hint): Likewise.
996 (tc_nds32_regname_to_dw2regnum): Likewise.
997 * config/tc-nios2.c (nios2_opcode_lookup): Likewise.
998 (nios2_reg_lookup): Likewise.
999 (nios2_ps_lookup): Likewise.
1000 (md_begin): Likewise.
1001 * config/tc-ns32k.c (struct hash_control): Likewise.
1002 (parse): Likewise.
1003 (md_begin): Likewise.
1004 * config/tc-pdp11.c (md_begin): Likewise.
1005 (md_assemble): Likewise.
1006 * config/tc-pj.c (fake_opcode): Likewise.
1007 (alias): Likewise.
1008 (md_begin): Likewise.
1009 (md_assemble): Likewise.
1010 * config/tc-ppc.c (ppc_setup_opcodes): Likewise.
1011 (md_assemble): Likewise.
1012 * config/tc-pru.c (pru_opcode_lookup): Likewise.
1013 (pru_reg_lookup): Likewise.
1014 (md_begin): Likewise.
1015 (md_end): Likewise.
1016 * config/tc-riscv.c (init_ext_version_hash): Likewise.
1017 (riscv_get_default_ext_version): Likewise.
1018 (riscv_set_arch): Likewise.
1019 (init_opcode_names_hash): Likewise.
1020 (opcode_name_lookup): Likewise.
1021 (enum reg_class): Likewise.
1022 (hash_reg_name): Likewise.
1023 (riscv_init_csr_hash): Likewise.
1024 (reg_csr_lookup_internal): Likewise.
1025 (reg_lookup_internal): Likewise.
1026 (init_opcode_hash): Likewise.
1027 (md_begin): Likewise.
1028 (DECLARE_CSR): Likewise.
1029 (macro_build): Likewise.
1030 (riscv_ip): Likewise.
1031 * config/tc-s390.c (register_name): Likewise.
1032 (s390_setup_opcodes): Likewise.
1033 (md_begin): Likewise.
1034 (md_assemble): Likewise.
1035 (s390_insn): Likewise.
1036 * config/tc-score.c (struct s3_reg_map): Likewise.
1037 (s3_score_reg_parse): Likewise.
1038 (s3_dependency_type_from_insn): Likewise.
1039 (s3_parse_16_32_inst): Likewise.
1040 (s3_parse_48_inst): Likewise.
1041 (s3_insert_reg): Likewise.
1042 (s3_build_reg_hsh): Likewise.
1043 (s3_build_score_ops_hsh): Likewise.
1044 (s3_build_dependency_insn_hsh): Likewise.
1045 (s3_begin): Likewise.
1046 * config/tc-score7.c (struct s7_reg_map): Likewise.
1047 (s7_score_reg_parse): Likewise.
1048 (s7_dependency_type_from_insn): Likewise.
1049 (s7_parse_16_32_inst): Likewise.
1050 (s7_build_score_ops_hsh): Likewise.
1051 (s7_build_dependency_insn_hsh): Likewise.
1052 (s7_insert_reg): Likewise.
1053 (s7_build_reg_hsh): Likewise.
1054 (s7_begin): Likewise.
1055 * config/tc-sh.c (EMPTY): Likewise.
1056 (md_begin): Likewise.
1057 (find_cooked_opcode): Likewise.
1058 * config/tc-sparc.c (md_begin): Likewise.
1059 (sparc_ip): Likewise.
1060 * config/tc-spu.c (md_begin): Likewise.
1061 (md_assemble): Likewise.
1062 * config/tc-tic30.c (md_begin): Likewise.
1063 (tic30_operand): Likewise.
1064 (tic30_parallel_insn): Likewise.
1065 (md_assemble): Likewise.
1066 * config/tc-tic4x.c (TIC4X_ALT_SYNTAX): Likewise.
1067 (tic4x_asg): Likewise.
1068 (tic4x_inst_insert): Likewise.
1069 (tic4x_inst_add): Likewise.
1070 (md_begin): Likewise.
1071 (tic4x_operand_parse): Likewise.
1072 (md_assemble): Likewise.
1073 * config/tc-tic54x.c (MAX_SUBSYM_HASH): Likewise.
1074 (stag_add_field_symbols): Likewise.
1075 (tic54x_endstruct): Likewise.
1076 (tic54x_tag): Likewise.
1077 (tic54x_remove_local_label): Likewise.
1078 (tic54x_clear_local_labels): Likewise.
1079 (tic54x_var): Likewise.
1080 (tic54x_macro_start): Likewise.
1081 (tic54x_macro_info): Likewise.
1082 (tic54x_macro_end): Likewise.
1083 (subsym_isreg): Likewise.
1084 (subsym_structsz): Likewise.
1085 (md_begin): Likewise.
1086 (is_mmreg): Likewise.
1087 (is_type): Likewise.
1088 (encode_condition): Likewise.
1089 (encode_cc3): Likewise.
1090 (encode_cc2): Likewise.
1091 (encode_operand): Likewise.
1092 (tic54x_parse_insn): Likewise.
1093 (tic54x_parse_parallel_insn_firstline): Likewise.
1094 (subsym_create_or_replace): Likewise.
1095 (subsym_lookup): Likewise.
1096 (subsym_substitute): Likewise.
1097 (tic54x_undefined_symbol): Likewise.
1098 * config/tc-tic6x.c (md_begin): Likewise.
1099 (md_assemble): Likewise.
1100 * config/tc-tilegx.c (O_hw2_last_plt): Likewise.
1101 (INSERT_SPECIAL_OP): Likewise.
1102 (md_begin): Likewise.
1103 (tilegx_parse_name): Likewise.
1104 (parse_reg_expression): Likewise.
1105 (md_assemble): Likewise.
1106 * config/tc-tilepro.c (O_tls_ie_load): Likewise.
1107 (INSERT_SPECIAL_OP): Likewise.
1108 (tilepro_parse_name): Likewise.
1109 (parse_reg_expression): Likewise.
1110 (md_assemble): Likewise.
1111 * config/tc-v850.c (md_begin): Likewise.
1112 (md_assemble): Likewise.
1113 * config/tc-vax.c (md_ri_to_chars): Likewise.
1114 (vip_begin): Likewise.
1115 (vip): Likewise.
1116 (main): Likewise.
1117 (md_begin): Likewise.
1118 * config/tc-wasm32.c (md_begin): Likewise.
1119 (md_assemble): Likewise.
1120 * config/tc-xgate.c (xgate_parse_operand): Likewise.
1121 (md_begin): Likewise.
1122 (md_assemble): Likewise.
1123 * config/tc-z8k.c (md_begin): Likewise.
1124 (md_assemble): Likewise.
1125
1126 2020-08-20 Martin Liska <mliska@suse.cz>
1127
1128 * dw2gencfi.c (dwcfi_hash_insert): Use htab_t and str_hash_*
1129 functions.
1130 (dwcfi_hash_find): Likewise.
1131 (dwcfi_hash_find_or_make): Likewise.
1132
1133 2020-08-20 Martin Liska <mliska@suse.cz>
1134
1135 * ecoff.c (INIT_VARRAY): Use htab_t.
1136 (add_string): Likewise.
1137 (ecoff_read_begin_hook): Use new str_htab_create.
1138 (get_tag): Use htab_t.
1139 (add_file): Likewise.
1140
1141 2020-08-20 Martin Liska <mliska@suse.cz>
1142
1143 * hash.h (struct string_tuple): New.
1144 (hash_string_tuple): Likewise.
1145 (eq_string_tuple): Likewise.
1146 (string_tuple_alloc): Likewise.
1147 (str_hash_find): Likewise.
1148 (str_hash_find_n): Likewise.
1149 (str_hash_delete): Likewise.
1150 (str_hash_insert): Likewise.
1151 (str_htab_create): Likewise.
1152
1153 2020-08-20 Martin Liska <mliska@suse.cz>
1154
1155 * symbols.c (struct symbol_entry): New.
1156 (hash_symbol_entry): Likewise.
1157 (eq_symbol_entry): Likewise.
1158 (symbol_entry_alloc): Likewise.
1159 (symbol_entry_find): Likewise.
1160 (local_symbol_make): Use htab hash table.
1161 (local_symbol_convert): Likewise.
1162 (symbol_table_insert): Likewise.
1163 (symbol_find_exact_noref): Likewise.
1164 (resolve_local_symbol): Likewise.
1165 (resolve_local_symbol_values): Likewise.
1166 (symbol_begin): Likewise.
1167 (symbol_print_statistics): Likewise.
1168
1169 2020-08-20 Martin Liska <mliska@suse.cz>
1170
1171 * read.c (struct po_entry): New.
1172 (hash_po_entry): Likewise.
1173 (eq_po_entry): Likewise.
1174 (po_entry_alloc): Likewise.
1175 (po_entry_find): Likewise.
1176 (pop_insert): Likewise.
1177 (pobegin): Use htab hash table.
1178 (read_a_source_file): Likewise.
1179 (s_macro): Likewise.
1180 (read_print_statistics): Likewise.
1181 * config/tc-m68k.c (m68k_conditional_pseudoop): Add const qualifier.
1182 * config/tc-m68k.h (m68k_conditional_pseudoop): Likewise.
1183
1184 2020-08-20 Martin Liska <mliska@suse.cz>
1185
1186 * config/tc-iq2000.c (iq2000_add_macro): Use htab hash table.
1187 * macro.c (struct hash_control): Use htab.
1188 (macro_init): Likewise.
1189 (do_formals): Likewise.
1190 (free_macro): Likewise.
1191 (define_macro): Likewise.
1192 (sub_actual): Likewise.
1193 (macro_expand_body): Likewise.
1194 (macro_expand): Likewise.
1195 (check_macro): Likewise.
1196 (delete_macro): Likewise.
1197 (expand_irp): Likewise.
1198 * macro.h (struct macro_hash_entry): New struct.
1199 (hash_macro_entry): New.
1200 (eq_macro_entry): Likewise.
1201 (macro_entry_alloc): Likewise.
1202 (macro_entry_find): Likewise.
1203 (struct formal_hash_entry): Likewise.
1204 (hash_formal_entry): Likewise.
1205 (eq_formal_entry): Likewise.
1206 (formal_entry_alloc): Likewise.
1207 (formal_entry_find): Likewise.
1208
1209 2020-08-20 Martin Liska <mliska@suse.cz>
1210
1211 * as.h: Include hashtab.h.
1212 * hash.c (htab_insert): New.
1213 (htab_print_statistics): Likewise.
1214 * hash.h (htab_insert): Likewise.
1215 (htab_print_statistics): Likewise.
1216
1217 2020-08-19 Alan Modra <amodra@gmail.com>
1218
1219 * testsuite/gas/ppc/int128.s: Correct vcmpuq.
1220 * testsuite/gas/ppc/int128.d: Update.
1221 * testsuite/gas/ppc/xvtlsbb.d: Update.
1222
1223 2020-08-18 Peter Bergner <bergner@linux.ibm.com>
1224
1225 * testsuite/gas/ppc/vsx4.s: Update test to use new mnemonic.
1226 * testsuite/gas/ppc/vsx4.d: Likewise.
1227
1228 2020-08-17 Alex Coplan <alex.coplan@arm.com>
1229
1230 * config/obj-elf.c (obj_elf_change_section): When repurposing an
1231 existing symbol, ensure that we set sy_value as per other (fresh)
1232 section symbols.
1233 * testsuite/gas/elf/elf.exp: Add new test.
1234 * testsuite/gas/elf/section-symbol-redef.d: New test.
1235 * testsuite/gas/elf/section-symbol-redef.s: Input for test.
1236
1237 2020-08-13 Nick Clifton <nickc@redhat.com>
1238
1239 PR 26359
1240 * config/obj-som.c (obj_som_init_stab_section): Do nothing if the
1241 $GDB_DEBUG$ section has already been created.
1242
1243 2020-08-12 Joe Ramsay <joe.ramsay@.arm.com>
1244
1245 * config/tc-arm.c (do_neon_cvt_1): Parse vcvtne as vcvt-ne for
1246 NS_FD shape when MVE is present
1247 * testsuite/gas/arm/mve-vcvtne-it-bad.d: New test.
1248 * testsuite/gas/arm/mve-vcvtne-it-bad.l: New test.
1249 * testsuite/gas/arm/mve-vcvtne-it-bad.s: New test.
1250 * testsuite/gas/arm/mve-vcvtne-it.d: New test.
1251 * testsuite/gas/arm/mve-vcvtne-it.s: New test.
1252
1253 2020-08-12 Alex Coplan <alex.coplan@arm.com>
1254
1255 * testsuite/gas/aarch64/mpam-bad.d: New test.
1256 * testsuite/gas/aarch64/mpam-bad.l: Error output.
1257 * testsuite/gas/aarch64/mpam-bad.s: Input.
1258 * testsuite/gas/aarch64/mpam.d: New test.
1259 * testsuite/gas/aarch64/mpam.s: Input.
1260
1261 2020-08-12 Nick Clifton <nickc@redhat.com>
1262
1263 PR 26346
1264 * doc/c-riscv.texi (RISC-V-Options): Fix typo in the description
1265 of the -mno-csr-check option.
1266
1267 2020-08-12 Nick Clifton <nickc@redhat.com>
1268
1269 * po/ru.po: Updated Russian translation.
1270
1271 2020-08-10 Alex Coplan <alex.coplan@arm.com>
1272
1273 * config/tc-aarch64.c (parse_sys_reg): Don't assert when parsing
1274 a long system register.
1275 (parse_sys_ins_reg): Likewise.
1276 (sysreg_hash_insert): New.
1277 (md_begin): Use sysreg_hash_insert() to ensure all system
1278 registers are no longer than the maximum length at startup.
1279 * testsuite/gas/aarch64/invalid-sysreg-assert.d: New test.
1280 * testsuite/gas/aarch64/invalid-sysreg-assert.l: Error output.
1281 * testsuite/gas/aarch64/invalid-sysreg-assert.s: Input.
1282
1283 2020-08-10 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1284
1285 * config/tc-aarch64.c (parse_sys_reg): Call to
1286 aarch64_sys_ins_reg_supported_p instead of
1287 aarch64_sys_reg_supported_p.
1288 (parse_sys_ins_reg): Add aarch64_sys_reg_deprecated_p check.
1289 * testsuite/gas/aarch64/illegal-sysreg-5.d: New test.
1290 * testsuite/gas/aarch64/illegal-sysreg-5.l: New test.
1291 * testsuite/gas/aarch64/sysreg-5.s: New test.
1292
1293 2020-08-10 Alan Modra <amodra@gmail.com>
1294
1295 * testsuite/gas/ppc/power8.d,
1296 * testsuite/gas/ppc/power8.s: Add miso.
1297 * testsuite/gas/ppc/power9.d,
1298 * testsuite/gas/ppc/power8.s: Add exser, msgsndu, msgclru.
1299
1300 2020-08-10 Alan Modra <amodra@gmail.com>
1301
1302 * testsuite/gas/ppc/power8.d: Update.
1303 * testsuite/gas/ppc/vsx2.d: Update.
1304
1305 2020-08-10 Alan Modra <amodra@gmail.com>
1306
1307 * config/tc-ppc.c (md_assemble): Error for lmw, stmw, lswi, lswx,
1308 stswi, or stswx in little-endian mode.
1309 * testsuite/gas/ppc/476.d,
1310 * testsuite/gas/ppc/476.s: Delete lmw, stmw, lswi, lswx, stswi, stswx.
1311 * testsuite/gas/ppc/a2.d,
1312 * testsuite/gas/ppc/a2.s: Move lmw, stmw, lswi, lswx, stswi, stswx..
1313 * testsuite/gas/ppc/be.d,
1314 * testsuite/gas/ppc/be.s: ..to here, new big-endian only test.
1315 * testsuite/gas/ppc/le_error.d,
1316 * testsuite/gas/ppc/le_error.l: New little-endian test.
1317 * testsuite/gas/ppc/ppc.exp: Run new tests.
1318
1319 2020-08-07 H.J. Lu <hongjiu.lu@intel.com>
1320
1321 * read.c (read_a_source_file): Ignore rest of line on overflow
1322 error.
1323
1324 2020-08-06 Alex Coplan <alex.coplan@arm.com>
1325
1326 * read.c (read_a_source_file): Use long for local labels, detect
1327 overflow and raise an error for overly-long labels.
1328 * testsuite/gas/all/gas.exp: Add local-label-overflow test.
1329 * testsuite/gas/all/local-label-overflow.d: New test.
1330 * testsuite/gas/all/local-label-overflow.l: Error output.
1331 * testsuite/gas/all/local-label-overflow.s: Input.
1332
1333 2020-08-04 Christian Groessler <chris@groessler.org>
1334
1335 * gas/testsuite/gas/z8k/inout.d: Adapt to correct encoding of
1336 "sout/soutb #imm,reg"
1337
1338 2020-08-04 H.J. Lu <hongjiu.lu@intel.com>
1339
1340 * NEWS: Mention {disp16} pseudo prefix.
1341
1342 2020-08-04 H.J. Lu <hongjiu.lu@intel.com>
1343
1344 * testsuite/gas/i386/x86-64-pseudos.d: Revert an accidental
1345 change.
1346
1347 2020-08-04 Mark Wielaard <mark@klomp.org>
1348
1349 * dwarf2dbg.c (out_debug_abbrev): When DWARF2_VERSION >= 4, use
1350 DW_FORM_udata for DW_AT_high_pc.
1351 (out_debug_info): Use emit_leb128_expr for DW_AT_high_pc, when
1352 DWARF2_VERSION >= 4.
1353 * read.c (emit_leb128_exp): No longer static.
1354 * read.h (emit_leb128_exp): Define.
1355
1356 2020-08-02 Mark Wielaard <mark@klomp.org>
1357
1358 * gas/dwarf2dbg.c (out_dir_and_file_list): For DWARF5 emit at
1359 least one directory if there is at least one file. Use dirs[1]
1360 if dirs[0] is not set, or if there is no dirs[1] the current
1361 working directory. Use files[1] filename, when files[0] filename
1362 isn't set.
1363
1364 2020-08-02 Mark Wielaard <mark@klomp.org>
1365
1366 * dwarf2dbg.c (out_debug_info): Emit unit type and abbrev offset
1367 for DWARF5.
1368 * gas/testsuite/gas/elf/dwarf-4-cu.d: New file.
1369 * gas/testsuite/gas/elf/dwarf-4-cu.s: Likewise.
1370 * gas/testsuite/gas/elf/dwarf-5-cu.d: Likewise.
1371 * gas/testsuite/gas/elf/dwarf-5-cu.s: Likewise.
1372 * testsuite/gas/elf/elf.exp: Run dwarf-4-cu and dwarf-5-cu.
1373
1374 2020-08-02 Mark Wielaard <mark@klomp.org>
1375
1376 * doc/as.texi (--gdwarf-[345]): Fix typo.
1377
1378 2020-08-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1379
1380 * config/tc-msp430.c (OPTION_MOVE_DATA): Remove.
1381 (md_parse_option): Remove case for OPTION_MOVE_DATA.
1382 (md_longopts): Remove "md" entry.
1383 (md_show_usage): Likewise.
1384
1385 2020-07-30 H.J. Lu <hongjiu.lu@intel.com>
1386
1387 PR gas/26305
1388 * config/tc-i386.c (_i386_insn::disp_encoding): Add
1389 disp_encoding_16bit.
1390 (parse_insn): Check Prefix_XXX for pseudo prefixes. Handle
1391 {disp16}.
1392 (build_modrm_byte): Handle {disp16}.
1393 (i386_index_check): Check invalid {disp16} and {disp32} pseudo
1394 prefixes.
1395 * doc/c-i386.texi: Update {disp32} documentation and document
1396 {disp16}.
1397 * testsuite/gas/i386/i386.exp: Run x86-64-inval-pseudo.
1398 * testsuite/gas/i386/inval-pseudo.s: Add {disp32}/{disp16}
1399 tests.
1400 * testsuite/gas/i386/pseudos.s: Add {disp8}/{disp32} vmovaps
1401 tests with 128-byte displacement. Add {disp16} tests.
1402 * testsuite/gas/i386/x86-64-pseudos.s: Add {disp8}/{disp32}
1403 vmovaps test. Add (%r13)/(%r13d) tests.
1404 * testsuite/gas/i386/x86-64-inval-pseudo.l: New file.
1405 * testsuite/gas/i386/x86-64-inval-pseudo.s: Likewise.
1406 * testsuite/gas/i386/inval-pseudo.l: Updated.
1407 * testsuite/gas/i386/pseudos.d: Likewise.
1408 * testsuite/gas/i386/x86-64-pseudos.d: Likewise.
1409
1410 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1411
1412 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1413 * Makefile.in, doc/Makefile.in: Regenerate.
1414 * configure: Regenerate.
1415
1416 2020-07-30 H.J. Lu <hongjiu.lu@intel.com>
1417
1418 * testsuite/gas/elf/dwarf2-3.d:Pass --gdwarf-3 to assembler.
1419 * testsuite/gas/elf/dwarf2-5.d: Likewise.
1420 * testsuite/gas/i386/dw2-compress-3a.d: Likewise.
1421 * testsuite/gas/i386/dw2-compress-3b.d: Likewise.
1422 * testsuite/gas/i386/dw2-compressed-3a.d: Likewise.
1423 * testsuite/gas/i386/dw2-compressed-3b.d: Likewise.
1424
1425 2020-07-30 Nick Clifton <nickc@redhat.com>
1426
1427 * as.c (dwarf_level): Initialise to 3 in case this is not set on
1428 the command line.
1429
1430 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
1431
1432 * testsuite/gas/mips/global-local-symtab-sort-o32.d: New test.
1433 * testsuite/gas/mips/global-local-symtab-sort-o32t.d: New test.
1434 * testsuite/gas/mips/global-local-symtab-sort-n32.d: New test.
1435 * testsuite/gas/mips/global-local-symtab-sort-n32t.d: New test.
1436 * testsuite/gas/mips/global-local-symtab-sort-n64.d: New test.
1437 * testsuite/gas/mips/global-local-symtab-sort-n64t.d: New test.
1438 * testsuite/gas/mips/mips.exp: Run the new tests.
1439
1440 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
1441
1442 * testsuite/gas/mips/global-local-symtab-o32.d: New test.
1443 * testsuite/gas/mips/global-local-symtab-o32t.d: New test.
1444 * testsuite/gas/mips/global-local-symtab-n32.d: New test.
1445 * testsuite/gas/mips/global-local-symtab-n32t.d: New test.
1446 * testsuite/gas/mips/global-local-symtab-n64.d: New test.
1447 * testsuite/gas/mips/global-local-symtab.s: New test source.
1448 * testsuite/gas/mips/mips.exp: Run the new tests.
1449
1450 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1451
1452 PR gas/26305
1453 * config/tc-i386.c (build_modrm_byte): Use disp32/disp16 on
1454 (%bp)/(%ebp)/(%rbp) for {disp32}.
1455 * doc/c-i386.texi: Update {disp32} documentation.
1456 * testsuite/gas/i386/pseudos.s: Add (%bp)/(%ebp) tests.
1457 * testsuite/gas/i386/x86-64-pseudos.s: Add (%ebp)/(%rbp) tests.
1458 * testsuite/gas/i386/pseudos.d: Updated.
1459 * testsuite/gas/i386/x86-64-pseudos.d: Likewise.
1460
1461 2020-07-27 H.J. Lu <hongjiu.lu@intel.com>
1462
1463 * doc/as.texi: Replace preceeded with preceded.
1464
1465 2020-07-22 Maciej W. Rozycki <macro@linux-mips.org>
1466
1467 * testsuite/gas/mips/jal-svr4pic-irix.d: New file.
1468 * testsuite/gas/mips/mips1@jal-svr4pic-irix.d: New file.
1469 * testsuite/gas/mips/mipsr6@jal-svr4pic-irix.d: New file.
1470 * testsuite/gas/mips/micromips@jal-svr4pic-irix.d: New file.
1471 * testsuite/gas/mips/r3000@jal-svr4pic-irix.d: New file.
1472 * testsuite/gas/mips/jal-svr4pic-local-irix.d: New file.
1473 * testsuite/gas/mips/mips1@jal-svr4pic-local-irix.d: New file.
1474 * testsuite/gas/mips/micromips@jal-svr4pic-local-irix.d: New
1475 file.
1476 * testsuite/gas/mips/r3000@jal-svr4pic-local-irix.d: New file.
1477 * testsuite/gas/mips/jal-svr4pic-noreorder-irix.d: New file.
1478 * testsuite/gas/mips/mips1@jal-svr4pic-noreorder-irix.d: New
1479 file.
1480 * testsuite/gas/mips/mipsr6@jal-svr4pic-noreorder-irix.d: New
1481 file.
1482 * testsuite/gas/mips/micromips@jal-svr4pic-noreorder-irix.d: New
1483 file.
1484 * testsuite/gas/mips/r3000@jal-svr4pic-noreorder-irix.d: New
1485 file.
1486 * testsuite/gas/mips/jal-xgot-irix.d: New file.
1487 * testsuite/gas/mips/jalr2-irix.d: New file.
1488 * testsuite/gas/mips/micromips-branch-relax-insn32-pic-irix.d:
1489 New file.
1490 * testsuite/gas/mips/micromips-branch-relax-pic-irix.d: New
1491 file.
1492 * testsuite/gas/mips/mips-abi32-pic2-irix.d: New file.
1493 * testsuite/gas/mips/jal-svr4pic-local.d: Don't exclude
1494 `*-*-irix*' targets. Add source file designator.
1495 * testsuite/gas/mips/mips1@jal-svr4pic-local.d: Don't exclude
1496 `*-*-irix*' targets.
1497 * testsuite/gas/mips/r3000@jal-svr4pic-local.d: Likewise.
1498 * testsuite/gas/mips/micromips@jal-svr4pic-local.d: Likewise.
1499 * testsuite/gas/mips/jalr2.d: Add name designator.
1500 * testsuite/gas/mips/mips.exp: Use respective IRIX variants for
1501 tests involving the JALR relocation throughout.
1502
1503 2020-07-22 Maciej W. Rozycki <macro@linux-mips.org>
1504
1505 * testsuite/gas/mips/mips.exp: Use a helper variable for
1506 IRIX/non-IRIX test selection.
1507
1508 2020-07-21 Jan Beulich <jbeulich@suse.com>
1509
1510 * testsuite/gas/i386/evex-no-scale-64.d,
1511 testsuite/gas/i386/addr32.d,
1512 testsuite/gas/i386/x86-64-addr32-intel.d,
1513 testsuite/gas/i386/x86-64-addr32.d: Adjust expectations.
1514
1515 2020-07-21 Cooper Qu <cooper.qu@linux.alibaba.com>
1516
1517 * config/tc-csky.c (md_begin): Fix tests of arch and mach flags.
1518
1519 2020-07-21 Jan Beulich <jbeulich@suse.com>
1520
1521 * testsuite/gas/i386/evex-no-scale-32.d,
1522 testsuite/gas/i386/evex-no-scale-64.d: Add #source and #pass.
1523 * testsuite/gas/i386/evex-no-scale-32.s,
1524 testsuite/gas/i386/evex-no-scale-64.s: Rename / fold into ...
1525 * testsuite/gas/i386/evex-no-scale.s: ... this. Use .struct
1526 instead of .section.
1527 * testsuite/gas/i386/i386.exp: Move above tests out of ELF-
1528 specific section.
1529
1530 2020-07-21 Maciej W. Rozycki <macro@linux-mips.org>
1531
1532 * config/tc-mips.c (prev_reloc_op_frag): Remove variable.
1533 (my_getSmallExpression): Adjust accordingly.
1534
1535 2020-07-20 Jan Beulich <jbeulich@suse.com>
1536
1537 PR gas/4572
1538 * config/tc-i386.c (i386_comment_chars): Drop TE_I386AIX from
1539 conditional around it.
1540 (md_begin): Insert backslash into operand_chars[] when slash is
1541 a comment character.
1542 * config/tc-i386-intel.c (i386_operator): Recognize \/, \%, and
1543 \* as operators when / may be a comment character.
1544 * testsuite/gas/i386/svr4.s, testsuite/gas/i386/svr4.d: New.
1545 * testsuite/gas/i386/i386.exp: Run new test.
1546
1547 2020-07-20 Jan Beulich <jbeulich@suse.com>
1548
1549 PR gas/4572
1550 * app.c (last_char): Drop TC_ARM conditional around it.
1551 (struct app_save): Drop TC_ARM conditional around last_char.
1552 (app_push, app_pop): Drop TC_ARM conditional from last_char
1553 accesses.
1554 (do_scrub_chars): Likewise. Drop TC_ARM conditional from
1555 backslash-precedes-comment-character check.
1556
1557 2020-07-20 Jan Beulich <jbeulich@suse.com>
1558
1559 * config/tc-i386.c (frag_opcode_byte): New.
1560 (output_branch): Emit error when in absolute section.
1561 (output_jump, output_insn): Use frag_opcode_byte. Handle being
1562 in absolute section.
1563 (output_interseg_jump, output_disp, output_imm): Handle being in
1564 absolute section.
1565 * testsuite/gas/i386/sizing.s,
1566 testsuite/gas/i386/sizing32.d,
1567 testsuite/gas/i386/sizing64.d: New.
1568 * testsuite/gas/i386/i386.exp: Run new tests.
1569
1570 2020-07-20 Jan Beulich <jbeulich@suse.com>
1571
1572 * testsuite/gas/i386/i386.exp: Include *-*-vxworks alongside
1573 is_elf_format as applicable; merely exclude iamcu tests.
1574
1575 2020-07-19 H.J. Lu <hongjiu.lu@intel.com>
1576
1577 PR gas/26263
1578 * config/tc-i386.c (i386_validate_fix): Change PLT32 reloc
1579 against section to PC32 reloc.
1580 * testsuite/gas/i386/relax-5.d: Updated.
1581 * testsuite/gas/i386/x86-64-relax-4.d: Likewise.
1582
1583 2020-07-15 H.J. Lu <hongjiu.lu@intel.com>
1584
1585 PR gas/26237
1586 * testsuite/gas/i386/evex-no-scale-64.d: Updated.
1587 * testsuite/gas/i386/addr32.d: Likewise.
1588 * testsuite/gas/i386/x86-64-addr32-intel.d: Likewise.
1589 * testsuite/gas/i386/x86-64-addr32.d: Likewise.
1590
1591 2020-07-15 Nick Clifton <nickc@redhat.com>
1592
1593 * write.c (create_note_reloc): Add desc2_size parameter. Zero out
1594 the addend field of REL relocations. Store the full addend into
1595 the note for REL relocations.
1596
1597 2020-07-15 Jan Beulich <jbeulich@suse.com>
1598
1599 * testsuite/gas/i386/x86-64-stack.s: Adjust 32-bit push
1600 immediate.
1601 * testsuite/gas/i386/x86-64-stack-intel.d,
1602 testsuite/gas/i386/x86-64-stack-suffix.d,
1603 testsuite/gas/i386/x86-64-stack.d: Adjust expectations.
1604
1605 2020-07-15 Jan Beulich <jbeulich@suse.com>
1606
1607 * testsuite/gas/i386/disassem.d,
1608 testsuite/gas/i386/ilp32/x86-64-branch.d,
1609 testsuite/gas/i386/intel.d, testsuite/gas/i386/jump16.d,
1610 testsuite/gas/i386/lfence-load.d, testsuite/gas/i386/noreg16.d,
1611 testsuite/gas/i386/noreg32.d,
1612 testsuite/gas/i386/noreg64-rex64.d,
1613 testsuite/gas/i386/noreg64.d, testsuite/gas/i386/notrack.d,
1614 testsuite/gas/i386/opcode.d,
1615 testsuite/gas/i386/solaris/x86-64-branch-2.d,
1616 testsuite/gas/i386/solaris/x86-64-jump.d,
1617 testsuite/gas/i386/solaris/x86-64-mpx-branch-1.d,
1618 testsuite/gas/i386/solaris/x86-64-nop-3.d,
1619 testsuite/gas/i386/solaris/x86-64-nop-4.d,
1620 testsuite/gas/i386/solaris/x86-64-nop-5.d,
1621 testsuite/gas/i386/solaris/x86-64-relax-2.d,
1622 testsuite/gas/i386/solaris/x86-64-relax-3.d,
1623 testsuite/gas/i386/x86-64-align-branch-1a.d,
1624 testsuite/gas/i386/x86-64-align-branch-1b.d,
1625 testsuite/gas/i386/x86-64-align-branch-1c.d,
1626 testsuite/gas/i386/x86-64-align-branch-1d.d,
1627 testsuite/gas/i386/x86-64-align-branch-1e.d,
1628 testsuite/gas/i386/x86-64-align-branch-1f.d,
1629 testsuite/gas/i386/x86-64-align-branch-1g.d,
1630 testsuite/gas/i386/x86-64-align-branch-1h.d,
1631 testsuite/gas/i386/x86-64-align-branch-1i.d,
1632 testsuite/gas/i386/x86-64-align-branch-2a.d,
1633 testsuite/gas/i386/x86-64-align-branch-2b.d,
1634 testsuite/gas/i386/x86-64-align-branch-2c.d,
1635 testsuite/gas/i386/x86-64-align-branch-3.d,
1636 testsuite/gas/i386/x86-64-align-branch-4a.d,
1637 testsuite/gas/i386/x86-64-align-branch-4b.d,
1638 testsuite/gas/i386/x86-64-align-branch-5.d,
1639 testsuite/gas/i386/x86-64-align-branch-6.d,
1640 testsuite/gas/i386/x86-64-branch-2.d,
1641 testsuite/gas/i386/x86-64-branch-3.d,
1642 testsuite/gas/i386/x86-64-branch.d,
1643 testsuite/gas/i386/x86-64-disassem.d,
1644 testsuite/gas/i386/x86-64-disp32.d,
1645 testsuite/gas/i386/x86-64-gotpcrel-no-relax.d,
1646 testsuite/gas/i386/x86-64-gotpcrel.d,
1647 testsuite/gas/i386/x86-64-ifunc.d,
1648 testsuite/gas/i386/x86-64-jump.d,
1649 testsuite/gas/i386/x86-64-lfence-byte.d,
1650 testsuite/gas/i386/x86-64-lfence-indbr-a.d,
1651 testsuite/gas/i386/x86-64-lfence-indbr-b.d,
1652 testsuite/gas/i386/x86-64-lfence-indbr-c.d,
1653 testsuite/gas/i386/x86-64-lfence-load.d,
1654 testsuite/gas/i386/x86-64-lfence-ret-a.d,
1655 testsuite/gas/i386/x86-64-lfence-ret-b.d,
1656 testsuite/gas/i386/x86-64-lfence-ret-c.d,
1657 testsuite/gas/i386/x86-64-lfence-ret-d.d,
1658 testsuite/gas/i386/x86-64-lfence-ret-e.d,
1659 testsuite/gas/i386/x86-64-mpx-add-bnd-prefix.d,
1660 testsuite/gas/i386/x86-64-mpx-branch-1.d,
1661 testsuite/gas/i386/x86-64-mpx.d,
1662 testsuite/gas/i386/x86-64-nop-3.d,
1663 testsuite/gas/i386/x86-64-nop-4.d,
1664 testsuite/gas/i386/x86-64-nop-5.d,
1665 testsuite/gas/i386/x86-64-nops-7.d,
1666 testsuite/gas/i386/x86-64-notrack.d,
1667 testsuite/gas/i386/x86-64-opcode.d,
1668 testsuite/gas/i386/x86-64-relax-2.d,
1669 testsuite/gas/i386/x86-64-relax-3.d,
1670 testsuite/gas/i386/x86-64-relax-4.d,
1671 testsuite/gas/i386/x86-64-rtm.d,
1672 testsuite/gas/i386/x86-64-stack.d,
1673 testsuite/gas/i386/x86-64-unique.d,
1674 testsuite/gas/i386/x86_64-intel.d: Adjust expectations.
1675
1676 2020-07-14 H.J. Lu <hongjiu.lu@intel.com>
1677
1678 PR gas/26237
1679 * testsuite/gas/i386/addr32.s: Add tests for 32-bit wrapped around
1680 address.
1681 * testsuite/gas/i386/x86-64-addr32.s: Likewise.
1682 * testsuite/gas/i386/addr32.d: Updated.
1683 * testsuite/gas/i386/x86-64-addr32-intel.d: Likewise.
1684 * testsuite/gas/i386/x86-64-addr32.d: Likewise.
1685 * testsuite/gas/i386/ilp32/x86-64-addr32-intel.d: Likewise.
1686 * testsuite/gas/i386/ilp32/x86-64-addr32.d: Likewise.
1687
1688 2020-07-14 Jan Beulich <jbeulich@suse.com>
1689
1690 * testsuite/gas/i386/intel.s: Use dr<N> instead of db<N>.
1691 * testsuite/gas/i386/intel-intel.d: Disambiguate name.
1692 * testsuite/gas/i386/intel.d,
1693 testsuite/gas/i386/opcode-intel.d: Adjust expectations.
1694
1695 2020-07-14 Jan Beulich <jbeulich@suse.com>
1696
1697 * testsuite/gas/i386/prefix.d: Adjust expectations.
1698
1699 2020-07-14 Jan Beulich <jbeulich@suse.com>
1700
1701 * testsuite/gas/i386/x86-64-avx-intel.d,
1702 testsuite/gas/i386/x86-64-sse4_2-intel.d: Adjust expectations.
1703
1704 2020-07-14 Jan Beulich <jbeulich@suse.com>
1705
1706 * testsuite/gas/i386/movbe-suffix.d,
1707 testsuite/gas/i386/x86-64-movbe-suffix.d: New.
1708 * testsuite/gas/i386/i386.exp: Run new tests.
1709
1710 2020-07-14 Jan Beulich <jbeulich@suse.com>
1711
1712 * testsuite/gas/i386/crc32-suffix.d,
1713 testsuite/gas/i386/x86-64-crc32-suffix.d: New.
1714 * testsuite/gas/i386/i386.exp: Run new tests.
1715 * testsuite/gas/i386/arch-10-bdver1.d,
1716 testsuite/gas/i386/arch-10-bdver2.d,
1717 testsuite/gas/i386/arch-10-bdver3.d,
1718 testsuite/gas/i386/arch-10-bdver4.d,
1719 testsuite/gas/i386/arch-10-btver1.d,
1720 testsuite/gas/i386/arch-10-btver2.d,
1721 testsuite/gas/i386/arch-10-lzcnt.d,
1722 testsuite/gas/i386/arch-10-prefetchw.d,
1723 testsuite/gas/i386/arch-10.d, testsuite/gas/i386/arch-2.d,
1724 testsuite/gas/i386/arch-3.d, testsuite/gas/i386/arch-5.d,
1725 testsuite/gas/i386/arch-6.d, testsuite/gas/i386/crc32.d,
1726 testsuite/gas/i386/sse-noavx.d, testsuite/gas/i386/sse4_2.d,
1727 testsuite/gas/i386/x86-64-arch-2-bdver1.d,
1728 testsuite/gas/i386/x86-64-arch-2-bdver2.d,
1729 testsuite/gas/i386/x86-64-arch-2-bdver3.d,
1730 testsuite/gas/i386/x86-64-arch-2-bdver4.d,
1731 testsuite/gas/i386/x86-64-arch-2-btver1.d,
1732 testsuite/gas/i386/x86-64-arch-2-btver2.d,
1733 testsuite/gas/i386/x86-64-arch-2-lzcnt.d,
1734 testsuite/gas/i386/x86-64-arch-2-prefetchw.d,
1735 testsuite/gas/i386/x86-64-arch-2.d,
1736 testsuite/gas/i386/x86-64-crc32.d,
1737 testsuite/gas/i386/x86-64-pseudos.d,
1738 testsuite/gas/i386/x86-64-sse-noavx.d,
1739 testsuite/gas/i386/x86-64-sse4_2.d: Adjust expectations.
1740
1741 2020-07-14 Jan Beulich <jbeulich@suse.com>
1742
1743 * testsuite/gas/i386/x86-64-pseudos.s: Add empty-REX tests for
1744 ModR/M-encoded byte register cases.
1745 * testsuite/gas/i386/x86-64-pseudos.d,
1746 testsuite/gas/i386/x86-64-reg-intel.d,
1747 testsuite/gas/i386/x86-64-reg.d: Adjust expectations.
1748
1749 2020-07-14 Jan Beulich <jbeulich@suse.com>
1750
1751 * testsuite/gas/i386/x86-64-pseudos.s: Add empty-REX tests for
1752 not-ModR/M-encoded byte register cases.
1753 * testsuite/gas/i386/x86-64-pseudos.d: Adjust expectations.
1754
1755 2020-07-14 Jan Beulich <jbeulich@suse.com>
1756
1757 * testsuite/gas/i386/ilp32/x86-64-arch-1.d,
1758 testsuite/gas/i386/ilp32/x86-64-arch-2.d,
1759 testsuite/gas/i386/ilp32/x86-64-avx-intel.d,
1760 testsuite/gas/i386/ilp32/x86-64-avx.d,
1761 testsuite/gas/i386/ilp32/x86-64-crc32-intel.d,
1762 testsuite/gas/i386/ilp32/x86-64-crc32.d,
1763 testsuite/gas/i386/ilp32/x86-64-gotpcrel.d,
1764 testsuite/gas/i386/ilp32/x86-64-ifunc.d,
1765 testsuite/gas/i386/ilp32/x86-64-reg-intel.d,
1766 testsuite/gas/i386/ilp32/x86-64-reg.d,
1767 testsuite/gas/i386/ilp32/x86-64-rep-suffix.d,
1768 testsuite/gas/i386/ilp32/x86-64-sse4_2-intel.d,
1769 testsuite/gas/i386/ilp32/x86-64-sse4_2.d,
1770 testsuite/gas/i386/ilp32/x86-64-stack-intel.d,
1771 testsuite/gas/i386/ilp32/x86-64-stack-suffix.d,
1772 testsuite/gas/i386/ilp32/x86-64-stack.d: Reference parent dir
1773 dump expectations.
1774
1775 2020-07-13 H.J. Lu <hongjiu.lu@intel.com>
1776
1777 * config/tc-i386.c (offset_in_range): Remove 32-bit sign
1778 extension.
1779
1780 2020-07-13 Nick Clifton <nickc@redhat.com>
1781
1782 * po/fr.po: Updated French translation.
1783
1784 2020-07-13 Alan Modra <amodra@gmail.com>
1785
1786 * testsuite/gas/elf/dwarf2-7.d: Remove most xfails.
1787 * testsuite/gas/elf/dwarf2-12.d: Likewise.
1788 * testsuite/gas/elf/dwarf2-13.d: Likewise.
1789 * testsuite/gas/elf/dwarf2-14.d: Likewise.
1790
1791 2020-07-11 H.J. Lu <hongjiu.lu@intel.com>
1792
1793 * config/tc-i386.c (output_insn): Check i.xstate to set
1794 GNU_PROPERTY_X86_FEATURE_2_TMM.
1795 * testsuite/gas/i386/i386.exp: Run x86-64-property-7,
1796 x86-64-property-8 and x86-64-property-9.
1797 * testsuite/gas/i386/x86-64-property-7.d: New file.
1798 * testsuite/gas/i386/x86-64-property-7.s: Likewise.
1799 * testsuite/gas/i386/x86-64-property-8.d: Likewise.
1800 * testsuite/gas/i386/x86-64-property-8.s: Likewise.
1801 * testsuite/gas/i386/x86-64-property-9.d: Likewise.
1802 * testsuite/gas/i386/x86-64-property-9.s: Likewise.
1803
1804 2020-07-10 H.J. Lu <hongjiu.lu@intel.com>
1805
1806 * config/tc-i386.c (_i386_insn): Remove has_regmmx, has_regxmm,
1807 has_regymm, has_regzmm and has_regtmm. Add xstate.
1808 (md_assemble): Set i.xstate from operand types in instruction
1809 template.
1810 (build_modrm_byte): Updated.
1811 (output_insn): Check i.xstate.
1812 * testsuite/gas/i386/i386.exp: Run property-6 and
1813 x86-64-property-6.
1814 * testsuite/gas/i386/property-6.d: New file.
1815 * testsuite/gas/i386/property-6.s: Updated.
1816 * testsuite/gas/i386/x86-64-property-6.d: Likewise.
1817
1818 2020-07-10 H.J. Lu <hongjiu.lu@intel.com>
1819
1820 * testsuite/gas/i386/property-5.d: Correct test name.
1821
1822 2020-07-10 Lili Cui <lili.cui@intel.com>
1823
1824 * NEWS: Mention support for Intel AMX instructions.
1825 * config/tc-i386.c (i386_error): Add invalid_sib_address.
1826 (cpu_arch): Add .amx_int8, .amx_bf16 and .amx_tile.
1827 (cpu_noarch): Add noamx_int8, noamx_bf16 and noamx_tile.
1828 (match_simd_size): Add tmmword check.
1829 (operand_type_match): Add tmmword.
1830 (type_names): Add rTMM.
1831 (i386_error): Add invalid_tmm_register_set.
1832 (check_VecOperands): Handle invalid_sib_address and
1833 invalid_tmm_register_set.
1834 (match_template): Handle invalid_sib_address.
1835 (build_modrm_byte): Handle non-vector SIB and zmmword.
1836 (i386_index_check): Disallow RegIP for non-vector SIB.
1837 (check_register): Handle zmmword.
1838 * doc/c-i386.texi: Document amx_int8, amx_bf16 and amx_tile.
1839 * testsuite/gas/i386/i386.exp: Add AMX new tests.
1840 * testsuite/gas/i386/intel-regs.d: Add tmm.
1841 * testsuite/gas/i386/intel-regs.s: Add tmm.
1842 * testsuite/gas/i386/x86-64-amx-intel.d: New.
1843 * testsuite/gas/i386/x86-64-amx-inval.l: New.
1844 * testsuite/gas/i386/x86-64-amx-inval.s: New.
1845 * testsuite/gas/i386/x86-64-amx.d: New.
1846 * testsuite/gas/i386/x86-64-amx.s: New.
1847 * testsuite/gas/i386/x86-64-amx-bad.d: New.
1848 * testsuite/gas/i386/x86-64-amx-bad.s: New.
1849
1850 2020-07-10 Tom de Vries <tdevries@suse.de>
1851
1852 * testsuite/gas/elf/dwarf2-11.d: Update expected output from
1853 readelf's line table decoding.
1854 * testsuite/gas/elf/dwarf2-12.d: Likewise.
1855 * testsuite/gas/elf/dwarf2-13.d: Likewise.
1856 * testsuite/gas/elf/dwarf2-14.d: Likewise.
1857 * testsuite/gas/elf/dwarf2-15.d: Likewise.
1858 * testsuite/gas/elf/dwarf2-16.d: Likewise.
1859 * testsuite/gas/elf/dwarf2-17.d: Likewise.
1860 * testsuite/gas/elf/dwarf2-18.d: Likewise.
1861 * testsuite/gas/elf/dwarf2-19.d: Likewise.
1862 * testsuite/gas/elf/dwarf2-5.d: Likewise.
1863 * testsuite/gas/elf/dwarf2-6.d: Likewise.
1864 * testsuite/gas/elf/dwarf2-7.d: Likewise.
1865
1866 2020-07-09 H.J. Lu <hongjiu.lu@intel.com>
1867
1868 * config/tc-i386.c (output_insn): Set YMM/ZMM features for
1869 VEX/EVEX vector instructions.
1870 * testsuite/gas/i386/property-4.d: New file.
1871 * testsuite/gas/i386/property-4.s: Likewise.
1872 * testsuite/gas/i386/property-5.d: Likewise.
1873 * testsuite/gas/i386/property-5.s: Likewise.
1874 * testsuite/gas/i386/x86-64-property-4.d: Likewise.
1875 * testsuite/gas/i386/x86-64-property-5.d: Likewise.
1876
1877 2020-07-09 H.J. Lu <hongjiu.lu@intel.com>
1878
1879 * NEWS: Mention --enable-x86-used-note.
1880 * configure.ac: Configure with --enable-x86-used-note by default
1881 for Linux/x86.
1882 * configure: Regenerated.
1883
1884 2020-07-09 Alan Modra <amodra@gmail.com>
1885
1886 * config/obj-coff.h: Remove TE_PE support.
1887 * config/tc-ppc.c: Likewise.
1888 * config/tc-ppc.h: Likewise.
1889 * configure.tgt: Remove powerpc PE and powerpc lynxos.
1890 * testsuite/gas/cfi/cfi.exp (cfi-common-6): Remove powerpc PE
1891 condition.
1892 * testsuite/gas/macros/macros.exp: Don't xfail powerpc PE.
1893
1894 2020-07-08 Jan Beulich <jbeulich@suse.com>
1895
1896 * testsuite/gas/i386/fma4-lig.d, testsuite/gas/i386/xop-lig.d:
1897 New.
1898 * testsuite/gas/i386/i386.exp: Run new tests.
1899
1900 2020-07-07 Claudiu Zissulescu <claziss@synopsys.com>
1901
1902 * config/tc-arc.c (find_opcode_match): Add error messages.
1903 * testsuite/gas/arc/add_s-err.s: Update test.
1904 * testsuite/gas/arc/asm-errors.err: Likewise.
1905 * testsuite/gas/arc/cpu-em-err.s: Likewise.
1906 * testsuite/gas/arc/hregs-err.s: Likewise.
1907 * testsuite/gas/arc/warn.s: Likewise.
1908
1909 2020-07-07 H.J. Lu <hongjiu.lu@intel.com>
1910
1911 PR gas/26212
1912 * doc/c-i386.texi: Remove an incorrect AVX2 entry.
1913
1914 2020-07-07 Alan Modra <amodra@gmail.com>
1915
1916 * testsuite/gas/all/gas.exp: Use is_xcoff_format.
1917 * testsuite/gas/ppc/ppc.exp: Likewise.
1918 * testsuite/gas/all/weakref1l.d: Likewise.
1919
1920 2020-07-07 Nick Clifton <nickc@redhat.com>
1921
1922 * testsuite/gas/arm/cde-missing-fp.l: Fix spelling mistake in
1923 expected output.
1924
1925 2020-07-06 Jan Beulich <jbeulich@suse.com>
1926
1927 * testsuite/gas/i386/x86-64-avx512bw-wig1.d,
1928 testsuite/gas/i386/x86-64-avx512bw-wig1-intel.d,
1929 testsuite/gas/i386/x86-64-evex-wig1.d,
1930 testsuite/gas/i386/x86-64-evex-wig1-intel.d: Adjust
1931 expectations.
1932
1933 2020-07-06 Jan Beulich <jbeulich@suse.com>
1934
1935 * testsuite/gas/i386/avx512f-opts.s: Add EVEX movq tests.
1936 * testsuite/gas/i386/x86-64-avx512f-opts.s: Add blank line.
1937 * testsuite/gas/i386/avx512f-opts-intel.d,
1938 testsuite/gas/i386/avx512f-opts.d
1939 testsuite/gas/i386/x86-64-avx512f-opts-intel.d
1940 testsuite/gas/i386/x86-64-avx512f-opts.d: Adjust expectations.
1941
1942 2020-07-06 Yuri Chornoivan <yurchor@ukr.net>
1943
1944 PR 26204
1945 * config/tc-arm.c: Fix spelling mistake.
1946 * config/tc-riscv.c: Likewise.
1947 * config/tc-z80.c: Likewise.
1948 * po/gas.pot: Regenerate.
1949
1950 2020-07-06 Nick Clifton <nickc@redhat.com>
1951
1952 * po/uk.po: Updated Ukranian translation.
1953
1954 2020-07-04 Nick Clifton <nickc@redhat.com>
1955
1956 * configure: Regenerate.
1957 * po/gas.pot: Regenerate.
1958
1959 2020-07-04 Nick Clifton <nickc@redhat.com>
1960
1961 * version.m4: Change version number to 2.35.50.
1962 * configure: Regenerate.
1963 * po/bfd.pot: Regenerate.
1964
1965 2020-07-04 Nick Clifton <nickc@redhat.com>
1966
1967 Binutils 2.35 branch created.
1968
1969 2020-07-03 Alan Modra <amodra@gmail.com>
1970
1971 PR 26028
1972 * testsuite/gas/ia64/unwind-ilp32.d: Add -T to readelf options.
1973
1974 2020-07-02 H.J. Lu <hongjiu.lu@intel.com>
1975
1976 * config/tc-i386.c (build_modrm_byte): Check vexswapsources to
1977 swap two source operands.
1978
1979 2020-07-02 Nick Clifton <nickc@redhat.com>
1980
1981 * testsuite/gas/all/fill-1.d: Skip for MeP targets.
1982
1983 2020-07-02 Alex Coplan <alex.coplan@arm.com>
1984
1985 * config/tc-aarch64.c (reg_name_p): Fix cast so that we don't
1986 segfault on negative chars.
1987 * testsuite/gas/aarch64/reglike-label-unicode-segv.d: New test.
1988 * testsuite/gas/aarch64/reglike-label-unicode-segv.s: Input.
1989
1990 2020-07-02 Nick Clifton <nickc@redhat.com>
1991
1992 PR 26028
1993 * testsuite/gas/ia64/group-2.d: Add -T option to readelf
1994 command line.
1995 * testsuite/gas/ia64/unwind.d: Likewise.
1996 * testsuite/gas/mmix/bspec-1.d: Likewise.
1997 * testsuite/gas/mmix/bspec-2.d: Likewise.
1998 * testsuite/gas/mmix/comment-1.d: Likewise.
1999 * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
2000
2001 2020-07-01 Alan Modra <amodra@gmail.com>
2002
2003 * config/tc-xc16x.c (md_apply_fix): Add FIXME.
2004
2005 2020-07-01 Alan Modra <amodra@gmail.com>
2006
2007 * testsuite/gas/all/eqv-dot.d: xfail targets that set linkrelax
2008 in data sections, and mep.
2009
2010 2020-06-30 H.J. Lu <hongjiu.lu@intel.com>
2011
2012 * NEWS: Mention x86 NaCl target support removal.
2013 * config/tc-i386.c: Remove x86 NaCl target support.
2014 * config/tc-i386.h: Likewise.
2015 * configure.tgt: Likewise.
2016 * testsuite/gas/i386/i386.exp: Likewise.
2017 * testsuite/gas/i386/iamcu-1.d: Likewise.
2018 * testsuite/gas/i386/iamcu-2.d: Likewise.
2019 * testsuite/gas/i386/iamcu-3.d: Likewise.
2020 * testsuite/gas/i386/iamcu-4.d: Likewise.
2021 * testsuite/gas/i386/iamcu-5.d: Likewise.
2022 * testsuite/gas/i386/k1om.d: Likewise.
2023 * testsuite/gas/i386/l1om.d: Likewise.
2024
2025 2020-06-30 Nelson Chu <nelson.chu@sifive.com>
2026
2027 * config/tc-riscv.c (riscv_csr_class_check): Removed. Move the
2028 checking into riscv_csr_address.
2029 (riscv_csr_version_check): Likewise.
2030 (riscv_csr_address): New function. Return the suitable CSR address
2031 after checking the ISA dependency and versions. Issue warnings if
2032 we find any conflict and -mcsr-check is set. CSR_CLASS_F and
2033 CSR_CLASS_DEBUG are unprivileged CSR for now, so don't check the
2034 priv spec versions for them.
2035 (reg_csr_lookup_internal): Call riscv_csr_address to find the
2036 suitable CSR address.
2037 * testsuite/gas/riscv/priv-reg-fail-fext.d: Remove -mpriv-spec=1.11.
2038 * testsuite/gas/riscv/priv-reg-fail-read-only-01.d: Likewise.
2039 * testsuite/gas/riscv/priv-reg-fail-rv32-only.d: Likewise.
2040 * testsuite/gas/riscv/priv-reg-fail-fext.l: We don't care the
2041 priv spec warnings here. These warnings are added by accident.
2042 Remove them and only focus on the ISA dependency warnings.
2043 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
2044 * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
2045 * testsuite/gas/riscv/priv-reg-fail-version-1p9.l: Updated since
2046 dscratch0 and dscratch1 are regarded as the unprivileged CSR rather
2047 than the privileged ones.
2048 * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
2049 * testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
2050 * testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
2051 * testsuite/gas/riscv/priv-reg.s: Likewise. Add missing debug CSR.
2052 * testsuite/gas/riscv/priv-reg-version-1p9.d: Likewise.
2053 * testsuite/gas/riscv/priv-reg-version-1p9p1.d: Likewise.
2054 * testsuite/gas/riscv/priv-reg-version-1p10.d: Likewise.
2055 * testsuite/gas/riscv/priv-reg-version-1p11.d: Likewise.
2056 * testsuite/gas/riscv/csr-dw-regnums.d: Likewise.
2057 * testsuite/gas/riscv/csr-dw-regnums.s: Likewise.
2058
2059 2020-06-29 H.J. Lu <hongjiu.lu@intel.com>
2060
2061 * tc-i386.c (build_vex_prefix): Support VEX base opcode length > 1.
2062 (md_assemble): Don't process ImmExt without operands.
2063
2064 2020-06-29 Hans-Peter Nilsson <hp@bitrange.com>
2065
2066 PR gas/25331
2067 * config/tc-mmix.c (md_assemble) <fixup for
2068 BFD_RELOC_MMIX_BASE_PLUS_OFFSET>: This fixup affects 1 byte, not 8.
2069 Also, set its fx_no_overflow.
2070 (md_convert_frag) <case ENCODE_RELAX (STATE_PUSHJSTUB, STATE_ZERO)>:
2071 Similarly this fixup affects 4 bytes, not 8 and needs its
2072 fx_no_overflow set.
2073 * config/tc-mmix.h (TC_FX_SIZE_SLACK): Don't define.
2074 * testsuite/gas/mmix/pr25331.d, testsuite/gas/mmix/pr25331.s: New test.
2075
2076 2020-06-29 Alan Modra <amodra@gmail.com>
2077
2078 * config/tc-s12z.c: Use C style comments.
2079 * config/tc-z80.c: Likewise.
2080 * config/tc-xtensa.c (emit_ld_r_n): Remove commented out code.
2081
2082 2020-06-26 H.J. Lu <hongjiu.lu@intel.com>
2083
2084 * config/tc-i386.c (md_assemble): Process ImmExt without
2085 operands.
2086
2087 2020-06-26 H.J. Lu <hongjiu.lu@intel.com>
2088
2089 * config/tc-i386.c (check_VecOperands): Replace vecsib with sib.
2090 Replace VecSIB128, VecSIB256 and VecSIB512 with VECSIB128,
2091 VECSIB256 and VECSIB512, respectively.
2092 (build_modrm_byte): Replace vecsib with sib.
2093
2094 2020-06-26 Jan Beulich <jbeulich@suse.com>
2095
2096 * testsuite/gas/i386/nop-1-suffix.d: New.
2097 * testsuite/gas/i386/i386.exp: Run new test.
2098
2099 2020-06-26 Pat Bernardi <bernardi@adacore.com>
2100
2101 * config/tc-m68k.c (m68k_elf_gnu_attribute): New function.
2102 (md_pseudo_table): Handle "gnu_attribute".
2103 * doc/as.texi: Document GNU attribute for M68K.
2104
2105 2020-06-25 Nick Clifton <nickc@redhat.com>
2106
2107 PR 26141
2108 * config/tc-arm.c (arm_force_relocation): Force resolution of
2109 BFD_RELOC_THUMB_PCREL_BRANCH12 relocations.
2110 * testsuite/gas/arm/plt-1.d: Adjust expected disassembly.
2111
2112 2020-06-25 Jan Beulich <jbeulich@suse.com>
2113
2114 * config/tc-i386.c (md_assemble): Move call to process_immext()
2115 ...
2116 (process_operands): ... here.
2117
2118 2020-06-25 Jan Beulich <jbeulich@suse.com>
2119
2120 * config/tc-i386.c (process_suffix): Skip ambiguous operand size
2121 diagnostic when there is a sizing prefix. Switch to word/dword/
2122 qword encoding when there is a sizing prefix and no (explicit or
2123 derived) suffix.
2124 (update_imm): Handle presence of a sizing prefix.
2125 * testsuite/gas/i386/noreg16-data32.d,
2126 testsuite/gas/i386/noreg32-data16.d,
2127 testsuite/gas/i386/noreg32-data16.e,
2128 testsuite/gas/i386/noreg64-data16.d,
2129 testsuite/gas/i386/noreg64-data16.e,
2130 testsuite/gas/i386/noreg64-rex64.d: New.
2131 * testsuite/gas/i386/i386.exp: Run new tests.
2132 * testsuite/gas/i386/noreg32.s, testsuite/gas/i386/noreg64.s:
2133 Introduce and use pfx* macros.
2134 * testsuite/gas/i386/noreg16.s: Likewise. Replace 32-bit
2135 addressing.
2136 * testsuite/gas/i386/noreg16.d: Adjust expectations.
2137
2138 2020-06-25 Jan Beulich <jbeulich@suse.com>
2139
2140 * testsuite/gas/i386/avx-16bit.d,
2141 testsuite/gas/i386/avx-scalar.d, testsuite/gas/i386/avx.d,
2142 testsuite/gas/i386/avx512f-16bit.d,
2143 testsuite/gas/i386/avx512f.d,
2144 testsuite/gas/i386/evex-lig256.d,
2145 testsuite/gas/i386/evex-lig512.d
2146 testsuite/gas/i386/evex-wig1.d, testsuite/gas/i386/katmai.d,
2147 testsuite/gas/i386/noreg16.d, testsuite/gas/i386/noreg32.d,
2148 testsuite/gas/i386/ptwrite.d, testsuite/gas/i386/simd.d,
2149 testsuite/gas/i386/sse2-16bit.d,
2150 testsuite/gas/i386/sse2.d, testsuite/gas/i386/sse2avx.d: Adjust
2151 expectations.
2152
2153 2020-06-25 Jan Beulich <jbeulich@suse.com>
2154
2155 * config/tc-i386.c (md_assemble): Also reject explicit REX
2156 prefixes with VEX and alike encoded insns. Zap consumed bits
2157 from i.rex.
2158 (output_insn): Don't ignore REX prefix for VEX and alike
2159 encodings; abort() instead if encountered.
2160 * testsuite/gas/i386/x86-64-pseudos.s: Move REX-with-VEX cases
2161 ...
2162 * testsuite/gas/i386/x86-64-pseudos-bad.s: ... here.
2163 * testsuite/gas/i386/x86-64-pseudos.d,
2164 testsuite/gas/i386/x86-64-pseudos-bad.l: Adjust expectations.
2165
2166 2020-06-25 Jan Beulich <jbeulich@suse.com>
2167
2168 * config/tc-i386.c (process_operands): Translate explicit REX
2169 prefix into i.rex for SSE2AVX templates.
2170 (set_rex_vrex): New helper.
2171 (build_modrm_byte): Use it.
2172 * testsuite/gas/i386/x86-64-sse2avx.s: Add cases with explict
2173 REX prefixes.
2174 * testsuite/gas/i386/x86-64-sse2avx.d: Adjust expectations.
2175
2176 2020-06-25 Jan Beulich <jbeulich@suse.com>
2177
2178 * config/tc-i386.c (cpu_flags_match): Only match SSE2AVX
2179 templates when there's no data size prefix.
2180 (md_assemble): Reject data size prefix also for legacy encoded
2181 SIMD templates.
2182 * testsuite/gas/i386/prefix32.s, testsuite/gas/i386/prefix64.s:
2183 Uncomment previously not working line.
2184 * testsuite/gas/i386/sse2avx.s: Add ldmxcsr/stmxcsr cases with
2185 data16 prefix.
2186 * testsuite/gas/i386/prefix32.l, testsuite/gas/i386/prefix64.l,
2187 testsuite/gas/i386/sse2avx.d: Adjust expectations.
2188
2189 2020-06-25 Jan Beulich <jbeulich@suse.com>
2190
2191 * config/tc-i386.c (build_evex_prefix): Drop early setting of
2192 vec_length.
2193
2194 2020-06-23 Nelson Chu <nelson.chu@sifive.com>
2195
2196 * config/tc-riscv.c (explicit_priv_attr): Rename explicit_csr to
2197 explicit_priv_attr. It used to indicate CSR or priv instructions are
2198 explictly used.
2199 (riscv_is_priv_insn): Return True if it is a privileged instruction.
2200 (riscv_ip): Call riscv_is_priv_insn to check whether the instruction
2201 is privileged or not. If it is, then set explicit_priv_attr to TRUE.
2202 (riscv_write_out_attrs): Clarification of when to generate the elf
2203 priv spec attributes.
2204 * testsuite/gas/riscv/attribute-11.s: Add comments.
2205 * testsuite/gas/riscv/attribute-14.s: New testcase. Use symbol
2206 `priv_insn_<n>` to decide which priv instruction is expected to used.
2207 (<n> is a to e.)
2208 * testsuite/gas/riscv/attribute-14a.d: Likewise.
2209 * testsuite/gas/riscv/attribute-14b.d: Likewise.
2210 * testsuite/gas/riscv/attribute-14c.d: Likewise.
2211 * testsuite/gas/riscv/attribute-14d.d: Likewise.
2212 * testsuite/gas/riscv/attribute-14e.d: Likewise.
2213
2214 2020-06-22 Nelson Chu <nelson.chu@sifive.com>
2215
2216 * config/tc-riscv.c (buf_size, buf): Remove the unused variables.
2217 (riscv_set_default_priv_spec): Get the priv spec version from the
2218 priv spec attributes by riscv_get_priv_spec_class_from_numbers.
2219
2220 2020-06-20 Alan Modra <amodra@gmail.com>
2221
2222 * configure.tgt: Set bfd_gas for all SH targets.
2223
2224 2020-06-18 Jan Beulich <jbeulich@suse.com>
2225
2226 * testsuite/gas/i386/arch-13.s: Add alternative VMGEXIT case.
2227 * testsuite/gas/i386/arch-13.d: Extend -march=. Adjust
2228 expectations.
2229
2230 2020-06-16 Lili Cui <lili.cui@intel.com>
2231
2232 * config/tc-i386.c (cpu_arch): Correct noavx512_vp2intersect
2233 cpu_arch to CPU_ANY_VP2INTERSECT_FLAGS.
2234 * doc/c-i386.texi: Add avx512_vp2intersect.
2235
2236 2020-06-16 Jan Beulich <jbeulich@suse.com>
2237
2238 * config/tc-i386.c (md_assemble): Drop SSE4a from SSE check
2239 conditional.
2240 * testsuite/gas/i386/sse-check.s: Adjust comment.
2241 * testsuite/gas/i386/sse-check-error.l,
2242 testsuite/gas/i386/sse-check-warn.e,
2243 testsuite/gas/i386/x86-64-sse-check-error.l: Adjust
2244 expectations.
2245
2246 2020-06-16 Alan Modra <amodra@gmail.com>
2247
2248 * config/tc-tic30.h: Remove OBJ_AOUT support.
2249 * configure.tgt: Delete tic30-*-*aout* entry.
2250
2251 2020-06-15 Max Filippov <jcmvbkbc@gmail.com>
2252
2253 * config/tc-xtensa.c (XTHAL_ABI_WINDOWED, XTHAL_ABI_CALL0): New
2254 macros.
2255 (elf32xtensa_abi): New declaration.
2256 (option_abi_windowed, option_abi_call0): New enum constants.
2257 (md_longopts): Add entries for --abi-windowed and --abi-call0.
2258 (md_parse_option): Add handlers for --abi-windowed and
2259 --abi-call0.
2260 (xtensa_add_config_info): Use xtensa_abi_choice instead of
2261 XSHAL_ABI to format ABI tag.
2262 * doc/as.texi (Target Xtensa options): Add --abi-windowed and
2263 --abi-call0 to the list of options.
2264 * doc/c-xtensa.texi: Add description for options --abi-windowed
2265 and --abi-call0.
2266 * testsuite/gas/xtensa/abi-call0.d: New test definition.
2267 * testsuite/gas/xtensa/abi-windowed.d: New test definition.
2268 * testsuite/gas/xtensa/abi.s: New test source.
2269
2270 2020-06-14 H.J. Lu <hongjiu.lu@intel.com>
2271
2272 PR gas/26115
2273 * testsuite/gas/i386/tsxldtrk.d: Replace xsuspldtrk with
2274 xsusldtrk.
2275 * testsuite/gas/i386/tsxldtrk.s: Likewise.
2276 * testsuite/gas/i386/x86-64-tsxldtrk.d: Likewise.
2277 * testsuite/gas/i386/x86-64-tsxldtrk.s: Likewise.
2278
2279 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2280
2281 * testsuite/gas/riscv/priv-reg-fail-version-1p9.d: Removed.
2282 * testsuite/gas/riscv/priv-reg-fail-version-1p9.l: Likewise.
2283 * testsuite/gas/riscv/priv-reg-version-1p9.d: Likewise.
2284
2285 2020-06-09 Seth Girvan <snth@snthhacks.com>
2286
2287 * doc/c-avr.texi: Improve wording.
2288
2289 2020-06-09 Jan Beulich <jbeulich@suse.com>
2290
2291 * testsuite/gas/i386/x86-64-pseudos-bad.s,
2292 testsuite/gas/i386/x86-64-pseudos-bad.l: New.
2293
2294 2020-06-09 Jan Beulich <jbeulich@suse.com>
2295
2296 * testsuite/gas/i386/prefix.s: Add bogus prefix-with-VEX/EVEX
2297 encoding tests.
2298 * testsuite/gas/i386/prefix.d: Adjust expectations.
2299
2300 2020-06-09 Jan Beulich <jbeulich@suse.com>
2301
2302 * testsuite/gas/i386/prefix.s: Add bogus REP / EVEX.W prefix
2303 with VEX/EVEX encoding tests.
2304 * testsuite/gas/i386/prefix.d: Adjust expectations.
2305
2306 2020-06-09 Jan Beulich <jbeulich@suse.com>
2307
2308 * config/tc-i386.c (process_suffix): Restrict defaulting to 'q'
2309 suffix.
2310 * testsuite/gas/i386/noreg64.s: Add lcall/ljmp cases.
2311 * testsuite/gas/i386/noreg64.d: Adjust expectations.
2312 * testsuite/gas/i386/noreg-intel64.d,
2313 testsuite/gas/i386/noreg-intel64.l,
2314 testsuite/gas/i386/noreg-intel64.s: New.
2315 * testsuite/gas/i386/i386.exp: Run new tests.
2316
2317 2020-06-09 Jan Beulich <jbeulich@suse.com>
2318
2319 * config/tc-i386.c (vex_encoding_error): New enumerator.
2320 (VEX_check_operands): Rename to VEX_check_encoding. Check
2321 for vex_encoding_error. Move Imm4 handling ...
2322 (check_VecOperands): ... here.
2323 (match_template): Call VEX_check_encoding when there are no
2324 operands. Split construct calling check_VecOperands and
2325 VEX_check_encoding (when there are operands).
2326 (check_register): Don't blindly set vex_encoding_evex.
2327 * testsuite/gas/i386/pseudos-bad.s,
2328 testsuite/gas/i386/pseudos-bad.l: New.
2329 * testsuite/gas/i386/i386.exp: Run new test.
2330 * testsuite/gas/i386/xmmhi64.s: Drop {vex2}.
2331
2332 2020-06-08 Alex Coplan <alex.coplan@arm.com>
2333
2334 * config/tc-arm.c (insns): Add dfb.
2335 * testsuite/gas/arm/dfb.d: New test.
2336 * testsuite/gas/arm/dfb.s: Input for test.
2337
2338 2020-06-08 Nick Clifton <nickc@redhat.com>
2339
2340 * testsuite/gas/cfi/cfi-i386-2.d: Skip for PE based targets.
2341
2342 2020-06-08 Jan Beulich <jbeulich@suse.com>
2343
2344 * config/tc-i386.c (pi): Add checks for RegMask and RegBND.
2345
2346 2020-06-08 Jan Beulich <jbeulich@suse.com>
2347
2348 * config/tc-i386.c (check_byte_reg): Drop dead conditional
2349 around as_bad().
2350
2351 2020-06-08 Jan Beulich <jbeulich@suse.com>
2352
2353 * config/tc-i386.c (check_register): Split RegTR handling, to
2354 fail recognition also in 64-bit mode as well as with i586 or
2355 i686 explicitly enabled.
2356 * testsuite/gas/i386/x86_64.s: Add insns referencing tr<N>.
2357 * testsuite/gas/i386/x86_64-intel.d,
2358 testsuite/gas/i386/x86_64.d: Adjust expectations.
2359
2360 2020-06-08 Jan Beulich <jbeulich@suse.com>
2361
2362 * testsuite/gas/cfi/cfi-i386-2.d: Adjust expectations.
2363 * testsuite/gas/cfi/cfi.exp: Run this test.
2364
2365 2020-06-08 Jan Beulich <jbeulich@suse.com>
2366
2367 * config/tc-i386.c (parse_real_register): Add allow_pseudo_reg
2368 check to %st(N) parsing logic.
2369 * testsuite/gas/cfi/cfi-i386.s: Set "generic32" arch.
2370
2371 2020-06-08 Jan Beulich <jbeulich@suse.com>
2372
2373 * config/tc-i386.c (bad_reg): New.
2374 (check_VecOperations, i386_att_operand, i386_parse_name): Check
2375 for it.
2376 (check_register): New, broken out from ...
2377 (parse_real_register): ... here. Call it.
2378 (parse_register): Call it, and error upon failure.
2379 * testsuite/gas/i386/equ-bad.s, testsuite/gas/i386/equ-bad.l,
2380 testsuite/gas/i386/x86-64-equ-bad.s,
2381 testsuite/gas/i386/x86-64-equ-bad.l: New.
2382 * testsuite/gas/i386/i386.exp: Run new tests.
2383
2384 2020-06-06 Alan Modra <amodra@gmail.com>
2385
2386 * config/tc-ppc.c (md_show_usage): Mention -mpower10 and -mpwr10.
2387 * doc/c-ppc.texi: Likewise.
2388
2389 2020-06-06 Alan Modra <amodra@gmail.com>
2390
2391 * config/tc-ppc.c: Update throughout for reloc renaming.
2392
2393 2020-06-05 Jose E. Marchesi <jose.marchesi@oracle.com>
2394
2395 * config/tc-bpf.c (md_apply_fix): Avoid GCC 10 warning
2396 stringop-overflow.
2397
2398 2020-06-05 Nelson Chu <nelson.chu@sifive.com>
2399
2400 * config/tc-riscv.c (explicit_csr): New static boolean.
2401 Used to indicate CSR are explictly used.
2402 (riscv_ip): Set explicit_csr to TRUE if any CSR is used.
2403 (riscv_write_out_attrs): If we already have set elf priv
2404 attributes, then generate them. Otherwise, don't generate
2405 them when no CSR are used.
2406 * testsuite/gas/riscv/attribute-01.d: Remove the priv attributes.
2407 * testsuite/gas/riscv/attribute-02.d: Likewise.
2408 * testsuite/gas/riscv/attribute-03.d: Likewise.
2409 * testsuite/gas/riscv/attribute-04.d: Likewise.
2410 * testsuite/gas/riscv/attribute-05.d: Likewise.
2411 * testsuite/gas/riscv/attribute-06.d: Likewise.
2412 * testsuite/gas/riscv/attribute-07.d: Likewise.
2413 * testsuite/gas/riscv/attribute-08.d: Likewise.
2414 * testsuite/gas/riscv/attribute-09.d: Likewise.
2415 * testsuite/gas/riscv/attribute-10.d: Likewise.
2416 * testsuite/gas/riscv/attribute-unknown.d: Likewise.
2417 * testsuite/gas/riscv/attribute-11.s: New testcase.
2418 * testsuite/gas/riscv/attribute-11.d: New testcase. The CSR is
2419 used, so we should output the ELF priv attributes.
2420 * testsuite/gas/riscv/attribute-12.d: New testcase. The CSR is
2421 used, so output the priv attributes according to the -mpriv-spec.
2422 * testsuite/gas/riscv/attribute-13.d: New testcase. The CSR isn't
2423 used, so ignore the -mpriv-spec setting.
2424
2425 2020-06-04 H.J. Lu <hongjiu.lu@intel.com>
2426
2427 * config/tc-ip2k. (ip2k_apply_fix): Pass endianness to
2428 cgen_get_insn_value.
2429 * config/tc-xstormy16.c (xstormy16_md_apply_fix): Pass
2430 endianness to cgen_get_insn_value and cgen_put_insn_value.
2431
2432 2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2433
2434 * config/tc-bpf.c (md_apply_fix): Simplify and avoid using
2435 cgen_put_insn_value.
2436
2437 2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2438
2439 * config/tc-bpf.c (md_begin): Pass CGEN_CPU_OPEN_INSN_ENDIAN to
2440 bpf_cgen_cpu_open.
2441 (md_assemble): Remove no longer needed hack.
2442
2443 2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2444
2445 * cgen.c (gas_cgen_finish_insn): Pass the endianness to
2446 cgen_put_insn_value.
2447 (gas_cgen_md_apply_fix): Likewise.
2448 (gas_cgen_md_apply_fix): Likewise.
2449 * config/tc-bpf.c (md_apply_fix): Pass data endianness to
2450 cgen_put_insn_value.
2451 * config/tc-mep.c (mep_check_ivc2_scheduling): Pass endianness to
2452 cgen_put_insn_value.
2453
2454 2020-06-04 Alan Modra <amodra@gmail.com>
2455
2456 * testsuite/config/default.exp: Remove global directive outside
2457 proc body.
2458 * testsuite/gas/mep/complex-relocs.exp: Likewise.
2459 * testsuite/gas/microblaze/relax_size.exp: Likewise.
2460 * testsuite/gas/microblaze/reloc_sym.exp: Likewise.
2461 * testsuite/gas/mt/relocs.exp: Likewise.
2462 * testsuite/gas/rx/rx.exp: Likewise.
2463
2464 2020-06-03 Stephen Casner <casner@acm.org>
2465
2466 * doc/c-riscv.texi (RISC-V-Options): Fix non-ASCII apostrophe.
2467
2468 2020-06-02 Frédéric Pétrot <frederic.petrot@univ-grenoble-alpes.fr>
2469 Jim Wilson <jimw@sifive.com>
2470
2471 PR 26051
2472 * doc/c-riscv.texi (RISC-V-Formats): Add missing I format using
2473 simm12(rs1). Correct S format to use simm12(rs1). Drop SB and B
2474 formats using simm12(rs1). Correct SB and B to use rs1 and rs2.
2475 Move B before SB. Move J before UJ.
2476
2477 2020-06-01 Alex Coplan <alex.coplan@arm.com>
2478
2479 * write.c (relax_segment): Fix handling of negative offset when
2480 relaxing an rs_org frag.
2481 * testsuite/gas/aarch64/org-neg.d: New test.
2482 * testsuite/gas/aarch64/org-neg.l: Error output for test.
2483 * testsuite/gas/aarch64/org-neg.s: Input for test.
2484 * testsuite/gas/arm/org-neg.d: New test.
2485 * testsuite/gas/arm/org-neg.l: Error output for test.
2486 * testsuite/gas/arm/org-neg.s: Input for test.
2487
2488 2020-05-28 Stephen Casner <casner@acm.org>
2489
2490 Fix unexpected failures in gas testsuite for pdp11-aout target.
2491 These are caused by the PDP11's mix of little-endian octets in
2492 shorts but shorts in big endian order for long or quad.
2493
2494 * config/tc-pdp11.c (md_number_to_chars): Implement .quad
2495 * testsuite/gas/all/gas.exp: Select alternate test scripts for
2496 pdp11, skip octa test completely.
2497 * testsuite/gas/all/eqv-dot-pdp11.s: Identical to eqv-dot.s
2498 * testsuite/gas/all/eqv-dot-pdp11.d: Match different octet order.
2499 * testsuite/gas/all/cond-pdp11.l: Match different octet order.
2500
2501 2020-05-28 Alex Coplan <alex.coplan@arm.com>
2502
2503 * frags.c (frag_grow): Fix comment.
2504
2505 2020-05-27 Stephen Casner <casner@acm.org>
2506
2507 PR gas/26001
2508 * config/tc-pdp11.c (parse_reg): Distinguish register names from
2509 symbols that begin with a register name.
2510 * testsuite/gas/pdp11/pdp11.exp: Add test of such symbols.
2511 * testsuite/gas/pdp11/pr26001.s: Likewise.
2512 * testsuite/gas/pdp11/pr26001.d: Likewise.
2513
2514 2020-05-27 Simon Cook <simon.cook@embecosm.com>
2515
2516 * config/tc-riscv.c (riscv_init_csr_hash): NULL initilize next
2517 pointer when creating struct riscv_csr_extra.
2518
2519 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
2520
2521 * testsuite/gas/i386/align-branch-9.d: Updated for PECOFF.
2522 * testsuite/gas/i386/inval-avx512f.s: Add .p2align for PECOFF.
2523 * testsuite/gas/i386/inval-avx512f.l: Updated.
2524
2525 2020-05-26 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
2526
2527 * testsuite/gas/s390/zarch-z13.d: Add regexp checks for vector
2528 load/store instruction variants with alignment hints.
2529 * testsuite/gas/s390/zarch-z13.s: Emit new vector load/store
2530 instruction variants with alignment hints.
2531
2532 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
2533
2534 PR gas/26044
2535 * config/tc-xgate.c (md_apply_fix): Check BFD_RELOC_XGATE_PCREL_X
2536 instead of R_XGATE_PCREL_X.
2537 (xgate_parse_operand): Replace R_XGATE_PCREL_X with
2538 BFD_RELOC_XGATE_PCREL_X.
2539
2540 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
2541
2542 PR gas/26044
2543 * config/tc-visium.c (md_convert_frag): Replace fragP->fr_literal
2544 with &fragP->fr_literal[0].
2545
2546 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
2547
2548 PR gas/26044
2549 * config/tc-vax.c (md_estimate_size_before_relax): Replace
2550 fragP->fr_literal with &fragP->fr_literal[0].
2551 (md_convert_frag): Likewise.
2552
2553 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
2554
2555 PR gas/26044
2556 * config/tc-v850.c (md_convert_frag): Replace fragP->fr_literal
2557 with &fragP->fr_literal[0].
2558
2559 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
2560
2561 PR gas/26044
2562 * config/tc-crx.c (getreg_image): Change argument type to int.
2563 (md_convert_frag): Replace fragP->fr_literal with
2564 &fragP->fr_literal[0].
2565
2566 2020-05-26 H.J. Lu <hongjiu.lu@intel.com>
2567
2568 PR gas/26044
2569 * onfig/tc-score.c (s3_do_macro_bcmp): Replace overlapping
2570 sprintf with memmove.
2571
2572 2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
2573
2574 * config/tc-mcore.c (md_convert_frag): Replace fragP->fr_literal
2575 with &fragP->fr_literal[0].
2576
2577 2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
2578
2579 PR gas/26041
2580 * config/tc-cr16.c (md_assemble): Use memmove to concatenate
2581 2 overlapping strings.
2582
2583 2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
2584
2585 * config/tc-cr16.c (md_convert_frag): Replace fragP->fr_literal
2586 with &fragP->fr_literal[0].
2587
2588 2020-05-25 H.J. Lu <hongjiu.lu@intel.com>
2589
2590 * config/tc-csky.c (md_convert_frag): Replace fragp->fr_literal
2591 with &fragp->fr_literal[0].
2592 * config/tc-microblaze.c (md_apply_fix): Likewise.
2593 * config/tc-sh.c (md_convert_frag): Likewise.
2594
2595 2020-05-24 Jim Wilson <jimw@sifive.com>
2596
2597 PR 26025
2598 * config/tc-riscv.c (riscv_pre_output_hook): Change s type from const
2599 asection to segT. New locals seg and subseg. Call subseg_set before
2600 fix_new_exp. Call subseg_set after loop to restore original values.
2601
2602 2020-05-21 Alan Modra <amodra@gmail.com>
2603
2604 * atof-generic.c: Replace "if (x) free (x)" with "free (x)"
2605 throughout.
2606 * config/obj-elf.c: Likewise.
2607 * config/tc-aarch64.c: Likewise.
2608 * config/tc-arm.c: Likewise.
2609 * config/tc-m68k.c: Likewise.
2610 * config/tc-nios2.c: Likewise.
2611 * config/tc-tic30.c: Likewise.
2612 * ecoff.c: Likewise.
2613 * read.c: Likewise.
2614 * stabs.c: Likewise.
2615 * symbols.c: Likewise.
2616 * testsuite/gas/all/test-gen.c: Likewise.
2617
2618 2020-05-20 Nelson Chu <nelson.chu@sifive.com>
2619
2620 * testsuite/gas/riscv/priv-reg-fail-read-only-01.s: Updated.
2621 * config/tc-riscv.c (default_arch_with_ext, default_isa_spec):
2622 Static variables which are used to set the ISA extensions. You can
2623 use -march (or ELF build attributes) and -misa-spec to set them,
2624 respectively.
2625 (ext_version_hash): The hash table used to handle the extensions
2626 with versions.
2627 (init_ext_version_hash): Initialize the ext_version_hash according
2628 to riscv_ext_version_table.
2629 (riscv_get_default_ext_version): The callback function of
2630 riscv_parse_subset_t. According to the choosed ISA spec,
2631 get the default version for the specific extension.
2632 (riscv_set_arch): Set the callback function.
2633 (enum options, struct option md_longopts): Add new option -misa-spec.
2634 (md_parse_option): Do not call riscv_set_arch for -march. We will
2635 call it later in riscv_after_parse_args. Call riscv_get_isa_spec_class
2636 to set default_isa_spec class.
2637 (riscv_after_parse_args): Call init_ext_version_hash to initialize the
2638 ext_version_hash, and then call riscv_set_arch to set the architecture
2639 with versions according to default_arch_with_ext.
2640 * testsuite/gas/riscv/attribute-02.d: Set 0p0 as default version for
2641 x extensions.
2642 * testsuite/gas/riscv/attribute-03.d: Likewise.
2643 * testsuite/gas/riscv/attribute-09.d: New testcase. For i-ext, we
2644 already set it's version to 2p1 by march, so no need to use the default
2645 2p2 version. For m-ext, we do not set the version by -march and ELF arch
2646 attribute, so set the default 2p0 to it. For zicsr, it is not defined in
2647 ISA spec 2p2, so set 0p0 to it.
2648 * testsuite/gas/riscv/attribute-10.d: New testcase. The version of
2649 zicsr is 2p0 according to ISA spec 20191213.
2650 * config/tc-riscv.c (DEFAULT_RISCV_ARCH_WITH_EXT)
2651 (DEFAULT_RISCV_ISA_SPEC): Default configure option settings.
2652 You can set them by configure options --with-arch and
2653 --with-isa-spec, respectively.
2654 (riscv_set_default_isa_spec): New function used to set the
2655 default ISA spec.
2656 (md_parse_option): Call riscv_set_default_isa_spec rather than
2657 call riscv_get_isa_spec_class directly.
2658 (riscv_after_parse_args): If the -isa-spec is not set, then we
2659 set the default ISA spec according to DEFAULT_RISCV_ISA_SPEC by
2660 calling riscv_set_default_isa_spec.
2661 * testsuite/gas/riscv/attribute-01.d: Add -misa-spec=2.2, since
2662 the --with-isa-spec may be set to different ISA spec.
2663 * testsuite/gas/riscv/attribute-02.d: Likewise.
2664 * testsuite/gas/riscv/attribute-03.d: Likewise.
2665 * testsuite/gas/riscv/attribute-04.d: Likewise.
2666 * testsuite/gas/riscv/attribute-05.d: Likewise.
2667 * testsuite/gas/riscv/attribute-06.d: Likewise.
2668 * testsuite/gas/riscv/attribute-07.d: Likewise.
2669 * configure.ac: Add configure options, --with-arch and
2670 --with-isa-spec.
2671 * configure: Regenerated.
2672 * config.in: Regenerated.
2673 * config/tc-riscv.c (default_priv_spec): Static variable which is
2674 used to check if the CSR is valid for the chosen privilege spec. You
2675 can use -mpriv-spec to set it.
2676 (enum reg_class): We now get the CSR address from csr_extra_hash rather
2677 than reg_names_hash. Therefore, move RCLASS_CSR behind RCLASS_MAX.
2678 (riscv_init_csr_hashes): Only need to initialize one hash table
2679 csr_extra_hash.
2680 (riscv_csr_class_check): Change the return type to void. Don't check
2681 the ISA dependency if -mcsr-check isn't set.
2682 (riscv_csr_version_check): New function. Check and find the CSR address
2683 from csr_extra_hash, according to default_priv_spec. Report warning
2684 for the invalid CSR if -mcsr-check is set.
2685 (reg_csr_lookup_internal): Updated.
2686 (reg_lookup_internal): Likewise.
2687 (md_begin): Updated since DECLARE_CSR and DECLARE_CSR_ALIAS are changed.
2688 (enum options, struct option md_longopts): Add new GAS option -mpriv-spec.
2689 (md_parse_option): Call riscv_set_default_priv_version to set
2690 default_priv_spec.
2691 (riscv_after_parse_args): If -mpriv-spec isn't set, then set the default
2692 privilege spec to the newest one.
2693 (enum riscv_csr_class, struct riscv_csr_extra): Move them to
2694 include/opcode/riscv.h.
2695 * testsuite/gas/riscv/priv-reg-fail-fext.d: This test case just want
2696 to check the ISA dependency for CSR, so fix the spec version by adding
2697 -mpriv-spec=1.11.
2698 * testsuite/gas/riscv/priv-reg-fail-fext.l: Likewise. There are some
2699 version warnings for the test case.
2700 * gas/testsuite/gas/riscv/priv-reg-fail-read-only-01.d: Likewise.
2701 * gas/testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
2702 * gas/testsuite/gas/riscv/priv-reg-fail-read-only-02.d: Likewise.
2703 * gas/testsuite/gas/riscv/priv-reg-fail-rv32-only.d: Likewise.
2704 * gas/testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
2705 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9.d: New test case.
2706 Check whether the CSR is valid when privilege version 1.9 is choosed.
2707 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9.l: Likewise.
2708 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9p1.d: New test case.
2709 Check whether the CSR is valid when privilege version 1.9.1 is choosed.
2710 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
2711 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p10.d: New test case.
2712 Check whether the CSR is valid when privilege version 1.10 is choosed.
2713 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
2714 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p11.d: New test case.
2715 Check whether the CSR is valid when privilege version 1.11 is choosed.
2716 * gas/testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
2717 * config/tc-riscv.c (DEFAULT_RISCV_ISA_SPEC): Default configure option
2718 setting. You can set it by configure option --with-priv-spec.
2719 (riscv_set_default_priv_spec): New function used to set the default
2720 privilege spec.
2721 (md_parse_option): Call riscv_set_default_priv_spec rather than
2722 call riscv_get_priv_spec_class directly.
2723 (riscv_after_parse_args): If -mpriv-spec isn't set, then we set the
2724 default privilege spec according to DEFAULT_RISCV_PRIV_SPEC by
2725 calling riscv_set_default_priv_spec.
2726 * testsuite/gas/riscv/csr-dw-regnums.d: Add -mpriv-spec=1.11, since
2727 the --with-priv-spec may be set to different privilege spec.
2728 * testsuite/gas/riscv/priv-reg.d: Likewise.
2729 * configure.ac: Add configure option --with-priv-spec.
2730 * configure: Regenerated.
2731 * config.in: Regenerated.
2732 * config/tc-riscv.c (explicit_attr): Rename explicit_arch_attr to
2733 explicit_attr. Set it to TRUE if any ELF attribute is found.
2734 (riscv_set_default_priv_spec): Try to set the default_priv_spec if
2735 the priv attributes are set.
2736 (md_assemble): Set the default_priv_spec according to the priv
2737 attributes when we start to assemble instruction.
2738 (riscv_write_out_attrs): Rename riscv_write_out_arch_attr to
2739 riscv_write_out_attrs. Update the arch and priv attributes. If we
2740 don't set the corresponding ELF attributes, then try to output the
2741 default ones.
2742 (riscv_set_public_attributes): If any ELF attribute or -march-attr
2743 options is set (explicit_attr is TRUE), then call riscv_write_out_attrs
2744 to update the arch and priv attributes.
2745 (s_riscv_attribute): Make sure all arch and priv attributes are set
2746 before any instruction.
2747 * testsuite/gas/riscv/attribute-01.d: Update the priv attributes if any
2748 ELF attribute or -march-attr is set. If the priv attributes are not
2749 set, then try to update them by the default setting (-mpriv-spec or
2750 --with-priv-spec).
2751 * testsuite/gas/riscv/attribute-02.d: Likewise.
2752 * testsuite/gas/riscv/attribute-03.d: Likewise.
2753 * testsuite/gas/riscv/attribute-04.d: Likewise.
2754 * testsuite/gas/riscv/attribute-06.d: Likewise.
2755 * testsuite/gas/riscv/attribute-07.d: Likewise.
2756 * testsuite/gas/riscv/attribute-08.d: Likewise.
2757 * testsuite/gas/riscv/attribute-09.d: Likewise.
2758 * testsuite/gas/riscv/attribute-10.d: Likewise.
2759 * testsuite/gas/riscv/attribute-unknown.d: Likewise.
2760 * testsuite/gas/riscv/attribute-05.d: Likewise. Also, the priv spec
2761 set by priv attributes must be supported.
2762 * testsuite/gas/riscv/attribute-05.s: Likewise.
2763 * testsuite/gas/riscv/priv-reg-fail-version-1p9.d: Likewise. Updated
2764 priv attributes according to the -mpriv-spec option.
2765 * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.d: Likewise.
2766 * testsuite/gas/riscv/priv-reg-fail-version-1p10.d: Likewise.
2767 * testsuite/gas/riscv/priv-reg-fail-version-1p11.d: Likewise.
2768 * testsuite/gas/riscv/priv-reg.d: Removed.
2769 * testsuite/gas/riscv/priv-reg-version-1p9.d: New test case. Dump the
2770 CSR according to the priv spec 1.9.
2771 * testsuite/gas/riscv/priv-reg-version-1p9p1.d: New test case. Dump the
2772 CSR according to the priv spec 1.9.1.
2773 * testsuite/gas/riscv/priv-reg-version-1p10.d: New test case. Dump the
2774 CSR according to the priv spec 1.10.
2775 * testsuite/gas/riscv/priv-reg-version-1p11.d: New test case. Dump the
2776 CSR according to the priv spec 1.11.
2777 * config/tc-riscv.c (md_show_usage): Add descriptions about
2778 the new GAS options.
2779 * doc/c-riscv.texi: Likewise.
2780
2781 2020-05-19 Peter Bergner <bergner@linux.ibm.com>
2782
2783 * testsuite/gas/ppc/power9.s <dcbf, dcbfl, dcbflp>: Add tests.
2784 * testsuite/gas/ppc/power9.d: Likewise.
2785 * testsuite/gas/ppc/power10.s <dcbf, dcbfps, dcbstps, hwsync, lwsync,
2786 pause_short, phwsync, plwsync, ptesync, stcisync, stncisync, stsync,
2787 sync, wait, waitrsv>: Add tests.
2788 * testsuite/gas/ppc/power10.d: Likewise.
2789
2790 2020-05-19 Alexander Fedotov <alfedotov@gmail.com>
2791
2792 PR 25992
2793 * config/tc-arm.c : Add arm_ext_v8r feature.
2794 (it_fsm_post_encode): Check arm_ext_v8r feature.
2795 (get_aeabi_cpu_arch_from_fset): Check arm_ext_v8r feature.
2796
2797 2020-05-19 Alan Modra <amodra@gmail.com>
2798
2799 * write.c (write_contents): Use bfd_get_filename rather than
2800 accessing bfd->filename directly. Use bfd_section_name rather
2801 than accessing section->name directly.
2802
2803 2020-05-19 Alan Modra <amodra@gmail.com>
2804
2805 * symbols.c (local_symbol_make): Init all of lsy_flags.
2806
2807 2020-05-18 Alan Modra <amodra@gmail.com>
2808
2809 * symbols.c (resolve_symbol_value): Invoke LOCAL_SYMBOL_CHECK
2810 before looking at add_symbol->sy_flags.
2811
2812 2020-05-18 Hongtao Liu <hongtao.liu@intel.com>
2813
2814 * config/tc-i386.c: Not handle lret/iret.
2815 * testsuite/gas/i386/lfence-ret-a.d: Adjust testcase.
2816 * testsuite/gas/i386/lfence-ret-b.d: Ditto.
2817 * testsuite/gas/i386/lfence-ret-c.d: Ditto.
2818 * testsuite/gas/i386/lfence-ret-d.d: Ditto.
2819 * testsuite/gas/i386/lfence-ret.s: Ditto.
2820 * testsuite/gas/i386/x86-64-lfence-ret-a.d: Ditto.
2821 * testsuite/gas/i386/x86-64-lfence-ret-b.d: Ditto.
2822 * testsuite/gas/i386/x86-64-lfence-ret-c.d: Ditto.
2823 * testsuite/gas/i386/x86-64-lfence-ret-d.d: Ditto.
2824 * testsuite/gas/i386/x86-64-lfence-ret-e.d: Ditto.
2825 * testsuite/gas/i386/x86-64-lfence-ret.s: Ditto.
2826 * testsuite/gas/i386/x86-64-lfence-ret.e: Deleted.
2827
2828 2020-05-15 Alan Modra <amodra@gmail.com>
2829 Alex Coplan <alex.coplan@arm.com>
2830
2831 * symbols.c (struct local_symbol): Update comment.
2832 (resolve_symbol_value): For resolved symbols equated to other
2833 symbols, verify that the referenced symbol is not a local_symbol
2834 before accessing sy_value. Don't leave symbol loops during
2835 finalize_syms resolution.
2836 * testsuite/gas/all/assign-bad-recursive.d: New test.
2837 * testsuite/gas/all/assign-bad-recursive.l: Error output for test.
2838 * testsuite/gas/all/assign-bad-recursive.s: Assembly for test.
2839 * testsuite/gas/all/gas.exp: Run it.
2840
2841 2020-05-14 Nick Clifton <nickc@redhat.com>
2842
2843 * po/sv.po: Updated Swedish translation.
2844
2845 2020-05-11 Alan Modra <amodra@gmail.com>
2846
2847 * testsuite/gas/ppc/scalarquad.d,
2848 * testsuite/gas/ppc/scalarquad.s: New test.
2849 * testsuite/gas/ppc/ppc.exp: Run it.
2850
2851 2020-05-11 Alan Modra <amodra@gmail.com>
2852
2853 * testsuite/gas/ppc/rightmost.d,
2854 * testsuite/gas/ppc/rightmost.s: New test.
2855 * testsuite/gas/ppc/ppc.exp: Run it.
2856
2857 2020-05-11 Alan Modra <amodra@gmail.com>
2858
2859 * testsuite/gas/ppc/xvtlsbb.d,
2860 * testsuite/gas/ppc/xvtlsbb.s: New test.
2861 * testsuite/gas/ppc/ppc.exp: Run it.
2862
2863 2020-05-11 Alan Modra <amodra@gmail.com>
2864
2865 * testsuite/gas/ppc/stringop.d,
2866 * testsuite/gas/ppc/stringop.s: New test.
2867 * testsuite/gas/ppc/ppc.exp: Run it.
2868
2869 2020-05-11 Peter Bergner <bergner@linux.ibm.com>
2870
2871 * testsuite/gas/ppc/set_bool.d,
2872 * testsuite/gas/ppc/set_bool.s: New test.
2873 * testsuite/gas/ppc/ppc.exp: Run it.
2874
2875 2020-05-11 Alan Modra <amodra@gmail.com>
2876
2877 * testsuite/gas/ppc/bitmanip.d,
2878 * testsuite/gas/ppc/bitmanip.s: New test.
2879 * testsuite/gas/ppc/ppc.exp: Run it.
2880
2881 2020-05-11 Alan Modra <amodra@gmail.com>
2882
2883 * testsuite/gas/ppc/genpcv.d,
2884 * testsuite/gas/ppc/genpcv.s: New test.
2885 * testsuite/gas/ppc/ppc.exp: Run it.
2886
2887 2020-05-11 Alan Modra <amodra@gmail.com>
2888
2889 * testsuite/gas/ppc/maskmanip.d,
2890 * testsuite/gas/ppc/maskmanip.s: New test.
2891 * testsuite/gas/ppc/ppc.exp: Run it.
2892
2893 2020-05-11 Alan Modra <amodra@gmail.com>
2894 Peter Bergner <bergner@linux.ibm.com>
2895
2896 * config/tc-ppc.c (pre_defined_registers): Add accumulators.
2897 (md_assemble): Check acc specified in correct operand.
2898 * testsuite/gas/ppc/outerprod.d,
2899 * testsuite/gas/ppc/outerprod.s,
2900 * testsuite/gas/ppc/vsx4.d,
2901 * testsuite/gas/ppc/vsx4.s: New tests.
2902 * testsuite/gas/ppc/ppc.exp: Run them.
2903
2904 2020-05-11 Alan Modra <amodra@gmail.com>
2905
2906 * testsuite/gas/ppc/simd_perm.d,
2907 * testsuite/gas/ppc/simd_perm.s: New test.
2908 * testsuite/gas/ppc/ppc.exp: Run it.
2909
2910 2020-05-11 Alan Modra <amodra@gmail.com>
2911
2912 * testsuite/gas/ppc/int128.d,
2913 * testsuite/gas/ppc/int128.s: New test.
2914 * testsuite/gas/ppc/ppc.exp: Run it.
2915
2916 2020-05-11 Alan Modra <amodra@gmail.com>
2917
2918 * testsuite/gas/ppc/vsx_32byte.d,
2919 * testsuite/gas/ppc/vsx_32byte.s: New test.
2920 * testsuite/gas/ppc/ppc.exp: Run it.
2921
2922 2020-05-11 Alan Modra <amodra@gmail.com>
2923
2924 * testsuite/gas/ppc/vec_mul.s,
2925 * testsuite/gas/ppc/vec_mul.d: New test.
2926 * testsuite/gas/ppc/ppc.exp: Run it.
2927
2928 2020-05-11 Peter Bergner <bergner@linux.ibm.com>
2929
2930 * testsuite/gas/ppc/byte_rev.d,
2931 * testsuite/gas/ppc/byte_rev.s: New test.
2932 * testsuite/gas/ppc/ppc.exp: Run it.
2933
2934 2020-05-11 Peter Bergner <bergner@linux.ibm.com>
2935
2936 * testsuite/gas/ppc/power10.d: Add paste. tests.
2937 * testsuite/gas/ppc/power10.s: Likewise.
2938
2939 2020-05-11 Peter Bergner <bergner@linux.ibm.com>
2940
2941 * testsuite/gas/ppc/power10.s: New test.
2942 * testsuite/gas/ppc/power10.d: Likewise.
2943 * testsuite/gas/ppc/ppc.exp: Run it.
2944
2945 2020-05-11 Alan Modra <amodra@gmail.com>
2946
2947 * config/tc-ppc.c (md_assemble): Update for PPC_OPCODE_POWER10
2948 renaming.
2949 * testsuite/gas/ppc/prefix-align.d: Use -mpower10/-Mpower10 in
2950 place of -mfuture/-Mfuture.
2951 * testsuite/gas/ppc/prefix-pcrel.d: Likewise.
2952 * testsuite/gas/ppc/prefix-reloc.d: Likewise.
2953
2954 2020-05-06 Nick Clifton <nickc@redhat.com>
2955
2956 * po/sv.po: Updated Swedish translation.
2957
2958 2020-05-06 Nick Clifton <nickc@redhat.com>
2959
2960 PR 25927
2961 * doc/as.texi (Preprocessing): Replace cross reference to not
2962 existant document with a URL to the equivalent page in the GCC
2963 manual.
2964
2965 2020-05-05 Nick Clifton <nickc@redhat.com>
2966
2967 * dwarf2dbg.c (out_dir_and_file_list): Add comments describing the
2968 construction of a DWARF-5 directory name table.
2969 * testsuite/gas/elf/pr25917.d: Update expected output.
2970
2971 2020-05-05 Gunther Nikl <gnikl@justmail.de>
2972
2973 * config/tc-rx.c (elf_flags): Initialize for non-linux targets.
2974 (md_parse_option): Remove initialization of elf_flags.
2975
2976 2020-05-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
2977
2978 PR gas/25863
2979 * config/tc-arm.c (do_mve_vmull): Fix scalar and NEON parsing of vmul.
2980 * testsuite/gas/arm/mve-scalar-vmult-it.d: New test.
2981 * testsuite/gas/arm/mve-scalar-vmult-it.s: New test.
2982
2983 2020-05-04 Nick Clifton <nickc@redhat.com>
2984
2985 PR 25917
2986 * dwarf2dbg.c (out_dir_and_file_list): Check for the directory
2987 table's existence before looking at its entries.
2988 Also do not emit a default directory entry if there are no
2989 directories in use.
2990
2991 * testsuite/gas/elf/pr25917.s: New test source file.
2992 * testsuite/gas/elf/pr25917.d: New test driver.
2993 * testsuite/gas/elf/elf.exp (run_elf_list_test): Run the new test.
2994
2995 2020-04-30 Alex Coplan <alex.coplan@arm.com>
2996
2997 * config/tc-aarch64.c (fix_insn): Implement for
2998 AARCH64_OPND_UNDEFINED.
2999 (parse_operands): Implement for AARCH64_OPND_UNDEFINED.
3000 * testsuite/gas/aarch64/udf.s: New.
3001 * testsuite/gas/aarch64/udf.d: New.
3002 * testsuite/gas/aarch64/udf-invalid.s: New.
3003 * testsuite/gas/aarch64/udf-invalid.l: New.
3004 * testsuite/gas/aarch64/udf-invalid.d: New.
3005
3006 2020-04-30 Yoshinori Sato <ysato@users.sourceforge.jp>
3007
3008 * config/tc-rx.c (elf_flags): Reset default value.
3009 (md_parse_option): For rx-elf Initialize elf_flags with RX_ABI.
3010
3011 2020-04-29 Max Filippov <jcmvbkbc@gmail.com>
3012
3013 * config/tc-xtensa.c (XTENSA_MARCH_EARLIEST): Define macro as 0
3014 if it's not defined.
3015 (microarch_earliest): New static variable.
3016 (xg_translate_idioms): Translate "simcall" to "simcall 0" when
3017 simcall opcode has mandatory parameter.
3018 (xg_init_global_config): Initialize microarch_earliest.
3019
3020 2020-04-29 Nick Clifton <nickc@redhat.com>
3021
3022 PR 22699
3023 * config/tc-sh.c (build_Mytes): Change operand type IMM0_8 to
3024 IMM0_8S and add support for IMM0_8U.
3025 * testsuite/gas/sh/sh4a.s: Add test of a logical insn using an
3026 unsigned 8-bit immediate.
3027 * testsuite/gas/sh/sh4a.d: Extended expected disassembly.
3028 * testsuite/gas/sh/sh4al-dsp.d: Update expected disassembly.
3029
3030 2020-04-27 Tamar Christina <tamar.christina@arm.com>
3031
3032 * NEWS: Add news entry for big-obj.
3033 * config/tc-i386.c (i386_target_format): Support new format.
3034 * doc/c-i386.texi: Add i386 support.
3035 * testsuite/gas/pe/big-obj.d: Rename test to not be x64 specific.
3036 * testsuite/gas/pe/pe.exp (big-obj): Make test run on i386 as well.
3037
3038 2020-04-27 Nick Clifton <nickc@redhat.com>
3039
3040 PR 25878
3041 * dwarf2dbg.c (struct file_entry): Add auto_assigned field.
3042 (assign_file_to_slot): New function. Fills in an entry in the
3043 files table.
3044 (allocate_filenum): Use new function.
3045 (allocate_filename_to_slot): Use new function. If the specified
3046 slot entry is already in use, but was chosen automatically then
3047 reassign the automatic entry.
3048
3049 2020-04-26 Hongtao Liu <hongtao.liu@intel.com
3050
3051 * config/tc-i386.c (lfence_before_ret_shl): New member.
3052 (load_insn_p): implict load for POP/POPA/POPF/XLATB, no load
3053 for Anysize insns.
3054 (insert_after_load): Issue warning for REP CMPS/SCAS.
3055 (insert_before_before): Handle iret, Handle
3056 -mlfence-before-ret=shl, Adjust operand size of or/not/shl to ret's,
3057 (md_parse_option): Change -mlfence-before-ret=[none|not|or] to
3058 -mlfence-before-ret=[none/not/or/shl/yes].
3059 Enable -mlfence-before-ret=shl when
3060 -mlfence-beofre-indirect-branch=all and no explict -mlfence-before-ret option.
3061 (md_show_usage): Ditto.
3062 * doc/c-i386.texi: Ditto.
3063 * testsuite/gas/i386/i386.exp: Add new testcases.
3064 * testsuite/gas/i386/lfence-load-b.d: New.
3065 * testsuite/gas/i386/lfence-load-b.e: New.
3066 * testsuite/gas/i386/lfence-load.d: Modified.
3067 * testsuite/gas/i386/lfence-load.e: New.
3068 * testsuite/gas/i386/lfence-load.s: Modified.
3069 * testsuite/gas/i386/lfence-ret-a.d: Modified.
3070 * testsuite/gas/i386/lfence-ret-b.d: Modified.
3071 * testsuite/gas/i386/lfence-ret-c.d: New.
3072 * testsuite/gas/i386/lfence-ret-d.d: New.
3073 * testsuite/gas/i386/lfence-ret.s: Modified.
3074 * testsuite/gas/i386/x86-64-lfence-load-b.d: New.
3075 * testsuite/gas/i386/x86-64-lfence-load.d: Modified.
3076 * testsuite/gas/i386/x86-64-lfence-load.s: Modified.
3077 * testsuite/gas/i386/x86-64-lfence-ret-a.d: Modified.
3078 * testsuite/gas/i386/x86-64-lfence-ret-b.d: Modified.
3079 * testsuite/gas/i386/x86-64-lfence-ret-c.d: New.
3080 * testsuite/gas/i386/x86-64-lfence-ret-d.d: New
3081 * testsuite/gas/i386/x86-64-lfence-ret-e.d: New.
3082 * testsuite/gas/i386/x86-64-lfence-ret.e: New.
3083 * testsuite/gas/i386/x86-64-lfence-ret.s: New.
3084
3085 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
3086
3087 PR ld/25861
3088 * config/tc-xtensa.c (md_apply_fix): Replace
3089 BFD_RELOC_XTENSA_DIFF{8,16,32} generation with
3090 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
3091 BFD_RELOC_XTENSA_NDIFF{8,16,32} generation.
3092 * testsuite/gas/xtensa/loc.d: Replace BFD_RELOC_XTENSA_DIFF16
3093 with BFD_RELOC_XTENSA_PDIFF16 in the expected output.
3094
3095 2020-04-22 Alan Modra <amodra@gmail.com>
3096
3097 * config/obj-elf.c (elf_frob_symbol): Unconditionally remove
3098 symbol for ".symver .. remove".
3099 * doc/as.texi (.symver): Update.
3100 * testsuite/gas/symver/symver11.s: Make foo weak.
3101 * testsuite/gas/symver/symver11.d: Expect an error.
3102 * testsuite/gas/symver/symver7.d: Allow other random symbols.
3103
3104 2020-04-21 H.J. Lu <hongjiu.lu@intel.com>
3105
3106 * testsuite/gas/symver/symver11.s: Add ".balign 8".
3107
3108 2020-04-21 Andreas Schwab <schwab@linux-m68k.org>
3109
3110 PR 25848
3111 * testsuite/gas/m68k/operands.s: Add tests for cmpi.
3112 * testsuite/gas/m68k/operands.d: Update.
3113 * testsuite/gas/m68k/op68000.d: Update for new error messages.
3114
3115 2020-04-21 Tamar Christina <tamar.christina@arm.com>
3116
3117 PR binutils/24753
3118 * testsuite/gas/arm/pr24753.d: New test.
3119 * testsuite/gas/arm/pr24753.s: New test.
3120
3121 2020-04-21 H.J. Lu <hongjiu.lu@intel.com>
3122
3123 PR gas/23840
3124 PR gas/25295
3125 * NEWS: Mention .symver extension.
3126 * config/obj-elf.c (obj_elf_find_and_add_versioned_name): New
3127 function.
3128 (obj_elf_symver): Call obj_elf_find_and_add_versioned_name to
3129 add a version name. Add local, hidden and remove visibility
3130 support.
3131 (elf_frob_symbol): Handle the list of version names. Update the
3132 original symbol to local, hidden or remove it from the symbol
3133 table.
3134 (elf_frob_file_before_adjust): Handle the list of version names.
3135 * config/obj-elf.h (elf_visibility): New.
3136 (elf_versioned_name_list): Likewise.
3137 (elf_obj_sy): Change local to bitfield. Add rename, bad_version
3138 and visibility. Change versioned_name pointer to struct
3139 elf_versioned_name_list.
3140 * doc/as.texi: Update .symver directive.
3141 * testsuite/gas/symver/symver.exp: Run all *.d tests. Add more
3142 error checking tests.
3143 * testsuite/gas/symver/symver6.d: New file.
3144 * testsuite/gas/symver/symver7.d: Likewise.
3145 * testsuite/gas/symver/symver7.s: Likewise.
3146 * testsuite/gas/symver/symver8.d: Likewise.
3147 * testsuite/gas/symver/symver8.s: Likewise.
3148 * testsuite/gas/symver/symver9.s: Likewise.
3149 * testsuite/gas/symver/symver9a.d: Likewise.
3150 * testsuite/gas/symver/symver9b.d: Likewise.
3151 * testsuite/gas/symver/symver10.s: Likewise.
3152 * testsuite/gas/symver/symver10a.d: Likewise.
3153 * testsuite/gas/symver/symver10b.d: Likewise.
3154 * testsuite/gas/symver/symver11.d: Likewise.
3155 * testsuite/gas/symver/symver11.s: Likewise.
3156 * testsuite/gas/symver/symver12.d: Likewise.
3157 * testsuite/gas/symver/symver12.s: Likewise.
3158 * testsuite/gas/symver/symver13.d: Likewise.
3159 * testsuite/gas/symver/symver13.s: Likewise.
3160 * testsuite/gas/symver/symver14.d: Likewise.
3161 * testsuite/gas/symver/symver14.l: Likewise.
3162 * testsuite/gas/symver/symver15.d: Likewise.
3163 * testsuite/gas/symver/symver15.l: Likewise.
3164 * testsuite/gas/symver/symver6.l: Removed.
3165 * testsuite/gas/symver/symver6.s: Updated.
3166
3167 2020-04-20 Sudakshina Das <sudi.das@arm.com>
3168
3169 * config/tc-aarch64.c (parse_barrier_psb): Update error messages
3170 to include TSB.
3171 * testsuite/gas/aarch64/system-2.d: Update -march and new tsb tests.
3172 * testsuite/gas/aarch64/system-2.s: Add new tsb tests.
3173 * testsuite/gas/aarch64/system.d: Update.
3174
3175 2020-04-20 Sudakshina Das <sudi.das@arm.com>
3176
3177 * testsuite/gas/aarch64/bti.d: Update -march option.
3178 * testsuite/gas/aarch64/illegal-bti.d: Remove.
3179 * testsuite/gas/aarch64/illegal-bti.l: Remove.
3180 * testsuite/gas/aarch64/illegal-ras-1.l: Remove esb.
3181 * testsuite/gas/aarch64/illegal-ras-1.s: Remove esb.
3182
3183 2020-04-17 Alan Modra <amodra@gmail.com>
3184
3185 * config/tc-bfin.h (TC_EQUAL_IN_INSN): Allow assignment to dot.
3186
3187 2020-04-16 Gagan Singh Sidhu <broly@mac.com>
3188 Nick Clifton <nickc@redhat.com>
3189
3190 PR 25803
3191 * config/obj-elf.c (obj_elf_type): Reject ifunc symbols on MIPS
3192 targets.
3193 * testsuite/gas/elf/elf.exp: Add MIPS targets to the list to skip
3194 for the type-2 test.
3195 * testsuite/gas/elf/type-noifunc.e: Update to allow for MIPS
3196 targets running this test.
3197
3198 2020-02-16 David Faust <david.faust@oracle.com>
3199
3200 * testsuite/gas/bpf/bpf.exp: Run jump32 tests.
3201 * testsuite/gas/bpf/jump32.s: New file.
3202 * testsuite/gas/bpf/jump32.d: Likewise.
3203
3204 2020-04-08 H.J. Lu <hongjiu.lu@intel.com>
3205
3206 * doc/c-i386.texi: Correct -mlfence-before-indirect-branch=
3207 documentation.
3208
3209 2020-04-08 Gunther Nikl <gnikl@justmail.de>
3210
3211 * config/tc-moxie.h (MD_PCREL_FROM_SECTION): Delete define.
3212 (md_pcrel_from): Remove prototytpe.
3213 * config/tc-m32c.h (MD_PCREL_FROM_SECTION): Delete duplicate
3214 define.
3215 (md_pcrel_from_section): Remove duplicate prototype.
3216 * tc.h (md_pcrel_from_section): Add prototype.
3217 * config/tc-aarch64.h (md_pcrel_from_section): Remove prototype.
3218 * config/tc-arc.h (md_pcrel_from_section): Likewise.
3219 * config/tc-arm.h (md_pcrel_from_section): Likewise.
3220 * config/tc-avr.h (md_pcrel_from_section): Likewise.
3221 * config/tc-bfin.h (md_pcrel_from_section): Likewise.
3222 * config/tc-bpf.h (md_pcrel_from_section): Likewise.
3223 * config/tc-csky.h (md_pcrel_from_section): Likewise.
3224 * config/tc-d10v.h (md_pcrel_from_section): Likewise.
3225 * config/tc-d30v.h (md_pcrel_from_section): Likewise.
3226 * config/tc-epiphany.h (md_pcrel_from_section): Likewise.
3227 * config/tc-fr30.h (md_pcrel_from_section): Likewise.
3228 * config/tc-frv.h (md_pcrel_from_section): Likewise.
3229 * config/tc-iq2000.h (md_pcrel_from_section): Likewise.
3230 * config/tc-lm32.h (md_pcrel_from_section): Likewise.
3231 * config/tc-m32c.h (md_pcrel_from_section): Likewise.
3232 * config/tc-m32r.h (md_pcrel_from_section): Likewise.
3233 * config/tc-mcore.h (md_pcrel_from_section): Likewise.
3234 * config/tc-mep.h (md_pcrel_from_section): Likewise.
3235 * config/tc-metag.h (md_pcrel_from_section): Likewise.
3236 * config/tc-microblaze.h (md_pcrel_from_section): Likewise.
3237 * config/tc-mmix.h (md_pcrel_from_section): Likewise.
3238 * config/tc-moxie.h (md_pcrel_from_section): Likewise.
3239 * config/tc-msp430.h (md_pcrel_from_section): Likewise.
3240 * config/tc-mt.h (md_pcrel_from_section): Likewise.
3241 * config/tc-or1k.h (md_pcrel_from_section): Likewise.
3242 * config/tc-ppc.h (md_pcrel_from_section): Likewise.
3243 * config/tc-rl78.h (md_pcrel_from_section): Likewise.
3244 * config/tc-rx.h (md_pcrel_from_section): Likewise.
3245 * config/tc-s390.h (md_pcrel_from_section): Likewise.
3246 * config/tc-sh.h (md_pcrel_from_section): Likewise.
3247 * config/tc-xc16x.h (md_pcrel_from_section): Likewise.
3248 * config/tc-xstormy16.h (md_pcrel_from_section): Likewise.
3249 * config/tc-microblaze.h (md_begin, md_assemble, md_undefined_symbol,
3250 md_show_usage, md_convert_frag, md_operand, md_number_to_chars,
3251 md_estimate_size_before_relax, md_section_align, tc_gen_reloc,
3252 md_apply_fix3): Delete prototypes.
3253
3254 2020-04-07 H.J. Lu <hongjiu.lu@intel.com>
3255
3256 * NEWS: Mention support for Intel SERIALIZE and TSXLDTRK
3257 instructions.
3258
3259 2020-04-07 H.J. Lu <hongjiu.lu@intel.com>
3260
3261 * doc/c-z80.texi: Fix @xref warnings.
3262
3263 2020-04-07 Lili Cui <lili.cui@intel.com>
3264
3265 * config/tc-i386.c (cpu_arch): Add .TSXLDTRK.
3266 (cpu_noarch): Likewise.
3267 * doc/c-i386.texi: Document TSXLDTRK.
3268 * testsuite/gas/i386/i386.exp: Run TSXLDTRK tests.
3269 * testsuite/gas/i386/tsxldtrk.d: Likewise.
3270 * testsuite/gas/i386/tsxldtrk.s: Likewise.
3271 * testsuite/gas/i386/x86-64-tsxldtrk.d: Likewise.
3272
3273 2020-04-02 Lili Cui <lili.cui@intel.com>
3274
3275 * config/tc-i386.c (cpu_arch): Add .serialize.
3276 (cpu_noarch): Likewise.
3277 * doc/c-i386.texi: Document serialize.
3278 * testsuite/gas/i386/i386.exp: Run serialize tests
3279 * testsuite/gas/i386/serialize.d: Likewise.
3280 * testsuite/gas/i386/x86-64-serialize.d: Likewise.
3281 * testsuite/gas/i386/serialize.s: Likewise.
3282
3283 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3284
3285 * testsuite/gas/elf/section12a.d: Use notarget instead of xfail.
3286 * testsuite/gas/elf/section12b.d: Likewise.
3287 * testsuite/gas/elf/section16a.d: Likewise.
3288 * testsuite/gas/elf/section16b.d: Likewise.
3289
3290 2020-04-02 Gunther Nikl <gnikl@justmail.de>
3291
3292 * config/tc-m68k.c (m68k_ip): Fix range check for index register
3293 with a suppressed address register.
3294
3295 2020-04-01 H.J. Lu <hongjiu.lu@intel.com>
3296
3297 PR gas/25756
3298 * config/tc-i386.h (TC_FORCE_RELOCATION_ABS): New.
3299 * testsuite/gas/i386/localpic.s: Add a test for relocation
3300 against local absolute symbol.
3301 * testsuite/gas/i386/x86-64-localpic.s: Likewise.
3302 * testsuite/gas/i386/localpic.d: Updated.
3303 * testsuite/gas/i386/x86-64-localpic.d: Likewise.
3304 * testsuite/gas/i386/ilp32/x86-64-localpic.d: Likewise.
3305
3306 2020-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3307
3308 PR gas/25732
3309 * testsuite/gas/i386/solaris/x86-64-branch-2.d: New file.
3310 * testsuite/gas/i386/solaris/x86-64-branch-3.d: New file.
3311 * testsuite/gas/i386/solaris/x86-64-jump.d: Incorporate changes to
3312 testsuite/gas/i386/x86-64-jump.d.
3313 * gas/testsuite/gas/i386/solaris/x86-64-mpx-branch-1.d:
3314 Incorporate changes to
3315 gas/testsuite/gas/i386/x86-64-mpx-branch-1.d.
3316 * testsuite/gas/i386/solaris/x86-64-mpx-branch-2.d : Incorporate
3317 changes to testsuite/gas/i386/x86-64-mpx-branch-2.d.
3318 * testsuite/gas/i386/x86-64-branch-2.d: Skip on *-*-solaris*.
3319 * testsuite/gas/i386/x86-64-branch-3.d: Likewise.
3320
3321 2020-03-31 Maciej W. Rozycki <macro@linux-mips.org>
3322
3323 PR 25611
3324 PR 25614
3325 * dwarf2dbg.c: Do not include "bignum.h".
3326
3327 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
3328
3329 * testsuite/gas/riscv/alias-csr.d: Move this to priv-reg-pseudo.
3330 * testsuite/gas/riscv/alias-csr.s: Likewise.
3331 * testsuite/gas/riscv/no-aliases-csr.d: Move this
3332 to priv-reg-pseudo-noalias.
3333 * testsuite/gas/riscv/bad-csr.d: Rename to priv-reg-fail-nonexistent.
3334 * testsuite/gas/riscv/bad-csr.l: Likewise.
3335 * testsuite/gas/riscv/bad-csr.s: Likewise.
3336 * testsuite/gas/riscv/satp.d: Removed. Already included in priv-reg.
3337 * testsuite/gas/riscv/satp.s: Likewise.
3338 * testsuite/gas/riscv/priv-reg-pseudo.d: New testcase for all pseudo
3339 csr instruction, including alias-csr testcase.
3340 * testsuite/gas/riscv/priv-reg-pseudo.s: Likewise.
3341 * testsuite/gas/riscv/priv-reg-pseudo-noalias.d: New testcase for all
3342 pseudo instruction with objdump -Mno-aliases.
3343 * testsuite/gas/riscv/priv-reg-fail-nonexistent.d: New testcase.
3344 * testsuite/gas/riscv/priv-reg-fail-nonexistent.l: Likewise.
3345 * testsuite/gas/riscv/priv-reg-fail-nonexistent.s: Likewise.
3346 * testsuite/gas/riscv/priv-reg.d: Update CSR to 1.11.
3347 * testsuite/gas/riscv/priv-reg.s: Likewise.
3348 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
3349 * testsuite/gas/riscv/csr-dw-regnums.d: Likewise.
3350 * testsuite/gas/riscv/csr-dw-regnums.s: Likewise.
3351
3352 2020-03-25 J.W. Jagersma <jwjagersma@gmail.com>
3353
3354 * config/obj-coff.c (obj_coff_section): Set the bss flag on
3355 sections with the "b" attribute.
3356
3357 2020-03-22 Alan Modra <amodra@gmail.com>
3358
3359 * testsuite/gas/s12z/truncated.d: Update expected output.
3360
3361 2020-03-17 Sergey Belyashov <sergey.belyashov@gmail.com>
3362
3363 PR 25690
3364 * config/tc-z80.c (md_pseudo_table): Add xdef anf xref pseudo ops.
3365 * doc/c-z80.texi: Update documentation.
3366
3367 2020-03-17 Sergey Belyashov <sergey.belyashov@gmail.com>
3368
3369 PR 25641
3370 PR 25668
3371 PR 25633
3372 Fix disassembling ED+A4/AC/B4/BC opcodes.
3373 Fix assembling lines containing colonless label and instruction
3374 with first operand inside parentheses.
3375 Fix registration of unsupported by target CPU registers.
3376 * config/tc-z80.c: See above.
3377 * config/tc-z80.h: See above.
3378 * testsuite/gas/z80/colonless.d: Update test.
3379 * testsuite/gas/z80/colonless.s: Likewise.
3380 * testsuite/gas/z80/ez80_adl_all.d: Likewise.
3381 * testsuite/gas/z80/ez80_unsup_regs.d: Likewise.
3382 * testsuite/gas/z80/ez80_z80_all.d: Likewise.
3383 * testsuite/gas/z80/gbz80_unsup_regs.d: Likewise.
3384 * testsuite/gas/z80/r800_unsup_regs.d: Likewise.
3385 * testsuite/gas/z80/unsup_regs.s: Likewise.
3386 * testsuite/gas/z80/z180_unsup_regs.d: Likewise.
3387 * testsuite/gas/z80/z80.exp: Likewise.
3388 * testsuite/gas/z80/z80_strict_unsup_regs.d: Likewise.
3389 * testsuite/gas/z80/z80_unsup_regs.d: Likewise.
3390 * testsuite/gas/z80/z80n_unsup_regs.d: Likewise.
3391
3392 2020-03-13 Andre Vieira <andre.simoesdiasvieira@arm.com>
3393
3394 PR 25660
3395 * config/tc-arm.c (operand_parse_code): Add OP_RNSDMQR and OP_oRNSDMQ.
3396 (parse_operands): Handle new operand codes.
3397 (do_neon_dyadic_long): Make shape check accept the scalar variants.
3398 (asm_opcode_insns): Fix operand codes for vaddl and vsubl.
3399 * testsuite/gas/arm/mve-vaddsub-it.s: New test.
3400 * testsuite/gas/arm/mve-vaddsub-it.d: New test.
3401 * testsuite/gas/arm/mve-vaddsub-it-bad.s: New test.
3402 * testsuite/gas/arm/mve-vaddsub-it-bad.l: New test.
3403 * testsuite/gas/arm/mve-vaddsub-it-bad.d: New test.
3404 * testsuite/gas/arm/nomve-vaddsub-it.d: New test.
3405
3406 2020-03-11 H.J. Lu <hongjiu.lu@intel.com>
3407
3408 * NEWS: Mention x86 assembler options for CVE-2020-0551.
3409
3410 2020-03-11 H.J. Lu <hongjiu.lu@intel.com>
3411
3412 * testsuite/gas/i386/i386.exp: Run new tests.
3413 * testsuite/gas/i386/lfence-byte.d: New file.
3414 * testsuite/gas/i386/lfence-byte.e: Likewise.
3415 * testsuite/gas/i386/lfence-byte.s: Likewise.
3416 * testsuite/gas/i386/lfence-indbr-a.d: Likewise.
3417 * testsuite/gas/i386/lfence-indbr-b.d: Likewise.
3418 * testsuite/gas/i386/lfence-indbr-c.d: Likewise.
3419 * testsuite/gas/i386/lfence-indbr.e: Likewise.
3420 * testsuite/gas/i386/lfence-indbr.s: Likewise.
3421 * testsuite/gas/i386/lfence-load.d: Likewise.
3422 * testsuite/gas/i386/lfence-load.s: Likewise.
3423 * testsuite/gas/i386/lfence-ret-a.d: Likewise.
3424 * testsuite/gas/i386/lfence-ret-b.d: Likewise.
3425 * testsuite/gas/i386/lfence-ret.s: Likewise.
3426 * testsuite/gas/i386/x86-64-lfence-byte.d: Likewise.
3427 * testsuite/gas/i386/x86-64-lfence-byte.e: Likewise.
3428 * testsuite/gas/i386/x86-64-lfence-byte.s: Likewise.
3429 * testsuite/gas/i386/x86-64-lfence-indbr-a.d: Likewise.
3430 * testsuite/gas/i386/x86-64-lfence-indbr-b.d: Likewise.
3431 * testsuite/gas/i386/x86-64-lfence-indbr-c.d: Likewise.
3432 * testsuite/gas/i386/x86-64-lfence-indbr.e: Likewise.
3433 * testsuite/gas/i386/x86-64-lfence-indbr.s: Likewise.
3434 * testsuite/gas/i386/x86-64-lfence-load.d: Likewise.
3435 * testsuite/gas/i386/x86-64-lfence-load.s: Likewise.
3436 * testsuite/gas/i386/x86-64-lfence-ret-a.d: Likewise.
3437 * testsuite/gas/i386/x86-64-lfence-ret-b.d: Likewise.
3438
3439 2020-03-11 H.J. Lu <hongjiu.lu@intel.com>
3440
3441 * config/tc-i386.c (lfence_after_load): New.
3442 (lfence_before_indirect_branch_kind): New.
3443 (lfence_before_indirect_branch): New.
3444 (lfence_before_ret_kind): New.
3445 (lfence_before_ret): New.
3446 (last_insn): New.
3447 (load_insn_p): New.
3448 (insert_lfence_after): New.
3449 (insert_lfence_before): New.
3450 (md_assemble): Call insert_lfence_before and insert_lfence_after.
3451 Set last_insn.
3452 (OPTION_MLFENCE_AFTER_LOAD): New.
3453 (OPTION_MLFENCE_BEFORE_INDIRECT_BRANCH): New.
3454 (OPTION_MLFENCE_BEFORE_RET): New.
3455 (md_longopts): Add -mlfence-after-load=,
3456 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
3457 (md_parse_option): Handle -mlfence-after-load=,
3458 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
3459 (md_show_usage): Display -mlfence-after-load=,
3460 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
3461 (i386_cons_align): New.
3462 * config/tc-i386.h (i386_cons_align): New.
3463 (md_cons_align): New.
3464 * doc/c-i386.texi: Document -mlfence-after-load=,
3465 -mlfence-before-indirect-branch= and -mlfence-before-ret=.
3466
3467 2020-03-11 Nick Clifton <nickc@redhat.com>
3468
3469 PR 25611
3470 PR 25614
3471 * dwarf2dbg.c (DWARF2_FILE_TIME_NAME): Default to -1.
3472 (DWARF2_FILE_SIZE_NAME): Default to -1.
3473 (DWARF2_LINE_VERSION): Default to the current dwarf level or 3,
3474 whichever is higher.
3475 (DWARF2_LINE_MAX_OPS_PER_INSN): Provide a default value of 1.
3476 (NUM_MD5_BYTES): Define.
3477 (struct file entry): Add md5 field.
3478 (get_filenum): Delete and replace with...
3479 (get_basename): New function.
3480 (get_directory_table_entry): New function.
3481 (allocate_filenum): New function.
3482 (allocate_filename_to_slot): New function.
3483 (dwarf2_where): Use new functions.
3484 (dwarf2_directive_filename): Add support for extended .file
3485 pseudo-op.
3486 (dwarf2_directive_loc): Allow the use of file number zero with
3487 DWARF 5 or higher.
3488 (out_file_list): Rename to...
3489 (out_dir_and_file_list): Add DWARF 5 support.
3490 (out_debug_line): Emit extra values into the section header for
3491 DWARF 5.
3492 (out_debug_str): Allow for file 0 to be used with DWARF 5.
3493 * doc/as.texi (.file): Update the description of this pseudo-op.
3494 * testsuite/gas/elf-dwarf-5-file0.s: Add more lines.
3495 * testsuite/gas/elf-dwarf-5-file0.d: Update expected dump output.
3496 * testsuite/gas/lns/lns-diag-1.l: Update expected error message.
3497 * NEWS: Mention the new feature.
3498
3499 2020-03-10 Alan Modra <amodra@gmail.com>
3500
3501 * config/tc-csky.c (get_operand_value): Rewrite 1 << 31 expressions
3502 to avoid signed overflow.
3503 * config/tc-mcore.c (md_assemble): Likewise.
3504 * config/tc-mips.c (gpr_read_mask, gpr_write_mask): Likewise.
3505 * config/tc-nds32.c (SET_ADDEND): Likewise.
3506 * config/tc-nios2.c (nios2_assemble_arg_R): Likewise.
3507
3508 2020-03-09 Jan Beulich <jbeulich@suse.com>
3509
3510 * testsuite/gas/i386/avx.s: Add long-form VCMP[PS][SD] pseudos.
3511 * testsuite/gas/i386/avx.d, testsuite/gas/i386/avx-16bit.d,
3512 testsuite/gas/i386/avx-intel.d: Adjust expectations.
3513
3514 2020-03-07 Alan Modra <amodra@gmail.com>
3515
3516 * testsuite/gas/elf/dwarf-5-file0.s: Don't start directives in
3517 first column.
3518
3519 2020-03-06 Nick Clifton <nickc@redhat.com>
3520
3521 PR 25614
3522 * dwarf2dbg.c (dwarf2_directive_filename): Allow a file number of
3523 0 if the dwarf_level is 5 or more. Complain if a filename follows
3524 a file 0.
3525 * testsuite/gas/elf/dwarf-5-file0.s: New test.
3526 * testsuite/gas/elf/dwarf-5-file0.d: New test driver.
3527 * testsuite/gas/elf/elf.exp: Run the new test.
3528
3529 PR 25612
3530 * config/tc-ia64.h (DWARF2_VERISION): Fix typo.
3531 * doc/as.texi: Fix another typo.
3532
3533 2020-03-06 Nick Clifton <nickc@redhat.com>
3534
3535 PR 25612
3536 * as.c (dwarf_level): Define.
3537 (show_usage): Add --gdwarf-3, --gdwarf-4 and --gdwarf-5.
3538 (parse_args): Add support for the new options.
3539 as.h (dwarf_level): Prototype.
3540 * dwarf2dbg.c (DWARF2_VERSION): Use dwarf_level as default version
3541 value.
3542 * config/tc-ia64.h (DWARF2_VERISION): Update definition.
3543 (DWARF2_LINE_VERSION): Remove definition.
3544 * doc/as.texi: Document the new options.
3545
3546 2020-03-06 Nick Clifton <nickc@redhat.com>
3547
3548 PR 25572
3549 * as.c (main): Allow matching input and outputs when they are
3550 not regular files.
3551
3552 2020-03-06 Jan Beulich <jbeulich@suse.com>
3553
3554 * config/tc-i386.c (match_mem_size): Generalize broadcast special
3555 casing.
3556 (check_VecOperands): Zap xmmword/ymmword/zmmword when more than
3557 one of byte/word/dword/qword is set alongside a SIMD register in
3558 a template's operand.
3559
3560 2020-03-06 Jan Beulich <jbeulich@suse.com>
3561
3562 * config/tc-i386.c (match_template): Extend code in logic
3563 rejecting certain suffixes in certain modes to also cover mask
3564 register use and VecSIB. Drop special casing of broadcast. Skip
3565 immediates in the check.
3566
3567 2020-03-06 Jan Beulich <jbeulich@suse.com>
3568
3569 * config/tc-i386.c (match_template): Fold duplicate code in
3570 logic rejecting certain suffixes in certain modes. Drop
3571 pointless "else".
3572
3573 2020-03-06 Jan Beulich <jbeulich@suse.com>
3574
3575 * config/tc-i386.c (process_suffix): Exlucde !vexw insns
3576 alongside !norex64 ones.
3577 * testsuite/gas/i386/x86-64-avx512bw.s: Test VPEXTR* and VPINSR*
3578 with both 32- and 64-bit GPR operands.
3579 * testsuite/gas/i386/x86-64-avx512f.s: Test VEXTRACTPS with both
3580 32- and 64-bit GPR operands.
3581 * testsuite/gas/i386/x86-64-avx512bw-intel.d,
3582 testsuite/gas/i386/x86-64-avx512bw.d,
3583 testsuite/gas/i386/x86-64-avx512f-intel.d,
3584 testsuite/gas/i386/x86-64-avx512f.d: Adjust expectations.
3585
3586 2020-03-06 Jan Beulich <jbeulich@suse.com>
3587
3588 * config/tc-i386.c (md_assemble): Drop use of rex64.
3589 (process_suffix): For REX.W for 64-bit CRC32.
3590
3591 2020-03-06 Jan Beulich <jbeulich@suse.com>
3592
3593 * config/tc-i386.c (i386_addressing_mode): For 32-bit
3594 addressing for MPX insns without base/index.
3595 * testsuite/gas/i386/mpx-16bit.s,
3596 * testsuite/gas/i386/mpx-16bit.d: New.
3597 * testsuite/gas/i386/i386.exp: Run new test.
3598
3599 2020-03-06 Jan Beulich <jbeulich@suse.com>
3600
3601 * testsuite/gas/i386/adx.s, testsuite/gas/i386/cet.s,
3602 testsuite/gas/i386/ept.s, testsuite/gas/i386/fsgs.s,
3603 testsuite/gas/i386/invpcid.s, testsuite/gas/i386/movdir.s,
3604 testsuite/gas/i386/ptwrite.s, testsuite/gas/i386/vmx.s,
3605 * testsuite/gas/i386/code16.s: Add CR, DR, and TR access cases
3606 as well as a BSWAP one.
3607 * testsuite/gas/i386/rdpid.s: Add 16-bit case.
3608 * testsuite/gas/i386/sse2-16bit.s: Cover more insns.
3609 * testsuite/gas/i386/adx-intel.d, testsuite/gas/i386/adx.d,
3610 testsuite/gas/i386/cet-intel.d, testsuite/gas/i386/cet.d,
3611 testsuite/gas/i386/code16.d, testsuite/gas/i386/ept-intel.d,
3612 testsuite/gas/i386/ept.d, testsuite/gas/i386/fsgs-intel.d,
3613 testsuite/gas/i386/fsgs.d, testsuite/gas/i386/invpcid-intel.d,
3614 testsuite/gas/i386/invpcid.d, testsuite/gas/i386/movdir-intel.d,
3615 testsuite/gas/i386/movdir.d, testsuite/gas/i386/ptwrite-intel.d,
3616 testsuite/gas/i386/ptwrite.d, testsuite/gas/i386/rdpid-intel.d,
3617 testsuite/gas/i386/rdpid.d, testsuite/gas/i386/sse2-16bit.d,
3618 testsuite/gas/i386/vmx.d: Adjust expectations.
3619
3620 2020-03-06 Jan Beulich <jbeulich@suse.com>
3621
3622 * config/tc-i386.c (md_assemble): Also exclude tpause and umwait
3623 from having their operands swapped.
3624 * testsuite/gas/i386/waitpkg.s,
3625 testsuite/gas/i386/x86-64-waitpkg.s: Add tpause and umwait
3626 3-operand cases as well as testing of 16-bit code generation.
3627 * testsuite/gas/i386/waitpkg.d,
3628 testsuite/gas/i386/waitpkg-intel.d,
3629 testsuite/gas/i386/x86-64-waitpkg.d,
3630 testsuite/gas/i386/x86-64-waitpkg-intel.d: Adjust expectations.
3631
3632 2020-03-04 Nelson Chu <nelson.chu@sifive.com>
3633
3634 * config/tc-riscv.c (percent_op_utype): Support the modifier
3635 %got_pcrel_hi.
3636 * doc/c-riscv.texi: Add documentation.
3637 * testsuite/gas/riscv/no-relax-reloc.d: Add test case for the new
3638 modifier %got_pcrel_hi.
3639 * testsuite/gas/riscv/no-relax-reloc.s: Likewise.
3640 * testsuite/gas/riscv/relax-reloc.d: Likewise.
3641 * testsuite/gas/riscv/relax-reloc.s: Likewise.
3642
3643 * doc/c-riscv.texi (relocation modifiers): Add documentation.
3644 (RISC-V-Formats): Update the section name from "Instruction Formats"
3645 to "RISC-V Instruction Formats".
3646
3647 2020-03-04 Alexandre Oliva <oliva@adacore.com>
3648
3649 * config/tc-arm.c (md_apply_fix): Warn if a PC-relative load is
3650 detected in a section which does not have at least 4 byte
3651 alignment.
3652 * testsuite/gas/arm/armv8-ar-it-bad.s: Add alignment directive.
3653 * testsuite/gas/arm/ldr-t.s: Likewise.
3654 * testsuite/gas/arm/sp-pc-usage-t.s: Likewise.
3655 * testsuite/gas/arm/sp-pc-usage-t.d: Finish test at end of
3656 disassembly, ignoring any NOPs that may have been inserted because
3657 of section alignment.
3658 * testsuite/gas/arm/ldr-t.d: Likewise.
3659
3660 2020-03-04 Jan Beulich <jbeulich@suse.com>
3661
3662 * config/tc-i386.c (cpu_arch): Add .sev_es entry.
3663 * doc/c-i386.texi: Mention sev_es.
3664 * testsuite/gas/i386/arch-13.s: Add SEV-ES case.
3665 * testsuite/gas/i386/arch-13.d: Extend -march=. Adjust
3666 expectations.
3667 * testsuite/gas/i386/arch-13-znver1.d,
3668 testsuite/gas/i386/arch-13-znver2.d: Extend -march=.
3669
3670 2020-03-03 H.J. Lu <hongjiu.lu@intel.com>
3671
3672 * config/tc-i386.c (match_template): Replace ignoresize and
3673 defaultsize with mnemonicsize.
3674 (process_suffix): Likewise.
3675
3676 2020-03-03 Sergey Belyashov <sergey.belyashov@gmail.com>
3677
3678 PR 25627
3679 * config/tc-z80.c (emit_ld_rr_m): Fix invalid compilation of
3680 instruction LD IY,(HL).
3681 * testsuite/gas/z80/ez80_adl_all.d: Update expected disassembly.
3682 * testsuite/gas/z80/ez80_adl_all.s: Add tests of the instruction.
3683 * testsuite/gas/z80/ez80_z80_all.d: Update expected disassembly.
3684 * testsuite/gas/z80/ez80_z80_all.s: Add tests of the instruction.
3685
3686 2020-03-03 H.J. Lu <hongjiu.lu@intel.com>
3687
3688 PR gas/25622
3689 * testsuite/gas/i386/i386.exp: Run x86-64-default-suffix and
3690 x86-64-default-suffix-avx.
3691 * testsuite/gas/i386/noreg64.s: Remove cvtsi2sd, cvtsi2ss,
3692 vcvtsi2sd, vcvtsi2ss, vcvtusi2sd and vcvtusi2ss entries.
3693 * testsuite/gas/i386/noreg64.d: Updated.
3694 * testsuite/gas/i386/noreg64.l: Likewise.
3695 * testsuite/gas/i386/x86-64-default-suffix-avx.d: New file.
3696 * testsuite/gas/i386/x86-64-default-suffix.d: Likewise.
3697 * testsuite/gas/i386/x86-64-default-suffix.s: Likewise.
3698
3699 2020-03-03 Sergey Belyashov <sergey.belyashov@gmail.com>
3700
3701 PR 25604
3702 * config/tc-z80.c (contains_register): Prevent an illegal memory
3703 access when checking an expression for a register name.
3704
3705 2020-03-03 Alan Modra <amodra@gmail.com>
3706
3707 * config/obj-coff.h: Remove vestiges of coff-m68k and pe-mips
3708 support.
3709
3710 2020-03-02 Alan Modra <amodra@gmail.com>
3711
3712 * config/tc-m32r.c (md_begin): Set SEC_SMALL_DATA on .scommon section.
3713 * config/tc-mips.c (s_change_sec): Set SEC_SMALL_DATA for .sdata
3714 and .sbss sections.
3715 * config/tc-score.c: Delete !BFD_ASSEMBLER code throughout.
3716 (s3_s_change_sec): Set SEC_SMALL_DATA for .sbss section.
3717 (s3_s_score_lcomm): Likewise.
3718 * config/tc-score7.c: Similarly.
3719 * read.c (bss_alloc): Set SEC_SMALL_DATA for .sbss section.
3720
3721 2020-02-28 YunQiang Su <syq@debian.org>
3722
3723 PR gas/25539
3724 * config/tc-mips.c (fix_loongson3_llsc): Compare label value
3725 to handle multi-labels.
3726 (has_label_name): New.
3727
3728 2020-02-26 Matthew Malcomson <matthew.malcomson@arm.com>
3729
3730 * config/tc-arm.c (enum pred_instruction_type): Remove
3731 NEUTRAL_IT_NO_VPT_INSN predication type.
3732 (cxn_handle_predication): Modify to require condition suffixes.
3733 (handle_pred_state): Remove NEUTRAL_IT_NO_VPT_INSN cases.
3734 * testsuite/gas/arm/cde-scalar.s: Update test.
3735 * testsuite/gas/arm/cde-warnings.l: Update test.
3736 * testsuite/gas/arm/cde-warnings.s: Update test.
3737
3738 2020-02-26 Alan Modra <amodra@gmail.com>
3739
3740 * config/tc-arm.c (reg_expected_msgs[REG_TYPE_RNB]): Don't use
3741 N_() on empty string.
3742
3743 2020-02-26 Alan Modra <amodra@gmail.com>
3744
3745 * read.c (read_a_source_file): Call strncpy with length one
3746 less than size of original_case_string.
3747
3748 2020-02-26 Alan Modra <amodra@gmail.com>
3749
3750 * config/obj-elf.c: Indent labels correctly.
3751 * config/obj-macho.c: Likewise.
3752 * config/tc-aarch64.c: Likewise.
3753 * config/tc-alpha.c: Likewise.
3754 * config/tc-arm.c: Likewise.
3755 * config/tc-cr16.c: Likewise.
3756 * config/tc-crx.c: Likewise.
3757 * config/tc-frv.c: Likewise.
3758 * config/tc-i386-intel.c: Likewise.
3759 * config/tc-i386.c: Likewise.
3760 * config/tc-ia64.c: Likewise.
3761 * config/tc-mn10200.c: Likewise.
3762 * config/tc-mn10300.c: Likewise.
3763 * config/tc-nds32.c: Likewise.
3764 * config/tc-riscv.c: Likewise.
3765 * config/tc-s12z.c: Likewise.
3766 * config/tc-xtensa.c: Likewise.
3767 * config/tc-z80.c: Likewise.
3768 * read.c: Likewise.
3769 * symbols.c: Likewise.
3770 * write.c: Likewise.
3771
3772 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
3773
3774 * config/tc-riscv.c (riscv_ip): New boolean insn_with_csr to indicate
3775 we are assembling instruction with CSR. Call riscv_csr_read_only_check
3776 after parsing all arguments.
3777 (enum csr_insn_type): New enum is used to classify the CSR instruction.
3778 (riscv_csr_insn_type, riscv_csr_read_only_check): New functions. These
3779 are used to check if we write a read-only CSR by the CSR instruction.
3780 * testsuite/gas/riscv/priv-reg-fail-read-only-01.s: New testcase. Test
3781 all CSR for the read-only CSR checking.
3782 * testsuite/gas/riscv/priv-reg-fail-read-only-01.d: Likewise.
3783 * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
3784 * testsuite/gas/riscv/priv-reg-fail-read-only-02.s: New testcase. Test
3785 all CSR instructions for the read-only CSR checking.
3786 * testsuite/gas/riscv/priv-reg-fail-read-only-02.d: Likewise.
3787 * testsuite/gas/riscv/priv-reg-fail-read-only-02.l: Likewise.
3788
3789 * config/tc-riscv.c (struct riscv_set_options): New field csr_check.
3790 (riscv_opts): Initialize it.
3791 (reg_lookup_internal): Check the `riscv_opts.csr_check`
3792 before doing the CSR checking.
3793 (enum options): Add OPTION_CSR_CHECK and OPTION_NO_CSR_CHECK.
3794 (md_longopts): Add mcsr-check and mno-csr-check.
3795 (md_parse_option): Handle new enum option values.
3796 (s_riscv_option): Handle new long options.
3797 * doc/c-riscv.texi: Add description for the new .option and assembler
3798 options.
3799 * testsuite/gas/riscv/priv-reg-fail-fext.d: Add `-mcsr-check` to enable
3800 the CSR checking.
3801 * testsuite/gas/riscv/priv-reg-fail-rv32-only.d: Likewise.
3802
3803 * config/tc-riscv.c (csr_extra_hash): New.
3804 (enum riscv_csr_class): New enum. Used to decide
3805 whether or not this CSR is legal in the current ISA string.
3806 (struct riscv_csr_extra): New structure to hold all extra information
3807 of CSR.
3808 (riscv_init_csr_hashes): New. According to the DECLARE_CSR and
3809 DECLARE_CSR_ALIAS, insert CSR extra information into csr_extra_hash.
3810 Call hash_reg_name to insert CSR address into reg_names_hash.
3811 (reg_csr_lookup_internal, riscv_csr_class_check): New functions.
3812 Decide whether the CSR is valid according to the csr_extra_hash.
3813 (reg_lookup_internal): Call reg_csr_lookup_internal for CSRs.
3814 (init_opcode_hash): Update 'if (hash_error != NULL)' as hash_error is
3815 not a boolean. This is same as riscv_init_csr_hash, so keep the
3816 consistent usage.
3817 (md_begin): Call riscv_init_csr_hashes for each DECLARE_CSR.
3818 * testsuite/gas/riscv/csr-dw-regnums.d: Add -march=rv32if option.
3819 * testsuite/gas/riscv/priv-reg.d: Add f-ext by -march option.
3820 * testsuite/gas/riscv/priv-reg-fail-fext.d: New testcase. The source
3821 file is `priv-reg.s`, and the ISA is rv32i without f-ext, so the
3822 f-ext CSR are not allowed.
3823 * testsuite/gas/riscv/priv-reg-fail-fext.l: Likewise.
3824 * testsuite/gas/riscv/priv-reg-fail-rv32-only.d: New testcase. The
3825 source file is `priv-reg.s`, and the ISA is rv64if, so the
3826 rv32-only CSR are not allowed.
3827 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
3828
3829 2020-02-21 Alan Modra <amodra@gmail.com>
3830
3831 * config/tc-pdp11.c (md_apply_fix): Handle BFD_RELOC_32.
3832 (tc_gen_reloc): Only give a BAD_CASE assertion on pcrel relocs.
3833
3834 2020-02-21 Alan Modra <amodra@gmail.com>
3835
3836 PR 25569
3837 * config/obj-aout.c (obj_aout_frob_file_before_fix): Don't loop
3838 on section size adjustment, instead perform another write if
3839 exec header size is larger than section size.
3840
3841 2020-02-19 Nelson Chu <nelson.chu@sifive.com>
3842
3843 * doc/c-riscv.texi: Add the doc entries for -march-attr/
3844 -mno-arch-attr command line options.
3845
3846 2020-02-19 Nelson Chu <nelson.chu@sifive.com>
3847
3848 * testsuite/gas/riscv/c-add-addi.d: New testcase.
3849 * testsuite/gas/riscv/c-add-addi.s: Likewise.
3850
3851 2020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
3852
3853 PR 25576
3854 * config/tc-z80.c (md_parse_option): Do not use an underscore
3855 prefix for local labels in SDCC compatability mode.
3856 (z80_start_line_hook): Remove SDCC dollar label support.
3857 * testsuite/gas/z80/sdcc.d: Update expected disassembly.
3858 * testsuite/gas/z80/sdcc.s: Likewise.
3859
3860 2020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
3861
3862 PR 25517
3863 * config/tc-z80.c: Add -march option.
3864 * doc/as.texi: Update Z80 documentation.
3865 * doc/c-z80.texi: Likewise.
3866 * testsuite/gas/z80/ez80_adl_all.d: Update command line.
3867 * testsuite/gas/z80/ez80_adl_suf.d: Likewise.
3868 * testsuite/gas/z80/ez80_pref_dis.d: Likewise.
3869 * testsuite/gas/z80/ez80_z80_all.d: Likewise.
3870 * testsuite/gas/z80/ez80_z80_suf.d: Likewise.
3871 * testsuite/gas/z80/gbz80_all.d: Likewise.
3872 * testsuite/gas/z80/r800_extra.d: Likewise.
3873 * testsuite/gas/z80/r800_ii8.d: Likewise.
3874 * testsuite/gas/z80/r800_z80_doc.d: Likewise.
3875 * testsuite/gas/z80/sdcc.d: Likewise.
3876 * testsuite/gas/z80/z180.d: Likewise.
3877 * testsuite/gas/z80/z180_z80_doc.d: Likewise.
3878 * testsuite/gas/z80/z80_doc.d: Likewise.
3879 * testsuite/gas/z80/z80_ii8.d: Likewise.
3880 * testsuite/gas/z80/z80_in_f_c.d: Likewise.
3881 * testsuite/gas/z80/z80_op_ii_ld.d: Likewise.
3882 * testsuite/gas/z80/z80_out_c_0.d: Likewise.
3883 * testsuite/gas/z80/z80_sli.d: Likewise.
3884 * testsuite/gas/z80/z80n_all.d: Likewise.
3885 * testsuite/gas/z80/z80n_reloc.d: Likewise.
3886
3887 2020-02-19 H.J. Lu <hongjiu.lu@intel.com>
3888
3889 * config/tc-i386.c (output_insn): Mark cvtpi2ps and cvtpi2pd
3890 with GNU_PROPERTY_X86_FEATURE_2_MMX.
3891 * testsuite/gas/i386/i386.exp: Run property-3 and
3892 x86-64-property-3.
3893 * testsuite/gas/i386/property-3.d: New file.
3894 * testsuite/gas/i386/property-3.s: Likewise.
3895 * testsuite/gas/i386/x86-64-property-3.d: Likewise.
3896
3897 2020-02-17 H.J. Lu <hongjiu.lu@intel.com>
3898
3899 * config/tc-i386.c (cpu_arch): Add .popcnt.
3900 * doc/c-i386.texi: Remove abm and .abm. Add popcnt and .popcnt.
3901 Add a tab before @samp{.sse4a}.
3902
3903 2020-02-17 Jan Beulich <jbeulich@suse.com>
3904
3905 * config/tc-i386.c (process_suffix): Don't try to guess a suffix
3906 for AddrPrefixOpReg templates. Combine the two pieces of
3907 addrprefixopreg handling. Reject 16-bit address reg in 64-bit
3908 mode.
3909
3910 2020-02-17 Jan Beulich <jbeulich@suse.com>
3911
3912 PR gas/14439
3913 * config/tc-i386.c (md_assemble): Also suppress operand
3914 swapping for MONITOR{,X} and MWAIT{,X}.
3915 * testsuite/gas/i386/sse3.s, testsuite/gas/i386/x86-64-sse3.s:
3916 Add Intel syntax monitor/mwait tests.
3917 * testsuite/gas/i386/sse3.d, testsuite/gas/i386/x86-64-sse3.d:
3918 Adjust expectations.
3919 *testsuite/gas/i386/sse3-intel.d,
3920 testsuite/gas/i386/x86-64-sse3-intel.d: New.
3921 * testsuite/gas/i386/i386.exp: Run new tests.
3922
3923 2020-02-17 Jan Beulich <jbeulich@suse.com>
3924
3925 PR gas/6518
3926 * config/tc-i386.c (process_suffix): Re-work Intel-syntax
3927 [XYZ]MMWord memory operand ambiguity recognition logic (largely
3928 re-indentation).
3929 * testsuite/gas/i386/avx512dq-inval.s: Add vcvtqq2ps/vcvtuqq2ps
3930 cases.
3931 * testsuite/gas/i386/inval-avx512f.s: Also test vcvtneps2bf16.
3932 * testsuite/gas/i386/avx512dq-inval.l,
3933 testsuite/gas/i386/inval-avx.l,
3934 testsuite/gas/i386/inval-avx512f.l: Adjust expectations.
3935 * testsuite/gas/i386/avx512vl-ambig.s,
3936 testsuite/gas/i386/avx512vl-ambig.l: New.
3937 * testsuite/gas/i386/i386.exp: Run new test.
3938
3939 2020-02-16 H.J. Lu <hongjiu.lu@intel.com>
3940
3941 * config/tc-i386.c (cpu_arch): Add .sse4a and nosse4a. Restore
3942 nosse4.
3943 * doc/c-i386.texi: Document sse4a and nosse4a.
3944
3945 2020-02-14 H.J. Lu <hongjiu.lu@intel.com>
3946
3947 * doc/c-i386.texi: Remove the old movsx and movzx documentation
3948 for AT&T syntax.
3949
3950 2020-02-14 Jan Beulich <jbeulich@suse.com>
3951
3952 PR gas/25438
3953 * config/tc-i386.c (md_assemble): Move movsx/movzx special
3954 casing ...
3955 (process_suffix): ... here. Consider just the first operand
3956 initially.
3957 (check_long_reg): Drop opcode 0x63 special case again.
3958 * testsuite/gas/i386/i386.s, testsuite/gas/i386/iamcu-1.s,
3959 testsuite/gas/i386/ilp32/x86-64.s, testsuite/gas/i386/x86_64.s:
3960 Move ambiguous operand size tests ...
3961 * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
3962 testsuite/gas/i386/noreg64.s: ... here.
3963 * testsuite/gas/i386/i386.d, testsuite/gas/i386/i386-intel.d
3964 testsuite/gas/i386/iamcu-1.d, testsuite/gas/i386/ilp32/x86-64.d,
3965 testsuite/gas/i386/k1om.d, testsuite/gas/i386/l1om.d,
3966 testsuite/gas/i386/movx16.l, testsuite/gas/i386/movx32.l,
3967 testsuite/gas/i386/movx64.l, testsuite/gas/i386/noreg16.d,
3968 testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg64.d,
3969 testsuite/gas/i386/x86-64-movsxd.d,
3970 testsuite/gas/i386/x86-64-movsxd-intel.d,
3971 testsuite/gas/i386/x86_64.d, testsuite/gas/i386/x86_64-intel.d:
3972 Adjust expectations.
3973 * testsuite/gas/i386/movx16.s, testsuite/gas/i386/movx16.l,
3974 testsuite/gas/i386/movx32.s, testsuite/gas/i386/movx32.l,
3975 testsuite/gas/i386/movx64.s, testsuite/gas/i386/movx64.l: New.
3976 * testsuite/gas/i386/i386.exp: Run new tests.
3977
3978 2020-02-14 Jan Beulich <jbeulich@suse.com>
3979
3980 * config/tc-i386.c (process_operands): Also skip segment
3981 override prefix emission if it matches an already present one.
3982 * testsuite/gas/i386/prefix32.s: Add double segment override
3983 cases.
3984 * testsuite/gas/i386/prefix32.l: Adjust expectations.
3985
3986 2020-02-14 Jan Beulich <jbeulich@suse.com>
3987
3988 * config/tc-i386.c (process_operands): Drop ineffectual segment
3989 overrides when optimizing.
3990 * testsuite/gas/i386/lea-optimize.d: New.
3991 * testsuite/gas/i386/i386.exp: Run new test.
3992
3993 2020-02-14 Jan Beulich <jbeulich@suse.com>
3994
3995 * config/tc-i386.c (process_operands): Also check insn prefix
3996 for ineffectual segment override warning. Don't cover possible
3997 VEX/EVEX encoded insns there.
3998 * testsuite/gas/i386/lea.s, testsuite/gas/i386/lea.d,
3999 testsuite/gas/i386/lea.e: New.
4000 * testsuite/gas/i386/i386.exp: Run new test.
4001
4002 2020-02-14 H.J. Lu <hongjiu.lu@intel.com>
4003
4004 PR gas/25438
4005 * doc/c-i386.texi: Document movsx, movsxd and movzx for AT&T
4006 syntax.
4007
4008 2020-02-13 Fangrui Song <maskray@google.com>
4009 H.J. Lu <hongjiu.lu@intel.com>
4010
4011 PR gas/25551
4012 * config/tc-i386.c (tc_i386_fix_adjustable): Don't check
4013 BFD_RELOC_386_PLT32 nor BFD_RELOC_X86_64_PLT32.
4014 * testsuite/gas/i386/i386.exp: Run relax-5 and x86-64-relax-4.
4015 * testsuite/gas/i386/relax-5.d: New file.
4016 * testsuite/gas/i386/relax-5.s: Likewise.
4017 * testsuite/gas/i386/x86-64-relax-4.d: Likewise.
4018 * testsuite/gas/i386/x86-64-relax-4.s: Likewise.
4019
4020 2020-02-13 Jan Beulich <jbeulich@suse.com>
4021
4022 * config/tc-i386.c (cpu_noarch): Use CPU_ANY_SSE4_FLAGS in
4023 "nosse4" entry.
4024
4025 2020-02-12 Jan Beulich <jbeulich@suse.com>
4026
4027 * config/tc-i386.c (avx512): New (at file scope), moved from
4028 (check_VecOperands): ... here.
4029 (process_suffix): Add [XYZ]MMword operand size handling.
4030 * testsuite/gas/i386/avx512dq-inval.s: Add VFPCLASS tests.
4031 * testsuite/gas/i386/noavx512-2.s: Add Intel syntax VFPCLASS
4032 tests.
4033 * testsuite/gas/i386/avx512dq-inval.l,
4034 testsuite/gas/i386/noavx512-2.l: Adjust expectations.
4035
4036 2020-02-12 Jan Beulich <jbeulich@suse.com>
4037
4038 PR gas/24546
4039 * config/tc-i386.c (match_template): Apply AMD64 check to 64-bit
4040 code only.
4041 * config/tc-i386-intel.c (i386_intel_operand): Also handle
4042 CALL/JMP in O_tbyte_ptr case.
4043 * doc/c-i386.texi: Mention far call and full pointer load ISA
4044 differences.
4045 * testsuite/gas/i386/x86-64-branch-3.s,
4046 testsuite/gas/i386/x86-64-intel64.s: Add 64-bit far call cases.
4047 * testsuite/gas/i386/x86-64-branch-3.d,
4048 testsuite/gas/i386/x86-64-intel64.d: Adjust expectations.
4049 * testsuite/gas/i386/x86-64-branch-5.l,
4050 testsuite/gas/i386/x86-64-branch-5.s: New.
4051 * testsuite/gas/i386/i386.exp: Run new test.
4052
4053 2020-02-12 Jan Beulich <jbeulich@suse.com>
4054
4055 PR gas/25438
4056 * config/tc-i386.c (REGISTER_WARNINGS): Delete.
4057 (check_byte_reg): Skip only source operand of CRC32. Drop Non-
4058 64-bit-only warning.
4059 (check_word_reg): Consistently error on mismatching register
4060 size and suffix.
4061 * testsuite/gas/i386/general.s: Replace dword GPR with word one
4062 for movw. Replace suffix / GPR for orb.
4063 * testsuite/gas/i386/inval.s: Add tests for movw with dword and
4064 byte GPRs as well as ones for inb/outb with a word accumulator.
4065 * testsuite/gas/i386/general.l, testsuite/gas/i386/intelbad.l,
4066 testsuite/gas/i386/inval.l: Adjust expectations.
4067
4068 2020-02-12 Jan Beulich <jbeulich@suse.com>
4069
4070 * config/tc-i386.c (operand_type_register_match): Also fall
4071 through initial two if()-s when the template allows for a GPR
4072 operand. Adjust comment.
4073
4074 2020-02-11 Jan Beulich <jbeulich@suse.com>
4075
4076 (struct _i386_insn): New field "short_form".
4077 (optimize_encoding): Drop setting of shortform field.
4078 (process_suffix): Set i.short_form. Replace shortform use.
4079 (process_operands): Replace shortform use.
4080
4081 2020-02-11 Matthew Malcomson <matthew.malcomson@arm.com>
4082
4083 * config/tc-arm.c (vcx_handle_register_arguments): Remove `for`
4084 loop initial declaration.
4085
4086 2020-02-10 Matthew Malcomson <matthew.malcomson@arm.com>
4087
4088 * config/tc-arm.c (NEON_MAX_TYPE_ELS): Increment to account for
4089 instructions that can have 5 arguments.
4090 (enum operand_parse_code): Add new operands.
4091 (parse_operands): Account for new operands.
4092 (S5): New macro.
4093 (enum neon_shape_el): Introduce P suffixes for coprocessor.
4094 (neon_select_shape): Account for P suffix.
4095 (LOW1): Move macro to global position.
4096 (HI4): Move macro to global position.
4097 (vcx_assign_vec_d): New.
4098 (vcx_assign_vec_m): New.
4099 (vcx_assign_vec_n): New.
4100 (enum vcx_reg_type): New.
4101 (vcx_get_reg_type): New.
4102 (vcx_size_pos): New.
4103 (vcx_vec_pos): New.
4104 (vcx_handle_shape): New.
4105 (vcx_ensure_register_in_range): New.
4106 (vcx_handle_register_arguments): New.
4107 (vcx_handle_insn_block): New.
4108 (vcx_handle_common_checks): New.
4109 (do_vcx1): New.
4110 (do_vcx2): New.
4111 (do_vcx3): New.
4112 * testsuite/gas/arm/cde-missing-fp.d: New test.
4113 * testsuite/gas/arm/cde-missing-fp.l: New test.
4114 * testsuite/gas/arm/cde-missing-mve.d: New test.
4115 * testsuite/gas/arm/cde-missing-mve.l: New test.
4116 * testsuite/gas/arm/cde-mve-or-neon.d: New test.
4117 * testsuite/gas/arm/cde-mve-or-neon.s: New test.
4118 * testsuite/gas/arm/cde-mve.s: New test.
4119 * testsuite/gas/arm/cde-warnings.l:
4120 * testsuite/gas/arm/cde-warnings.s:
4121 * testsuite/gas/arm/cde.d:
4122 * testsuite/gas/arm/cde.s:
4123
4124 2020-02-10 Stam Markianos-Wright <stam.markianos-wright@arm.com>
4125 Matthew Malcomson <matthew.malcomson@arm.com>
4126
4127 * config/tc-arm.c (arm_ext_cde*): New feature sets for each
4128 CDE coprocessor that can be enabled.
4129 (enum pred_instruction_type): New pred type.
4130 (BAD_NO_VPT): New error message.
4131 (BAD_CDE): New error message.
4132 (BAD_CDE_COPROC): New error message.
4133 (enum operand_parse_code): Add new immediate operands.
4134 (parse_operands): Account for new immediate operands.
4135 (check_cde_operand): New.
4136 (cde_coproc_enabled): New.
4137 (cde_coproc_pos): New.
4138 (cde_handle_coproc): New.
4139 (cxn_handle_predication): New.
4140 (do_custom_instruction_1): New.
4141 (do_custom_instruction_2): New.
4142 (do_custom_instruction_3): New.
4143 (do_cx1): New.
4144 (do_cx1a): New.
4145 (do_cx1d): New.
4146 (do_cx1da): New.
4147 (do_cx2): New.
4148 (do_cx2a): New.
4149 (do_cx2d): New.
4150 (do_cx2da): New.
4151 (do_cx3): New.
4152 (do_cx3a): New.
4153 (do_cx3d): New.
4154 (do_cx3da): New.
4155 (handle_pred_state): Define new IT block behaviour.
4156 (insns): Add newn CX*{,d}{,a} instructions.
4157 (CDE_EXTENSIONS,armv8m_main_ext_table,armv8_1m_main_ext_table):
4158 Define new cdecp extension strings.
4159 * doc/c-arm.texi: Document new cdecp extension arguments.
4160 * testsuite/gas/arm/cde-scalar.d: New test.
4161 * testsuite/gas/arm/cde-scalar.s: New test.
4162 * testsuite/gas/arm/cde-warnings.d: New test.
4163 * testsuite/gas/arm/cde-warnings.l: New test.
4164 * testsuite/gas/arm/cde-warnings.s: New test.
4165 * testsuite/gas/arm/cde.d: New test.
4166 * testsuite/gas/arm/cde.s: New test.
4167
4168 2020-02-10 H.J. Lu <hongjiu.lu@intel.com>
4169
4170 PR gas/25516
4171 * config/tc-i386.c (intel64): Renamed to ...
4172 (isa64): This.
4173 (match_template): Accept Intel64 only instruction by default.
4174 (i386_displacement): Updated.
4175 (md_parse_option): Updated.
4176 * c-i386.texi: Update -mamd64/-mintel64 documentation.
4177 * testsuite/gas/i386/i386.exp: Run x86-64-sysenter. Pass
4178 -mamd64 to x86-64-sysenter-amd.
4179 * testsuite/gas/i386/x86-64-sysenter.d: New file.
4180
4181 2020-02-10 Alan Modra <amodra@gmail.com>
4182
4183 * config/obj-elf.c (obj_elf_change_section): Error for section
4184 type, attr or entsize changes in assembly.
4185 * testsuite/gas/elf/elf.exp: Pass -Z to gas for section5 test.
4186 * testsuite/gas/elf/section5.l: Update.
4187
4188 2020-02-10 Alan Modra <amodra@gmail.com>
4189
4190 * output-file.c (output_file_close): Do a normal close when
4191 flag_always_generate_output.
4192 * write.c (write_object_file): Don't stop output when
4193 flag_always_generate_output.
4194
4195 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
4196
4197 PR 25469
4198 * config/tc-z80.c: Add -gbz80 command line option to generate code
4199 for the GameBoy Z80. Add support for generating DWARF.
4200 * config/tc-z80.h: Add support for DWARF debug information
4201 generation.
4202 * doc/c-z80.texi: Document new command line option.
4203 * testsuite/gas/z80/gbz80_all.d: New file.
4204 * testsuite/gas/z80/gbz80_all.s: New file.
4205 * testsuite/gas/z80/z80.exp: Run the new tests.
4206 * testsuite/gas/z80/z80n_all.d: New file.
4207 * testsuite/gas/z80/z80n_all.s: New file.
4208 * testsuite/gas/z80/z80n_reloc.d: New file.
4209
4210 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
4211
4212 PR gas/25381
4213 * config/obj-elf.c (get_section): Also check
4214 linked_to_symbol_name.
4215 (obj_elf_change_section): Also set map_head.linked_to_symbol_name.
4216 (obj_elf_parse_section_letters): Handle the 'o' flag.
4217 (build_group_lists): Renamed to ...
4218 (build_additional_section_info): This. Set elf_linked_to_section
4219 from map_head.linked_to_symbol_name.
4220 (elf_adjust_symtab): Updated.
4221 * config/obj-elf.h (elf_section_match): Add linked_to_symbol_name.
4222 * doc/as.texi: Document the 'o' flag.
4223 * testsuite/gas/elf/elf.exp: Run PR gas/25381 tests.
4224 * testsuite/gas/elf/section18.d: New file.
4225 * testsuite/gas/elf/section18.s: Likewise.
4226 * testsuite/gas/elf/section19.d: Likewise.
4227 * testsuite/gas/elf/section19.s: Likewise.
4228 * testsuite/gas/elf/section20.d: Likewise.
4229 * testsuite/gas/elf/section20.s: Likewise.
4230 * testsuite/gas/elf/section21.d: Likewise.
4231 * testsuite/gas/elf/section21.l: Likewise.
4232 * testsuite/gas/elf/section21.s: Likewise.
4233
4234 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
4235
4236 * NEWS: Mention x86 assembler options to align branches for
4237 binutils 2.34.
4238
4239 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
4240
4241 * testsuite/gas/i386/i386.exp: Run unique and x86-64-unique
4242 only for ELF targets.
4243 * testsuite/gas/i386/unique.d: Don't xfail.
4244 * testsuite/gas/i386/x86-64-unique.d: Likewise.
4245
4246 2020-02-06 Alan Modra <amodra@gmail.com>
4247
4248 * testsuite/gas/i386/unique.d: xfail for non-elf targets.
4249 * testsuite/gas/i386/x86-64-unique.d: Likewise.
4250
4251 2020-02-06 Alan Modra <amodra@gmail.com>
4252
4253 * testsuite/gas/elf/section12a.d: Use supports_gnu_osabi in
4254 xfail, and rename test.
4255 * testsuite/gas/elf/section12b.d: Likewise.
4256 * testsuite/gas/elf/section16a.d: Likewise.
4257 * testsuite/gas/elf/section16b.d: Likewise.
4258
4259 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
4260
4261 PR gas/25380
4262 * config/obj-elf.c (section_match): Removed.
4263 (get_section): Also match SEC_ASSEMBLER_SECTION_ID and
4264 section_id.
4265 (obj_elf_change_section): Replace info and group_name arguments
4266 with match_p. Also update the section ID and flags from match_p.
4267 (obj_elf_section): Handle "unique,N". Update call to
4268 obj_elf_change_section.
4269 * config/obj-elf.h (elf_section_match): New.
4270 (obj_elf_change_section): Updated.
4271 * config/tc-arm.c (start_unwind_section): Update call to
4272 obj_elf_change_section.
4273 * config/tc-ia64.c (obj_elf_vms_common): Likewise.
4274 * config/tc-microblaze.c (microblaze_s_data): Likewise.
4275 (microblaze_s_sdata): Likewise.
4276 (microblaze_s_rdata): Likewise.
4277 (microblaze_s_bss): Likewise.
4278 * config/tc-mips.c (s_change_section): Likewise.
4279 * config/tc-msp430.c (msp430_profiler): Likewise.
4280 * config/tc-rx.c (parse_rx_section): Likewise.
4281 * config/tc-tic6x.c (tic6x_start_unwind_section): Likewise.
4282 * doc/as.texi: Document "unique,N" in .section directive.
4283 * testsuite/gas/elf/elf.exp: Run "unique,N" tests.
4284 * testsuite/gas/elf/section15.d: New file.
4285 * testsuite/gas/elf/section15.s: Likewise.
4286 * testsuite/gas/elf/section16.s: Likewise.
4287 * testsuite/gas/elf/section16a.d: Likewise.
4288 * testsuite/gas/elf/section16b.d: Likewise.
4289 * testsuite/gas/elf/section17.d: Likewise.
4290 * testsuite/gas/elf/section17.l: Likewise.
4291 * testsuite/gas/elf/section17.s: Likewise.
4292 * testsuite/gas/i386/unique.d: Likewise.
4293 * testsuite/gas/i386/unique.s: Likewise.
4294 * testsuite/gas/i386/x86-64-unique.d: Likewise.
4295 * testsuite/gas/i386/i386.exp: Run unique and x86-64-unique.
4296
4297 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
4298
4299 * testsuite/gas/elf/section13.s: Replace @nobits with %nobits.
4300
4301 2020-02-01 Anthony Green <green@moxielogic.com>
4302
4303 * config/tc-moxie.c (md_begin): Don't force big-endian mode.
4304
4305 2020-01-31 Sandra Loosemore <sandra@codesourcery.com>
4306
4307 * config/tc-nios2.c (nios2_cons): Handle %gotoff as well as
4308 %tls_ldo.
4309
4310 2020-01-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
4311
4312 PR gas/25472
4313 * config/tc-arm.c (armv8m_main_ext_table): Refactored +dsp adding.
4314 (armv8_1m_main_ext_table): Refactored +dsp adding and enabled dsp for
4315 +mve.
4316 * testsuite/gas/arm/mve_dsp.d: New test.
4317
4318 2020-01-31 Nick Clifton <nickc@redhat.com>
4319
4320 * config/tc-s390.c (s390_elf_suffix): Return ELF_SUFFIX_NONE
4321 rather than BFD_RELOC_NONE.
4322
4323 2020-01-31 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4324
4325 * config/tc-arm.c (fldmias): Moved inside "THUMB_VARIANT & arm_ext_v6t2"
4326 to support VLDMIA instruction for MVE.
4327 (fldmdbs): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VLDMDB
4328 instruction for MVE.
4329 (fstmias): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VSTMIA
4330 instruction for MVE.
4331 (fstmdbs): Moved inside "THUMB_VARIANT & arm_ext_v6t2" to support VSTMDB
4332 instruction for MVE.
4333 * testsuite/gas/arm/mve-ldst.d: New test.
4334 * testsuite/gas/arm/mve-ldst.s: Likewise.
4335
4336 2020-01-31 Nick Clifton <nickc@redhat.com>
4337
4338 * po/fr.po: Updated French translation.
4339 * po/ru.po: Updated Russian translation.
4340
4341 2020-01-31 Richard Sandiford <richard.sandiford@arm.com>
4342
4343 * testsuite/gas/aarch64/sve-bfloat-movprfx.s: Use .h rather than
4344 .s for the movprfx.
4345 * testsuite/gas/aarch64/sve-bfloat-movprfx.d: Update accordingly.
4346 * testsuite/gas/aarch64/sve-movprfx_28.d,
4347 * testsuite/gas/aarch64/sve-movprfx_28.l,
4348 * testsuite/gas/aarch64/sve-movprfx_28.s: New test.
4349
4350 2020-01-30 Jan Beulich <jbeulich@suse.com>
4351
4352 * config/tc-i386.c (output_disp): Tighten base_opcode check.
4353 * testsuite/gas/i386/got.s: Add LSL, MOVLPS, and BNDCN cases.
4354 * testsuite/gas/i386/got-no-relax.d, testsuite/gas/i386/got.d:
4355 Adjust expectations.
4356
4357 2020-01-30 Jose E. Marchesi <jose.marchesi@oracle.com>
4358
4359 * testsuite/gas/bpf/alu.d: Update expected opcode for `neg'.
4360 * testsuite/gas/bpf/alu-be.d: Likewise.
4361 * testsuite/gas/bpf/alu32.d: Likewise for `neg32'.
4362 * testsuite/gas/bpf/alu32-be.d: Likewise.
4363
4364 2020-01-30 Jan Beulich <jbeulich@suse.com>
4365
4366 * testsuite/gas/i386/x86-64-branch-2.s,
4367 testsuite/gas/i386/x86-64-branch-4.s,
4368 testsuite/gas/i386/x86-64-branch.s: Add RETW cases.
4369 * testsuite/gas/i386/ilp32/x86-64-branch.d,
4370 testsuite/gas/i386/x86-64-branch-2.d,
4371 testsuite/gas/i386/x86-64-branch-4.l,
4372 testsuite/gas/i386/x86-64-branch.d: Adjust expectations.
4373
4374 2020-01-30 Jan Beulich <jbeulich@suse.com>
4375
4376 * config/tc-i386.c (process_suffix): .
4377 testsuite/gas/i386/noreg64.s: Add IRET and LRET cases.
4378 testsuite/gas/i386/x86-64-opcode.s: Add suffix to IRET and LRET.
4379 Add LRETQ case.
4380 testsuite/gas/i386/x86-64-suffix.s: Drop IRET case without
4381 suffix.
4382 testsuite/gas/i386/x86_64.s: Add RETF cases.
4383 * testsuite/gas/i386/k1om.d, testsuite/gas/i386/l1om.d,
4384 testsuite/gas/i386/noreg64.d, testsuite/gas/i386/noreg64.l,
4385 testsuite/gas/i386/x86-64-opcode.d,
4386 testsuite/gas/i386/x86-64-suffix-intel.d,
4387 testsuite/gas/i386/x86-64-suffix.d,
4388 testsuite/gas/i386/x86_64-intel.d
4389 testsuite/gas/i386/x86_64.d: Adjust expectations.
4390 * testsuite/gas/i386/x86-64-suffix.e,
4391 testsuite/gas/i386/x86_64.e: New.
4392
4393 2020-01-30 Jan Beulich <jbeulich@suse.com>
4394
4395 * config/tc-i386.c (process_suffix): Redo and move FLDENV et al
4396 special case.
4397
4398 2020-01-27 H.J. Lu <hongjiu.lu@intel.com>
4399
4400 PR binutils/25445
4401 * config/tc-i386.c (check_long_reg): Also convert to QWORD for
4402 movsxd.
4403 * doc/c-i386.texi: Add a node for AMD64 vs. Intel64 ISA
4404 differences. Document movslq and movsxd.
4405 * testsuite/gas/i386/i386.exp: Run PR binutils/25445 tests.
4406 * testsuite/gas/i386/x86-64-movsxd-intel.d: New file.
4407 * testsuite/gas/i386/x86-64-movsxd-intel64-intel.d: Likewise.
4408 * testsuite/gas/i386/x86-64-movsxd-intel64-inval.l: Likewise.
4409 * testsuite/gas/i386/x86-64-movsxd-intel64-inval.s: Likewise.
4410 * testsuite/gas/i386/x86-64-movsxd-intel64.d: Likewise.
4411 * testsuite/gas/i386/x86-64-movsxd-intel64.s: Likewise.
4412 * testsuite/gas/i386/x86-64-movsxd-inval.l: Likewise.
4413 * testsuite/gas/i386/x86-64-movsxd-inval.s: Likewise.
4414 * testsuite/gas/i386/x86-64-movsxd.d: Likewise.
4415 * testsuite/gas/i386/x86-64-movsxd.s: Likewise.
4416
4417 2020-01-27 Alan Modra <amodra@gmail.com>
4418
4419 * testsuite/gas/all/gas.exp: Replace case statements with switch
4420 statements.
4421 * testsuite/gas/elf/elf.exp: Likewise.
4422 * testsuite/gas/macros/macros.exp: Likewise.
4423 * testsuite/lib/gas-defs.exp: Likewise.
4424
4425 2020-01-27 Tamar Christina <tamar.christina@arm.com>
4426
4427 PR 25403
4428 * testsuite/gas/aarch64/armv8_4-a.d: Add cfinv.
4429 * testsuite/gas/aarch64/armv8_4-a.s: Likewise.
4430
4431 2020-01-22 Maxim Blinov <maxim.blinov@embecosm.com>
4432
4433 * testsuite/gas/riscv/march-ok-s.d: sx is no longer valid and
4434 s exts must be known, so rename *ok* to *fail*.
4435 * testsuite/gas/riscv/march-ok-sx.d: Likewise.
4436 * testsuite/gas/riscv/march-ok-s-with-version: Likewise.
4437 * testsuite/gas/riscv/march-fail-s.l: Expected error messages for
4438 above change.
4439 * testsuite/gas/riscv/march-fail-sx.l: Likewise.
4440 * testsuite/gas/riscv/march-fail-sx-with-version.l: Likewise.
4441
4442 2020-01-22 H.J. Lu <hongjiu.lu@intel.com>
4443
4444 PR gas/25438
4445 * config/tc-i386.c (check_long_reg): Always disallow double word
4446 suffix in mnemonic with word general register.
4447 * testsuite/gas/i386/general.s: Replace word general register
4448 with double word general register for movl.
4449 * testsuite/gas/i386/inval.s: Add tests for movl with word general
4450 register.
4451 * testsuite/gas/i386/general.l: Updated.
4452 * testsuite/gas/i386/inval.l: Likewise.
4453
4454 2020-01-22 Alan Modra <amodra@gmail.com>
4455
4456 * config/tc-ppc.c (parse_tls_arg): Handle tls arg for
4457 __tls_get_addr_desc and __tls_get_addr_opt.
4458
4459 2020-01-21 Jan Beulich <jbeulich@suse.com>
4460
4461 * testsuite/gas/i386/inval-crc32.s,
4462 testsuite/gas/i386/x86-64-inval-crc32.s: Add alignment directive.
4463 * testsuite/gas/i386/inval-crc32.l,
4464 testsuite/gas/i386/x86-64-inval-crc32.l: Adjust expectations.
4465
4466 2020-01-21 Jan Beulich <jbeulich@suse.com>
4467
4468 * config/tc-i386.c (process_suffix): Merge CRC32 handling into
4469 generic code path. Deal with No_lSuf being set in a template.
4470 * testsuite/gas/i386/inval-crc32.l,
4471 testsuite/gas/i386/x86-64-inval-crc32.l: Expect warning(s)
4472 instead of error(s) when operand size is ambiguous.
4473 * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
4474 testsuite/gas/i386/noreg64.s: Add CRC32 tests.
4475 * testsuite/gas/i386/noreg16.d, testsuite/gas/i386/noreg16.l,
4476 testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg32.l,
4477 testsuite/gas/i386/noreg64.d, testsuite/gas/i386/noreg64.l:
4478 Adjust expectations.
4479
4480 2020-01-21 Jan Beulich <jbeulich@suse.com>
4481
4482 * config/tc-i386.c (process_suffix): Drop SYSRET special case
4483 and an intel_syntax check. Re-write lack-of-suffix processing
4484 logic.
4485 * doc/c-i386.texi: Document operand size defaults for suffix-
4486 less AT&T syntax insns.
4487 * testsuite/gas/i386/bundle.s, testsuite/gas/i386/lock-1.s,
4488 testsuite/gas/i386/opcode.s, testsuite/gas/i386/sse3.s,
4489 testsuite/gas/i386/x86-64-avx-scalar.s,
4490 testsuite/gas/i386/x86-64-avx.s,
4491 testsuite/gas/i386/x86-64-bundle.s,
4492 testsuite/gas/i386/x86-64-intel64.s,
4493 testsuite/gas/i386/x86-64-lock-1.s,
4494 testsuite/gas/i386/x86-64-opcode.s,
4495 testsuite/gas/i386/x86-64-sse2avx.s,
4496 testsuite/gas/i386/x86-64-sse3.s: Add missing suffixes.
4497 * testsuite/gas/i386/nops.s, testsuite/gas/i386/sse-noavx.s,
4498 testsuite/gas/i386/x86-64-nops.s,
4499 testsuite/gas/i386/x86-64-ptwrite.s,
4500 testsuite/gas/i386/x86-64-simd.s,
4501 testsuite/gas/i386/x86-64-sse-noavx.s,
4502 testsuite/gas/i386/x86-64-suffix.s: Drop bogus suffix-less
4503 insns.
4504 * testsuite/gas/i386/noreg16.s, testsuite/gas/i386/noreg32.s,
4505 testsuite/gas/i386/noreg64.s: Add further tests.
4506 * testsuite/gas/i386/ilp32/x86-64-nops.d,
4507 testsuite/gas/i386/nops.d, testsuite/gas/i386/noreg16.d,
4508 testsuite/gas/i386/noreg32.d, testsuite/gas/i386/noreg64.d,
4509 testsuite/gas/i386/sse-noavx.d,
4510 testsuite/gas/i386/x86-64-intel64.d,
4511 testsuite/gas/i386/x86-64-nops.d,
4512 testsuite/gas/i386/x86-64-opcode.d,
4513 testsuite/gas/i386/x86-64-ptwrite-intel.d,
4514 testsuite/gas/i386/x86-64-ptwrite.d,
4515 testsuite/gas/i386/x86-64-simd-intel.d,
4516 testsuite/gas/i386/x86-64-simd-suffix.d,
4517 testsuite/gas/i386/x86-64-simd.d,
4518 testsuite/gas/i386/x86-64-sse-noavx.d
4519 testsuite/gas/i386/x86-64-suffix.d,
4520 testsuite/gas/i386/x86-64-suffix-intel.d: Adjust expectations.
4521 * testsuite/gas/i386/noreg16.l, testsuite/gas/i386/noreg32.l,
4522 testsuite/gas/i386/noreg64.l: New.
4523 * testsuite/gas/i386/i386.exp: Run new tests.
4524
4525 2020-01-21 Jan Beulich <jbeulich@suse.com>
4526
4527 * testsuite/gas/i386/avx512_bf16_vl.s,
4528 testsuite/gas/i386/x86-64-avx512_bf16_vl.s: Add broadcast forms
4529 of VCVTNEPS2BF16{X,Y}. Add operand-size less Intel syntax
4530 broadcast forms of VCVTNEPS2BF16.
4531 * testsuite/gas/i386/avx512_bf16_vl.d,
4532 testsuite/gas/i386/x86-64-avx512_bf16_vl.d: Adjust expectations.
4533
4534 2020-01-20 Nick Clifton <nickc@redhat.com>
4535
4536 * po/uk.po: Updated Ukranian translation.
4537
4538 2020-01-20 H.J. Lu <hongjiu.lu@intel.com>
4539
4540 PR ld/25416
4541 * config/tc-i386.c (output_insn): Add a dummy REX_OPCODE prefix
4542 for lea with R_X86_64_GOTPC32_TLSDESC relocation when generating
4543 x32 object.
4544 * testsuite/gas/i386/ilp32/x32-tls.d: Updated.
4545 * testsuite/gas/i386/ilp32/x32-tls.s: Add tests for lea with
4546 R_X86_64_GOTPC32_TLSDESC relocation.
4547
4548 2020-01-18 Nick Clifton <nickc@redhat.com>
4549
4550 * configure: Regenerate.
4551 * po/gas.pot: Regenerate.
4552
4553 2020-01-18 Nick Clifton <nickc@redhat.com>
4554
4555 Binutils 2.34 branch created.
4556
4557 2020-01-17 H.J. Lu <hongjiu.lu@intel.com>
4558
4559 * config/tc-i386.c (_i386_insn): Replace vex_encoding_vex2
4560 with vex_encoding_vex.
4561 (parse_insn): Likewise.
4562 * doc/c-i386.texi: Replace {vex2} with {vex}. Update {vex}
4563 and {vex3} documentation.
4564 * testsuite/gas/i386/pseudos.s: Replace 3 {vex2} tests with
4565 {vex}.
4566 * testsuite/gas/i386/x86-64-pseudos.s: Likewise.
4567
4568 2020-01-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
4569
4570 PR 25376
4571 * config/tc-arm.c (mve_ext, mve_fp_ext): Use CORE_HIGH.
4572 (armv8_1m_main_ext_table): Use CORE_HIGH for mve.
4573 * testsuite/arm/armv8_1-m-fpu-mve-1.s: New.
4574 * testsuite/arm/armv8_1-m-fpu-mve-1.d: New.
4575 * testsuite/arm/armv8_1-m-fpu-mve-2.s: New.
4576 * testsuite/arm/armv8_1-m-fpu-mve-2.d: New.
4577
4578 2020-01-16 Jan Beulich <jbeulich@suse.com>
4579
4580 * config/tc-i386.c (match_template): Drop found_cpu_match local
4581 variable.
4582
4583 2020-01-16 Jan Beulich <jbeulich@suse.com>
4584
4585 * testsuite/gas/i386/avx512dq-inval.l,
4586 testsuite/gas/i386/avx512dq-inval.s: New.
4587 * testsuite/gas/i386/i386.exp: Run new test.
4588
4589 2020-01-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4590
4591 * config/tc-msp430.c (CHECK_RELOC_MSP430): Always generate 430X
4592 relocations when the target is 430X, except when extracting part of an
4593 expression.
4594 (msp430_srcoperand): Adjust comment.
4595 Initialize the expp member of the msp430_operand_s struct as
4596 appropriate.
4597 (msp430_dstoperand): Likewise.
4598 * testsuite/gas/msp430/msp430.exp: Run new test.
4599 * testsuite/gas/msp430/reloc-lo-430x.d: New test.
4600 * testsuite/gas/msp430/reloc-lo-430x.s: New test.
4601
4602 2020-01-15 Alan Modra <amodra@gmail.com>
4603
4604 * configure.tgt: Add sparc-*-freebsd case.
4605
4606 2020-01-14 Lili Cui <lili.cui@intel.com>
4607
4608 * testsuite/gas/i386/align-branch-1a.d: Updated for Darwin.
4609 * testsuite/gas/i386/align-branch-1b.d: Likewise.
4610 * testsuite/gas/i386/align-branch-1c.d: Likewise.
4611 * testsuite/gas/i386/align-branch-1d.d: Likewise.
4612 * testsuite/gas/i386/align-branch-1e.d: Likewise.
4613 * testsuite/gas/i386/align-branch-1f.d: Likewise.
4614 * testsuite/gas/i386/align-branch-1g.d: Likewise.
4615 * testsuite/gas/i386/align-branch-1h.d: Likewise.
4616 * testsuite/gas/i386/align-branch-1i.d: Likewise.
4617 * testsuite/gas/i386/align-branch-5.d: Likewise.
4618 * testsuite/gas/i386/x86-64-align-branch-1a.d: Likewise.
4619 * testsuite/gas/i386/x86-64-align-branch-1b.d: Likewise.
4620 * testsuite/gas/i386/x86-64-align-branch-1c.d: Likewise.
4621 * testsuite/gas/i386/x86-64-align-branch-1d.d: Likewise.
4622 * testsuite/gas/i386/x86-64-align-branch-1e.d: Likewise.
4623 * testsuite/gas/i386/x86-64-align-branch-1f.d: Likewise.
4624 * testsuite/gas/i386/x86-64-align-branch-1g.d: Likewise.
4625 * testsuite/gas/i386/x86-64-align-branch-1h.d: Likewise.
4626 * testsuite/gas/i386/x86-64-align-branch-1i.d: Likewise.
4627 * testsuite/gas/i386/x86-64-align-branch-5.d: Likewise.
4628 * testsuite/gas/i386/i386.exp: Skip x86-64-align-branch-2a,
4629 x86-64-align-branch-2b and x86-64-align-branch-2c on Darwin.
4630
4631 2020-01-14 Sergey Belyashov <sergey.belyashov@gmail.com>
4632
4633 PR 25377
4634 * config/tc-z80.c: Add support for half precision, single
4635 precision and double precision floating point values.
4636 * config/tc-z80.h b/gas/config/tc-z80.h: Disable string escapes.
4637 * doc/as.texi: Add new z80 command line options.
4638 * doc/c-z80.texi: Document new z80 command line options.
4639 * testsuite/gas/z80/ez80_pref_dis.s: New test.
4640 * testsuite/gas/z80/ez80_pref_dis.d: New test driver.
4641 * testsuite/gas/z80/z80.exp: Run the new test.
4642 * testsuite/gas/z80/fp_math48.d: Use correct command line option.
4643 * testsuite/gas/z80/fp_zeda32.d: Likewise.
4644 * testsuite/gas/z80/strings.d: Update expected output.
4645
4646 2020-01-13 Matthew Malcomson <matthew.malcomson@arm.com>
4647
4648 * config/tc-aarch64.c (f64mm, f32mm): Add sve as a feature
4649 dependency.
4650
4651 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
4652
4653 * config/tc-arc.c (arc_select_cpu): Re-init the bfd if we change
4654 the CPU.
4655 * config/tc-arc.h: Add header if/defs.
4656 * testsuite/gas/arc/pseudos.d: Improve matching pattern.
4657
4658 2020-01-13 Alan Modra <amodra@gmail.com>
4659
4660 * testsuite/gas/wasm32/allinsn.d: Update expected output.
4661
4662 2020-01-13 Alan Modra <amodra@gmail.com>
4663
4664 * config/tc-tic4x.c (tic4x_operands_match): Correct tic3x trap
4665 insertion.
4666
4667 2020-01-10 Alan Modra <amodra@gmail.com>
4668
4669 * testsuite/gas/elf/pr14891.s: Don't start directives in first column.
4670 * testsuite/gas/elf/pr21661.d: Don't run on hpux.
4671
4672 2020-01-03 Sergey Belyashov <sergey.belyashov@gmail.com>
4673
4674 PR 25224
4675 * config/tc-z80.c (emit_ld_m_rr): Use integer types when checking
4676 opcode byte values.
4677 (emit_ld_r_r): Likewise.
4678 (emit_ld_rr_m): Likewise.
4679 (emit_ld_rr_nn): Likewise.
4680
4681 2020-01-09 Jan Beulich <jbeulich@suse.com>
4682
4683 * config/tc-i386.c (optimize_encoding): Add
4684 is_any_vex_encoding() invocations. Drop respective
4685 i.tm.extension_opcode == None checks.
4686
4687 2020-01-09 Jan Beulich <jbeulich@suse.com>
4688
4689 * config/tc-i386.c (md_assemble): Check RegRex is clear during
4690 REX transformations. Correct comment indentation.
4691
4692 2020-01-09 Jan Beulich <jbeulich@suse.com>
4693
4694 * config/tc-i386.c (optimize_encoding): Generalize register
4695 transformation for TEST optimization.
4696
4697 2020-01-09 Jan Beulich <jbeulich@suse.com>
4698
4699 * testsuite/gas/i386/x86-64-sysenter-amd.s,
4700 testsuite/gas/i386/x86-64-sysenter-amd.d,
4701 testsuite/gas/i386/x86-64-sysenter-amd.l,
4702 testsuite/gas/i386/x86-64-sysenter-intel.d,
4703 testsuite/gas/i386/x86-64-sysenter-mixed.d: New.
4704 * testsuite/gas/i386/i386.exp: Run new tests.
4705
4706 2020-01-08 Nick Clifton <nickc@redhat.com>
4707
4708 PR 25284
4709 * doc/as.texi (Align): Document the fact that all arguments can be
4710 omitted.
4711 (Balign): Likewise.
4712 (P2align): Likewise.
4713
4714 2020-01-08 Nick Clifton <nickc@redhat.com>
4715
4716 PR 14891
4717 * config/obj-elf.c (obj_elf_section): Fail if the section name is
4718 already defined as a different symbol type.
4719 * testsuite/gas/elf/pr14891.s: New test source file.
4720 * testsuite/gas/elf/pr14891.d: New test driver.
4721 * testsuite/gas/elf/pr14891.s: New test expected error output.
4722 * testsuite/gas/elf/elf.exp: Run the new test.
4723
4724 2020-01-08 Alan Modra <amodra@gmail.com>
4725
4726 * config/tc-z8k.c (md_begin): Make idx unsigned.
4727 (get_specific): Likewise for this_index.
4728
4729 2020-01-07 Claudiu Zissulescu <claziss@synopsys.com>
4730
4731 * onfig/tc-arc.c (parse_reloc_symbol): New function.
4732 (tokenize_arguments): Clean up, use parse_reloc_symbol function.
4733 (md_operand): Set X_md to absent.
4734 (arc_parse_name): Check for X_md.
4735
4736 2020-01-03 Sergey Belyashov <sergey.belyashov@gmail.com>
4737
4738 PR 25311
4739 * as.h (TC_STRING_ESCAPES): Provide a default definition.
4740 * app.c (do_scrub_chars): Use TC_STRING_ESCAPES instead of
4741 NO_STRING_ESCAPES.
4742 * read.c (next_char_of_string): Likewise.
4743 * config/tc-ppc.h (TC_STRING_ESCAPES): Define.
4744 * config/tc-z80.h (TC_STRING_ESCAPES): Define.
4745
4746 2020-01-03 Nick Clifton <nickc@redhat.com>
4747
4748 * po/sv.po: Updated Swedish translation.
4749
4750 2020-01-03 Jan Beulich <jbeulich@suse.com>
4751
4752 * testsuite/gas/aarch64/f64mm.s: Scale index of LD1RO{H,W,D}.
4753 * testsuite/gas/aarch64/f64mm.d: Adjust expectations.
4754
4755 2020-01-03 Jan Beulich <jbeulich@suse.com>
4756
4757 * testsuite/gas/aarch64/i8mm.s: Add 128-bit form tests for
4758 by-element usdot. Add 64-bit form tests for by-element sudot.
4759 * testsuite/gas/aarch64/i8mm.d: Adjust expectations.
4760
4761 2020-01-03 Jan Beulich <jbeulich@suse.com>
4762
4763 * testsuite/gas/aarch64/f64mm.s: Drop 'i' from uzip<n>.
4764 * testsuite/gas/aarch64/f64mm.d: Adjust expectations.
4765
4766 2020-01-03 Jan Beulich <jbeulich@suse.com>
4767
4768 * testsuite/gas/aarch64/f64mm.d,
4769 testsuite/gas/aarch64/sve-movprfx-mm.d: Adjust expectations.
4770
4771 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
4772
4773 * config/tc-z80.c: Add new architectures: Z180 and eZ80. Add
4774 support for assembler code generated by SDCC. Add new relocation
4775 types. Add z80-elf target support.
4776 * config/tc-z80.h: Add z80-elf target support. Enable dollar local
4777 labels. Local labels starts from ".L".
4778 * NEWS: Mention the new support.
4779 * testsuite/gas/all/fwdexp.d: Fix failure due to symbol conflict.
4780 * testsuite/gas/all/fwdexp.s: Likewise.
4781 * testsuite/gas/all/cond.l: Likewise.
4782 * testsuite/gas/all/cond.s: Likewise.
4783 * testsuite/gas/all/fwdexp.d: Likewise.
4784 * testsuite/gas/all/fwdexp.s: Likewise.
4785 * testsuite/gas/elf/section2.e-mips: Likewise.
4786 * testsuite/gas/elf/section2.l: Likewise.
4787 * testsuite/gas/elf/section2.s: Likewise.
4788 * testsuite/gas/macros/app1.d: Likewise.
4789 * testsuite/gas/macros/app1.s: Likewise.
4790 * testsuite/gas/macros/app2.d: Likewise.
4791 * testsuite/gas/macros/app2.s: Likewise.
4792 * testsuite/gas/macros/app3.d: Likewise.
4793 * testsuite/gas/macros/app3.s: Likewise.
4794 * testsuite/gas/macros/app4.d: Likewise.
4795 * testsuite/gas/macros/app4.s: Likewise.
4796 * testsuite/gas/macros/app4b.s: Likewise.
4797 * testsuite/gas/z80/suffix.d: Fix failure on ELF target.
4798 * testsuite/gas/z80/z80.exp: Add new tests
4799 * testsuite/gas/z80/dollar.d: New file.
4800 * testsuite/gas/z80/dollar.s: New file.
4801 * testsuite/gas/z80/ez80_adl_all.d: New file.
4802 * testsuite/gas/z80/ez80_adl_all.s: New file.
4803 * testsuite/gas/z80/ez80_adl_suf.d: New file.
4804 * testsuite/gas/z80/ez80_isuf.s: New file.
4805 * testsuite/gas/z80/ez80_z80_all.d: New file.
4806 * testsuite/gas/z80/ez80_z80_all.s: New file.
4807 * testsuite/gas/z80/ez80_z80_suf.d: New file.
4808 * testsuite/gas/z80/r800_extra.d: New file.
4809 * testsuite/gas/z80/r800_extra.s: New file.
4810 * testsuite/gas/z80/r800_ii8.d: New file.
4811 * testsuite/gas/z80/r800_z80_doc.d: New file.
4812 * testsuite/gas/z80/z180.d: New file.
4813 * testsuite/gas/z80/z180.s: New file.
4814 * testsuite/gas/z80/z180_z80_doc.d: New file.
4815 * testsuite/gas/z80/z80_doc.d: New file.
4816 * testsuite/gas/z80/z80_doc.s: New file.
4817 * testsuite/gas/z80/z80_ii8.d: New file.
4818 * testsuite/gas/z80/z80_ii8.s: New file.
4819 * testsuite/gas/z80/z80_in_f_c.d: New file.
4820 * testsuite/gas/z80/z80_in_f_c.s: New file.
4821 * testsuite/gas/z80/z80_op_ii_ld.d: New file.
4822 * testsuite/gas/z80/z80_op_ii_ld.s: New file.
4823 * testsuite/gas/z80/z80_out_c_0.d: New file.
4824 * testsuite/gas/z80/z80_out_c_0.s: New file.
4825 * testsuite/gas/z80/z80_reloc.d: New file.
4826 * testsuite/gas/z80/z80_reloc.s: New file.
4827 * testsuite/gas/z80/z80_sli.d: New file.
4828 * testsuite/gas/z80/z80_sli.s: New file.
4829
4830 2020-01-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
4831
4832 * config/tc-arm.c (parse_reg_list): Use REG_TYPE_RN instead of
4833 REGLIST_RN.
4834
4835 2020-01-01 Alan Modra <amodra@gmail.com>
4836
4837 Update year range in copyright notice of all files.
4838
4839 For older changes see ChangeLog-2019
4840 \f
4841 Copyright (C) 2020 Free Software Foundation, Inc.
4842
4843 Copying and distribution of this file, with or without modification,
4844 are permitted in any medium without royalty provided the copyright
4845 notice and this notice are preserved.
4846
4847 Local Variables:
4848 mode: change-log
4849 left-margin: 8
4850 fill-column: 74
4851 version-control: never
4852 End:
This page took 0.124863 seconds and 5 git commands to generate.