1 2018-03-08 H.J. Lu <hongjiu.lu@intel.com>
3 * config/tc-i386.c (optimize_encoding): Also encode "clr reg64"
5 * testsuite/gas/i386/x86-64-optimize-1.s: Add "clr reg64" tests.
6 * testsuite/gas/i386/x86-64-optimize-1.d: Updated.
8 2018-03-08 H.J. Lu <hongjiu.lu@intel.com>
10 * NEWS: Mention -mold-gcc removal.
11 * config/tc-i386.c (i386_error): Remove old_gcc_only.
13 (match_template): Remove old gcc support.
14 (OPTION_MOLD_GCC): Removed.
15 (OPTION_MRELAX_RELOCATIONS): Updated.
16 (md_longopts): Remove OPTION_MOLD_GCC.
17 (md_parse_option): Likewise.
18 (md_show_usage): Remove -mold-gcc.
19 * testsuite/gas/i386/general.s: Convert fsub/fdiv tests for old
20 (<= 2.8.1) versions of gcc.
21 * testsuite/gas/i386/intel.s: Likewise.
22 * testsuite/gas/i386/general.l: Updated.
23 * testsuite/gas/i386/intel-intel.d: Likewise.
24 * testsuite/gas/i386/intel.d: Likewise.
25 * testsuite/gas/i386/intel.e: Likewise.
26 * testsuite/gas/i386/i386.exp: Don't pass -mold-gcc to general.
28 2018-03-08 Jan Beulich <jbeulich@suse.com>
30 * config/tc-i386.c (is_evex_encoding): New.
31 (optimize_encoding, md_assemble, md_assemble,
32 VEX_check_operands, build_modrm_byte): Use is_evex_encoding.
33 (build_evex_prefix): Derive EVEX length field from actual
34 operands if the template allows multiple ones.
36 2018-03-08 Jan Beulich <jbeulich@suse.com>
38 * config/tc-i386.c (build_modrm_byte): Make VexNDD handling cope
39 with 3rd (immediate) operand.
41 2018-03-08 Jan Beulich <jbeulich@suse.com>
43 * config/tc-i386.c (XMMWORD_MNEM_SUFFIX, YMMWORD_MNEM_SUFFIX,
44 ZMMWORD_MNEM_SUFFIX): Delete.
45 (process_suffix): Drop their uses. Re-arrange final part of
46 logic into a switch() statement. Drop special casing of
49 2018-03-08 Jan Beulich <jbeulich@suse.com>
51 * config/tc-i386.c (match_template): Also match register
52 operands 0 and 2 for 3-operand forms.
53 * testsuite/gas/i386/unspec64.l, testsuite/gas/i386/unspec64.s:
55 * testsuite/gas/i386/i386.exp: Run new test.
57 2018-03-08 Jan Beulich <jbeulich@suse.com>
59 * config/tc-i386.c (process_suffix): Do common part of register
62 2018-03-08 Jan Beulich <jbeulich@suse.com>
64 * config/tc-i386.c (parse_insn): Move success return up. Combine
67 2018-03-08 Jan Beulich <jbeulich@suse.com>
69 * config/tc-i386.c (cpu_flags_match): Add GFNI check to AVX
70 logic. Add respective logic for AVX512F.
71 * testsuite/gas/i386/arch-avx-1.s: Add GFNI test.
72 testsuite/gas/i386/arch-avx-1.d,
73 testsuite/gas/i386/arch-avx-1-1.l,
74 testsuite/gas/i386/arch-avx-1-2.l,
75 testsuite/gas/i386/arch-avx-1-3.l,
76 testsuite/gas/i386/arch-avx-1-4.l,
77 testsuite/gas/i386/arch-avx-1-5.l,
78 testsuite/gas/i386/arch-avx-1-6.l: Adjust expectations.
79 * testsuite/gas/i386/arch-avx-1-7.l,
80 testsuite/gas/i386/arch-avx-1-7.s,
81 testsuite/gas/i386/arch-avx-1-8.l,
82 testsuite/gas/i386/arch-avx-1-8.s,
83 testsuite/gas/i386/avx512f-plain.l,
84 testsuite/gas/i386/avx512f-plain.s,
85 testsuite/gas/i386/avx512vl-plain.l,
86 testsuite/gas/i386/avx512vl-plain.s: New.
87 * testsuite/gas/i386/i386.exp: Run new tests.
89 2018-03-08 Jan Beulich <jbeulich@suse.com>
91 * config/tc-i386.c (cpu_flags_match): Move AVX512VL check ahead.
93 2018-03-08 Jan Beulich <jbeulich@suse.com>
95 * config/tc-i386.c (CPU_FLAGS_32BIT_MATCH): Delete.
96 (cpu_flags_match): Use CPU_FLAGS_ARCH_MATCH instead of
97 CPU_FLAGS_32BIT_MATCH.
99 2018-03-08 Jan Beulich <jbeulich@suse.com>
101 * config/tc-i386.c (CPU_FLAGS_AES_MATCH, CPU_FLAGS_AVX_MATCH,
102 CPU_FLAGS_PCLMUL_MATCH): Delete.
103 (CPU_FLAGS_32BIT_MATCH): Drop uses of deleted CPU_FLAGS_*_MATCH.
104 (cpu_flags_match): Combine AVX checks into
107 2018-03-08 Jan Beulich <jbeulich@suse.com>
109 * config/tc-i386.c (cpu_flags_match): Drop "else" branches
110 setting CPU_FLAGS_ARCH_MATCH.
112 2018-03-08 Jan Beulich <jbeulich@suse.com>
114 * config/tc-i386.c (md_assemble): Extend SSE check conditional.
115 * testsuite/gas/i386/ilp32/x86-64-sse-check-none.d,
116 testsuite/gas/i386/ilp32/x86-64-sse-check-warn.d,
117 testsuite/gas/i386/ilp32/x86-64-sse-check.d,
118 testsuite/gas/i386/sse-check-none.d,
119 testsuite/gas/i386/sse-check-warn.d,
120 testsuite/gas/i386/x86-64-sse-check.d,
121 testsuite/gas/i386/x86-64-sse-check-none.d,
122 testsuite/gas/i386/x86-64-sse-check-warn.d: Refer to sse-check.d.
123 * testsuite/gas/i386/sse-check.s: Add AES, GFNI, and PCLMUL
125 * testsuite/gas/i386/sse-check-none.s: Replace code by inclusion
127 * testsuite/gas/i386/sse-check.d: Adjust expectations.
128 * testsuite/gas/i386/sse-check-error.l,
129 testsuite/gas/i386/x86-64-sse-check-error.l: Likewise.
130 * testsuite/gas/i386/sse-check-warn.e: Likewise.
132 2018-03-08 Jan Beulich <jbeulich@suse.com>
134 * config/tc-i386.c (operand_size_match): Drop / replace uses of
137 2018-03-08 Jan Beulich <jbeulich@suse.com>
139 * testsuite/gas/i386/intel-intel.d: New.
140 * testsuite/gas/i386/i386.exp: Run new test.
142 2018-03-08 Jan Beulich <jbeulich@suse.com>
144 * config/tc-i386.c (process_operands): Access operands only
145 after operand count assertion. Sanitize warning text. Fix
147 * testsuite/gas/i386/avx512_4fmaps-warn.l,
148 gas/i386/x86-64-avx512_4fmaps-warn.l: Adjust expectations.
150 2018-03-08 Jan Beulich <jbeulich@suse.com>
152 * testsuite/gas/i386/x86-64-movd.s: Drop bogus vmovd memory forms.
153 * testsuite/gas/i386/x86-64-movd.d,
154 testsuite/gas/i386/x86-64-movd-intel.d: Adjust expectations.
156 2018-03-08 Jan Beulich <jbeulich@suse.com>
158 * config/tc-i386.c (operand_type_and_not): New.
159 (build_modrm_byte): Use it to prevent clearing unrelated bits.
161 2018-03-08 Alan Modra <amodra@gmail.com>
163 * config/tc-ppc.c (ppc_handle_align): Correct last patch. Really
164 don't emit a group terminating nop for power9. Simplify cpu
167 2018-03-08 Alan Modra <amodra@gmail.com>
169 * config/tc-ppc.c (ppc_handle_align): Don't emit a group
170 terminating nop for power9.
172 2018-03-07 H.J. Lu <hongjiu.lu@intel.com>
175 * config/tc-i386.c (f32_5): Removed.
188 (alt64_11): Likewise.
189 (alt64_patt): Likewise.
191 (jump32_disp32): Likewise.
192 (jump16_disp32): Likewise.
195 (f16_patt): Likewise.
196 (alt_patt): Add alt_11.
197 (i386_align_code): Merged with ...
198 (i386_generate_nops): This. Rewritten.
199 (fits_in_imm7): Moved before i386_generate_nops.
200 (fits_in_imm31): Likewise.
201 * config/tc-i386.h (MAX_MEM_FOR_RS_ALIGN_CODE): Updated to
203 (i386_align_code): Removed.
204 (HANDLE_ALIGN): Rewritten with i386_generate_nops.
205 * doc/as.texinfo: Update limits of control byte for x86 .nops
207 * testsuite/gas/i386/i386.exp: Run nops-7 and x86-64-nops-7.
208 * gas/testsuite/gas/i386/noavx-3.l: Updated.
209 * gas/testsuite/gas/i386/nop-1.d: Likewise.
210 * gas/testsuite/gas/i386/nop-1.s: Likewise.
211 * gas/testsuite/gas/i386/nop-2.d: Likewise.
212 * gas/testsuite/gas/i386/nop-2.s: Likewise.
213 * gas/testsuite/gas/i386/nop-3.d: Likewise.
214 * gas/testsuite/gas/i386/nop-4.d: Likewise.
215 * gas/testsuite/gas/i386/nop-5.d: Likewise.
216 * gas/testsuite/gas/i386/nop-5.s: Likewise.
217 * gas/testsuite/gas/i386/nop-6.d: Likewise.
218 * gas/testsuite/gas/i386/nop-bad-1.l: Likewise.
219 * gas/testsuite/gas/i386/nops-1-core2.d: Likewise.
220 * gas/testsuite/gas/i386/nops-1-i386-i686.d: Likewise.
221 * gas/testsuite/gas/i386/nops-1-i386.d: Likewise.
222 * gas/testsuite/gas/i386/nops-1-i686.d: Likewise.
223 * gas/testsuite/gas/i386/nops-1-k8.d: Likewise.
224 * gas/testsuite/gas/i386/nops-1.d: Likewise.
225 * gas/testsuite/gas/i386/nops-2-core2.d: Likewise.
226 * gas/testsuite/gas/i386/nops-2-i386.d: Likewise.
227 * gas/testsuite/gas/i386/nops-2.d: Likewise.
228 * gas/testsuite/gas/i386/nops-3-i386.d: Likewise.
229 * gas/testsuite/gas/i386/nops-3-i686.d: Likewise.
230 * gas/testsuite/gas/i386/nops-3.d: Likewise.
231 * gas/testsuite/gas/i386/nops-4-i386.d: Likewise.
232 * gas/testsuite/gas/i386/nops-4-i686.d: Likewise.
233 * gas/testsuite/gas/i386/nops-4.d: Likewise.
234 * gas/testsuite/gas/i386/nops-4a-i686.d: Likewise.
235 * gas/testsuite/gas/i386/nops-5-i686.d: Likewise.
236 * gas/testsuite/gas/i386/nops-5.d: Likewise.
237 * gas/testsuite/gas/i386/nops-6.d: Likewise.
238 * gas/testsuite/gas/i386/nops16-1.d: Likewise.
239 * gas/testsuite/gas/i386/x86-64-nop-1.d: Likewise.
240 * gas/testsuite/gas/i386/x86-64-nop-2.d: Likewise.
241 * gas/testsuite/gas/i386/x86-64-nop-5.d: Likewise.
242 * gas/testsuite/gas/i386/x86-64-nops-1-core2.d: Likewise.
243 * gas/testsuite/gas/i386/x86-64-nops-1-g64.d: Likewise.
244 * gas/testsuite/gas/i386/x86-64-nops-1-k8.d: Likewise.
245 * gas/testsuite/gas/i386/x86-64-nops-1-pentium.d: Likewise.
246 * gas/testsuite/gas/i386/x86-64-nops-1.d: Likewise.
247 * gas/testsuite/gas/i386/x86-64-nops-2.d: Likewise.
248 * gas/testsuite/gas/i386/x86-64-nops-3.d: Likewise.
249 * gas/testsuite/gas/i386/x86-64-nops-4-core2.d: Likewise.
250 * gas/testsuite/gas/i386/x86-64-nops-4-k8.d: Likewise.
251 * gas/testsuite/gas/i386/x86-64-nops-4.d: Likewise.
252 * gas/testsuite/gas/i386/x86-64-nops-5-k8.d: Likewise.
253 * gas/testsuite/gas/i386/x86-64-nops-5.d: Likewise.
254 * gas/testsuite/gas/i386/ilp32/x86-64-nops-1-core2.d: Likewise.
255 * gas/testsuite/gas/i386/ilp32/x86-64-nops-1-k8.d: Likewise.
256 * gas/testsuite/gas/i386/ilp32/x86-64-nops-1-pentium.d: Likewise.
257 * gas/testsuite/gas/i386/ilp32/x86-64-nops-1.d: Likewise.
258 * gas/testsuite/gas/i386/ilp32/x86-64-nops-2.d: Likewise.
259 * gas/testsuite/gas/i386/ilp32/x86-64-nops-3.d: Likewise.
260 * gas/testsuite/gas/i386/ilp32/x86-64-nops-4-core2.d: Likewise.
261 * gas/testsuite/gas/i386/ilp32/x86-64-nops-4-k8.d: Likewise.
262 * gas/testsuite/gas/i386/ilp32/x86-64-nops-4.d: Likewise.
263 * gas/testsuite/gas/i386/ilp32/x86-64-nops-5-k8.d: Likewise.
264 * gas/testsuite/gas/i386/ilp32/x86-64-nops-5.d: Likewise.
265 * gas/testsuite/gas/i386/nops-7.d: New file.
266 * gas/testsuite/gas/i386/nops-7.s: Likewise.
267 * gas/testsuite/gas/i386/x86-64-nops-7.d: Likewise.
269 2018-03-07 Alan Modra <amodra@gmail.com>
271 * testsuite/gas/ppc/aix.exp: Run for rs6000 too.
272 * testsuite/gas/ppc/ppc.exp: Run more tests for non-ELF targets.
273 * testsuite/gas/ppc/machine.d: Don't run for PE targets.
275 2018-03-02 Thomas Preud'homme <thomas.preudhomme@arm.com>
277 * config/tc-arm.c (md_begin): Add NULL pointer check before
278 dereferencing march_ext_opt.
280 2018-03-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
282 * config/tc-arm.c (cpu_variant, arm_arch_used, thumb_arch_used,
283 legacy_cpu, legacy_fpu, mcpu_cpu_opt, dyn_mcpu_ext_opt,
284 mcpu_fpu_opt, march_cpu_opt, dyn_march_ext_opt, march_fpu_opt,
285 mfpu_opt, object_arch, selected_cpu): Comment meaning of variables.
286 (dyn_mcpu_ext_opt): Also rename into ...
287 (mcpu_ext_opt): This.
288 (dyn_march_ext_opt): Also rename into ...
289 (march_ext_opt): This.
290 (object_arch): Also rename into ...
291 (selected_object_arch): This and make it a plain arm_feature_set
293 (selected_arch, selected_ext, selected_fpu): New static variables.
294 (mark_feature_used): Fix comments, feature is marked as used iff it is
296 (do_bx): Adapt to change in name and type of object_arch.
297 (md_begin): Set selected_arch rather than mcpu_cpu_opt, selected_ext
298 rather than dyn_mcpu_ext_opt and selected_fpu rather than mfpu_opt.
299 Remove dead code to set default FPU if architecture version is greater
300 than 5. Set all CPU bits of cpu_variant directly in autodection
301 leaving mcpu_cpu_opt, selected_arch and selected_cpu unset.
302 (arm_parse_extension): Take extension feature set pointer parameter by
303 value rather than by pointer. Remove allocation code. Adapt code
305 (arm_parse_cpu): Adapt to variable renaming and changes in
306 arm_parse_extension () signature.
307 (arm_parse_arch): Likewise.
308 (aeabi_set_public_attributes): Also set selected_arch and selected_ext
309 in addition to selected_cpu. Set flags_arch and flags_ext from them
310 instead of selected_cpu. Adapt to variables renaming and type change.
311 (arm_md_post_relax): Adapt to variable renaming.
312 (s_arm_cpu): Set selcted_cpu_cpu and selected_ext instead of
313 mcpu_cpu_opt and dyn_mcpu_ext_opt. Set selected_cpu from them and
314 cpu_variant from selected_cpu and selected_fpu.
315 (s_arm_arch): Likewise.
316 (s_arm_object_arch): Adapt to variable renaming.
317 (s_arm_arch_extension): Use ARM_CPU_IS_ANY instead of checking feature
318 set against arm_any. Check selected_arch rather than *mcpu_cpu_opt.
319 Set selected_ext rather than *dyn_mcpu_ext_opt and remove allocation
321 (s_arm_fpu): Set selected_fpu instead of mfpu_opt. Set all CPU feature
322 bits if in autodetection mode.
324 2018-03-01 H.J. Lu <hongjiu.lu@intel.com>
326 * config/tc-i386.c (optimize_encoding): Optimize AVX256 and
327 AVX512 vpsub[bwdq] instructions.
328 * testsuite/gas/i386/optimize-1.s: Add tests for AVX256 and
329 AVX512 vpsub[bwdq] instructions.
330 * testsuite/gas/i386/x86-64-optimize-2.s: Likewise.
331 * testsuite/gas/i386/optimize-1.d: Updated.
332 * testsuite/gas/i386/x86-64-optimize-2.d: Likewise.
334 2018-03-01 Alan Modra <amodra@gmail.com>
336 * configure.ac (ALL_LINGUAS): Add uk. Sort.
337 * configure: Regenerate.
339 2018-02-27 H.J. Lu <hongjiu.lu@intel.com>
341 * NEWS: Rename .nop to .nops.
342 * doc/as.texinfo: Likewise.
343 * read.c (potable): Add "nops". Remove "nop".
344 (s_nop): Renamed to ...
346 * read.h (s_nop): Renamed to ...
348 * write.c (cvt_frag_to_fill): Rename .nop to .nops.
349 (md_generate_nops): Likewise.
350 (relax_segment): Likewise.
351 * testsuite/gas/i386/nop-1.d: Updated.
352 * testsuite/gas/i386/nop-1.s: Likewise.
353 * testsuite/gas/i386/nop-2.d: Likewise.
354 * testsuite/gas/i386/nop-2.s: Likewise.
355 * testsuite/gas/i386/nop-3.d: Likewise.
356 * testsuite/gas/i386/nop-3.s: Likewise.
357 * testsuite/gas/i386/nop-4.d: Likewise.
358 * testsuite/gas/i386/nop-4.s: Likewise.
359 * testsuite/gas/i386/nop-5.d: Likewise.
360 * testsuite/gas/i386/nop-5.s: Likewise.
361 * testsuite/gas/i386/nop-6.d: Likewise.
362 * testsuite/gas/i386/nop-6.s: Likewise.
363 * testsuite/gas/i386/nop-bad-1.l: Likewise.
364 * testsuite/gas/i386/nop-bad-1.s: Likewise.
365 * testsuite/gas/i386/x86-64-nop-1.d: Likewise.
366 * testsuite/gas/i386/x86-64-nop-2.d: Likewise.
367 * testsuite/gas/i386/x86-64-nop-3.d: Likewise.
368 * testsuite/gas/i386/x86-64-nop-4.d: Likewise.
369 * testsuite/gas/i386/x86-64-nop-5.d: Likewise.
370 * testsuite/gas/i386/x86-64-nop-6.d: Likewise.
372 2018-02-27 H.J. Lu <hongjiu.lu@intel.com>
375 * NEWS: Mention -O[2|s].
376 * config/tc-i386.c (_i386_insn): Add no_optimize.
378 (optimize_for_space): Likewise.
379 (fits_in_imm7): New function.
380 (fits_in_imm31): Likewise.
381 (optimize_encoding): Likewise.
382 (md_assemble): Call optimize_encoding to optimize encoding.
383 (parse_insn): Handle {nooptimize}.
384 (md_shortopts): Append "O::".
385 (md_parse_option): Handle -On.
386 * doc/c-i386.texi: Document -O0, -O, -O1, -O2 and -Os as well
388 * testsuite/gas/cfi/cfi-x86_64.d: Pass -O0 to assembler.
389 * testsuite/gas/i386/ilp32/cfi/cfi-x86_64.d: Likewise.
390 * testsuite/gas/i386/i386.exp: Run optimize-1, optimize-2,
391 optimize-3, x86-64-optimize-1, x86-64-optimize-2,
392 x86-64-optimize-3 and x86-64-optimize-4.
393 * testsuite/gas/i386/optimize-1.d: New file.
394 * testsuite/gas/i386/optimize-1.s: Likewise.
395 * testsuite/gas/i386/optimize-2.d: Likewise.
396 * testsuite/gas/i386/optimize-2.s: Likewise.
397 * testsuite/gas/i386/optimize-3.d: Likewise.
398 * testsuite/gas/i386/optimize-3.s: Likewise.
399 * testsuite/gas/i386/x86-64-optimize-1.s: Likewise.
400 * testsuite/gas/i386/x86-64-optimize-1.d: Likewise.
401 * testsuite/gas/i386/x86-64-optimize-2.d: Likewise.
402 * testsuite/gas/i386/x86-64-optimize-2.s: Likewise.
403 * testsuite/gas/i386/x86-64-optimize-3.d: Likewise.
404 * testsuite/gas/i386/x86-64-optimize-3.s: Likewise.
405 * testsuite/gas/i386/x86-64-optimize-4.d: Likewise.
406 * testsuite/gas/i386/x86-64-optimize-4.s: Likewise.
408 2018-02-27 Nick Clifton <nickc@redhat.com>
410 * po/ru.po: Updated Russian translation.
412 2018-02-26 Maciej W. Rozycki <macro@mips.com>
414 * doc/as.texinfo (Pseudo Ops): Clean up `.dc' and `.ds'
417 2018-02-26 Nick Clifton <nickc@redhat.com>
419 * doc/as.texinfo (Dc): Fix typo.
421 2018-02-26 Alan Modra <amodra@gmail.com>
423 * testsuite/gas/mips/reginfo-2.l: Update.
425 2018-02-23 Alan Modra <amodra@gmail.com>
427 * testsuite/gas/mips/reginfo-2.l: Update.
429 2018-02-23 Nick Clifton <nickc@redhat.com>
431 * doc/as.texinfo (Pseudo Ops): Add nodes for .dc, .dcb and .ds.
433 2018-02-23 Kuan-Lin Chen <kuanlinchentw@gmail.com>
435 * config/tc-nds32.c (ict_model): New function. Hook new
436 directive .ict_model.
437 (nds32_insert_relax_entry): Tag the bits of entry relocation
440 2018-02-22 H.J. Lu <hongjiu.lu@intel.com>
442 * config/tc-i386.c (_i386_insn): Add rex_encoding.
443 (md_assemble): When i.rex_encoding is true, generate a REX byte
445 (parse_insn): Set i.rex_encoding for {rex}.
446 * doc/c-i386.texi: Document {rex}.
447 * testsuite/gas/i386/x86-64-pseudos.s: Add {rex} tests.
448 * testsuite/gas/i386/x86-64-pseudos.d: Updated.
450 2018-02-22 A. Wilcox <awilfox@adelielinux.org>
453 * config/tc-mips.c (mips_lookup_insn): Use memmove to strip the
454 instruction size suffix.
456 2018-02-20 Maciej W. Rozycki <macro@mips.com>
458 * testsuite/gas/mips/mips16-branch-reloc-4.d: New test.
459 * testsuite/gas/mips/mips16-branch-reloc-5.d: New test.
460 * testsuite/gas/mips/mips16-branch-reloc-4.s: New test source.
461 * testsuite/gas/mips/mips16-branch-reloc-5.s: New test source.
462 * testsuite/gas/mips/mips.exp: Run the new tests.
464 2018-02-20 Max Filippov <jcmvbkbc@gmail.com>
466 * config/tc-xtensa.c (struct litpool_frag): Add new field
468 (MAX_AUTO_POOL_LITERALS, MAX_EXPLICIT_POOL_LITERALS)
469 (MAX_POOL_LITERALS): New macro definitions.
470 (auto_litpool_limit): Initialize to 0.
471 (md_parse_option): Set auto_litpool_limit in the presence of
472 --auto-litpools option.
473 (xtensa_maybe_create_literal_pool_frag): Zero-initialize
475 (xg_find_litpool): New function. Make sure that found literal
476 pool size is within the limit.
477 (xtensa_move_literals): Extract literal pool search code into
479 * testsuite/gas/xtensa/all.exp: Add auto-litpools-2 test.
480 * testsuite/gas/xtensa/auto-litpools-2.d: New file.
481 * testsuite/gas/xtensa/auto-litpools-2.s: New file.
482 * testsuite/gas/xtensa/auto-litpools.d: Fix up changed
484 * testsuite/gas/xtensa/auto-litpools.s: Change literal value so
485 that objdump doesn't get out of sync.
487 2018-02-20 Thomas Preud'homme <thomas.preudhomme@arm.com>
489 * doc/c-arm.texi (.arch_extension): Mention extensions it accepts are
490 also the same as -march.
492 2018-02-17 H.J. Lu <hongjiu.lu@intel.com>
494 * NEWS: Mention .nop directive.
495 * as.h (_relax_state): Add rs_space_nop and rs_fill_nop.
496 * read.c (potable): Add .nop.
497 (s_nop): New function.
498 * read.h (s_nop): New prototype.
499 * write.c (cvt_frag_to_fill): Handle rs_space_nop and
501 (md_generate_nops): New function.
502 (relax_segment): Likewise.
503 (write_contents): Use md_generate_nops for rs_fill_nop.
504 * config/tc-i386.c (alt64_11): New.
505 (alt64_patt): Likewise.
506 (md_convert_frag): Handle rs_space_nop.
507 (i386_output_nops): New function.
508 (i386_generate_nops): Likewise.
509 (i386_align_code): Call i386_output_nops.
510 * config/tc-i386.h (i386_generate_nops): New.
511 (md_generate_nops): Likewise.
512 * doc/as.texinfo: Document .nop directive.
513 * testsuite/gas/i386/i386.exp: Run .nop directive tests.
514 * testsuite/gas/i386/nop-1.d: New file.
515 * testsuite/gas/i386/nop-1.s: Likewise.
516 * testsuite/gas/i386/nop-2.d: Likewise.
517 * testsuite/gas/i386/nop-2.s: Likewise.
518 * testsuite/gas/i386/nop-3.d: Likewise.
519 * testsuite/gas/i386/nop-3.s: Likewise.
520 * testsuite/gas/i386/nop-4.d: Likewise.
521 * testsuite/gas/i386/nop-4.s: Likewise.
522 * testsuite/gas/i386/nop-5.d: Likewise.
523 * testsuite/gas/i386/nop-5.s: Likewise.
524 * testsuite/gas/i386/nop-6.d: Likewise.
525 * testsuite/gas/i386/nop-6.s: Likewise.
526 * testsuite/gas/i386/nop-bad-1.l: Likewise.
527 * testsuite/gas/i386/nop-bad-1.s: Likewise.
528 * testsuite/gas/i386/x86-64-nop-1.d: Likewise.
529 * testsuite/gas/i386/x86-64-nop-2.d: Likewise.
530 * testsuite/gas/i386/x86-64-nop-3.d: Likewise.
531 * testsuite/gas/i386/x86-64-nop-4.d: Likewise.
532 * testsuite/gas/i386/x86-64-nop-5.d: Likewise.
533 * testsuite/gas/i386/x86-64-nop-6.d: Likewise.
535 2018-02-15 Tamar Christina <tamar.christina@arm.com>
537 * config/tc-arm.c (cpu_arch_ver): Renumber ARM_ARCH_V8_4A.
538 * testsuite/gas/arm/attr-march-armv8_4-a.d: New.
540 2018-02-13 Max Filippov <jcmvbkbc@gmail.com>
542 * config/tc-xtensa.c (xg_find_best_trampoline): Skip trampoline
543 frag that contains source address.
545 2018-02-13 Nick Clifton <nickc@redhat.com>
548 * config/tc-arm.c (md_apply_fix): Test Rn field of Thumb ORR
549 instruction before assuming that it is a MOV instruction.
550 * testsuite/gas/arm/pr22773.s: New test.
551 * testsuite/gas/arm/pr22773.d: New test driver.
552 * testsuite/gas/arm/pr22773.l: New expected output.
554 2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
557 * config/tc-i386.c (need_plt32_p): New function.
558 (output_jump): Generate BFD_RELOC_X86_64_PLT32 if possible.
559 (md_estimate_size_before_relax): Likewise.
560 * testsuite/gas/i386/reloc64.d: Updated.
561 * testsuite/gas/i386/x86-64-jump.d: Likewise.
562 * testsuite/gas/i386/x86-64-mpx-branch-1.d: Likewise.
563 * testsuite/gas/i386/x86-64-mpx-branch-2.d: Likewise.
564 * testsuite/gas/i386/x86-64-relax-2.d: Likewise.
565 * testsuite/gas/i386/x86-64-relax-3.d: Likewise.
566 * testsuite/gas/i386/ilp32/reloc64.d: Likewise.
567 * testsuite/gas/i386/ilp32/x86-64-branch.d: Likewise.
569 2018-02-13 Maciej W. Rozycki <macro@mips.com>
571 * testsuite/gas/mips/loongson-3a-2.d: Rename test.
573 2018-02-13 Nick Clifton <nickc@redhat.com>
576 * config/obj-elf.c (elf_pseudo_table): Remove now redundant
578 (obj_elf_vtable_inherit): Rename to obj_elf_get_vtable_inherit.
579 (obj_elf_vtable_inherit): New stub function that calls
580 obj_elf_get_vtable_inherit.
581 (obj_elf_vtable_entry): Rename to obj_elf_get_vtable_entry.
582 (obj_elf_vtable_entry): New stub function that calls
583 obj_elf_get_vtable_entry.
584 * config/obj-elf.h (obj_elf_vtable_inherit): Update prototype.
585 (obj_elf_vtable_entry) Likewise.
586 (obj_elf_get_vtable_inherit) Likewise.
587 (obj_elf_get_vtable_entry) Likewise.
588 * config/tc-arm.c (md_pseudo_table): Remove now redundant cast.
589 * config/tc-i386c (md_pseudo_table): Likewise.
590 * config/tc-hppa.c (pa_vtable_entry): Call
591 obj_elf_get_vtable_entry.
592 (pa_vtable_inherit): Call obj_elf_get_vtable_inherit.
593 * config/tc-mips.c (s_mips_file): Replace call to dwarf2_get_file
594 with call to dwarf2_get_filename.
595 * dwarf2dbg.c (dwarf2_directive_file): Rename to
596 dwarf2_directive_filename.
597 (dwarf2_directive_file): New stub function that calls
598 dwarf2_directive_filename.
599 * dwarf2dbg.h: Prototype dwarf2_directive_filename.
601 2018-02-12 Maciej W. Rozycki <macro@mips.com>
603 * testsuite/gas/mips/reginfo-2-n32.d: Add `--no-pad-sections' to
606 2018-02-12 Henry Wong <henry@stuffedcow.net>
608 * testsuite/gas/mips/r6.d: Update for "sigrie" encoding fix.
609 * testsuite/gas/mips/r6-n32.d: Likewise.
610 * testsuite/gas/mips/r6-n64.d: Likewise.
612 2018-02-12 Nick Clifton <nickc@redhat.com>
614 * po/ru.po: Updated Russian translation.
616 2018-02-08 Alan Modra <amodra@gmail.com>
619 * config/tc-ppc.c (md_assemble): Rewrite insn alignment checking.
620 (ppc_frag_check): Likewise.
621 * testsuite/gas/ppc/misalign.d,
622 * testsuite/gas/ppc/misalign.l,
623 * testsuite/gas/ppc/misalign.s: New test.
624 * testsuite/gas/ppc/misalign2.d,
625 * testsuite/gas/ppc/misalign2.s: New test.
626 * testsuite/gas/ppc/ppc.exp: Run them.
628 2018-02-05 Maciej W. Rozycki <macro@mips.com>
630 * config/tc-riscv.c (riscv_handle_implicit_zero_offset): Rename
631 `expr' parameter to `ep'.
633 2018-02-05 Maciej W. Rozycki <macro@mips.com>
635 * testsuite/gas/mips/reginfo-2.d: New test.
636 * testsuite/gas/mips/reginfo-2-n32.d: New test.
637 * testsuite/gas/mips/reginfo-2.l: New test stderr output.
638 * testsuite/gas/mips/reginfo-2.s: New test source.
639 * testsuite/gas/mips/mips.exp: Run the new tests.
641 2018-02-05 Nick Clifton <nickc@redhat.com>
643 * po/ru.po: Updated Russian translation.
645 2018-01-31 Alan Modra <amodra@gmail.com>
648 * app.c (last_char): New static var.
649 (struct app_save): Add last_char field.
650 (app_push, app_pop): Handle it.
651 (do_scrub_chars): Use last_char in test for "\@". Set last_char.
653 2018-01-29 Eric Botcazou <ebotcazou@adacore.com>
656 * config/tc-sparc.h (sparc_mach): Declare.
657 (TARGET_MACH): Define to above.
658 * config/tc-sparc.c (sparc_mach): New function.
659 (sparc_md_end): Minor tweak.
661 2018-01-29 Nick Clifton <nickc@redhat.com>
663 * po/ru.po: Updated Russian translation.
665 2018-01-26 Maciej W. Rozycki <macro@mips.com>
667 * configure.tgt: Use generic emulation for `mips-*-windiss',
668 overriding the blanket choice made for `*-*-windiss'.
670 2018-01-26 Maciej W. Rozycki <macro@mips.com>
672 * configure.tgt: Use `mips-*-sysv4*' rather than
675 2018-01-24 Renlin Li <renlin.li@arm.com>
677 * config/tc-aarch64.c (reloc_table): add entries for
678 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
679 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
680 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
681 BFD_RELOC_AARCH64_MOVW_PREL_G3.
682 (process_movw_reloc_info): Supports newly added MOVW_PREL relocations.
683 (md_apply_fix): Likewise
684 * testsuite/gas/aarch64/prel_g0.s: New.
685 * testsuite/gas/aarch64/prel_g0.d: New.
686 * testsuite/gas/aarch64/prel_g0_nc.s: New.
687 * testsuite/gas/aarch64/prel_g0_nc.d: New.
688 * testsuite/gas/aarch64/prel_g1.s: New.
689 * testsuite/gas/aarch64/prel_g1.d: New.
690 * testsuite/gas/aarch64/prel_g1_nc.s: New.
691 * testsuite/gas/aarch64/prel_g1_nc.d: New.
692 * testsuite/gas/aarch64/prel_g2.s: New.
693 * testsuite/gas/aarch64/prel_g2.d: New.
694 * testsuite/gas/aarch64/prel_g2_nc.s: New.
695 * testsuite/gas/aarch64/prel_g2_nc.d: New.
696 * testsuite/gas/aarch64/prel_g3.s: New.
697 * testsuite/gas/aarch64/prel_g3.d: New.
699 2018-01-23 Maciej W. Rozycki <macro@mips.com>
701 * configure.ac: Also set `mips_default_abi' to N32_ABI for
703 * configure: Regenerate.
705 2018-01-23 Maciej W. Rozycki <macro@mips.com>
707 * config/tc-mips.c (options): Remove OPTION_COMPAT_ARCH_BASE
710 2018-01-23 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
712 * config/tc-i386.c (cpu_arch): Add .pconfig.
713 * doc/c-i386.texi: Document .pconfig.
714 * testsuite/gas/i386/i386.exp: Add PCONFIG tests.
715 * testsuite/gas/i386/pconfig-intel.d: New test.
716 * testsuite/gas/i386/pconfig.d: Likewise.
717 * testsuite/gas/i386/pconfig.s: Likewise.
718 * testsuite/gas/i386/x86-64-pconfig-intel.d: Likewise.
719 * testsuite/gas/i386/x86-64-pconfig.d: Likewise.
720 * testsuite/gas/i386/x86-64-pconfig.s: Likewise.
722 2018-01-23 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
724 * config/tc-i386.c (cpu_arch): Add .wbnoinvd.
725 * doc/c-i386.texi: Document .wbnoinvd.
726 * testsuite/gas/i386/i386.exp: Add WBNOINVD tests.
727 * testsuite/gas/i386/wbnoinvd-intel.d: New test.
728 * testsuite/gas/i386/wbnoinvd.d: Likewise.
729 * testsuite/gas/i386/wbnoinvd.s: Likewise.
730 * testsuite/gas/i386/x86-64-wbnoinvd-intel.d: Likewise.
731 * testsuite/gas/i386/x86-64-wbnoinvd.d: Likewise.
732 * testsuite/gas/i386/x86-64-wbnoinvd.s: Likewise.
734 2018-01-23 Maciej W. Rozycki <macro@mips.com>
736 * config/tc-mips.c (md_show_usage): Correctly indicate the
737 configuration-specific default ABI.
739 2018-01-23 Maciej W. Rozycki <macro@mips.com>
741 * config/tc-mips.c (md_show_usage): Report `-mmips16e2' and
742 `-mno-mips16e2' options.
744 2018-01-22 Maciej W. Rozycki <macro@mips.com>
746 * doc/c-mips.texi (MIPS ASE Instruction Generation Overrides):
747 Correct syntax of the `.set nomips16e2' directive description.
749 2018-01-22 Oleg Endo <olegendo@gcc.gnu.org>
752 * config/tc-rx.c (rx_start_line): Handle escaped double-quote character.
753 * testsuite/gas/rx/pr22737.s: New test.
754 * testsuite/gas/rx/pr22737.d: Likewise.
755 * testsuite/gas/rx/rx.exp: Run the new test.
757 2018-01-19 Thomas Preud'homme <thomas.preudhomme@arm.com>
759 * config/tc-arm.c (ToC macro): Remove spurious comment.
760 (ToU macro): Likewise.
762 2018-01-17 Jim Wilson <jimw@sifive.com>
764 * config/tc-riscv.c (validate_riscv_insn) <'z'>: New.
765 (riscv_ip) <'z'>: New.
767 2018-01-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
769 * config/tc-i386.c (cpu_arch): Delete .cet. Add .ibt, .shstk.
770 (cpu_noarch): Add noibt, noshstk.
771 (parse_insn): Change cpucet to cpuibt.
772 * doc/c-i386.texi: Delete .cet. Add .ibt, .shstk.
773 * testsuite/gas/i386/cet-ibt-inval.l: New test.
774 * testsuite/gas/i386/cet-ibt-inval.s: Likewise.
775 * testsuite/gas/i386/cet-shstk-inval.l: Likewise.
776 * testsuite/gas/i386/cet-shstk-inval.s: Likewise.
777 * testsuite/gas/i386/x86-64-cet-ibt-inval.l: Likewise.
778 * testsuite/gas/i386/x86-64-cet-ibt-inval.s: Likewise.
779 * testsuite/gas/i386/x86-64-cet-shstk-inval.l: Likewise.
780 * testsuite/gas/i386/x86-64-cet-shstk-inval.s: Likewise.
782 2018-01-16 Nick Clifton <nickc@redhat.com>
784 * po/fr.po: Updated French translation.
786 2018-01-15 Jim Wilson <jimw@sifive.com>
788 * testsuite/gas/riscv/c-zero-imm.s: Test addi that compresses to c.nop.
789 * testsuite/gas/riscv/c-zero-imm.d: Likewise.
791 2018-01-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
793 * config/tc-arm.c (ToC): Define macro.
795 (insns): Make use of above macros for new instructions introduced in
798 2018-01-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
800 * config/tc-arm.c (insns): Make blxns, bxns, tt, ttt, tta, ttat, vlldm
801 and vlstm conditionally executable and reindent parameters.
802 * testsuite/gas/arm/archv8m-cmse-main.s: Add conditional version of
803 aforementionned instructions.
805 2018-01-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
807 * config/tc-arm.c (it_fsm_post_encode): Do not warn if targeting M
808 profile architecture or if in autodetection mode. Clarify that
809 deprecation is for performance reason and concerns Armv8-A and Armv8-R.
810 * testsuite/gas/arm/armv8-ar-bad.l: Adapt to new IT deprecation warning
812 * testsuite/gas/arm/armv8-ar-it-bad.l: Likewise.
813 * testsuite/gas/arm/sp-pc-validations-bad-t-v8a.l: Likewise.
814 * testsuite/gas/arm/udf.l: Likewise.
815 * testsuite/gas/arm/udf.d: Assemble for Armv8-A explicitely.
817 2018-01-15 Nick Clifton <nickc@redhat.com>
819 * po/uk.po: Updated Ukranian translation.
821 2018-01-13 Nick Clifton <nickc@redhat.com>
823 * po/gas.pot: Regenerated.
825 2018-01-13 Nick Clifton <nickc@redhat.com>
827 * configure: Regenerate.
829 2018-01-13 Nick Clifton <nickc@redhat.com>
832 * NEWS: Add marker for 2.30.
834 2018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
836 * gas/config/aout_gnu.h (USE_EXTENDED_RELOC): Explicitly
837 define to 0 and 1. Remove a dangling reference to "AMD 29000"
840 2018-01-11 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
842 * testsuite/i386/avx512_4fmaps_vl-warn.l: Likewise.
843 * testsuite/i386/avx512_4fmaps_vl-warn.s: Likewise.
844 * testsuite/i386/avx512_4fmaps_vl.d: Likewise.
845 * testsuite/i386/avx512_4fmaps_vl.s: Likewise.
846 * testsuite/i386/avx512_4vnniw_vl-intel.d: Likewise.
847 * testsuite/i386/avx512_4vnniw_vl.d: Likewise.
848 * testsuite/i386/avx512_4vnniw_vl.s: Likewise.
849 * testsuite/i386/i386.exp: Removed _vl tests for 4fmaps an 4vnniw
851 * testsuite/i386/x86-64-avx512_4fmaps_vl-intel.d: Removed.
852 * testsuite/i386/x86-64-avx512_4fmaps_vl-warn.l: Likewise.
853 * testsuite/i386/x86-64-avx512_4fmaps_vl-warn.s: Likewise.
854 * testsuite/i386/x86-64-avx512_4fmaps_vl.d: Likewise.
855 * testsuite/i386/x86-64-avx512_4fmaps_vl.s: Likewise.
856 * testsuite/i386/x86-64-avx512_4vnniw_vl-intel.d: Likewise.
857 * testsuite/i386/x86-64-avx512_4vnniw_vl.d: Likewise.
858 * testsuite/i386/x86-64-avx512_4vnniw_vl.s: Likewise.
860 2018-01-11 Alan Modra <amodra@gmail.com>
862 * config/tc-arm.c (aeabi_set_public_attributes): Avoid false
863 positive "‘profile’ may be used uninitialized".
865 2018-01-10 Jan Beulich <jbeulich@suse.com>
867 * testsuite/gas/i386/avx512_4fmaps.s,
868 testsuite/gas/i386/avx512_4fmaps_vl.s,
869 testsuite/gas/i386/x86-64-avx512_4fmaps.s,
870 testsuite/gas/i386/x86-64-avx512_4fmaps_vl.s: Actually test
871 Disp8 forms (and the transition happening at the right
873 * testsuite/gas/i386/avx512_4fmaps.d,
874 testsuite/gas/i386/avx512_4fmaps-intel.d,
875 testsuite/gas/i386/avx512_4fmaps_vl.d,
876 testsuite/gas/i386/avx512_4fmaps_vl-intel.d,
877 testsuite/gas/i386/x86-64-avx512_4fmaps.d,
878 testsuite/gas/i386/x86-64-avx512_4fmaps-intel.d,
879 testsuite/gas/i386/x86-64-avx512_4fmaps_vl.d,
880 testsuite/gas/i386/x86-64-avx512_4fmaps_vl-intel.d: Adjust
883 2018-01-10 Jan Beulich <jbeulich@suse.com>
885 * testsuite/gas/i386/avx512bw.s,
886 testsuite/gas/i386/avx512bw_vl.s: Add VPCMP* tests with memory
888 * testsuite/gas/i386/avx512bw-intel.d,
889 testsuite/gas/i386/avx512bw.d,
890 testsuite/gas/i386/avx512bw_vl-intel.d.
891 testsuite/gas/i386/avx512bw_vl.d: Adjust expectations.
893 2018-01-09 Jim Wilson <jimw@sifive.com>
895 * testsuite/gas/riscv/auipc-x0.d: New.
896 * testsuite/gas/riscv/auipc-x0.s: New.
898 2018-01-09 James Greenhalgh <james.greenhalgh@arm.com>
900 * config/tc-arm.c (insns): Add csdb, enable for Armv3 and above
901 in Arm execution state, and Armv6T2 and above in Thumb execution
903 * testsuite/gas/arm/csdb.s: New.
904 * testsuite/gas/arm/csdb.d: New.
905 * testsuite/gas/arm/thumb2_it_bad.l: Add csdb.
906 * testsuite/gas/arm/thumb2_it_bad.s: Add csdb.
908 2018-01-09 James Greenhalgh <james.greenhalgh@arm.com>
910 * testsuite/gas/aarch64/system.d: Update expected results to expect
913 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
916 * testsuite/gas/i386/i386.exp: Run x86-64-movd and
918 * testsuite/gas/i386/x86-64-movd-intel.d: New file.
919 * testsuite/gas/i386/x86-64-movd.d: Likewise.
920 * testsuite/gas/i386/x86-64-movd.s: Likewise.
922 2018-01-08 Nick Clifton <nickc@redhat.com>
925 * doc/c-i386.texi (i386-Directives): Document the .largecomm
928 2018-01-04 Jim Wilson <jimw@sifive.com>
930 * testsuite/gas/riscv/priv-reg.s: Add missing stval and mtval.
931 * testsuite/gas/riscv/priv-reg.d: Likewise.
933 2018-01-03 Alan Modra <amodra@gmail.com>
935 Update year range in copyright notice of all files.
937 2018-01-02 Nick Clifton <nickc@redhat.com>
940 * config/tc-arm.c (do_mrs): Fix test of bits 16-19 in non-banked
941 version of ARM MRS instruction.
943 For older changes see ChangeLog-2017
945 Copyright (C) 2018 Free Software Foundation, Inc.
947 Copying and distribution of this file, with or without modification,
948 are permitted in any medium without royalty provided the copyright
949 notice and this notice are preserved.
955 version-control: never