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