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