[ARM] Keep separation between extensions and architecture bits throughout execution
[deliverable/binutils-gdb.git] / gas / ChangeLog
1 2017-06-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
2
3 * config/tc-arm.c (dyn_mcpu_ext_opt): New static variable.
4 (dyn_march_ext_opt): Likewise.
5 (md_begin): Copy extension feature bits alongside architecture ones.
6 Merge extensions feature bits in selected_cpu and cpu_variant if there
7 is some.
8 (arm_parse_extension): Pass architecture and extension feature bits in
9 separate parameters, with architecture bits being read only. Update
10 **opt_p directly rather than *ext_set and initialize it if needed.
11 (arm_parse_cpu): Stop merging architecture and extension feature bits
12 and instead use mcpu_cpu_opt and dyn_mcpu_ext_opt to memorize them
13 respectively. Adapt to change in parameters of arm_parse_extension.
14 (arm_parse_arch): Adapt to change in parameters of arm_parse_extension.
15 (aeabi_set_attribute_string): Make function static.
16 (arm_md_post_relax): New function.
17 (s_arm_cpu): Stop merging architecture and extension feature bits and
18 instead use mcpu_cpu_opt and dyn_mcpu_ext_opt to memorize them
19 respectively. Merge extension feature bits in cpu_variant
20 if there is any.
21 (s_arm_arch): Reset extension feature bit. Set selected_cpu from
22 *mcpu_cpu_opt and cpu_variant from selected_cpu and *mfpu_opt for
23 consistency with s_arm_cpu.
24 (s_arm_arch_extension): Update *dyn_mcpu_ext_opt rather than
25 selected_cpu, allocating it before hand if needed. Set selected_cpu
26 from it and then cpu_variant.
27 (s_arm_fpu): Merge *mcpu_ext_opt feature bits if any in cpu_variant.
28 * config/tc-arm.h (md_post_relax_hook): Set to arm_md_post_relax.
29 (aeabi_set_public_attributes): Delete external declaration.
30 (arm_md_post_relax): Declare externally.
31
32 2017-06-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
33
34 * config/tc-arm.c (struct arm_cpu_option_table): New ext field.
35 (ARM_CPU_OPT): Add parameter to set new ext field and reorder canonical
36 name field just after the name field.
37 (arm_cpus): Move extension feature bit from value field to ext field,
38 reorder parameter according to changes in ARM_CPU_OPT and reindent.
39 (arm_parse_cpu): Point mcpu_cpu_opt to a bitfield merging the value and
40 ext field from the selected arm_cpus entry.
41 (s_arm_cpu): Likewise.
42
43 2017-06-21 James Greenhalgh <james.greenhalgh@arm.com>
44
45 * config/tc-aarch64.c (aarch64_cpus): Add cortex-a55 and cortex-a75.
46 * doc/c-aarch64.texi (-mcpu): Document cortex-a55 and cortex-a75.
47
48 2017-06-15 H.J. Lu <hongjiu.lu@intel.com>
49
50 PR binutils/21594
51 * testsuite/gas/i386/mpx.s: Add 2 tests with invalid bnd
52 register.
53 * testsuite/gas/i386/x86-64-mpx.s: Likewise.
54 * testsuite/gas/i386/mpx.d: Updated.
55 * testsuite/gas/i386/x86-64-mpx.d: Likewise.
56
57 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
58
59 * config/tc-xtensa.c (density_supported, xtensa_fetch_width,
60 absolute_literals_supported): Leave definitions uninitialized.
61 (directive_state): Leave entries for directive_density and
62 directive_absolute_literals initialized to false.
63 (xg_init_global_config, xtensa_init): New functions.
64 * config/tc-xtensa.h (TARGET_BYTES_BIG_ENDIAN): Define as 0.
65 (HOST_SPECIAL_INIT): New definition.
66 (xtensa_init): New declaration.
67
68 2017-06-07 Michael Collison <michael.collison@arm.com>
69
70 * config/tc-aarch64.c (reg_entry_reg_names): Add IP0,
71 IP1, FP, and LR as register aliases of register 16, 17, 29
72 and 30 respectively.
73 * testsuite/gas/aarch64/diagnostic.l: Remove diagnostic
74 prohibiting register 'lr' which is now an alias.
75 * testsuite/gas/aarch64/diagnostic.s: Remove instruction
76 utilizing register 'lr' which is now an alias.
77
78 2017-06-06 Jiong Wang <jiong.wang@arm.com>
79
80 * config/tc-arm.c (reject_bad_reg): Allow REG_SP on ARMv8-A.
81 (parse_operands): Allow REG_SP for OP_oRRnpcsp and OP_RRnpcsp on
82 ARMv8-A.
83 (do_co_reg): Allow REG_SP for Rd on ARMv8-A.
84 (do_t_add_sub): Likewise.
85 (do_t_mov_cmp): Likewise.
86 (do_t_tb): Likewise.
87 * testsuite/gas/arm/ld-sp-warn.l: Delete the warning on REG_SP as Rt for
88 ldrsb.
89 * testsuite/gas/arm/sp-pc-validations-bad-t-v8a.d: New test.
90 * testsuite/gas/arm/sp-pc-validations-bad-t-v8a.l: New test.
91 * testsuite/gas/arm/sp-pc-validations-bad-t.d: Specifies -march=armv7-a.
92 * testsuite/gas/arm/sp-pc-validations-bad-t.s: Remove ".arch armv7-a".
93 * testsuite/gas/arm/sp-usage-thumb2-relax-on-v7.d: New test.
94 * testsuite/gas/arm/sp-usage-thumb2-relax-on-v7.l: New test.
95 * testsuite/gas/arm/sp-usage-thumb2-relax-on-v8.d: New test.
96 * testsuite/gas/arm/sp-usage-thumb2-relax.s: New test.
97 * testsuite/gas/arm/strex-bad-t.d: Specifies -march=armv7-a.
98
99 2017-06-05 Jim Wilson <jim.wilson@linaro.org>
100
101 * config/tc-arm.c (arm_cpus): Delete falkor and qdf24xx entries.
102 * doc/c-arm.texi (-mcpu): Likewise.
103
104 2017-05-30 Anton Kolesov <anton.kolesov@synopsys.com>
105
106 * config/tc-arc.c (cpu_types): Include arc-cpu.def
107
108 2017-05-23 H.J. Lu <hongjiu.lu@intel.com>
109
110 * gas/testsuite/gas/i386/notrackbad.l: Updated for non-ELF
111 targets.
112 * gas/testsuite/gas/i386/x86-64-notrackbad.l: Likewise.
113
114 2017-05-23 Claudiu Zissulescu <claziss@synopsys.com>
115
116 * config/tc-arc.c (md_apply_fix): Use as_bad_where.
117 (assemble_insn): Use as_bad.
118
119 2017-05-22 H.J. Lu <hongjiu.lu@intel.com>
120
121 * config/tc-i386.c (REX_PREFIX): Changed to 7.
122 (NOTRACK_PREFIX): New.
123 (MAX_PREFIXES): Changed to 8.
124 (_i386_insn): Add notrack_prefix.
125 (PREFIX_GROUP): Add PREFIX_DS.
126 (add_prefix): Return PREFIX_DS for DS_PREFIX_OPCODE.
127 (md_assemble): Check if NOTRACK prefix is supported.
128 (parse_insn): Set notrack_prefix and issue an error for
129 other prefixes after NOTRACK prefix.
130 * testsuite/gas/i386/i386.exp: Run tests for NOTRACK prefix.
131 * testsuite/gas/i386/notrack-intel.d: New file.
132 * testsuite/gas/i386/notrack.d: Likewise.
133 * testsuite/gas/i386/notrack.s: Likewise.
134 * testsuite/gas/i386/notrackbad.l: Likewise.
135 * testsuite/gas/i386/notrackbad.s: Likewise.
136 * testsuite/gas/i386/x86-64-notrack-intel.d: Likewise.
137 * testsuite/gas/i386/x86-64-notrack.d: Likewise.
138 * testsuite/gas/i386/x86-64-notrack.s: Likewise.
139 * testsuite/gas/i386/x86-64-notrackbad.l: Likewise.
140 * testsuite/gas/i386/x86-64-notrackbad.s: Likewise.
141
142 2017-05-22 Jiong Wang <jiong.wang@arm.com>
143
144 * configure.tgt: Set "arch" to "aarch64" if ${cpu} equals "aarch64".
145 Recognize the new triplet name aarch64*-linux-gnu_ilp32.
146 * configure.ac: Output DEFAULT_ARCH macro for AArch64.
147 * configure: Regenerate.
148 * config/tc-aarch64.h (aarch64_after_parse_args): New declaration.
149 (md_after_parse_args): New define.
150 * config/tc-aarch64.c (aarch64_abi_type): New enumeration
151 AARCH64_ABI_NONE.
152 (DEFAULT_ARCH): New define.
153 (aarch64_abi): Set default value to AARCH64_ABI_NONE.
154 (aarch64_after_parse_args): New function.
155
156 2017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
157
158 * config/tc-sparc.c (sparc_arch_table): Entries for `sparc6',
159 `v9m8' and `v8plusm8'.
160 (sparc_md_end): Handle SPARC_OPCODE_ARCH_M8.
161 (get_hwcap_name): Support the M8 hardware capabilities.
162 (sparc_ip): Handle new operand types.
163 * doc/c-sparc.texi (Sparc-Opts): Document -Av9m8, -Av8plusm8 and
164 -Asparc6, and the corresponding -xarch aliases.
165 * testsuite/gas/sparc/sparc6.s: New file.
166 * testsuite/gas/sparc/sparc6.d: Likewise.
167 * testsuite/gas/sparc/sparc6-diag.s: Likewise.
168 * testsuite/gas/sparc/sparc6-diag.l: Likewise.
169 * testsuite/gas/sparc/fpcmpshl.s: Likewise.
170 * testsuite/gas/sparc/fpcmpshl.d: Likewise.
171 * testsuite/gas/sparc/fpcmpshl-diag.s: Likewise.
172 * testsuite/gas/sparc/fpcmpshl-diag.l: Likewise.
173 * testsuite/gas/sparc/ldm-stm.s: Likewise.
174 * testsuite/gas/sparc/ldm-stm.d: Likewise.
175 * testsuite/gas/sparc/ldm-stm-diag.s: Likewise.
176 * testsuite/gas/sparc/ldm-stm-diag.l: Likewise.
177 * testsuite/gas/sparc/ldmf-stmf.s: Likewise.
178 * testsuite/gas/sparc/ldmf-stmf.d: Likewise.
179 * testsuite/gas/sparc/ldmf-stmf-diag.s: Likewise.
180 * testsuite/gas/sparc/ldmf-stmf-diag.l: Likewise.
181 * testsuite/gas/sparc/on.s: Likewise.
182 * testsuite/gas/sparc/on.d: Likewise.
183 * testsuite/gas/sparc/on-diag.s: Likewise.
184 * testsuite/gas/sparc/on-diag.l: Likewise.
185 * testsuite/gas/sparc/rle.s: Likewise.
186 * testsuite/gas/sparc/rle.d: Likewise.
187 * testsuite/gas/sparc/sparc.exp (gas_64_check): Run new tests.
188 * testsuite/gas/sparc/rdasr.s: Add test for RDENTROPY.
189 * testsuite/gas/sparc/rdasr.d: Likewise.
190
191 2017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
192
193 * testsuite/gas/sparc/call-relax.d: Support 32-bit targets.
194 * testsuite/gas/sparc/sparc.exp (gas_64_check): Use -64 to
195 run asi-bump-warn.
196
197 2017-05-19 Georg-Johann Lay <avr@gjlay.de>
198
199 PR ld/21472
200 * config/tc-avr.c (mcu_types): Add entries for: attiny416,
201 attiny417, attiny816, attiny817.
202
203 2017-05-18 Alan Modra <amodra@gmail.com>
204
205 * config/tc-aarch64.c: Don't compare booleans against TRUE or FALSE.
206 * config/tc-hppa.c: Likewise.
207 * config/tc-mips.c: Likewise.
208 * config/tc-score7.c: Likewise.
209
210 2017-05-16 Alan Modra <amodra@gmail.com>
211
212 * write.c (GENERIC_FORCE_RELOCATION_LOCAL): Define.
213 (TC_FORCE_RELOCATION_LOCAL): Use it.
214 (GENERIC_FORCE_RELOCATION_SUB_SAME): Define.
215 (TC_FORCE_RELOCATION_SUB_SAME): Use it.
216 * config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL,
217 TC_FORCE_RELOCATION_SUB_SAME): Use GENERIC defines.
218 * config/tc-aarch64.h: Similarly.
219 * config/tc-avr.h: Similarly.
220 * config/tc-cris.h: Similarly.
221 * config/tc-i386.h: Similarly.
222 * config/tc-i960.h: Similarly.
223 * config/tc-ia64.h: Similarly.
224 * config/tc-microblaze.h: Similarly.
225 * config/tc-mips.h: Similarly.
226 * config/tc-msp430.h: Similarly.
227 * config/tc-nds32.h: Similarly.
228 * config/tc-pru.h: Similarly.
229 * config/tc-riscv.h: Similarly.
230 * config/tc-rl78.h: Similarly.
231 * config/tc-s390.h: Similarly.
232 * config/tc-sh.h: Similarly.
233 * config/tc-sh64.h: Similarly.
234 * config/tc-sparc.h: Similarly.
235 * config/tc-xtensa.h: Similarly.
236 * config/tc-mn10300.h: Similarly.
237 (GENERIC_FORCE_RELOCATION_LOCAL): Define.
238 * config/tc-msp430.c (msp430_force_relocation_local): Modify to
239 be addition to rather than replacement of standard
240 TC_FORCE_RELOCATION_LOCAL.
241
242 2017-05-15 Nick Clifton <nickc@redhat.com>
243
244 PR gas/21458
245 * config/tc-arm.c (do_adr): If the ADR involves a thumb function
246 symbol, ensure that the T bit will be set.
247 (do_adrl): Likewise.
248 (do_t_adr): Likewise.
249 * testsuite/gas/arm/pr21458.s: New test.
250 * testsuite/gas/arm/pr21458.d: New test driver.
251
252 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
253
254 * testsuite/gas/mips/mips16-pcrel-1.d: Remove `-mips3' from `as'
255 flags.
256 * testsuite/gas/mips/mips16-pcrel-pic-1.d: Likewise.
257 * testsuite/gas/mips/mips16-pcrel-n32-0.d: Likewise.
258 * testsuite/gas/mips/mips16-pcrel-n32-1.d: Likewise.
259 * testsuite/gas/mips/mips16-pcrel-n64-0.d: Likewise.
260 * testsuite/gas/mips/mips16-pcrel-n64-1.d: Likewise.
261 * testsuite/gas/mips/mips16-pcrel-n64-sym32-0.d: Likewise.
262 * testsuite/gas/mips/mips16-pcrel-n64-sym32-1.d: Likewise.
263 * testsuite/gas/mips/mips16-pcrel-reloc-4.d: Likewise.
264 * testsuite/gas/mips/mips16-pcrel-reloc-5.d: Likewise.
265 * testsuite/gas/mips/mips16-pcrel-reloc-6.d: Likewise.
266 * testsuite/gas/mips/mips16-pcrel-reloc-7.d: Likewise.
267 * testsuite/gas/mips/mips16-pcrel-addend-4.d: Likewise.
268 * testsuite/gas/mips/mips16-pcrel-addend-5.d: Likewise.
269 * testsuite/gas/mips/mips16-pcrel-addend-6.d: Likewise.
270 * testsuite/gas/mips/mips16-pcrel-addend-7.d: Likewise.
271 * testsuite/gas/mips/mips16-pcrel-addend-9.d: Likewise.
272 * testsuite/gas/mips/mips16-pcrel-addend-pic-9.d: Likewise.
273 * testsuite/gas/mips/mips16-pcrel-addend-n32-8.d: Likewise.
274 * testsuite/gas/mips/mips16-pcrel-addend-n32-9.d: Likewise.
275 * testsuite/gas/mips/mips16-pcrel-addend-n64-sym32-8.d:
276 Likewise.
277 * testsuite/gas/mips/mips16-pcrel-addend-n64-sym32-9.d:
278 Likewise.
279 * testsuite/gas/mips/mips16-pcrel-addend-n64-8.d: Likewise.
280 * testsuite/gas/mips/mips16-pcrel-addend-n64-9.d: Likewise.
281 * testsuite/gas/mips/mips16-pcrel-absolute-2.d: Likewise.
282 * testsuite/gas/mips/mips16-pcrel-absolute-3.d: Likewise.
283 * testsuite/gas/mips/mips16-pcrel-absolute-6.d: Likewise.
284 * testsuite/gas/mips/mips16-pcrel-absolute-7.d: Likewise.
285 * testsuite/gas/mips/mips16-pcrel-absolute-pic-6.d: Likewise.
286 * testsuite/gas/mips/mips16-pcrel-absolute-n32-4.d: Likewise.
287 * testsuite/gas/mips/mips16-pcrel-absolute-n32-6.d: Likewise.
288 * testsuite/gas/mips/mips16-pcrel-absolute-n64-4.d: Likewise.
289 * testsuite/gas/mips/mips16-pcrel-absolute-n64-6.d: Likewise.
290 * testsuite/gas/mips/mips16-pcrel-absolute-n64-sym32-4.d:
291 Likewise.
292 * testsuite/gas/mips/mips16-pcrel-absolute-n64-sym32-6.d:
293 Likewise.
294 * testsuite/gas/mips/mips16-pcrel-absolute-pic-n32-4.d:
295 Likewise.
296 * testsuite/gas/mips/mips16-pcrel-absolute-pic-n32-6.d:
297 Likewise.
298 * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-4.d:
299 Likewise.
300 * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-6.d:
301 Likewise.
302 * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-sym32-4.d:
303 Likewise.
304 * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-sym32-6.d:
305 Likewise.
306 * testsuite/gas/mips/mips16e2@mips16-pcrel-0.d: New test.
307 * testsuite/gas/mips/mips16e2@mips16-pcrel-1.d: New test.
308 * testsuite/gas/mips/mips16e2@mips16-pcrel-2.d: New test.
309 * testsuite/gas/mips/mips16e2@mips16-pcrel-n32-0.d: New test.
310 * testsuite/gas/mips/mips16e2@mips16-pcrel-n32-1.d: New test.
311 * testsuite/gas/mips/mips16e2@mips16-pcrel-n64-sym32-0.d: New
312 test.
313 * testsuite/gas/mips/mips16e2@mips16-pcrel-n64-sym32-1.d: New
314 test.
315 * testsuite/gas/mips/mips16e2@mips16-pcrel-delay-0.d: New test.
316 * testsuite/gas/mips/mips16e2@mips16-pcrel-delay-1.d: New test.
317 * testsuite/gas/mips/mips16e2@mips16-pcrel-reloc-2.d: New test.
318 * testsuite/gas/mips/mips16e2@mips16-pcrel-reloc-3.d: New test.
319 * testsuite/gas/mips/mips16e2@mips16-pcrel-reloc-6.d: New test.
320 * testsuite/gas/mips/mips16e2@mips16-pcrel-reloc-7.d: New test.
321 * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-2.d: New test.
322 * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-3.d: New test.
323 * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-6.d: New test.
324 * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-7.d: New test.
325 * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-8.d: New test.
326 * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-9.d: New test.
327 * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-n32-8.d: New
328 test.
329 * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-n32-9.d: New
330 test.
331 * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-n64-sym32-8.d:
332 New test.
333 * testsuite/gas/mips/mips16e2@mips16-pcrel-addend-n64-sym32-9.d:
334 New test.
335 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute.d: New test.
336 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-1.d: New
337 test.
338 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-2.d: New
339 test.
340 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-3.d: New
341 test.
342 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-4.d: New
343 test.
344 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-5.d: New
345 test.
346 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-6.d: New
347 test.
348 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-7.d: New
349 test.
350 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-pic-4.d: New
351 test.
352 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-pic-6.d: New
353 test.
354 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-n32-4.d: New
355 test.
356 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-n32-6.d: New
357 test.
358 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-n64-sym32-4.d:
359 New test.
360 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-n64-sym32-6.d:
361 New test.
362 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-pic-n32-4.d:
363 New test.
364 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-pic-n32-6.d:
365 New test.
366 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-pic-n64-sym32-4.d:
367 New test.
368 * testsuite/gas/mips/mips16e2@mips16-pcrel-absolute-pic-n64-sym32-6.d:
369 New test.
370 * testsuite/gas/mips/mips16-pcrel-1.l: Adjust line numbers.
371 * testsuite/gas/mips/mips16-pcrel-1.s: Adjust for alignment
372 preservation between MIPS16 and MIPS16e2 code.
373 * testsuite/gas/mips/mips.exp: Run MIPS16 relaxation tests over
374 all MIPS16 architectures.
375
376 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
377
378 * testsuite/gas/mips/mips16e2.d: New test.
379 * testsuite/gas/mips/mips16e2-mt.d: New test.
380 * testsuite/gas/mips/mips16e2-sub.d: New test.
381 * testsuite/gas/mips/mips16e2@mips16e2-sub.d: New test.
382 * testsuite/gas/mips/mips16e2-mt-sub.d: New test.
383 * testsuite/gas/mips/mips16e2@mips16e2-mt-sub.d: New test.
384 * testsuite/gas/mips/mips16e2-hilo.d: New test.
385 * testsuite/gas/mips/mips16e2-hilo-n32.d: New test.
386 * testsuite/gas/mips/mips16e2-reloc-error.d: New test.
387 * testsuite/gas/mips/mips16e2-imm-error.d: New test.
388 * testsuite/gas/mips/elf_ase_mips16e2.d: New test.
389 * testsuite/gas/mips/elf_ase_mips16e2-2.d: New test.
390 * testsuite/gas/mips/elf-rel9-mips16e2.d: New test.
391 * testsuite/gas/mips/mips16e2-lui.d: New test.
392 * testsuite/gas/mips/mips16e2@mips32r2-sync.d: New test.
393 * testsuite/gas/mips/mips16e2@mips32r2-sync-1.d: New test.
394 * testsuite/gas/mips/mips16e2@lui-2.d: New test.
395 * testsuite/gas/mips/mips16e2-reloc-error.l: New stderr output.
396 * testsuite/gas/mips/mips16e2-imm-error.l: New stderr output.
397 * testsuite/gas/mips/mips16e2@lui-2.l: New stderr output.
398 * testsuite/gas/mips/mips16e2.s: New test source.
399 * testsuite/gas/mips/mips16e2-mt.s: New test source.
400 * testsuite/gas/mips/mips16e2-sub.s: New test source.
401 * testsuite/gas/mips/mips16e2-mt-sub.s: New test source.
402 * testsuite/gas/mips/mips16e2-hilo.s: New test source.
403 * testsuite/gas/mips/mips16e2-reloc-error.s: New test source.
404 * testsuite/gas/mips/mips16e2-imm-error.s: New test source.
405 * testsuite/gas/mips/elf-rel9-mips16e2.s: New test source.
406 * testsuite/gas/mips/mips16e2-lui.s: New test source.
407 * testsuite/gas/mips/mips.exp: Expand `mips32r2-sync',
408 `mips32r2-sync-1', `lui-1' and `lui-2' tests across MIPS16e2
409 architectures. Run the new tests.
410
411 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
412
413 * testsuite/gas/mips/mips.exp (run_dump_test_arch): Add
414 `mips16e2@' prefix.
415 (run_list_test_arch): Likewise.
416 (mips16e2-32, mips16e2-64): New architectures.
417 * testsuite/gas/mips/mips16e2-32@mips16-macro.d: New test.
418 * testsuite/gas/mips/mips16e2-32@mips16-macro-t.d: New test.
419 * testsuite/gas/mips/mips16e2-32@mips16-macro-e.d: New test.
420 * testsuite/gas/mips/mips16e2-32@mips16-insn-t.d: New test.
421 * testsuite/gas/mips/mips16e2-32@mips16-insn-e.d: New test.
422 * testsuite/gas/mips/mips16e2-32@mips16e-64.d: New test.
423 * testsuite/gas/mips/mips16e2-32@mips16-sub.d: New test.
424 * testsuite/gas/mips/mips16e2-32@mips16e-64-sub.d: New test.
425 * testsuite/gas/mips/mips16e2@relax-swap3.d: New test.
426 * testsuite/gas/mips/mips16-32@mips16-asmacro.d: Remove `source'
427 tag. Add `-I$srcdir/$subdir' to `as' flags.
428 * testsuite/gas/mips/mips16-64@mips16-asmacro.d: Likewise.
429 * testsuite/gas/mips/mips16e2-32@mips16-macro.l: New stderr
430 output.
431 * testsuite/gas/mips/mips16e2-32@mips16-macro-t.l: New stderr
432 output.
433 * testsuite/gas/mips/mips16e2-32@mips16-macro-e.l: New stderr
434 output.
435 * testsuite/gas/mips/mips16e2-32@mips16-insn-t.l: New stderr
436 output.
437 * testsuite/gas/mips/mips16e2-32@mips16-insn-e.l: New stderr
438 output.
439 * testsuite/gas/mips/mips16-sub.s: Add `.set nomips16e2'.
440 * testsuite/gas/mips/mips16e-sub.s: Likewise.
441 * testsuite/gas/mips/mips16e-64-sub.s: Likewise.
442 * testsuite/gas/mips/mips16-asmacro.s: Remove `.set mips32'.
443 * testsuite/gas/mips/mips16-32@mips16-asmacro.s: New test
444 source.
445 * testsuite/gas/mips/mips16-64@mips16-asmacro.s: New test
446 source.
447
448 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
449 Matthew Fortune <matthew.fortune@imgtec.com>
450 Andrew Bennett <andrew.bennett@imgtec.com>
451
452 * config/tc-mips.c (RELAX_MIPS16_ENCODE): Add `e2' flag.
453 (RELAX_MIPS16_E2): New macro.
454 (RELAX_MIPS16_PIC, RELAX_MIPS16_SYM32, RELAX_MIPS16_NOMACRO)
455 (RELAX_MIPS16_USER_SMALL, RELAX_MIPS16_USER_EXT)
456 (RELAX_MIPS16_DSLOT, RELAX_MIPS16_JAL_DSLOT)
457 (RELAX_MIPS16_EXTENDED, RELAX_MIPS16_MARK_EXTENDED)
458 (RELAX_MIPS16_CLEAR_EXTENDED, RELAX_MIPS16_ALWAYS_EXTENDED)
459 (RELAX_MIPS16_MARK_ALWAYS_EXTENDED)
460 (RELAX_MIPS16_CLEAR_ALWAYS_EXTENDED, RELAX_MIPS16_MACRO)
461 (RELAX_MIPS16_MARK_MACRO, RELAX_MIPS16_CLEAR_MACRO): Shift bits.
462 (mips16_immed_extend): New prototype.
463 (options): Add OPTION_MIPS16E2 and OPTION_NO_MIPS16E2 enum
464 values.
465 (md_longopts): Add "mmips16e2" and "mno-mips16e2" options.
466 (mips_ases): Add "mips16e2" entry.
467 (mips_set_ase): Handle MIPS16e2 ASE.
468 (insn_insert_operand): Explicitly handle immediates with MIPS16
469 instructions that require 32-bit encoding.
470 (is_opcode_valid_16): Pass enabled ASE bitmask on to
471 `opcode_is_member'.
472 (validate_mips_insn): Explicitly handle immediates with MIPS16
473 instructions that require 32-bit encoding.
474 (operand_reg_mask) <OP_REG28>: Add handler.
475 (match_reg28_operand): New function.
476 (match_operand) <OP_REG28>: Add handler.
477 (append_insn): Pass ASE_MIPS16E2 setting to RELAX_MIPS16_ENCODE.
478 (match_mips16_insn): Handle MIPS16 instructions that require
479 32-bit encoding and `V' and `u' operand codes.
480 (mips16_ip): Allow any characters except from `.' in opcodes.
481 (mips16_immed_extend): Handle 9-bit immediates. Do not shuffle
482 immediates whose width is not one of these listed.
483 (md_estimate_size_before_relax): Handle MIPS16e2 relaxation.
484 (mips_relax_frag): Likewise.
485 (md_convert_frag): Likewise.
486 (mips_convert_ase_flags): Handle MIPS16e2 ASE.
487
488 * doc/as.texinfo (Target MIPS options): Add `-mmips16e2' and
489 `-mno-mips16e2' options.
490 (-mmips16e2, -mno-mips16e2): New options.
491 * doc/c-mips.texi (MIPS Options): Add `-mmips16e2' and
492 `-mno-mips16e2' options.
493 (MIPS ASE Instruction Generation Overrides): Add `.set mips16e2'
494 and `.set nomips16e2'.
495
496 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
497
498 * config/tc-mips.c (match_int_operand): Call
499 `match_out_of_range' before returning failure for 0x8000-0xffff
500 values conditionally allowed.
501
502 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
503
504 * config/tc-mips.c (match_int_operand): Call
505 `match_not_constant' before returning failure for a non-constant
506 16-bit immediate conditionally allowed.
507
508 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
509
510 * config/tc-mips.c (match_const_int): Call `match_out_of_range'
511 rather than `match_not_constant' for unrelocated operands
512 retrieved as an `O_big' expression.
513 (match_int_operand): Call `match_out_of_range' for relocatable
514 operands retrieved as an `O_big' expression.
515 (match_mips16_insn): Call `match_out_of_range' for relaxable
516 operands retrieved as an `O_big' expression.
517 * testsuite/gas/mips/addiu-error.d: New test.
518 * testsuite/gas/mips/mips16@addiu-error.d: New test.
519 * testsuite/gas/mips/micromips@addiu-error.d: New test.
520 * testsuite/gas/mips/break-error.d: New test.
521 * testsuite/gas/mips/lui-1.l: Adjust error message.
522 * testsuite/gas/mips/addiu-error.l: New stderr output.
523 * testsuite/gas/mips/mips16@addiu-error.l: New stderr output.
524 * testsuite/gas/mips/micromips@addiu-error.l: New stderr output.
525 * testsuite/gas/mips/break-error.l: New stderr output.
526 * testsuite/gas/mips/addiu-error.s: New test source.
527 * testsuite/gas/mips/break-error.s: New test source.
528 * testsuite/gas/mips/mips.exp: Run the new tests.
529
530 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
531
532 * config/tc-mips.c (match_mips16_insn): Remove the explicit
533 OT_INTEGER check before the `match_expression' call.
534 * testsuite/gas/mips/mips16-insn-e.l: Adjust messages.
535 * testsuite/gas/mips/mips16-32@mips16-insn-e.l: Likewise.
536 * testsuite/gas/mips/mips16-64@mips16-insn-e.l: Likewise.
537 * testsuite/gas/mips/mips16e-32@mips16-insn-e.l: Likewise.
538 * testsuite/gas/mips/mips16-reg-error.d: New test.
539 * testsuite/gas/mips/mips16-reg-error.l: New stderr output.
540 * testsuite/gas/mips/mips16-reg-error.s: New test source.
541 * testsuite/gas/mips/mips.exp: Run the new test.
542
543 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
544
545 * config/tc-mips.c (match_mips16_insn): Call
546 `match_not_constant' for a disallowed relocation operation.
547 * testsuite/gas/mips/mips16-reloc-error.d: New test.
548 * testsuite/gas/mips/mips16-reloc-error.l: New stderr output.
549 * testsuite/gas/mips/mips16-reloc-error.s: New test source.
550 * testsuite/gas/mips/mips.exp: Run the new test.
551
552 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
553
554 * testsuite/gas/mips/lui-1.d: New test.
555 * testsuite/gas/mips/lui-2.d: New test.
556 * gas/testsuite/gas/mips/mips.exp: Fold corresponding list tests
557 into the new tests.
558
559 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
560
561 * config/tc-mips.c (match_const_int): Update description.
562
563 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
564
565 * doc/as.texinfo (-mips16, -no-mips16): Refer to `.module
566 mips16' rather than `.set mips16'.
567 (-mmicromips, -mno-micromips): Refer to `.module micromips' and
568 `.module nomicromips' rather than `.set micromips' and `.set
569 nomicromips'.
570 (-msmartmips, -mno-smartmips): Refer to `.module smartmips'
571 rather than `.set smartmips'.
572 * doc/c-mips.texi (MIPS Options): Refer to `.module mips16',
573 `.module micromips', `.module nomicromips' and `.module
574 smartmips' rather than `.set mips16', `.set micromips', `.set
575 nomicromips' and `.set smartmips' respectively.
576
577 2017-05-12 Maciej W. Rozycki <macro@imgtec.com>
578 Matthew Fortune <matthew.fortune@imgtec.com>
579
580 * config/tc-mips.c (mips_percent_op): Add "%gprel".
581 (mips16_percent_op): Add "%gp_rel".
582 * testsuite/gas/mips/elf-rel8.s:: Add `%gprel' forms.
583 * testsuite/gas/mips/elf-rel8-mips16.s: Add `%gp_rel' forms.
584 * testsuite/gas/mips/elf-rel8.d: Adjust accordingly.
585 * testsuite/gas/mips/elf-rel8-mips16.d: Likewise.
586
587 2017-05-12 Maciej W. Rozycki <macro@imgtec.com>
588
589 * testsuite/gas/mips/mips16.d: Adjust BREAK disassembly.
590 * testsuite/gas/mips/mips16-64@mips16.d: Likewise.
591 * testsuite/gas/mips/mips16-64.d: Likewise.
592 * testsuite/gas/mips/mips16-64@mips16-64.d: Likewise.
593 * testsuite/gas/mips/mips16-macro.d: Likewise.
594 * testsuite/gas/mips/mips16-64@mips16-macro.d: Likewise.
595 * testsuite/gas/mips/mips16-sub.d: Likewise.
596 * testsuite/gas/mips/mips16-32@mips16-sub.d: Likewise.
597
598 2017-05-11 Maciej W. Rozycki <macro@imgtec.com>
599
600 * testsuite/gas/mips/mips32r2-sync-1.d: New test.
601 * testsuite/gas/mips/micromips@mips32r2-sync-1.d: New test.
602 * testsuite/gas/mips/mips.exp: Run the new tests.
603
604 2017-05-10 Maciej W. Rozycki <macro@imgtec.com>
605
606 * testsuite/gas/mips/isa-override-2.d: New test.
607 * testsuite/gas/mips/mips1@isa-override-2.d: New test.
608 * testsuite/gas/mips/r3000@isa-override-2.d: New test.
609 * testsuite/gas/mips/r3900@isa-override-2.d: New test.
610 * testsuite/gas/mips/mips2@isa-override-2.d: New test.
611 * testsuite/gas/mips/mips32@isa-override-2.d: New test.
612 * testsuite/gas/mips/mips32r2@isa-override-2.d: New test.
613 * testsuite/gas/mips/mips32r3@isa-override-2.d: New test.
614 * testsuite/gas/mips/mips32r5@isa-override-2.d: New test.
615 * testsuite/gas/mips/mips32r6@isa-override-2.d: New test.
616 * testsuite/gas/mips/octeon3@isa-override-2.d: New test.
617 * testsuite/gas/mips/r3000@isa-override-2.l: Remove list test.
618 * testsuite/gas/mips/mips1@isa-override-2.s: Remove test source.
619 * testsuite/gas/mips/r3000@isa-override-2.s: Remove test source.
620 * testsuite/gas/mips/r3900@isa-override-2.s: Remove test source.
621 * testsuite/gas/mips/mips2@isa-override-2.s: Remove test source.
622 * testsuite/gas/mips/mips32@isa-override-2.s: Remove test
623 source.
624 * testsuite/gas/mips/mips32r2@isa-override-2.s: Remove test
625 source.
626 * testsuite/gas/mips/mips32r3@isa-override-2.s: Remove test
627 source.
628 * testsuite/gas/mips/mips32r5@isa-override-2.s: Remove test
629 source.
630 * testsuite/gas/mips/mips32r6@isa-override-2.s: Remove test
631 source.
632 * testsuite/gas/mips/octeon3@isa-override-2.s: Remove test
633 source.
634 * gas/testsuite/gas/mips/mips.exp: Fold corresponding list tests
635 into the new tests.
636
637 2017-05-10 Maciej W. Rozycki <macro@imgtec.com>
638
639 * testsuite/gas/mips/mips16e-sub.d: Correct test name.
640 * testsuite/gas/mips/mips16-32@mips16e-sub.d: Likewise.
641 * testsuite/gas/mips/mips16-64@mips16e-sub.d: Likewise.
642 * testsuite/gas/mips/mips16e-64-sub.d: Likewise.
643 * testsuite/gas/mips/mips16-32@mips16e-64-sub.d: Likewise.
644 * testsuite/gas/mips/mips16-64@mips16e-64-sub.d: Likewise.
645 * testsuite/gas/mips/mips16e-32@mips16e-64-sub.d: Likewise.
646
647 2017-05-10 Maciej W. Rozycki <macro@imgtec.com>
648
649 * testsuite/gas/mips/mips16-macro.l: Remove list test.
650
651 2017-05-10 Maciej W. Rozycki <macro@imgtec.com>
652
653 * testsuite/gas/mips/r3900@ecoff@ld.d: Remove test.
654 * testsuite/gas/mips/mips2@ecoff@ld.d: Remove test.
655 * testsuite/gas/mips/mips32@ecoff@ld.d: Remove test.
656 * testsuite/gas/mips/mips32r2@ecoff@ld.d: Remove test.
657 * testsuite/gas/mips/r3900@ecoff@ld-forward.d: Remove test.
658 * testsuite/gas/mips/mips2@ecoff@ld-forward.d: Remove test.
659 * testsuite/gas/mips/mips32@ecoff@ld-forward.d: Remove test.
660 * testsuite/gas/mips/mips32r2@ecoff@ld-forward.d: Remove test.
661 * testsuite/gas/mips/mips1@ecoff@sd.d: Remove test.
662 * testsuite/gas/mips/r3000@ecoff@sd.d: Remove test.
663 * testsuite/gas/mips/r3900@ecoff@sd.d: Remove test.
664 * testsuite/gas/mips/mips2@ecoff@sd.d: Remove test.
665 * testsuite/gas/mips/mips32@ecoff@sd.d: Remove test.
666 * testsuite/gas/mips/mips32r2@ecoff@sd.d: Remove test.
667 * testsuite/gas/mips/mips1@ecoff@sd-forward.d: Remove test.
668 * testsuite/gas/mips/r3000@ecoff@sd-forward.d: Remove test.
669 * testsuite/gas/mips/r3900@ecoff@sd-forward.d: Remove test.
670 * testsuite/gas/mips/mips2@ecoff@sd-forward.d: Remove test.
671 * testsuite/gas/mips/mips32@ecoff@sd-forward.d: Remove test.
672 * testsuite/gas/mips/mips32r2@ecoff@sd-forward.d: Remove test.
673
674 2017-05-10 Claudiu Zissulescu <claziss@synopsys.com>
675
676 * testsuite/gas/arc/attr-arc600.d: New file.
677 * testsuite/gas/arc/attr-arc600_mul32x16.d: Likewise.
678 * testsuite/gas/arc/attr-arc600_norm.d: Likewise.
679 * testsuite/gas/arc/attr-arc601.d: Likewise.
680 * testsuite/gas/arc/attr-arc601_mul32x16.d: Likewise.
681 * testsuite/gas/arc/attr-arc601_mul64.d: Likewise.
682 * testsuite/gas/arc/attr-arc601_norm.d: Likewise.
683 * testsuite/gas/arc/attr-arc700.d: Likewise.
684 * testsuite/gas/arc/attr-arcem.d: Likewise.
685 * testsuite/gas/arc/attr-archs.d: Likewise.
686 * testsuite/gas/arc/attr-autodetect-1.d: Likewise.
687 * testsuite/gas/arc/attr-autodetect-1.s: Likewise.
688 * testsuite/gas/arc/attr-cpu-a601.d: Likewise.
689 * testsuite/gas/arc/attr-cpu-a601.s: Likewise.
690 * testsuite/gas/arc/attr-cpu-a700.d: Likewise.
691 * testsuite/gas/arc/attr-cpu-a700.s: Likewise.
692 * testsuite/gas/arc/attr-cpu-em.d: Likewise.
693 * testsuite/gas/arc/attr-cpu-em.s: Likewise.
694 * testsuite/gas/arc/attr-cpu-hs.d: Likewise.
695 * testsuite/gas/arc/attr-cpu-hs.s: Likewise.
696 * testsuite/gas/arc/attr-em.d: Likewise.
697 * testsuite/gas/arc/attr-em4.d: Likewise.
698 * testsuite/gas/arc/attr-em4_dmips.d: Likewise.
699 * testsuite/gas/arc/attr-em4_fpuda.d: Likewise.
700 * testsuite/gas/arc/attr-em4_fpus.d: Likewise.
701 * testsuite/gas/arc/attr-hs.d: Likewise.
702 * testsuite/gas/arc/attr-hs34.d: Likewise.
703 * testsuite/gas/arc/attr-hs38.d: Likewise.
704 * testsuite/gas/arc/attr-hs38_linux.d: Likewise.
705 * testsuite/gas/arc/attr-mul64.d: Likewise.
706 * testsuite/gas/arc/attr-name.d: Likewise.
707 * testsuite/gas/arc/attr-name.s: Likewise.
708 * testsuite/gas/arc/attr-nps400.d: Likewise.
709 * testsuite/gas/arc/attr-override-mcpu.d: Likewise.
710 * testsuite/gas/arc/attr-override-mcpu.s
711 * testsuite/gas/arc/attr-quarkse_em.d: Likewise.
712 * testsuite/gas/arc/blank.s: Likewise.
713 * testsuite/gas/elf/section2.e-arc: Likewise.
714 * testsuite/gas/arc/cpu-pseudop-1.d: Update test.
715 * testsuite/gas/arc/cpu-pseudop-2.d: Likewise.
716 * testsuite/gas/arc/nps400-0.d: Likewise.
717 * testsuite/gas/elf/elf.exp: Set target_machine for ARC.
718 * config/tc-arc.c (opcode/arc-attrs.h): Include.
719 (ARC_GET_FLAG, ARC_SET_FLAG, streq): Define.
720 (arc_attribute): Declare new function.
721 (md_pseudo_table): Add arc_attribute.
722 (cpu_types): Rename default cpu features.
723 (selected_cpu): Set the default OSABI flag.
724 (mpy_option): New variable.
725 (pic_option): Likewise.
726 (sda_option): Likewise.
727 (tls_option): Likewise.
728 (feature_type, feature_list): Remove.
729 (arc_initial_eflag): Likewise.
730 (attributes_set_explicitly): New variable.
731 (arc_check_feature): Check also for the conflicting features.
732 (arc_select_cpu): Refactor assignment of selected_cpu.eflags.
733 (arc_option): Remove setting of private flags and architecture.
734 (check_cpu_feature): Refactor feature names.
735 (autodetect_attributes): New function.
736 (assemble_tokens): Use above function.
737 (md_parse_option): Refactor feature names.
738 (arc_attribute): New function.
739 (arc_set_attribute_int): Likewise.
740 (arc_set_attribute_string): Likewise.
741 (arc_stralloc): Likewise.
742 (arc_set_public_attributes): Likewise.
743 (arc_md_end): Likewise.
744 (arc_copy_symbol_attributes): Likewise.
745 (rc_convert_symbolic_attribute): Likewise.
746 * config/tc-arc.h (md_end): Define.
747 (CONVERT_SYMBOLIC_ATTRIBUTE): Likewise.
748 (TC_COPY_SYMBOL_ATTRIBUTES): Likewise.
749 * doc/c-arc.texi: Document ARC object attributes.
750
751 2017-05-03 Maciej W. Rozycki <macro@imgtec.com>
752
753 * config/tc-mips.c (RELAX_MIPS16_ENCODE): Add `pic', `sym32' and
754 `nomacro' flags.
755 (RELAX_MIPS16_PIC, RELAX_MIPS16_SYM32, RELAX_MIPS16_NOMACRO):
756 New macros.
757 (RELAX_MIPS16_USER_SMALL, RELAX_MIPS16_USER_EXT)
758 (RELAX_MIPS16_DSLOT, RELAX_MIPS16_JAL_DSLOT)
759 (RELAX_MIPS16_EXTENDED, RELAX_MIPS16_MARK_EXTENDED)
760 (RELAX_MIPS16_CLEAR_EXTENDED, RELAX_MIPS16_ALWAYS_EXTENDED)
761 (RELAX_MIPS16_MARK_ALWAYS_EXTENDED)
762 (RELAX_MIPS16_CLEAR_ALWAYS_EXTENDED): Shift bits.
763 (RELAX_MIPS16_MACRO, RELAX_MIPS16_MARK_MACRO)
764 (RELAX_MIPS16_CLEAR_MACRO): New macros.
765 (append_insn): Pass `mips_pic', HAVE_32BIT_SYMBOLS and
766 `mips_opts.warn_about_macros' settings to RELAX_MIPS16_ENCODE.
767 (mips16_macro_frag): New function.
768 (md_estimate_size_before_relax): Handle HI16/LO16 relaxation.
769 (mips_relax_frag): Likewise.
770 (md_convert_frag): Likewise.
771
772 * testsuite/gas/mips/mips16@relax-swap3.d: Remove error output,
773 add dump patterns.
774 * testsuite/gas/mips/mips16e@relax-swap3.d: New test
775 subarchitecture.
776 * testsuite/gas/mips/micromips@relax-swap3.d: Remove trailing
777 NOP padding.
778 * testsuite/gas/mips/mips16-pcrel-reloc-2.d: Remove error
779 output, add dump patterns.
780 * testsuite/gas/mips/mips16-pcrel-reloc-3.d: Remove error
781 output, add dump patterns.
782 * testsuite/gas/mips/mips16-pcrel-reloc-6.d: Remove error
783 output, add dump patterns.
784 * testsuite/gas/mips/mips16-pcrel-reloc-7.d: Remove error
785 output, add dump patterns.
786 * testsuite/gas/mips/mips16-pcrel-addend-2.d: Remove error
787 output, add dump patterns.
788 * testsuite/gas/mips/mips16-pcrel-addend-3.d: Remove error
789 output, add dump patterns.
790 * testsuite/gas/mips/mips16-pcrel-absolute.d: Remove error
791 output, add dump patterns.
792 * testsuite/gas/mips/mips16-pcrel-absolute-1.d: Remove error
793 output, add dump patterns.
794 * testsuite/gas/mips/mips16@relax-swap3.l: Remove file.
795 * testsuite/gas/mips/mips16-pcrel-reloc-2.l: Remove file.
796 * testsuite/gas/mips/mips16-pcrel-reloc-3.l: Remove file.
797 * testsuite/gas/mips/mips16-pcrel-reloc-6.l: Remove file.
798 * testsuite/gas/mips/mips16-pcrel-reloc-7.l: Remove file.
799 * testsuite/gas/mips/mips16-pcrel-addend-2.l: Remove file.
800 * testsuite/gas/mips/mips16-pcrel-addend-3.l: Remove file.
801 * testsuite/gas/mips/mips16-pcrel-absolute.l: Remove file.
802 * testsuite/gas/mips/mips16-pcrel-absolute-1.l: Remove file.
803 * testsuite/gas/mips/relax-swap3.s: Adjust trailing padding.
804
805 * testsuite/gas/mips/mips16-pcrel-0.d: New test.
806 * testsuite/gas/mips/mips16-pcrel-1.d: New test.
807 * testsuite/gas/mips/mips16-pcrel-2.d: New test.
808 * testsuite/gas/mips/mips16-pcrel-3.d: New test.
809 * testsuite/gas/mips/mips16-pcrel-4.d: New test.
810 * testsuite/gas/mips/mips16-pcrel-5.d: New test.
811 * testsuite/gas/mips/mips16-pcrel-pic-0.d: New test.
812 * testsuite/gas/mips/mips16-pcrel-pic-1.d: New test.
813 * testsuite/gas/mips/mips16-pcrel-n32-0.d: New test.
814 * testsuite/gas/mips/mips16-pcrel-n32-1.d: New test.
815 * testsuite/gas/mips/mips16-pcrel-n64-sym32-0.d: New test.
816 * testsuite/gas/mips/mips16-pcrel-n64-sym32-1.d: New test.
817 * testsuite/gas/mips/mips16-pcrel-n64-0.d: New test.
818 * testsuite/gas/mips/mips16-pcrel-n64-1.d: New test.
819 * testsuite/gas/mips/mips16-pcrel-delay-0.d: New test.
820 * testsuite/gas/mips/mips16-pcrel-delay-1.d: New test.
821 * testsuite/gas/mips/mips16-pcrel-addend-4.d: New test.
822 * testsuite/gas/mips/mips16-pcrel-addend-5.d: New test.
823 * testsuite/gas/mips/mips16-pcrel-addend-6.d: New test.
824 * testsuite/gas/mips/mips16-pcrel-addend-7.d: New test.
825 * testsuite/gas/mips/mips16-pcrel-addend-8.d: New test.
826 * testsuite/gas/mips/mips16-pcrel-addend-9.d: New test.
827 * testsuite/gas/mips/mips16-pcrel-addend-pic-8.d: New test.
828 * testsuite/gas/mips/mips16-pcrel-addend-pic-9.d: New test.
829 * testsuite/gas/mips/mips16-pcrel-addend-n32-8.d: New test.
830 * testsuite/gas/mips/mips16-pcrel-addend-n32-9.d: New test.
831 * testsuite/gas/mips/mips16-pcrel-addend-n64-sym32-8.d: New test.
832 * testsuite/gas/mips/mips16-pcrel-addend-n64-sym32-9.d: New test.
833 * testsuite/gas/mips/mips16-pcrel-addend-n64-8.d: New test.
834 * testsuite/gas/mips/mips16-pcrel-addend-n64-9.d: New test.
835 * testsuite/gas/mips/mips16-pcrel-absolute-2.d: New test.
836 * testsuite/gas/mips/mips16-pcrel-absolute-3.d: New test.
837 * testsuite/gas/mips/mips16-pcrel-absolute-4.d: New test.
838 * testsuite/gas/mips/mips16-pcrel-absolute-5.d: New test.
839 * testsuite/gas/mips/mips16-pcrel-absolute-6.d: New test.
840 * testsuite/gas/mips/mips16-pcrel-absolute-7.d: New test.
841 * testsuite/gas/mips/mips16-pcrel-absolute-pic-4.d: New test.
842 * testsuite/gas/mips/mips16-pcrel-absolute-pic-6.d: New test.
843 * testsuite/gas/mips/mips16-pcrel-absolute-n32-4.d: New test.
844 * testsuite/gas/mips/mips16-pcrel-absolute-n32-6.d: New test.
845 * testsuite/gas/mips/mips16-pcrel-absolute-n64-4.d: New test.
846 * testsuite/gas/mips/mips16-pcrel-absolute-n64-6.d: New test.
847 * testsuite/gas/mips/mips16-pcrel-absolute-n64-sym32-4.d: New
848 test.
849 * testsuite/gas/mips/mips16-pcrel-absolute-n64-sym32-6.d: New
850 test.
851 * testsuite/gas/mips/mips16-pcrel-absolute-pic-n32-4.d: New
852 test.
853 * testsuite/gas/mips/mips16-pcrel-absolute-pic-n32-6.d: New
854 test.
855 * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-4.d: New
856 test.
857 * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-6.d: New
858 test.
859 * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-sym32-4.d:
860 New test.
861 * testsuite/gas/mips/mips16-pcrel-absolute-pic-n64-sym32-6.d:
862 New test.
863 * testsuite/gas/mips/mips16-pcrel-0.l: New stderr output.
864 * testsuite/gas/mips/mips16-pcrel-1.l: New stderr output.
865 * testsuite/gas/mips/mips16-pcrel-2.l: New stderr output.
866 * testsuite/gas/mips/mips16-pcrel-3.l: New stderr output.
867 * testsuite/gas/mips/mips16-pcrel-4.l: New stderr output.
868 * testsuite/gas/mips/mips16-pcrel-5.l: New stderr output.
869 * testsuite/gas/mips/mips16-pcrel-delay-0.l: New stderr output.
870 * testsuite/gas/mips/mips16-pcrel-delay-1.l: New stderr output.
871 * testsuite/gas/mips/mips16-pcrel-addend-8.l: New stderr output.
872 * testsuite/gas/mips/mips16-pcrel-addend-9.l: New stderr output.
873 * testsuite/gas/mips/mips16-pcrel-absolute-4.l: New stderr
874 output.
875 * testsuite/gas/mips/mips16-pcrel-absolute-6.l: New stderr
876 output.
877 * testsuite/gas/mips/mips16-pcrel-0.s: New test source.
878 * testsuite/gas/mips/mips16-pcrel-1.s: New test source.
879 * testsuite/gas/mips/mips16-pcrel-2.s: New test source.
880 * testsuite/gas/mips/mips16-pcrel-3.s: New test source.
881 * testsuite/gas/mips/mips16-pcrel-4.s: New test source.
882 * testsuite/gas/mips/mips16-pcrel-5.s: New test source.
883 * testsuite/gas/mips/mips16-pcrel-delay-0.s: New test source.
884 * testsuite/gas/mips/mips16-pcrel-delay-1.s: New test source.
885 * testsuite/gas/mips/mips16-pcrel-addend-4.s: New test source.
886 * testsuite/gas/mips/mips16-pcrel-addend-5.s: New test source.
887 * testsuite/gas/mips/mips16-pcrel-addend-6.s: New test source.
888 * testsuite/gas/mips/mips16-pcrel-addend-7.s: New test source.
889 * testsuite/gas/mips/mips16-pcrel-addend-8.s: New test source.
890 * testsuite/gas/mips/mips16-pcrel-addend-9.s: New test source.
891 * testsuite/gas/mips/mips16-pcrel-absolute-2.s: New test.
892 * testsuite/gas/mips/mips16-pcrel-absolute-3.s: New test.
893 * testsuite/gas/mips/mips16-pcrel-absolute-4.s: New test.
894 * testsuite/gas/mips/mips16-pcrel-absolute-5.s: New test.
895 * testsuite/gas/mips/mips16-pcrel-absolute-6.s: New test.
896 * testsuite/gas/mips/mips16-pcrel-absolute-7.s: New test.
897 * testsuite/gas/mips/mips.exp: Run the new tests.
898
899 2017-05-03 Nick Clifton <nickc@redhat.com>
900
901 PR gas/20941
902 * symbols.c (snapshot_symbol): Handle the case where
903 resolve_expression returns a local symbol.
904
905 2017-05-02 Maciej W. Rozycki <macro@imgtec.com>
906
907 * config/tc-mips.c (append_insn): Call `symbol_append' for any
908 expression symbol created for MIPS16 relaxation.
909 (match_mips16_insn): Don't encode a constant value as an
910 immediate with a PC-relative operand.
911
912 * testsuite/gas/mips/mips16-pcrel-absolute-1.d: New test.
913 * testsuite/gas/mips/mips16-branch-absolute-1.d: New test.
914 * testsuite/gas/mips/mips16-branch-absolute-2.d: New test.
915 * testsuite/gas/mips/mips16-branch-absolute-addend-1.d: New
916 test.
917 * testsuite/gas/mips/mips16-branch-absolute-n32-1.d: New test.
918 * testsuite/gas/mips/mips16-branch-absolute-n32-2.d: New test.
919 * testsuite/gas/mips/mips16-branch-absolute-addend-n32-1.d: New
920 test.
921 * testsuite/gas/mips/mips16-branch-absolute-n64-1.d: New test.
922 * testsuite/gas/mips/mips16-branch-absolute-n64-2.d: New test.
923 * testsuite/gas/mips/mips16-branch-absolute-addend-n64-1.d: New
924 test.
925 * testsuite/gas/mips/mips16-pcrel-absolute-1.l: New stderr
926 output.
927 * testsuite/gas/mips/mips16-pcrel-absolute-1.s: New test source.
928 * testsuite/gas/mips/mips16-branch-absolute-1.s: New test
929 source.
930 * testsuite/gas/mips/mips16-branch-absolute-2.s: New test
931 source.
932 * testsuite/gas/mips/mips16-branch-absolute-addend-1.s: New test
933 source.
934 * testsuite/gas/mips/mips.exp: Run the new tests.
935
936 2017-04-27 Maciej W. Rozycki <macro@imgtec.com>
937
938 * config/tc-mips.c (mips16_pcrel_val): New function, factored
939 out from...
940 (mips16_extended_frag): ... here.
941 (md_convert_frag): Use `mips16_pcrel_val' rather than repeated
942 code in MIPS16 relaxation, with `stretch' hardcoded to 0.
943
944 2017-04-27 Maciej W. Rozycki <macro@imgtec.com>
945
946 * config/tc-mips.c (RELAX_MIPS16_LONG_BRANCH): Rename to...
947 (RELAX_MIPS16_ALWAYS_EXTENDED): ... this.
948 (RELAX_MIPS16_MARK_LONG_BRANCH): Rename to...
949 (RELAX_MIPS16_MARK_ALWAYS_EXTENDED): ... this.
950 (RELAX_MIPS16_CLEAR_LONG_BRANCH): Rename to...
951 (RELAX_MIPS16_CLEAR_ALWAYS_EXTENDED): ... this.
952 (mips16_extended_frag): Adjust accordingly.
953
954 2017-04-27 Alan Modra <amodra@gmail.com>
955
956 * symbols.c (S_FORCE_RELOC): Separate section and symbol tests.
957
958 2017-04-26 Maciej W. Rozycki <macro@imgtec.com>
959
960 * config/tc-mips.c (RELAX_ENCODE): Add `PIC' flag.
961 (RELAX_PIC): New macro.
962 (RELAX_USE_SECOND, RELAX_SECOND_LONGER, RELAX_NOMACRO)
963 (RELAX_DELAY_SLOT, RELAX_DELAY_SLOT_16BIT)
964 (RELAX_DELAY_SLOT_SIZE_FIRST, RELAX_DELAY_SLOT_SIZE_SECOND):
965 Shift bits.
966 (RELAX_BRANCH_ENCODE): Add `pic' flag.
967 (RELAX_BRANCH_UNCOND, RELAX_BRANCH_LIKELY, RELAX_BRANCH_LINK)
968 (RELAX_BRANCH_TOOFAR): Shift bits.
969 (RELAX_BRANCH_PIC): New macro.
970 (RELAX_MICROMIPS_ENCODE): Add `pic' flag.
971 (RELAX_MICROMIPS_PIC): New macro.
972 (RELAX_MICROMIPS_UNCOND, RELAX_MICROMIPS_COMPACT)
973 (RELAX_MICROMIPS_LINK, RELAX_MICROMIPS_NODS)
974 (RELAX_MICROMIPS_RELAX32): Shift bits.
975 (relax_close_frag): Pass `mips_pic' setting to RELAX_ENCODE.
976 (append_insn): Pass `mips_pic' setting to RELAX_BRANCH_ENCODE
977 and RELAX_MICROMIPS_ENCODE, and record it in `fx_tcbit2' of the
978 first fixup created.
979 (md_apply_fix) <BFD_RELOC_16_PCREL_S2>: Use `fx_tcbit2' of the
980 fixup processed rather than `mips_pic' in choosing to relax an
981 out of range branch to a jump.
982 (relaxed_branch_length): Use the `pic' flag of the relaxed frag
983 rather than `mips_pic'.
984 (relaxed_micromips_32bit_branch_length): Likewise.
985 (md_estimate_size_before_relax): Likewise.
986 (md_convert_frag): Likewise.
987
988 * testsuite/gas/mips/option-pic-relax-0.d: New test.
989 * testsuite/gas/mips/option-pic-relax-1.d: New test.
990 * testsuite/gas/mips/option-pic-relax-2.d: New test.
991 * testsuite/gas/mips/option-pic-relax-3.d: New test.
992 * testsuite/gas/mips/option-pic-relax-3a.d: New test.
993 * testsuite/gas/mips/option-pic-relax-4.d: New test.
994 * testsuite/gas/mips/option-pic-relax-5.d: New test.
995 * testsuite/gas/mips/option-pic-relax-2.l: New stderr output.
996 * testsuite/gas/mips/option-pic-relax-3.l: New stderr output.
997 * testsuite/gas/mips/option-pic-relax-4.l: New stderr output.
998 * testsuite/gas/mips/option-pic-relax-5.l: New stderr output.
999 * testsuite/gas/mips/option-pic-relax-0.s: New test source.
1000 * testsuite/gas/mips/option-pic-relax-1.s: New test source.
1001 * testsuite/gas/mips/option-pic-relax-2.s: New test source.
1002 * testsuite/gas/mips/option-pic-relax-3.s: New test source.
1003 * testsuite/gas/mips/option-pic-relax-4.s: New test source.
1004 * testsuite/gas/mips/option-pic-relax-5.s: New test source.
1005 * testsuite/gas/mips/mips.exp: Run the new tests.
1006
1007 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
1008
1009 * testsuite/gas/arc/leave_enter.d: Update test.
1010 * testsuite/gas/arc/leave_enter.s: Likewise.
1011
1012 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
1013
1014 * testsuite/gas/arc/b.d: Update test.
1015 * testsuite/gas/arc/noargs_hs.d: Likewise.
1016
1017 2017-04-25 Maciej W. Rozycki <macro@imgtec.com>
1018
1019 * config/tc-mips.c (md_convert_frag): Correct
1020 BFD_RELOC_MIPS16_16_PCREL_S1 fixup size.
1021 * testsuite/gas/mips/mips16-branch-addend-4.d: New test.
1022 * testsuite/gas/mips/mips16-branch-addend-5.d: New test.
1023 * testsuite/gas/mips/mips16-branch-addend-5.l: New stderr
1024 output.
1025 * testsuite/gas/mips/mips16-branch-addend-4.s: New test source.
1026 * testsuite/gas/mips/mips16-branch-addend-5.s: New test source.
1027 * testsuite/gas/mips/mips.exp: Run the new tests.
1028
1029 2017-04-25 Jose E. Marchesi <jose.marchesi@oracle.com>
1030
1031 PR gas/21407
1032 * config/tc-sparc.c (md_apply_fix): Do not transform `call'
1033 instructions into branch instructions in fixups generating
1034 additional relocations.
1035 * testsuite/gas/sparc/call-relax.s: New file.
1036 * testsuite/gas/sparc/call-relax.d: Likewise.
1037 * testsuite/gas/sparc/call-relax-aout.d: Likewise.
1038 * testsuite/gas/sparc/sparc.exp: Test call-relax and call-relax-aout.
1039
1040 2017-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
1041
1042 * config/tc-arm.c (move_or_literal_pool): Remove code generating MOVS.
1043 Forbid MOV.W and MOVW if destination is SP or PC.
1044 * testsuite/gas/arm/thumb2_ldr_immediate_highregs_armv6t2.s: Explain
1045 expectation of LDR not generating a MOVS for low registers and small
1046 constants. Add tests of MOVW generation.
1047 * testsuite/gas/arm/thumb2_ldr_immediate_highregs_armv6t2.d: Update
1048 expected disassembly.
1049
1050 2017-04-22 Alan Modra <amodra@gmail.com>
1051
1052 * testsuite/gas/ppc/vle.s: Format. Add se_rfgi and e_sc.
1053 * testsuite/gas/ppc/vle.d: Update.
1054
1055 2017-04-21 Nick Clifton <nickc@redhat.com>
1056
1057 PR binutils/21380
1058 * testsuite/gas/aarch64/illegal-3.s: New file.
1059 * testsuite/gas/aarch64/illegal-3.d: New file.
1060
1061 2017-04-11 Alan Modra <amodra@gmail.com>
1062
1063 * config/tc-ppc.c (md_show_usage): Delete mention of -mhtm.
1064 * testsuite/gas/ppc/htm.d: Pass -mpower8 and -Mpower8.
1065
1066 2017-04-10 Max Filippov <jcmvbkbc@gmail.com>
1067
1068 * config/tc-xtensa.c (xtensa_maybe_create_literal_pool_frag):
1069 Initialize lps->frag_count with auto_litpool_limit.
1070 (xg_promote_candidate_litpool): New function.
1071 (xtensa_move_literals): Extract candidate litpool promotion code
1072 into separate function. Call it for all possible found
1073 candidates.
1074 (xtensa_switch_to_literal_fragment): Drop 'recursive' flag and
1075 call to xtensa_mark_literal_pool_location that it guards.
1076 Replace it with call to xtensa_maybe_create_literal_pool_frag.
1077 Initialize pool_location with created literal pool candidate.
1078 * testsuite/gas/xtensa/all.exp: Add new tests.
1079 * testsuite/gas/xtensa/auto-litpools-first1.d: New test results.
1080 * testsuite/gas/xtensa/auto-litpools-first1.s: New test.
1081 * testsuite/gas/xtensa/auto-litpools-first2.d: New test results.
1082 * testsuite/gas/xtensa/auto-litpools-first2.s: New test.
1083 * testsuite/gas/xtensa/auto-litpools.d: Fix offsets changed due
1084 to additional jump instruction.
1085
1086 2017-04-07 Alan Modra <amodra@gmail.com>
1087
1088 * testsuite/gas/ppc/altivec2.s: Delete E6500 vector insns.
1089 * testsuite/gas/ppc/altivec2.d: Adjust to suit.
1090
1091 2017-04-07 Alan Modra <amodra@gmail.com>
1092
1093 * testsuite/gas/elf/section12a.d: Don't expect alignment of 1
1094 for .mbind.text.
1095
1096 2017-04-06 Pip Cet <pipcet@gmail.com>
1097
1098 * testsuite/gas/wasm32/allinsn.d: Adjust test for disassembler
1099 changes.
1100 * testsuite/gas/wasm32/disass.d: New test.
1101 * testsuite/gas/wasm32/disass.s: New test.
1102 * testsuite/gas/wasm32/disass-2.d: New test.
1103 * testsuite/gas/wasm32/disass-2.s: New test.
1104 * testsuite/gas/wasm32/reloc.d: Adjust test for changed reloc
1105 names.
1106 * testsuite/gas/wasm32/reloc.s: Update test for changed assembler
1107 syntax.
1108 * testsuite/gas/wasm32/wasm32.exp: Run new tests. Expect allinsn
1109 test to succeed.
1110
1111 2017-04-04 H.J. Lu <hongjiu.lu@intel.com>
1112
1113 * NEWS: Mention support for ELF SHF_GNU_MBIND.
1114 * config/obj-elf.c (section_match): New.
1115 (get_section): Match both sh_info and group name.
1116 (obj_elf_change_section): Add argument for sh_info. Pass both
1117 sh_info and group name to get_section. Issue an error for
1118 SHF_GNU_MBIND section without SHF_ALLOC. Set sh_info.
1119 (obj_elf_parse_section_letters): Set SHF_GNU_MBIND for 'd'.
1120 (obj_elf_section): Support SHF_GNU_MBIND section info.
1121 * config/obj-elf.h (obj_elf_change_section): Add argument for
1122 sh_info.
1123 * config/tc-arm.c (start_unwind_section): Pass 0 as sh_info to
1124 obj_elf_change_section.
1125 * config/tc-ia64.c (obj_elf_vms_common): Likewise.
1126 * config/tc-microblaze.c (microblaze_s_data): Likewise.
1127 (microblaze_s_sdata): Likewise.
1128 (microblaze_s_rdata): Likewise.
1129 (microblaze_s_bss): Likewise.
1130 * config/tc-mips.c (s_change_section): Likewise.
1131 * config/tc-msp430.c (msp430_profiler): Likewise.
1132 * config/tc-rx.c (parse_rx_section): Likewise.
1133 * config/tc-tic6x.c (tic6x_start_unwind_section): Likewise.
1134 * doc/as.texinfo: Document 'd' for SHF_GNU_MBIND.
1135 * testsuite/gas/elf/elf.exp: Run section12a, section12b and
1136 section13.
1137 * testsuite/gas/elf/section10.d: Updated.
1138 * testsuite/gas/elf/section10.s: Likewise.
1139 * testsuite/gas/elf/section12.s: New file.
1140 * testsuite/gas/elf/section12a.d: Likewise.
1141 * testsuite/gas/elf/section12b.d: Likewise.
1142 * testsuite/gas/elf/section13.l: Likewise.
1143 * testsuite/gas/elf/section13.d: Likewise.
1144 * testsuite/gas/elf/section13.s: Likewise.
1145
1146 2017-04-03 Palmer Dabbelt <palmer@dabbelt.com>
1147
1148 * config/tc-riscv.c (riscv_clear_subsets): Cast argument to free to
1149 avoid const warnings.
1150
1151 2017-03-30 Palmer Dabbelt <palmer@dabbelt.com>
1152
1153 * config/tc-riscv.c (riscv_clear_subsets): New function.
1154 (riscv_add_subset): Call riscv_clear_subsets and riscv_set_rvc to
1155 clear RVC when it's been previously set.
1156
1157 2017-03-31 Nick Clifton <nickc@redhat.com>
1158
1159 PR gas/21333
1160 * config/tc-s390.c (tc_s390_fix_adjustable): Allow non pc-relative
1161 fixups in mergeable sections to be adjusted.
1162
1163 2017-03-30 Pip Cet <pipcet@gmail.com>
1164
1165 * config/tc-wasm32.h: New file: Add WebAssembly assembler target.
1166 * config/tc-wasm32.c: New file: Add WebAssembly assembler target.
1167 * Makefile.am: Add WebAssembly assembler target.
1168 * configure.tgt: Add WebAssembly assembler target.
1169 * doc/c-wasm32.texi: New file: Start documenting WebAssembly
1170 assembler.
1171 * doc/all.texi: Define WASM32.
1172 * doc/as.texinfo: Add WebAssembly entries.
1173 * NEWS: Mention the new support.
1174 * Makefile.in: Regenerate.
1175 * po/gas.pot: Regenerate.
1176 * po/POTFILES.in: Regenerate.
1177 * testsuite/gas/wasm32: New directory.
1178 * testsuite/gas/wasm32/allinsn.d: New file.
1179 * testsuite/gas/wasm32/allinsn.s: New file.
1180 * testsuite/gas/wasm32/illegal.l: New file.
1181 * testsuite/gas/wasm32/illegal.s: New file.
1182 * testsuite/gas/wasm32/illegal-2.l: New file.
1183 * testsuite/gas/wasm32/illegal-2.s: New file.
1184 * testsuite/gas/wasm32/illegal-3.l: New file.
1185 * testsuite/gas/wasm32/illegal-3.s: New file.
1186 * testsuite/gas/wasm32/illegal-4.l: New file.
1187 * testsuite/gas/wasm32/illegal-4.s: New file.
1188 * testsuite/gas/wasm32/illegal-5.l: New file.
1189 * testsuite/gas/wasm32/illegal-5.s: New file.
1190 * testsuite/gas/wasm32/illegal-6.l: New file.
1191 * testsuite/gas/wasm32/illegal-6.s: New file.
1192 * testsuite/gas/wasm32/illegal-7.l: New file.
1193 * testsuite/gas/wasm32/illegal-7.s: New file.
1194 * testsuite/gas/wasm32/illegal-8.l: New file.
1195 * testsuite/gas/wasm32/illegal-8.s: New file.
1196 * testsuite/gas/wasm32/illegal-9.l: New file.
1197 * testsuite/gas/wasm32/illegal-9.s: New file.
1198 * testsuite/gas/wasm32/illegal-10.l: New file.
1199 * testsuite/gas/wasm32/illegal-10.s: New file.
1200 * testsuite/gas/wasm32/illegal-11.l: New file.
1201 * testsuite/gas/wasm32/illegal-11.s: New file.
1202 * testsuite/gas/wasm32/illegal-12.l: New file.
1203 * testsuite/gas/wasm32/illegal-12.s: New file.
1204 * testsuite/gas/wasm32/illegal-13.l: New file.
1205 * testsuite/gas/wasm32/illegal-13.s: New file.
1206 * testsuite/gas/wasm32/illegal-14.l: New file.
1207 * testsuite/gas/wasm32/illegal-14.s: New file.
1208 * testsuite/gas/wasm32/illegal-15.l: New file.
1209 * testsuite/gas/wasm32/illegal-15.s: New file.
1210 * testsuite/gas/wasm32/illegal-16.l: New file.
1211 * testsuite/gas/wasm32/illegal-16.s: New file.
1212 * testsuite/gas/wasm32/illegal-17.l: New file.
1213 * testsuite/gas/wasm32/illegal-17.s: New file.
1214 * testsuite/gas/wasm32/illegal-18.l: New file.
1215 * testsuite/gas/wasm32/illegal-18.s: New file.
1216 * testsuite/gas/wasm32/illegal-19.l: New file.
1217 * testsuite/gas/wasm32/illegal-19.s: New file.
1218 * testsuite/gas/wasm32/illegal-20.l: New file.
1219 * testsuite/gas/wasm32/illegal-20.s: New file.
1220 * testsuite/gas/wasm32/illegal-21.l: New file.
1221 * testsuite/gas/wasm32/illegal-21.s: New file.
1222 * testsuite/gas/wasm32/illegal-22.l: New file.
1223 * testsuite/gas/wasm32/illegal-22.s: New file.
1224 * testsuite/gas/wasm32/illegal-24.l: New file.
1225 * testsuite/gas/wasm32/illegal-24.s: New file.
1226 * testsuite/gas/wasm32/illegal-25.l: New file.
1227 * testsuite/gas/wasm32/illegal-25.s: New file.
1228 * testsuite/gas/wasm32/reloc.d: New file.
1229 * testsuite/gas/wasm32/reloc.s: New file.
1230 * testsuite/gas/wasm32/wasm32.exp: New tests for WebAssembly
1231 architecture.
1232
1233 2017-03-29 Alan Modra <amodra@gmail.com>
1234
1235 * config/tc-ppc.c (md_parse_option): Reject -mraw.
1236
1237 2017-03-27 Alan Modra <amodra@gmail.com>
1238
1239 PR 21303
1240 * testsuite/gas/ppc/pr21303.d,
1241 * testsuite/gas/ppc/pr21303.s: New test
1242 * testsuite/gas/ppc/ppc.exp: Run it.
1243
1244 2017-03-27 Rinat Zelig <rinat@mellanox.com>
1245
1246 * testsuite/gas/arc/nps400-12.s: New file.
1247 * testsuite/gas/arc/nps400-12.d: New file.
1248
1249 2017-03-24 Thomas preud'homme <thomas.preudhomme@arm.com>
1250
1251 * config/tc-arm.: (md_begin): Set selected_cpu from *mcpu_cpu_opt when
1252 CPU_DEFAULT is defined.
1253
1254 2017-03-21 Palmer Dabbbelt <palmer@dabbelt.com>
1255
1256 * config/tc-riscv.c (md_show_usage): Remode defuct -m32, -m64,
1257 -msoft-float, -mhard-float, -mno-rvc, and -mrvc options; and don't
1258 print an invalid default ISA string.
1259 * doc/c-riscv.texi (OPTIONS): Add -fpic and -fno-pic options.
1260
1261 2017-03-22 Max Filippov <jcmvbkbc@gmail.com>
1262
1263 * config/tc-xtensa.c (xtensa_relax_frag): Change fx_size of the
1264 reassigned fixup to size of jump instruction (3) and fx_r_type
1265 to BFD_RELOC_XTENSA_SLOT0_OP, as there's only one slot.
1266 (add_jump_to_trampoline): Search
1267 origfrag->tc_frag_data.slot_symbols for the slot with non-NULL
1268 symbol and use that slot instead of slot 0.
1269
1270 2017-03-21 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1271
1272 * config/tc-s390.c (s390_parse_cpu): Remove S390_INSTR_FLAG_VX2
1273 from cpu_table. Remove vx2, and novx2 from cpu_flags.
1274
1275 2017-03-21 Rinat Zelig <rinat@mellanox.com>
1276
1277 * testsuite/gas/arc/nps400-11.s: New file.
1278 * testsuite/gas/arc/nps400-11.d: New file.
1279
1280 2017-03-20 Nick Clifton <nickc@redhat.com>
1281
1282 * doc/as.texinfo (2byte): Note that if no expressions are present
1283 the directive does nothing. Emphasize that the output is
1284 unaligned, and that this can have an effect on the relocations
1285 generated.
1286 (4byte): Simplify description. Refer back to the 2byte
1287 description.
1288 (8byte): Likewise.
1289
1290 2017-03-20 Richard Earnshaw <rearnsha@arm.com>
1291
1292 * config/tc-arm.c (arm_fpus): Note entires that should not be
1293 documented.
1294 * doc/c-arm.texi (-mfpu): Add missing FPU entries for neon-vfpv3 and
1295 neon-fp16. Fix spelling error.
1296
1297 2017-03-20 Richard Earnshaw <rearnsha@arm.com>
1298
1299 * config/tc-arm.c (arm_fpus): Add neon-vfpv3 as an alias for neon.
1300
1301 2017-03-16 Rinat Zelig <rinat@mellanox.com>
1302
1303 * config/tc-arc.c (assemble_insn): Only handle ".t" and ".nt"
1304 specially for ARCv2.
1305
1306 2017-03-14 Kito Cheng <kito.cheng@gmail.com>
1307
1308 * config/tc-riscv.c (validate_riscv_insn): Add 'o' RVC immediate
1309 encoding format, which can accept 0-valued immediates.
1310 (riscv_ip): Likewise.
1311
1312 2017-03-15 Nick Clifton <nickc@redhat.com>
1313
1314 * config/tc-riscv.c (riscv_pre_output_hook): Fix compile time
1315 warning about discarding a const qualifier.
1316
1317 2017-03-02 Kuan-Lin Chen <rufus@andestech.com>
1318
1319 * config/tc-riscv.h (HWARD2_USE_FIXED_ADVANCE_PC): New define.
1320
1321 2017-03-02 Kuan-Lin Chen <rufus@andestech.com>
1322
1323 * config/tc-riscv.c (md_apply_fix): Set fx_frag and
1324 fx_next->fx_frag for CFA_advance_loc relocations.
1325
1326 2017-03-02 Kuan-Lin Chen <rufus@andestech.com>
1327
1328 * config/tc-riscv.c (md_apply_fix): Compute the correct offsets
1329 for CFA relocations.
1330
1331 2017-03-13 Nick Clifton <nickc@redhat.com>
1332
1333 PR binutils/21202
1334 * config/tc-aarch64.c (reloc_table): Rename
1335 BFD_RELOC_AARCH64_TLSDESC_LD64_LO12_NC to
1336 BFD_RELOC_AARCH64_TLSDESC_LD64_LO12. Rname
1337 BFD_RELOC_AARCH64_TLSDESC_ADD_LO12_NC to
1338 BFD_RELOC_AARCH64_TLSDESC_ADD_LO12.
1339 (md_apply_fix): Likewise.
1340 (aarch64_force_relocation): Likewise.
1341 * testsuite/gas/aarch64/tls.d: Update regexp.
1342
1343 2017-03-10 Tobin C. Harding <me@tobin.cc>
1344 Nick Clifton <nickc@redhat.com>
1345
1346 * doc/as.texinfo (2byte): Tidy up wording. Add note that
1347 overlarge values will produce a warning message and be trunacted.
1348 (4byte): Likewise.
1349
1350 2017-03-09 H.J. Lu <hongjiu.lu@intel.com>
1351
1352 * config/tc-i386.c (_i386_insn): Add dir_encoding and
1353 vec_encoding. Remove swap_operand and need_vrex.
1354 (extra_symbol_chars): Add '}'.
1355 (md_begin): Mark '}' with LEX_BEGIN_NAME. Allow '}' in
1356 mnemonic.
1357 (build_vex_prefix): Don't use 2-byte VEX encoding with
1358 {vex3}. Check dir_encoding and load.
1359 (parse_insn): Check pseudo prefixes. Set dir_encoding.
1360 (VEX_check_operands): Likewise.
1361 (match_template): Check dir_encoding and load.
1362 (parse_real_register): Set vec_encoding instead of need_vrex.
1363 (parse_register): Likewise.
1364 * doc/c-i386.texi: Document {disp8}, {disp32}, {load}, {store},
1365 {vex2}, {vex3} and {evex}. Remove ".s", ".d8" and ".d32"
1366 * testsuite/gas/i386/i386.exp: Run pseudos and x86-64-pseudos.
1367 * testsuite/gas/i386/pseudos.d: New file.
1368 * testsuite/gas/i386/pseudos.s: Likewise.
1369 * testsuite/gas/i386/x86-64-pseudos.d: Likewise.
1370 * testsuite/gas/i386/x86-64-pseudos.s: Likewise.
1371
1372 2017-03-08 Peter Bergner <bergner@vnet.ibm.com>
1373
1374 * testsuite/gas/ppc/altivec2.d (as): Use the -mpower8 option.
1375 (objdump): Use the -Mpower8 option.
1376
1377 2017-03-08 Peter Bergner <bergner@vnet.ibm.com>
1378
1379 * testsuite/gas/ppc/power9.d <lnia> New test.
1380 * testsuite/gas/ppc/power9.s: Likewise.
1381
1382 2017-03-07 Alan Modra <amodra@gmail.com>
1383
1384 * doc/as.texinfo (2byte, 4byte, 8byte): Correct @section placement.
1385
1386 2017-03-07 Tobin C. Harding <me@tobin.cc>
1387 Alan Modra <amodra@gmail.com>
1388
1389 * doc/as.texinfo (2byte, 4byte, 8byte): Document.
1390 * doc/c-arm.texi (2byte, 4byte, 8byte): Omit if ELF.
1391
1392 2017-03-06 H.J. Lu <hongjiu.lu@intel.com>
1393
1394 * config/tc-i386.c (cpu_arch): Add .cet.
1395 * doc/c-i386.texi: Document cet.
1396 * testsuite/gas/i386/cet-intel.d: New file.
1397 * testsuite/gas/i386/cet.d: Likewise.
1398 * testsuite/gas/i386/cet.s: Likewise.
1399 * testsuite/gas/i386/x86-64-cet-intel.d: Likewise.
1400 * testsuite/gas/i386/x86-64-cet.d: Likewise.
1401 * testsuite/gas/i386/x86-64-cet.s: Likewise.
1402 * testsuite/gas/i386/i386.exp: Run Intel CET tests.
1403
1404 2017-03-06 H.J. Lu <hongjiu.lu@intel.com>
1405
1406 * testsuite/gas/i386/x86-64-mpx-inval-2.s: Force a good alignment.
1407 * testsuite/gas/i386/x86-64-mpx-inval-2.l: Expect [0-9A-F]+.
1408
1409 2017-03-06 Alan Modra <amodra@gmail.com>
1410
1411 * dw2gencfi.c (encoding_size): Return unsigned int.
1412 (emit_expr_encoded): Assert size matches reloc bitsize.
1413 (output_fde): Use unsigned for offset_size and addr_size. Set
1414 addr_size earlier and use in place of constant 4 and uses of
1415 DWARF2_FDE_RELOC_SIZE. Assert it matches reloc bitsize.
1416
1417 2017-03-06 Alan Modra <amodra@gmail.com>
1418
1419 * dw2gencfi.c: Wrap overlong lines. Add parens for emacs
1420 auto reformat. Formatting and whitespace fixes.
1421
1422 2017-03-05 Mark Wielaard <mark@klomp.org>
1423
1424 * dwarf2dbg.c (out_debug_abbrev): Use DW_FORM_strp instead of
1425 DW_FORM_string for DW_AT_name, DW_AT_comp_dir and DW_AT_producer.
1426 (out_debug_info): Accept symbols to name, comp_dir and producer in
1427 the .debug_str section and emit those offsets not full strings.
1428 (out_debug_str): New function that outputs the strings for name,
1429 comp_dir and producer in .debug_str and generates symbols to those
1430 strings.
1431 (out_debug_line): Create a .debug_str section if necessary and call
1432 out_debug_str before calling out_debug_info.
1433 * testsuite/gas/aarch64/dwarf.d: Add extra section symbol to expected
1434 output.
1435
1436 2017-03-02 Maciej W. Rozycki <macro@imgtec.com>
1437
1438 * write.c (relax_segment) <rs_org>: Only bail out if the fixed
1439 part of the frag has overrun the location requested.
1440
1441 * testsuite/gas/all/org-1.d: New test.
1442 * testsuite/gas/all/org-2.d: New test.
1443 * testsuite/gas/all/org-3.d: New test.
1444 * testsuite/gas/all/org-4.d: New test.
1445 * testsuite/gas/all/org-5.d: New test.
1446 * testsuite/gas/all/org-6.d: New test.
1447 * testsuite/gas/all/org-1.l: New stderr output.
1448 * testsuite/gas/all/org-2.l: New stderr output.
1449 * testsuite/gas/all/org-3.l: New stderr output.
1450 * testsuite/gas/all/org-1.s: New test source.
1451 * testsuite/gas/all/org-2.s: New test source.
1452 * testsuite/gas/all/org-3.s: New test source.
1453 * testsuite/gas/all/org-4.s: New test source.
1454 * testsuite/gas/all/org-5.s: New test source.
1455 * testsuite/gas/all/org-6.s: New test source.
1456 * testsuite/gas/all/gas.exp: Run the new tests.
1457
1458 * testsuite/gas/mips/org-1.d: New test.
1459 * testsuite/gas/mips/org-2.d: New test.
1460 * testsuite/gas/mips/org-3.d: New test.
1461 * testsuite/gas/mips/org-4.d: New test.
1462 * testsuite/gas/mips/org-5.d: New test.
1463 * testsuite/gas/mips/org-6.d: New test.
1464 * testsuite/gas/mips/org-7.d: New test.
1465 * testsuite/gas/mips/org-8.d: New test.
1466 * testsuite/gas/mips/org-9.d: New test.
1467 * testsuite/gas/mips/org-10.d: New test.
1468 * testsuite/gas/mips/org-11.d: New test.
1469 * testsuite/gas/mips/org-12.d: New test.
1470 * testsuite/gas/mips/org-1.l: New stderr output.
1471 * testsuite/gas/mips/org-4.l: New stderr output.
1472 * testsuite/gas/mips/org-5.l: New stderr output.
1473 * testsuite/gas/mips/org-6.l: New stderr output.
1474 * testsuite/gas/mips/org-10.l: New stderr output.
1475 * testsuite/gas/mips/org-1.s: New test source.
1476 * testsuite/gas/mips/org-2.s: New test source.
1477 * testsuite/gas/mips/org-3.s: New test source.
1478 * testsuite/gas/mips/org-4.s: New test source.
1479 * testsuite/gas/mips/org-5.s: New test source.
1480 * testsuite/gas/mips/org-6.s: New test source.
1481 * testsuite/gas/mips/org-7.s: New test source.
1482 * testsuite/gas/mips/org-8.s: New test source.
1483 * testsuite/gas/mips/org-9.s: New test source.
1484 * testsuite/gas/mips/org-10.s: New test source.
1485 * testsuite/gas/mips/org-11.s: New test source.
1486 * testsuite/gas/mips/org-12.s: New test source.
1487 * testsuite/gas/mips/mips.exp: Run the new tests.
1488
1489 2017-03-01 Szabolcs Nagy <szabolcs.nagy@arm.com>
1490
1491 * doc/c-aarch64.texi (AArch64 Extensions): Document rcpc.
1492
1493 2017-02-28 Jan Beulich <jbeulich@suse.com>
1494
1495 * testsuite/gas/i386/x86-64-avx.s: Add suffixed variants of
1496 VPCMPESTR{I,M}.
1497 * testsuite/gas/i386/x86-64-sse2avx.s: Likewise.
1498 * testsuite/gas/i386/x86-64-sse4_2.s: Add suffixed variants
1499 of PCMPESTR{I,M}.
1500 * testsuite/gas/i386/ilp32/x86-64-avx-intel.d: Likewise.
1501 * testsuite/gas/i386/ilp32/x86-64-avx.d: Likewise.
1502 * testsuite/gas/i386/ilp32/x86-64-sse2avx.d: Likewise.
1503 * testsuite/gas/i386/ilp32/x86-64-sse4_2-intel.d: Likewise.
1504 * testsuite/gas/i386/ilp32/x86-64-sse4_2.d: Likewise.
1505 * testsuite/gas/i386/x86-64-avx-intel.d: Likewise.
1506 * testsuite/gas/i386/x86-64-avx.d: Likewise.
1507 * testsuite/gas/i386/x86-64-sse2avx.d: Likewise.
1508 * testsuite/gas/i386/x86-64-sse4_2-intel.d: Likewise.
1509 * testsuite/gas/i386/x86-64-sse4_2.d: Likewise.
1510
1511 2017-02-28 Alan Modra <amodra@gmail.com>
1512
1513 * config/tc-nios2.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1514
1515 2017-02-28 Alan Modra <amodra@gmail.com>
1516
1517 * config/tc-ppc.c (md_assemble): Use BFD_RELOC_PPC_16DX_HA for addpcis.
1518 (md_apply_fix): Remove fx_subsy check. Move code converting to
1519 pcrel reloc earlier and handle BFD_RELOC_PPC_16DX_HA. Remove code
1520 emiiting errors on seeing fx_pcrel set on unexpected relocs, as
1521 that is done now by the generic code via..
1522 * config/tc-ppc.h (TC_FORCE_RELOCATION_SUB_LOCAL): ..this. Define.
1523 (TC_VALIDATE_FIX_SUB): Define.
1524
1525 2017-02-28 Maciej W. Rozycki <macro@imgtec.com>
1526
1527 * testsuite/gas/mips/jalr4.s: Add `jalr $0, $25' instructions.
1528 * testsuite/gas/mips/jalr4.d: Adjust accordingly. Remove MIPSr6
1529 encoding patterns.
1530 * testsuite/gas/mips/jalr4-n64.d: Likewise.
1531 * testsuite/gas/mips/mipsr6@jalr4.d: New test.
1532 * testsuite/gas/mips/mipsr6@jalr4-n32.d: New test.
1533 * testsuite/gas/mips/mipsr6@jalr4-n64.d: New test.
1534
1535 2017-02-25 Alan Modra <amodra@gmail.com>
1536
1537 * testsuite/gas/elf/strtab.s: Don't put directives on first
1538 column or continuation with labels not in first column.
1539
1540 2017-02-24 Richard Sandiford <richard.sandiford@arm.com>
1541
1542 * doc/c-aarch64.texi: Document that sve implies fp16, simd and compnum.
1543 * config/tc-aarch64.c (parse_vector_type_for_operand): Allow .q
1544 to be used with SVE registers.
1545 (parse_operands): Handle new SVE operands.
1546 (aarch64_features): Make "sve" require F16 rather than FP. Also
1547 require COMPNUM.
1548 * testsuite/gas/aarch64/sve.s: Add tests for new instructions.
1549 Include compnum tests.
1550 * testsuite/gas/aarch64/sve.d: Update accordingly.
1551 * testsuite/gas/aarch64/sve-invalid.s: Add tests for new instructions.
1552 * testsuite/gas/aarch64/sve-invalid.l: Update accordingly. Also
1553 update expected output for new FMOV and MOV alternatives.
1554
1555 2017-02-24 Richard Sandiford <richard.sandiford@arm.com>
1556
1557 * doc/c-aarch64.texi: Add a "compnum" entry.
1558 * config/tc-aarch64.c (aarch64_features): Likewise,
1559 * testsuite/gas/aarch64/advsimd-compnum.s: New test.
1560 * testsuite/gas/aarch64/advsimd-compnum.d: Likewise.
1561
1562 2017-02-24 Jan Beulich <jbeulich@suse.com>
1563
1564 * testsuite/gas/i386/opcode.s: Add alternative TEST forms.
1565 * testsuite/gas/i386/x86-64-opcode.s: Likewise.
1566 * testsuite/gas/i386/opcode.d: Adjust accordingly.
1567 * testsuite/gas/i386/opcode-intel.d: Likewise.
1568 * testsuite/gas/i386/x86-64-opcode.d: Likewise.
1569 * testsuite/gas/i386/ilp32/x86-64-opcode.d: Likewise.
1570
1571 2017-02-24 Sheldon Lobo <sheldon.lobo@oracle.com>
1572
1573 Test cases for the architecture level aware SPARC ASI work.
1574 * gas/testsuite/gas/sparc/sparc.exp: 2 new tests
1575 * gas/testsuite/gas/sparc/asi-bump-warn.s: New test
1576 * gas/testsuite/gas/sparc/asi-bump-warn.l: Likewise
1577 * gas/testsuite/gas/sparc/asi-arch-error.s: Likewise
1578 * gas/testsuite/gas/sparc/asi-arch-error.l: Likewise
1579
1580 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
1581
1582 * testsuite/gas/mips/jalr4.d: New test.
1583 * testsuite/gas/mips/jalr4-n32.d: New test.
1584 * testsuite/gas/mips/jalr4-n64.d: New test.
1585 * testsuite/gas/mips/jalr4.s: New test source.
1586 * testsuite/gas/mips/mips.exp: Run the new tests.
1587
1588 2017-02-23 Sheldon Lobo <sheldon.lobo@oracle.com>
1589
1590 Add support for associating SPARC ASIs with an architecture level.
1591 * config/tc-sparc.c (parse_sparc_asi): New encode SPARC ASIs.
1592
1593 2017-02-23 Jan Beulich <jbeulich@suse.com>
1594
1595 * testsuite/gas/all/err-sizeof.s: Don't use sums or differences
1596 of symbols as expression.
1597
1598 2017-02-23 Jan Beulich <jbeulich@suse.com>
1599
1600 * gas/testsuite/gas/i386/x86-64-mpx-inval-2.d: Add 32- and 16-
1601 bit GPR forms of BNDCL, BNDCU, and BNDCN. Add RSP-as-index
1602 Intel syntax forms of BNDMK, BNDSTX, and BNDLDX.
1603 * gas/testsuite/gas/i386/x86-64-mpx-inval-2.l: Adjust.
1604
1605 2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
1606
1607 * ecoff.c (ecoff_directive_end) [md_flush_pending_output]: Call
1608 `md_flush_pending_output'.
1609 * config/tc-mips.c (s_mips_end) [md_flush_pending_output]: Call
1610 `md_flush_pending_output' unconditionally.
1611 * testsuite/gas/mips/debug-label-end-1.d: New test.
1612 * testsuite/gas/mips/debug-label-end-2.d: New test.
1613 * testsuite/gas/mips/debug-label-end-3.d: New test.
1614 * testsuite/gas/mips/debug-label-end.s: New test source.
1615 * testsuite/gas/mips/mips.exp: Run the new tests.
1616
1617 2017-02-22 Hans-Peter Nilsson <hp@axis.com>
1618
1619 * testsuite/gas/all/err-sizeof.s: Include cris*-*-* in the list of
1620 targets yielding an error message matching "too complex".
1621
1622 2017-02-22 Nick Clifton <nickc@redhat.com>
1623
1624 * testsuite/gas/arm/vcmp-noprefix-imm.d: Skip for non-ELF targets.
1625
1626 2017-02-21 Jan Beulich <jbeulich@suse.com>
1627
1628 * expr.c (operand): Handle missing operand to .startof.() and
1629 .sizeof.().
1630 * testsuite/gas/all/err-sizeof.s: New.
1631
1632 2017-02-20 Alan Modra <amodra@gmail.com>
1633
1634 PR 21118
1635 * NEWS: Revise powerpc register check.
1636 * config/tc-ppc.c (ppc_optimize_expr, md_assemble): Make "invalid
1637 register expression" a warning.
1638
1639 2017-02-17 Maciej W. Rozycki <macro@imgtec.com>
1640
1641 * ecoff.c (ecoff_directive_ent, add_procedure): Handle `.aent'.
1642 * config/obj-ecoff.c (obj_pseudo_table): Add "aent" entry.
1643 * config/obj-elf.c (ecoff_debug_pseudo_table): Likewise.
1644 * testsuite/gas/mips/aent-2.d: New test.
1645 * testsuite/gas/mips/aent-mdebug.d: New test.
1646 * testsuite/gas/mips/aent-mdebug-2.d: New test.
1647 * testsuite/gas/mips/mips.exp: Run the new tests.
1648
1649 2017-02-15 Richard Sandiford <richard.sandiford@arm.com>
1650
1651 * testsuite/gas/aarch64/sve-sysreg.s,
1652 testsuite/gas/aarch64/sve-sysreg.d,
1653 testsuite/gas/aarch64/sve-sysreg-invalid.d,
1654 testsuite/gas/aarch64/sve-sysreg-invalid.l: New tests.
1655
1656 2017-02-15 Richard Sandiford <richard.sandiford@arm.com>
1657
1658 * doc/c-aarch64.texi: Fix sve entry.
1659
1660 2017-02-15 Claudiu Zissulescu <claziss@synopsys.com>
1661
1662 * config/tc-arc.c (md_convert_frag): Remove @pcl relocation
1663 information from input expression.
1664 (assemble_insn): Make sure pcrel is correctly set.
1665 (arc_pcrel_adjust): Compensate for PCL rounding.
1666 * testsuite/gas/arc/relax-add01.d: New file.
1667 * testsuite/gas/arc/relax-add01.s: Likewise.
1668 * testsuite/gas/arc/relax-add02.d: Likewise.
1669 * testsuite/gas/arc/relax-add02.s: Likewise.
1670 * testsuite/gas/arc/relax-add03.d: Likewise.
1671 * testsuite/gas/arc/relax-add03.s: Likewise.
1672 * testsuite/gas/arc/relax-add04.d: Likewise.
1673 * testsuite/gas/arc/relax-add04.s: Likewise.
1674 * testsuite/gas/arc/relax-ld01.d: Likewise.
1675 * testsuite/gas/arc/relax-ld01.s: Likewise.
1676 * testsuite/gas/arc/relax-ld02.d: Likewise.
1677 * testsuite/gas/arc/relax-ld02.s: Likewise.
1678 * testsuite/gas/arc/relax-mov01.d: Likewise.
1679 * testsuite/gas/arc/relax-mov01.s: Likewise.
1680 * testsuite/gas/arc/relax-mov02.d: Likewise.
1681 * testsuite/gas/arc/relax-mov02.s: Likewise.
1682 * testsuite/gas/arc/relax-mpy01.d: Likewise.
1683 * testsuite/gas/arc/relax-mpy01.s: Likewise.
1684 * testsuite/gas/arc/relax-sub01.d: Likewise.
1685 * testsuite/gas/arc/relax-sub01.s: Likewise.
1686 * testsuite/gas/arc/relax-sub02.d: Likewise.
1687 * testsuite/gas/arc/relax-sub02.s: Likewise.
1688 * testsuite/gas/arc/relax-sub03.d: Likewise.
1689 * testsuite/gas/arc/relax-sub03.s: Likewise.
1690 * testsuite/gas/arc/relax-sub04.d: Likewise.
1691 * testsuite/gas/arc/relax-sub04.s: Likewise.
1692
1693 2017-02-09 Vineet Gupta <vgupta@synopsys.com>
1694
1695 * testsuite/gas/arc/st.d: Update for 0xe having a name now
1696
1697 2017-02-14 Alan Modra <amodra@gmail.com>
1698
1699 PR 21118
1700 * NEWS: Mention powerpc register checks.
1701 * config/tc-ppc.c (struct pd_reg): Make value a short. Add flags.
1702 (pre_defined_registers): Delete fpscr and pmr entries. Set
1703 register type in flags.
1704 (cr_names): Set type in flags.
1705 (reg_name_search): Return pointer to struct pd_reg rather than value.
1706 (register_name): Adjust to suit. Set X_md from flags.
1707 (ppc_parse_name): Likewise.
1708 (ppc_optimize_expr): New function.
1709 (md_assemble): Verify expresion reg flags match operand.
1710 * config/tc-ppc.h (md_optimize_expr): Define.
1711 (ppc_optimize_expr): Declare.
1712
1713 2017-02-14 Alan Modra <amodra@gmail.com>
1714
1715 * testsuite/gas/ppc/cell.s: Correct invalid registers.
1716 * testsuite/gas/ppc/vle-simple-1.s: Likewise.
1717 * testsuite/gas/ppc/vle-simple-2.s: Likewise.
1718
1719 2017-02-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1720
1721 * config/tc-arm.c (parse_ifimm_zero): Make prefix optional in unified
1722 syntax.
1723 * testsuite/gas/arm/vcmp-noprefix-imm.d: New file.
1724 * testsuite/gas/arm/vcmp-noprefix-imm.s: New file.
1725
1726 2017-02-10 Nicholas Piggin <npiggin@gmail.com>
1727
1728 * testsuite/gas/ppc/power9.d <scv, rfscv>: New tests.
1729
1730 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
1731
1732 * doc/as.texinfo (Overview): Select MIPS options for man page
1733 inclusion.
1734
1735 2017-01-30 Maciej W. Rozycki <macro@imgtec.com>
1736
1737 * config/tc-mips.c (mips_ignore_branch_isa): New variable.
1738 (options): Add OPTION_IGNORE_BRANCH_ISA and
1739 OPTION_NO_IGNORE_BRANCH_ISA enum values.
1740 (md_longopts): Add "mignore-branch-isa" and
1741 "mno-ignore-branch-isa" options.
1742 (md_parse_option): Handle OPTION_IGNORE_BRANCH_ISA and
1743 OPTION_NO_IGNORE_BRANCH_ISA.
1744 (fix_bad_cross_mode_branch_p): Return FALSE if
1745 `mips_ignore_branch_isa' has been set.
1746 (md_show_usage): Add `-mignore-branch-isa' and
1747 `-mno-ignore-branch-isa'.
1748
1749 * doc/as.texinfo (Target MIPS options): Add
1750 `-mignore-branch-isa' and `-mno-ignore-branch-isa' options.
1751 (-mignore-branch-isa, -mno-ignore-branch-isa): New options.
1752 * doc/c-mips.texi (MIPS Options): Add `-mignore-branch-isa' and
1753 `-mno-ignore-branch-isa' options.
1754
1755 * testsuite/gas/mips/branch-local-ignore-2.d: New test.
1756 * testsuite/gas/mips/branch-local-ignore-3.d: New test.
1757 * testsuite/gas/mips/branch-local-ignore-n32-2.d: New test.
1758 * testsuite/gas/mips/branch-local-ignore-n32-3.d: New test.
1759 * testsuite/gas/mips/branch-local-ignore-n64-2.d: New test.
1760 * testsuite/gas/mips/branch-local-ignore-n64-3.d: New test.
1761 * testsuite/gas/mips/mips.exp: Run the new tests.
1762
1763 2017-01-30 Maciej W. Rozycki <macro@imgtec.com>
1764
1765 * testsuite/gas/mips/branch-local-2.d: New test.
1766 * testsuite/gas/mips/branch-local-3.d: New test.
1767 * testsuite/gas/mips/branch-local-n32-2.d: New test.
1768 * testsuite/gas/mips/branch-local-n32-3.d: New test.
1769 * testsuite/gas/mips/branch-local-n64-2.d: New test.
1770 * testsuite/gas/mips/branch-local-n64-3.d: New test.
1771 * testsuite/gas/mips/mips.exp: Fold corresponding list tests
1772 into the new tests.
1773
1774 2017-01-27 Alexis Deruell <alexis.deruelle@gmail.com>
1775
1776 PR 21056
1777 * testsuite/gas/tic6x/insns16-parallel.s: New test case.
1778 * testsuite/gas/tic6x/insns16-parallel.d: New test driver.
1779
1780 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
1781
1782 * configure.tgt (aarch64*-*-rtems*): Remove.
1783 (bfin-*-rtems*): Likewise.
1784 (h8300-*-rtems*): Likewise.
1785 (i386-*-rtems*): Likewise.
1786 (m32c-*-rtems*): Likewise.
1787 (m32r-*-rtems*): Likewise.
1788 (m68k-*-rtems*): Likewise.
1789 (mips-*-rtems*): Likewise.
1790 (nios2-*-rtems*): Likewise.
1791 (ppc-*-rtems*): Likewise.
1792 (sh-*-rtems*): Likewise.
1793 (sparc64-*-rtems*): Likewise.
1794 (sparc-*-rtems*): Likewise.
1795 (*-*-rtems*) Use ELF format.
1796
1797 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
1798
1799 * configure.tgt (arm-*-rtems*): Move to (arm-*-eabi*).
1800
1801 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
1802
1803 * configure.tgt (sh-*-rtemscoff*): Remove.
1804
1805 2017-01-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
1806
1807 * configure.tgt (riscv*-*-*): Remove em=linux.
1808
1809 2017-01-23 Sebastian Rasmussen <sebras@gmail.com>
1810
1811 PR gas/21072
1812 * asintl.h: Fix spelling mistakes and typos.
1813 * atof-generic.c: Likewise.
1814 * bit_fix.h: Likewise.
1815 * config/atof-ieee.c: Likewise.
1816 * config/bfin-defs.h: Likewise.
1817 * config/bfin-parse.y: Likewise.
1818 * config/obj-coff-seh.h: Likewise.
1819 * config/obj-coff.c: Likewise.
1820 * config/obj-evax.c: Likewise.
1821 * config/obj-macho.c: Likewise.
1822 * config/rx-parse.y: Likewise.
1823 * config/tc-aarch64.c: Likewise.
1824 * config/tc-alpha.c: Likewise.
1825 * config/tc-arc.c: Likewise.
1826 * config/tc-arm.c: Likewise.
1827 * config/tc-avr.c: Likewise.
1828 * config/tc-bfin.c: Likewise.
1829 * config/tc-cr16.c: Likewise.
1830 * config/tc-cris.c: Likewise.
1831 * config/tc-crx.c: Likewise.
1832 * config/tc-d10v.c: Likewise.
1833 * config/tc-d30v.c: Likewise.
1834 * config/tc-dlx.c: Likewise.
1835 * config/tc-epiphany.c: Likewise.
1836 * config/tc-frv.c: Likewise.
1837 * config/tc-hppa.c: Likewise.
1838 * config/tc-i370.c: Likewise.
1839 * config/tc-i386-intel.c: Likewise.
1840 * config/tc-i386.c: Likewise.
1841 * config/tc-i960.c: Likewise.
1842 * config/tc-ia64.c: Likewise.
1843 * config/tc-m32r.c: Likewise.
1844 * config/tc-m68hc11.c: Likewise.
1845 * config/tc-m68k.c: Likewise.
1846 * config/tc-mcore.c: Likewise.
1847 * config/tc-mep.c: Likewise.
1848 * config/tc-mep.h: Likewise.
1849 * config/tc-metag.c: Likewise.
1850 * config/tc-microblaze.c: Likewise.
1851 * config/tc-mips.c: Likewise.
1852 * config/tc-mmix.c: Likewise.
1853 * config/tc-mn10200.c: Likewise.
1854 * config/tc-mn10300.c: Likewise.
1855 * config/tc-msp430.c: Likewise.
1856 * config/tc-msp430.h: Likewise.
1857 * config/tc-nds32.c: Likewise.
1858 * config/tc-nds32.h: Likewise.
1859 * config/tc-nios2.c: Likewise.
1860 * config/tc-nios2.h: Likewise.
1861 * config/tc-ns32k.c: Likewise.
1862 * config/tc-pdp11.c: Likewise.
1863 * config/tc-ppc.c: Likewise.
1864 * config/tc-pru.c: Likewise.
1865 * config/tc-rx.c: Likewise.
1866 * config/tc-s390.c: Likewise.
1867 * config/tc-score.c: Likewise.
1868 * config/tc-score7.c: Likewise.
1869 * config/tc-sh.c: Likewise.
1870 * config/tc-sh64.c: Likewise.
1871 * config/tc-sparc.c: Likewise.
1872 * config/tc-tic4x.c: Likewise.
1873 * config/tc-tic54x.c: Likewise.
1874 * config/tc-v850.c: Likewise.
1875 * config/tc-vax.c: Likewise.
1876 * config/tc-visium.c: Likewise.
1877 * config/tc-xgate.c: Likewise.
1878 * config/tc-xtensa.c: Likewise.
1879 * config/tc-z80.c: Likewise.
1880 * config/tc-z8k.c: Likewise.
1881 * config/te-vms.c: Likewise.
1882 * config/xtensa-relax.c: Likewise.
1883 * doc/as.texinfo: Likewise.
1884 * doc/c-arm.texi: Likewise.
1885 * doc/c-hppa.texi: Likewise.
1886 * doc/c-i370.texi: Likewise.
1887 * doc/c-i386.texi: Likewise.
1888 * doc/c-m32r.texi: Likewise.
1889 * doc/c-m68k.texi: Likewise.
1890 * doc/c-mmix.texi: Likewise.
1891 * doc/c-msp430.texi: Likewise.
1892 * doc/c-nds32.texi: Likewise.
1893 * doc/c-ns32k.texi: Likewise.
1894 * doc/c-riscv.texi: Likewise.
1895 * doc/c-rx.texi: Likewise.
1896 * doc/c-s390.texi: Likewise.
1897 * doc/c-tic6x.texi: Likewise.
1898 * doc/c-tilegx.texi: Likewise.
1899 * doc/c-tilepro.texi: Likewise.
1900 * doc/c-v850.texi: Likewise.
1901 * doc/c-xgate.texi: Likewise.
1902 * doc/c-xtensa.texi: Likewise.
1903 * dwarf2dbg.c: Likewise.
1904 * ecoff.c: Likewise.
1905 * itbl-ops.c: Likewise.
1906 * listing.c: Likewise.
1907 * macro.c: Likewise.
1908 * po/gas.pot: Likewise.
1909 * read.c: Likewise.
1910 * struc-symbol.h: Likewise.
1911 * symbols.h: Likewise.
1912 * testsuite/gas/arc/relocs-errors.err: Likewise.
1913 * write.c: Likewise.
1914
1915 2017-01-23 Nick Clifton <nickc@redhat.com>
1916
1917 * po/sv.po: Updated Swedish translation.
1918
1919 2017-01-20 Nick Clifton <nickc@redhat.com>
1920
1921 * config/tc-i386.c (parse_operands): Check for operand overflow
1922 before setting the unspecified bit.
1923
1924 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
1925
1926 PR gas/20649
1927 * config/tc-mips.c (pic_need_relax): Don't check for linkonce
1928 symbols, remove the `segtype' parameter.
1929 (mips_frob_file, md_estimate_size_before_relax): Adjust
1930 accordingly.
1931 (s_is_linkonce): Add an explanatory comment.
1932 * testsuite/gas/mips/comdat-reloc.d: New test.
1933 * testsuite/gas/mips/comdat-reloc.s: New test source.
1934 * testsuite/gas/mips/mips.exp: Run the new test.
1935
1936 2017-01-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
1937
1938 * testsuite/gas/arm/armv8_3-a-simd.s: Add vcmla tests.
1939 * testsuite/gas/arm/armv8_3-a-simd.d: Update.
1940
1941 2017-01-18 Bernhard Rosenkranzer <bero@lindev.ch>
1942
1943 PR 21059
1944 * config/bfin-lex.l: Support processing with flex 2.6.3.
1945 * itbl-lex.l: Likewise.
1946
1947 2017-01-18 Nathan Sidwell <nathan@acm.org>
1948
1949 * as.h (gas_assert): Use abort.
1950 (as_assert): Remove.
1951 (signal_init): Declare.
1952 * as.c (main): Call signal_init.
1953 * messages.c: #include <signal.h>
1954 (as_assert): Delete.
1955 (as_abort): Allow NULL FILE.
1956 (signal_crash): New.
1957 (signal_init): Register fatal signal handlers.
1958 * configure.ac: Check for strsignal.
1959 * config.in: Rebuilt.
1960 * configure: Rebuilt.
1961
1962 2017-01-17 Nick Clifton <nickc@redhat.com>
1963
1964 * po/sv.po: Updated Swedish translation.
1965
1966 2017-01-12 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
1967
1968 * config/tc-i386.c (cpu_arch): Add .avx512_vpopcntdq.
1969 (cpu_noarch): Add noavx512_vpopcntdq.
1970 * doc/c-i386.texi: Document avx512_vpopcntdq, noavx512_vpopcntdq.
1971 * testsuite/gas/i386/i386.exp: Run AVX512_VPOPCNTDQ tests.
1972 * testsuite/gas/i386/avx512_vpopcntdqd-intel.d: New file.
1973 * testsuite/gas/i386/avx512_vpopcntdqd.d: Ditto.
1974 * testsuite/gas/i386/avx512_vpopcntdqd.s: Ditto.
1975 * testsuite/gas/i386/x86-64-avx512_vpopcntdqd-intel.d: Ditto.
1976 * testsuite/gas/i386/x86-64-avx512_vpopcntdqd.d: Ditto.
1977 * testsuite/gas/i386/x86-64-avx512_vpopcntdqd.s: Ditto.
1978
1979 2017-01-12 Nick Clifton <nickc@redhat.com>
1980
1981 * read.c (temp_ilp): New function. Installs a temporary input
1982 line pointer.
1983 (restore_ilp): New function. Restores the original input line
1984 pointer.
1985 * read.h (temp_ilp): Prototype.
1986 (restore_ilp): Prototype.
1987 * stabs.c (dot_func_p): Use bfd_boolean type.
1988 (generate_asm_file): Use temp_ilp and restore_ilp.
1989 (stabs_generate_asm_lineno): Likewise.
1990 (stabs_generate_asm_endfunc): Likewise.
1991
1992 2017-01-11 Jeremy Soller <jackpot51@gmail.com>
1993
1994 * configure.tgt: Add entry for i386-redox.
1995
1996 2017-01-10 Nick Clifton <nickc@redhat.com>
1997
1998 * po/sv.po: Updated Swedish translation.
1999
2000 2017-01-10 Tristan Gingold <gingold@adacore.com>
2001
2002 * testsuite/gas/all/sleb128-8.d: Adjust test.
2003 * testsuite/gas/all/gas.exp (test_cond): Likewise.
2004
2005 2017-01-10 Tristan Gingold <gingold@adacore.com>
2006
2007 * read.c (emit_leb128_expr): Extended unsigned big number for
2008 sleb128.
2009 * testsuite/gas/all/gas.exp (test_cond): Add sleb128-8 test.
2010 * testsuite/gas/all/sleb128.d: New test.
2011 * testsuite/gas/all/sleb128.s: New test source.
2012
2013 2017-01-09 Andrew Waterman <andrew@sifive.com>
2014
2015 * config/tc-riscv.c (append_insn): Don't eagerly apply relocations
2016 against constants.
2017 (md_apply_fix): Mark relocations against constants as "done."
2018
2019 2017-01-09 Andrew Waterman <andrew@sifive.com>
2020
2021 * config/tc-riscv.c (append_insn): Don't eagerly apply relocations
2022 against constants.
2023 (md_apply_fix): Mark relocations against constants as "done."
2024
2025 2017-01-09 Palmer Dabbelt <palmer@dabbelt.com>
2026 Kito Cheng <kito.cheng@gmail.com>
2027
2028 * emulparams/elf32lriscv-defs.sh (INITIAL_READONLY_SECTIONS):
2029 Removed.
2030 (SDATA_START_SYMBOLS): Likewise.
2031
2032 2017-01-09 Nick Clifton <nickc@redhat.com>
2033
2034 * po/sv.po: New Swedish translation.
2035 * configure.ac (ALL_LINGUAS): Add sv.
2036 * configure: Regenerate.
2037
2038 2017-01-09 Andrew Waterman <andrew@sifive.com>
2039
2040 * config/tc-riscv.c (relaxed_branch_length): Use the long
2041 sequence when the target is a weak symbol.
2042
2043 2017-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2044
2045 * config/tc-aarch64.c (aarch64_features): Add rcpc.
2046 * doc/c-aarch64.texi (AArch64 Extensions): Document rcpc.
2047 * testsuite/gas/aarch64/ldst-exclusive-armv8_3.d: Rename to ...
2048 * testsuite/gas/aarch64/ldst-rcpc.d: This.
2049 * testsuite/gas/aarch64/ldst-exclusive-armv8_3.s: Rename to ...
2050 * testsuite/gas/aarch64/ldst-rcpc.s: This.
2051 * testsuite/gas/aarch64/ldst-rcpc-armv8_2.d: New test.
2052
2053 2017-01-04 Norm Jacobs <norm.jacobs@oracle.com>
2054
2055 PR gas/20992
2056 * configure.tgt: Treat sparcv9 as sparc64.
2057
2058 2017-01-03 Kito Cheng <kito.cheng@gmail.com>
2059
2060 * config/tc-riscv.c (riscv_set_arch): Whitelist the "q" ISA
2061 extension.
2062 (riscv_after_parse_args): Set FLOAT_ABI_QUAD when the Q ISA is
2063 enabled and no other ABI is specified.
2064
2065 2017-01-03 Dimitar Dimitrov <dimitar@dinux.eu>
2066
2067 * config/tc-pru.c (md_number_to_chars): Fix parameter to be
2068 valueT, as declared in tc.h.
2069 (md_apply_fix): Fix to work on 32-bit hosts.
2070
2071 2017-01-02 Alan Modra <amodra@gmail.com>
2072
2073 Update year range in copyright notice of all files.
2074
2075 For older changes see ChangeLog-2016
2076 \f
2077 Copyright (C) 2017 Free Software Foundation, Inc.
2078
2079 Copying and distribution of this file, with or without modification,
2080 are permitted in any medium without royalty provided the copyright
2081 notice and this notice are preserved.
2082
2083 Local Variables:
2084 mode: change-log
2085 left-margin: 8
2086 fill-column: 74
2087 version-control: never
2088 End:
This page took 0.077489 seconds and 4 git commands to generate.