x86: fold redundant expressions in process_suffix()
[deliverable/binutils-gdb.git] / gas / ChangeLog
1 2018-03-08 Jan Beulich <jbeulich@suse.com>
2
3 * config/tc-i386.c (process_suffix): Do common part of register
4 checks first.
5
6 2018-03-08 Jan Beulich <jbeulich@suse.com>
7
8 * config/tc-i386.c (parse_insn): Move success return up. Combine
9 failure returns.
10
11 2018-03-08 Jan Beulich <jbeulich@suse.com>
12
13 * config/tc-i386.c (cpu_flags_match): Add GFNI check to AVX
14 logic. Add respective logic for AVX512F.
15 * testsuite/gas/i386/arch-avx-1.s: Add GFNI test.
16 testsuite/gas/i386/arch-avx-1.d,
17 testsuite/gas/i386/arch-avx-1-1.l,
18 testsuite/gas/i386/arch-avx-1-2.l,
19 testsuite/gas/i386/arch-avx-1-3.l,
20 testsuite/gas/i386/arch-avx-1-4.l,
21 testsuite/gas/i386/arch-avx-1-5.l,
22 testsuite/gas/i386/arch-avx-1-6.l: Adjust expectations.
23 * testsuite/gas/i386/arch-avx-1-7.l,
24 testsuite/gas/i386/arch-avx-1-7.s,
25 testsuite/gas/i386/arch-avx-1-8.l,
26 testsuite/gas/i386/arch-avx-1-8.s,
27 testsuite/gas/i386/avx512f-plain.l,
28 testsuite/gas/i386/avx512f-plain.s,
29 testsuite/gas/i386/avx512vl-plain.l,
30 testsuite/gas/i386/avx512vl-plain.s: New.
31 * testsuite/gas/i386/i386.exp: Run new tests.
32
33 2018-03-08 Jan Beulich <jbeulich@suse.com>
34
35 * config/tc-i386.c (cpu_flags_match): Move AVX512VL check ahead.
36
37 2018-03-08 Jan Beulich <jbeulich@suse.com>
38
39 * config/tc-i386.c (CPU_FLAGS_32BIT_MATCH): Delete.
40 (cpu_flags_match): Use CPU_FLAGS_ARCH_MATCH instead of
41 CPU_FLAGS_32BIT_MATCH.
42
43 2018-03-08 Jan Beulich <jbeulich@suse.com>
44
45 * config/tc-i386.c (CPU_FLAGS_AES_MATCH, CPU_FLAGS_AVX_MATCH,
46 CPU_FLAGS_PCLMUL_MATCH): Delete.
47 (CPU_FLAGS_32BIT_MATCH): Drop uses of deleted CPU_FLAGS_*_MATCH.
48 (cpu_flags_match): Combine AVX checks into
49 single if().
50
51 2018-03-08 Jan Beulich <jbeulich@suse.com>
52
53 * config/tc-i386.c (cpu_flags_match): Drop "else" branches
54 setting CPU_FLAGS_ARCH_MATCH.
55
56 2018-03-08 Jan Beulich <jbeulich@suse.com>
57
58 * config/tc-i386.c (md_assemble): Extend SSE check conditional.
59 * testsuite/gas/i386/ilp32/x86-64-sse-check-none.d,
60 testsuite/gas/i386/ilp32/x86-64-sse-check-warn.d,
61 testsuite/gas/i386/ilp32/x86-64-sse-check.d,
62 testsuite/gas/i386/sse-check-none.d,
63 testsuite/gas/i386/sse-check-warn.d,
64 testsuite/gas/i386/x86-64-sse-check.d,
65 testsuite/gas/i386/x86-64-sse-check-none.d,
66 testsuite/gas/i386/x86-64-sse-check-warn.d: Refer to sse-check.d.
67 * testsuite/gas/i386/sse-check.s: Add AES, GFNI, and PCLMUL
68 tests.
69 * testsuite/gas/i386/sse-check-none.s: Replace code by inclusion
70 of sse-check.s.
71 * testsuite/gas/i386/sse-check.d: Adjust expectations.
72 * testsuite/gas/i386/sse-check-error.l,
73 testsuite/gas/i386/x86-64-sse-check-error.l: Likewise.
74 * testsuite/gas/i386/sse-check-warn.e: Likewise.
75
76 2018-03-08 Jan Beulich <jbeulich@suse.com>
77
78 * config/tc-i386.c (operand_size_match): Drop / replace uses of
79 .floatd.
80
81 2018-03-08 Jan Beulich <jbeulich@suse.com>
82
83 * testsuite/gas/i386/intel-intel.d: New.
84 * testsuite/gas/i386/i386.exp: Run new test.
85
86 2018-03-08 Jan Beulich <jbeulich@suse.com>
87
88 * config/tc-i386.c (process_operands): Access operands only
89 after operand count assertion. Sanitize warning text. Fix
90 indentation.
91 * testsuite/gas/i386/avx512_4fmaps-warn.l,
92 gas/i386/x86-64-avx512_4fmaps-warn.l: Adjust expectations.
93
94 2018-03-08 Jan Beulich <jbeulich@suse.com>
95
96 * testsuite/gas/i386/x86-64-movd.s: Drop bogus vmovd memory forms.
97 * testsuite/gas/i386/x86-64-movd.d,
98 testsuite/gas/i386/x86-64-movd-intel.d: Adjust expectations.
99
100 2018-03-08 Jan Beulich <jbeulich@suse.com>
101
102 * config/tc-i386.c (operand_type_and_not): New.
103 (build_modrm_byte): Use it to prevent clearing unrelated bits.
104
105 2018-03-08 Alan Modra <amodra@gmail.com>
106
107 * config/tc-ppc.c (ppc_handle_align): Correct last patch. Really
108 don't emit a group terminating nop for power9. Simplify cpu
109 tests.
110
111 2018-03-08 Alan Modra <amodra@gmail.com>
112
113 * config/tc-ppc.c (ppc_handle_align): Don't emit a group
114 terminating nop for power9.
115
116 2018-03-07 H.J. Lu <hongjiu.lu@intel.com>
117
118 PR gas/22874
119 * config/tc-i386.c (f32_5): Removed.
120 (f32_8): Likewise.
121 (f32_9): Likewise.
122 (f32_10): Likewise.
123 (f32_11): Likewise.
124 (f32_12): Likewise.
125 (f32_13): Likewise.
126 (f32_14): Likewise.
127 (f16_5): Likewise.
128 (f16_6): Likewise.
129 (f16_7): Likewise.
130 (f16_8): Likewise.
131 (jump_31): Likewise.
132 (alt64_11): Likewise.
133 (alt64_patt): Likewise.
134 (jump_disp8): New.
135 (jump32_disp32): Likewise.
136 (jump16_disp32): Likewise.
137 (alt_11): Likewise.
138 (f32_patt): Updated.
139 (f16_patt): Likewise.
140 (alt_patt): Add alt_11.
141 (i386_align_code): Merged with ...
142 (i386_generate_nops): This. Rewritten.
143 (fits_in_imm7): Moved before i386_generate_nops.
144 (fits_in_imm31): Likewise.
145 * config/tc-i386.h (MAX_MEM_FOR_RS_ALIGN_CODE): Updated to
146 4095.
147 (i386_align_code): Removed.
148 (HANDLE_ALIGN): Rewritten with i386_generate_nops.
149 * doc/as.texinfo: Update limits of control byte for x86 .nops
150 directive.
151 * testsuite/gas/i386/i386.exp: Run nops-7 and x86-64-nops-7.
152 * gas/testsuite/gas/i386/noavx-3.l: Updated.
153 * gas/testsuite/gas/i386/nop-1.d: Likewise.
154 * gas/testsuite/gas/i386/nop-1.s: Likewise.
155 * gas/testsuite/gas/i386/nop-2.d: Likewise.
156 * gas/testsuite/gas/i386/nop-2.s: Likewise.
157 * gas/testsuite/gas/i386/nop-3.d: Likewise.
158 * gas/testsuite/gas/i386/nop-4.d: Likewise.
159 * gas/testsuite/gas/i386/nop-5.d: Likewise.
160 * gas/testsuite/gas/i386/nop-5.s: Likewise.
161 * gas/testsuite/gas/i386/nop-6.d: Likewise.
162 * gas/testsuite/gas/i386/nop-bad-1.l: Likewise.
163 * gas/testsuite/gas/i386/nops-1-core2.d: Likewise.
164 * gas/testsuite/gas/i386/nops-1-i386-i686.d: Likewise.
165 * gas/testsuite/gas/i386/nops-1-i386.d: Likewise.
166 * gas/testsuite/gas/i386/nops-1-i686.d: Likewise.
167 * gas/testsuite/gas/i386/nops-1-k8.d: Likewise.
168 * gas/testsuite/gas/i386/nops-1.d: Likewise.
169 * gas/testsuite/gas/i386/nops-2-core2.d: Likewise.
170 * gas/testsuite/gas/i386/nops-2-i386.d: Likewise.
171 * gas/testsuite/gas/i386/nops-2.d: Likewise.
172 * gas/testsuite/gas/i386/nops-3-i386.d: Likewise.
173 * gas/testsuite/gas/i386/nops-3-i686.d: Likewise.
174 * gas/testsuite/gas/i386/nops-3.d: Likewise.
175 * gas/testsuite/gas/i386/nops-4-i386.d: Likewise.
176 * gas/testsuite/gas/i386/nops-4-i686.d: Likewise.
177 * gas/testsuite/gas/i386/nops-4.d: Likewise.
178 * gas/testsuite/gas/i386/nops-4a-i686.d: Likewise.
179 * gas/testsuite/gas/i386/nops-5-i686.d: Likewise.
180 * gas/testsuite/gas/i386/nops-5.d: Likewise.
181 * gas/testsuite/gas/i386/nops-6.d: Likewise.
182 * gas/testsuite/gas/i386/nops16-1.d: Likewise.
183 * gas/testsuite/gas/i386/x86-64-nop-1.d: Likewise.
184 * gas/testsuite/gas/i386/x86-64-nop-2.d: Likewise.
185 * gas/testsuite/gas/i386/x86-64-nop-5.d: Likewise.
186 * gas/testsuite/gas/i386/x86-64-nops-1-core2.d: Likewise.
187 * gas/testsuite/gas/i386/x86-64-nops-1-g64.d: Likewise.
188 * gas/testsuite/gas/i386/x86-64-nops-1-k8.d: Likewise.
189 * gas/testsuite/gas/i386/x86-64-nops-1-pentium.d: Likewise.
190 * gas/testsuite/gas/i386/x86-64-nops-1.d: Likewise.
191 * gas/testsuite/gas/i386/x86-64-nops-2.d: Likewise.
192 * gas/testsuite/gas/i386/x86-64-nops-3.d: Likewise.
193 * gas/testsuite/gas/i386/x86-64-nops-4-core2.d: Likewise.
194 * gas/testsuite/gas/i386/x86-64-nops-4-k8.d: Likewise.
195 * gas/testsuite/gas/i386/x86-64-nops-4.d: Likewise.
196 * gas/testsuite/gas/i386/x86-64-nops-5-k8.d: Likewise.
197 * gas/testsuite/gas/i386/x86-64-nops-5.d: Likewise.
198 * gas/testsuite/gas/i386/ilp32/x86-64-nops-1-core2.d: Likewise.
199 * gas/testsuite/gas/i386/ilp32/x86-64-nops-1-k8.d: Likewise.
200 * gas/testsuite/gas/i386/ilp32/x86-64-nops-1-pentium.d: Likewise.
201 * gas/testsuite/gas/i386/ilp32/x86-64-nops-1.d: Likewise.
202 * gas/testsuite/gas/i386/ilp32/x86-64-nops-2.d: Likewise.
203 * gas/testsuite/gas/i386/ilp32/x86-64-nops-3.d: Likewise.
204 * gas/testsuite/gas/i386/ilp32/x86-64-nops-4-core2.d: Likewise.
205 * gas/testsuite/gas/i386/ilp32/x86-64-nops-4-k8.d: Likewise.
206 * gas/testsuite/gas/i386/ilp32/x86-64-nops-4.d: Likewise.
207 * gas/testsuite/gas/i386/ilp32/x86-64-nops-5-k8.d: Likewise.
208 * gas/testsuite/gas/i386/ilp32/x86-64-nops-5.d: Likewise.
209 * gas/testsuite/gas/i386/nops-7.d: New file.
210 * gas/testsuite/gas/i386/nops-7.s: Likewise.
211 * gas/testsuite/gas/i386/x86-64-nops-7.d: Likewise.
212
213 2018-03-07 Alan Modra <amodra@gmail.com>
214
215 * testsuite/gas/ppc/aix.exp: Run for rs6000 too.
216 * testsuite/gas/ppc/ppc.exp: Run more tests for non-ELF targets.
217 * testsuite/gas/ppc/machine.d: Don't run for PE targets.
218
219 2018-03-02 Thomas Preud'homme <thomas.preudhomme@arm.com>
220
221 * config/tc-arm.c (md_begin): Add NULL pointer check before
222 dereferencing march_ext_opt.
223
224 2018-03-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
225
226 * config/tc-arm.c (cpu_variant, arm_arch_used, thumb_arch_used,
227 legacy_cpu, legacy_fpu, mcpu_cpu_opt, dyn_mcpu_ext_opt,
228 mcpu_fpu_opt, march_cpu_opt, dyn_march_ext_opt, march_fpu_opt,
229 mfpu_opt, object_arch, selected_cpu): Comment meaning of variables.
230 (dyn_mcpu_ext_opt): Also rename into ...
231 (mcpu_ext_opt): This.
232 (dyn_march_ext_opt): Also rename into ...
233 (march_ext_opt): This.
234 (object_arch): Also rename into ...
235 (selected_object_arch): This and make it a plain arm_feature_set
236 structure.
237 (selected_arch, selected_ext, selected_fpu): New static variables.
238 (mark_feature_used): Fix comments, feature is marked as used iff it is
239 currently allowed.
240 (do_bx): Adapt to change in name and type of object_arch.
241 (md_begin): Set selected_arch rather than mcpu_cpu_opt, selected_ext
242 rather than dyn_mcpu_ext_opt and selected_fpu rather than mfpu_opt.
243 Remove dead code to set default FPU if architecture version is greater
244 than 5. Set all CPU bits of cpu_variant directly in autodection
245 leaving mcpu_cpu_opt, selected_arch and selected_cpu unset.
246 (arm_parse_extension): Take extension feature set pointer parameter by
247 value rather than by pointer. Remove allocation code. Adapt code
248 accordingly.
249 (arm_parse_cpu): Adapt to variable renaming and changes in
250 arm_parse_extension () signature.
251 (arm_parse_arch): Likewise.
252 (aeabi_set_public_attributes): Also set selected_arch and selected_ext
253 in addition to selected_cpu. Set flags_arch and flags_ext from them
254 instead of selected_cpu. Adapt to variables renaming and type change.
255 (arm_md_post_relax): Adapt to variable renaming.
256 (s_arm_cpu): Set selcted_cpu_cpu and selected_ext instead of
257 mcpu_cpu_opt and dyn_mcpu_ext_opt. Set selected_cpu from them and
258 cpu_variant from selected_cpu and selected_fpu.
259 (s_arm_arch): Likewise.
260 (s_arm_object_arch): Adapt to variable renaming.
261 (s_arm_arch_extension): Use ARM_CPU_IS_ANY instead of checking feature
262 set against arm_any. Check selected_arch rather than *mcpu_cpu_opt.
263 Set selected_ext rather than *dyn_mcpu_ext_opt and remove allocation
264 code.
265 (s_arm_fpu): Set selected_fpu instead of mfpu_opt. Set all CPU feature
266 bits if in autodetection mode.
267
268 2018-03-01 H.J. Lu <hongjiu.lu@intel.com>
269
270 * config/tc-i386.c (optimize_encoding): Optimize AVX256 and
271 AVX512 vpsub[bwdq] instructions.
272 * testsuite/gas/i386/optimize-1.s: Add tests for AVX256 and
273 AVX512 vpsub[bwdq] instructions.
274 * testsuite/gas/i386/x86-64-optimize-2.s: Likewise.
275 * testsuite/gas/i386/optimize-1.d: Updated.
276 * testsuite/gas/i386/x86-64-optimize-2.d: Likewise.
277
278 2018-03-01 Alan Modra <amodra@gmail.com>
279
280 * configure.ac (ALL_LINGUAS): Add uk. Sort.
281 * configure: Regenerate.
282
283 2018-02-27 H.J. Lu <hongjiu.lu@intel.com>
284
285 * NEWS: Rename .nop to .nops.
286 * doc/as.texinfo: Likewise.
287 * read.c (potable): Add "nops". Remove "nop".
288 (s_nop): Renamed to ...
289 (s_nops): This.
290 * read.h (s_nop): Renamed to ...
291 (s_nops): This.
292 * write.c (cvt_frag_to_fill): Rename .nop to .nops.
293 (md_generate_nops): Likewise.
294 (relax_segment): Likewise.
295 * testsuite/gas/i386/nop-1.d: Updated.
296 * testsuite/gas/i386/nop-1.s: Likewise.
297 * testsuite/gas/i386/nop-2.d: Likewise.
298 * testsuite/gas/i386/nop-2.s: Likewise.
299 * testsuite/gas/i386/nop-3.d: Likewise.
300 * testsuite/gas/i386/nop-3.s: Likewise.
301 * testsuite/gas/i386/nop-4.d: Likewise.
302 * testsuite/gas/i386/nop-4.s: Likewise.
303 * testsuite/gas/i386/nop-5.d: Likewise.
304 * testsuite/gas/i386/nop-5.s: Likewise.
305 * testsuite/gas/i386/nop-6.d: Likewise.
306 * testsuite/gas/i386/nop-6.s: Likewise.
307 * testsuite/gas/i386/nop-bad-1.l: Likewise.
308 * testsuite/gas/i386/nop-bad-1.s: Likewise.
309 * testsuite/gas/i386/x86-64-nop-1.d: Likewise.
310 * testsuite/gas/i386/x86-64-nop-2.d: Likewise.
311 * testsuite/gas/i386/x86-64-nop-3.d: Likewise.
312 * testsuite/gas/i386/x86-64-nop-4.d: Likewise.
313 * testsuite/gas/i386/x86-64-nop-5.d: Likewise.
314 * testsuite/gas/i386/x86-64-nop-6.d: Likewise.
315
316 2018-02-27 H.J. Lu <hongjiu.lu@intel.com>
317
318 PR gas/22871
319 * NEWS: Mention -O[2|s].
320 * config/tc-i386.c (_i386_insn): Add no_optimize.
321 (optimize): New.
322 (optimize_for_space): Likewise.
323 (fits_in_imm7): New function.
324 (fits_in_imm31): Likewise.
325 (optimize_encoding): Likewise.
326 (md_assemble): Call optimize_encoding to optimize encoding.
327 (parse_insn): Handle {nooptimize}.
328 (md_shortopts): Append "O::".
329 (md_parse_option): Handle -On.
330 * doc/c-i386.texi: Document -O0, -O, -O1, -O2 and -Os as well
331 as {nooptimize}.
332 * testsuite/gas/cfi/cfi-x86_64.d: Pass -O0 to assembler.
333 * testsuite/gas/i386/ilp32/cfi/cfi-x86_64.d: Likewise.
334 * testsuite/gas/i386/i386.exp: Run optimize-1, optimize-2,
335 optimize-3, x86-64-optimize-1, x86-64-optimize-2,
336 x86-64-optimize-3 and x86-64-optimize-4.
337 * testsuite/gas/i386/optimize-1.d: New file.
338 * testsuite/gas/i386/optimize-1.s: Likewise.
339 * testsuite/gas/i386/optimize-2.d: Likewise.
340 * testsuite/gas/i386/optimize-2.s: Likewise.
341 * testsuite/gas/i386/optimize-3.d: Likewise.
342 * testsuite/gas/i386/optimize-3.s: Likewise.
343 * testsuite/gas/i386/x86-64-optimize-1.s: Likewise.
344 * testsuite/gas/i386/x86-64-optimize-1.d: Likewise.
345 * testsuite/gas/i386/x86-64-optimize-2.d: Likewise.
346 * testsuite/gas/i386/x86-64-optimize-2.s: Likewise.
347 * testsuite/gas/i386/x86-64-optimize-3.d: Likewise.
348 * testsuite/gas/i386/x86-64-optimize-3.s: Likewise.
349 * testsuite/gas/i386/x86-64-optimize-4.d: Likewise.
350 * testsuite/gas/i386/x86-64-optimize-4.s: Likewise.
351
352 2018-02-27 Nick Clifton <nickc@redhat.com>
353
354 * po/ru.po: Updated Russian translation.
355
356 2018-02-26 Maciej W. Rozycki <macro@mips.com>
357
358 * doc/as.texinfo (Pseudo Ops): Clean up `.dc' and `.ds'
359 descriptions.
360
361 2018-02-26 Nick Clifton <nickc@redhat.com>
362
363 * doc/as.texinfo (Dc): Fix typo.
364
365 2018-02-26 Alan Modra <amodra@gmail.com>
366
367 * testsuite/gas/mips/reginfo-2.l: Update.
368
369 2018-02-23 Alan Modra <amodra@gmail.com>
370
371 * testsuite/gas/mips/reginfo-2.l: Update.
372
373 2018-02-23 Nick Clifton <nickc@redhat.com>
374
375 * doc/as.texinfo (Pseudo Ops): Add nodes for .dc, .dcb and .ds.
376
377 2018-02-23 Kuan-Lin Chen <kuanlinchentw@gmail.com>
378
379 * config/tc-nds32.c (ict_model): New function. Hook new
380 directive .ict_model.
381 (nds32_insert_relax_entry): Tag the bits of entry relocation
382 for .ict_model.
383
384 2018-02-22 H.J. Lu <hongjiu.lu@intel.com>
385
386 * config/tc-i386.c (_i386_insn): Add rex_encoding.
387 (md_assemble): When i.rex_encoding is true, generate a REX byte
388 if possible.
389 (parse_insn): Set i.rex_encoding for {rex}.
390 * doc/c-i386.texi: Document {rex}.
391 * testsuite/gas/i386/x86-64-pseudos.s: Add {rex} tests.
392 * testsuite/gas/i386/x86-64-pseudos.d: Updated.
393
394 2018-02-22 A. Wilcox <awilfox@adelielinux.org>
395
396 PR 22014
397 * config/tc-mips.c (mips_lookup_insn): Use memmove to strip the
398 instruction size suffix.
399
400 2018-02-20 Maciej W. Rozycki <macro@mips.com>
401
402 * testsuite/gas/mips/mips16-branch-reloc-4.d: New test.
403 * testsuite/gas/mips/mips16-branch-reloc-5.d: New test.
404 * testsuite/gas/mips/mips16-branch-reloc-4.s: New test source.
405 * testsuite/gas/mips/mips16-branch-reloc-5.s: New test source.
406 * testsuite/gas/mips/mips.exp: Run the new tests.
407
408 2018-02-20 Max Filippov <jcmvbkbc@gmail.com>
409
410 * config/tc-xtensa.c (struct litpool_frag): Add new field
411 literal_count.
412 (MAX_AUTO_POOL_LITERALS, MAX_EXPLICIT_POOL_LITERALS)
413 (MAX_POOL_LITERALS): New macro definitions.
414 (auto_litpool_limit): Initialize to 0.
415 (md_parse_option): Set auto_litpool_limit in the presence of
416 --auto-litpools option.
417 (xtensa_maybe_create_literal_pool_frag): Zero-initialize
418 literal_count field.
419 (xg_find_litpool): New function. Make sure that found literal
420 pool size is within the limit.
421 (xtensa_move_literals): Extract literal pool search code into
422 the new function.
423 * testsuite/gas/xtensa/all.exp: Add auto-litpools-2 test.
424 * testsuite/gas/xtensa/auto-litpools-2.d: New file.
425 * testsuite/gas/xtensa/auto-litpools-2.s: New file.
426 * testsuite/gas/xtensa/auto-litpools.d: Fix up changed
427 addresses.
428 * testsuite/gas/xtensa/auto-litpools.s: Change literal value so
429 that objdump doesn't get out of sync.
430
431 2018-02-20 Thomas Preud'homme <thomas.preudhomme@arm.com>
432
433 * doc/c-arm.texi (.arch_extension): Mention extensions it accepts are
434 also the same as -march.
435
436 2018-02-17 H.J. Lu <hongjiu.lu@intel.com>
437
438 * NEWS: Mention .nop directive.
439 * as.h (_relax_state): Add rs_space_nop and rs_fill_nop.
440 * read.c (potable): Add .nop.
441 (s_nop): New function.
442 * read.h (s_nop): New prototype.
443 * write.c (cvt_frag_to_fill): Handle rs_space_nop and
444 rs_fill_nop.
445 (md_generate_nops): New function.
446 (relax_segment): Likewise.
447 (write_contents): Use md_generate_nops for rs_fill_nop.
448 * config/tc-i386.c (alt64_11): New.
449 (alt64_patt): Likewise.
450 (md_convert_frag): Handle rs_space_nop.
451 (i386_output_nops): New function.
452 (i386_generate_nops): Likewise.
453 (i386_align_code): Call i386_output_nops.
454 * config/tc-i386.h (i386_generate_nops): New.
455 (md_generate_nops): Likewise.
456 * doc/as.texinfo: Document .nop directive.
457 * testsuite/gas/i386/i386.exp: Run .nop directive tests.
458 * testsuite/gas/i386/nop-1.d: New file.
459 * testsuite/gas/i386/nop-1.s: Likewise.
460 * testsuite/gas/i386/nop-2.d: Likewise.
461 * testsuite/gas/i386/nop-2.s: Likewise.
462 * testsuite/gas/i386/nop-3.d: Likewise.
463 * testsuite/gas/i386/nop-3.s: Likewise.
464 * testsuite/gas/i386/nop-4.d: Likewise.
465 * testsuite/gas/i386/nop-4.s: Likewise.
466 * testsuite/gas/i386/nop-5.d: Likewise.
467 * testsuite/gas/i386/nop-5.s: Likewise.
468 * testsuite/gas/i386/nop-6.d: Likewise.
469 * testsuite/gas/i386/nop-6.s: Likewise.
470 * testsuite/gas/i386/nop-bad-1.l: Likewise.
471 * testsuite/gas/i386/nop-bad-1.s: Likewise.
472 * testsuite/gas/i386/x86-64-nop-1.d: Likewise.
473 * testsuite/gas/i386/x86-64-nop-2.d: Likewise.
474 * testsuite/gas/i386/x86-64-nop-3.d: Likewise.
475 * testsuite/gas/i386/x86-64-nop-4.d: Likewise.
476 * testsuite/gas/i386/x86-64-nop-5.d: Likewise.
477 * testsuite/gas/i386/x86-64-nop-6.d: Likewise.
478
479 2018-02-15 Tamar Christina <tamar.christina@arm.com>
480
481 * config/tc-arm.c (cpu_arch_ver): Renumber ARM_ARCH_V8_4A.
482 * testsuite/gas/arm/attr-march-armv8_4-a.d: New.
483
484 2018-02-13 Max Filippov <jcmvbkbc@gmail.com>
485
486 * config/tc-xtensa.c (xg_find_best_trampoline): Skip trampoline
487 frag that contains source address.
488
489 2018-02-13 Nick Clifton <nickc@redhat.com>
490
491 PR 22773
492 * config/tc-arm.c (md_apply_fix): Test Rn field of Thumb ORR
493 instruction before assuming that it is a MOV instruction.
494 * testsuite/gas/arm/pr22773.s: New test.
495 * testsuite/gas/arm/pr22773.d: New test driver.
496 * testsuite/gas/arm/pr22773.l: New expected output.
497
498 2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
499
500 PR gas/22791
501 * config/tc-i386.c (need_plt32_p): New function.
502 (output_jump): Generate BFD_RELOC_X86_64_PLT32 if possible.
503 (md_estimate_size_before_relax): Likewise.
504 * testsuite/gas/i386/reloc64.d: Updated.
505 * testsuite/gas/i386/x86-64-jump.d: Likewise.
506 * testsuite/gas/i386/x86-64-mpx-branch-1.d: Likewise.
507 * testsuite/gas/i386/x86-64-mpx-branch-2.d: Likewise.
508 * testsuite/gas/i386/x86-64-relax-2.d: Likewise.
509 * testsuite/gas/i386/x86-64-relax-3.d: Likewise.
510 * testsuite/gas/i386/ilp32/reloc64.d: Likewise.
511 * testsuite/gas/i386/ilp32/x86-64-branch.d: Likewise.
512
513 2018-02-13 Maciej W. Rozycki <macro@mips.com>
514
515 * testsuite/gas/mips/loongson-3a-2.d: Rename test.
516
517 2018-02-13 Nick Clifton <nickc@redhat.com>
518
519 PR 22823
520 * config/obj-elf.c (elf_pseudo_table): Remove now redundant
521 casts.
522 (obj_elf_vtable_inherit): Rename to obj_elf_get_vtable_inherit.
523 (obj_elf_vtable_inherit): New stub function that calls
524 obj_elf_get_vtable_inherit.
525 (obj_elf_vtable_entry): Rename to obj_elf_get_vtable_entry.
526 (obj_elf_vtable_entry): New stub function that calls
527 obj_elf_get_vtable_entry.
528 * config/obj-elf.h (obj_elf_vtable_inherit): Update prototype.
529 (obj_elf_vtable_entry) Likewise.
530 (obj_elf_get_vtable_inherit) Likewise.
531 (obj_elf_get_vtable_entry) Likewise.
532 * config/tc-arm.c (md_pseudo_table): Remove now redundant cast.
533 * config/tc-i386c (md_pseudo_table): Likewise.
534 * config/tc-hppa.c (pa_vtable_entry): Call
535 obj_elf_get_vtable_entry.
536 (pa_vtable_inherit): Call obj_elf_get_vtable_inherit.
537 * config/tc-mips.c (s_mips_file): Replace call to dwarf2_get_file
538 with call to dwarf2_get_filename.
539 * dwarf2dbg.c (dwarf2_directive_file): Rename to
540 dwarf2_directive_filename.
541 (dwarf2_directive_file): New stub function that calls
542 dwarf2_directive_filename.
543 * dwarf2dbg.h: Prototype dwarf2_directive_filename.
544
545 2018-02-12 Maciej W. Rozycki <macro@mips.com>
546
547 * testsuite/gas/mips/reginfo-2-n32.d: Add `--no-pad-sections' to
548 `as' flags.
549
550 2018-02-12 Henry Wong <henry@stuffedcow.net>
551
552 * testsuite/gas/mips/r6.d: Update for "sigrie" encoding fix.
553 * testsuite/gas/mips/r6-n32.d: Likewise.
554 * testsuite/gas/mips/r6-n64.d: Likewise.
555
556 2018-02-12 Nick Clifton <nickc@redhat.com>
557
558 * po/ru.po: Updated Russian translation.
559
560 2018-02-08 Alan Modra <amodra@gmail.com>
561
562 PR 22819
563 * config/tc-ppc.c (md_assemble): Rewrite insn alignment checking.
564 (ppc_frag_check): Likewise.
565 * testsuite/gas/ppc/misalign.d,
566 * testsuite/gas/ppc/misalign.l,
567 * testsuite/gas/ppc/misalign.s: New test.
568 * testsuite/gas/ppc/misalign2.d,
569 * testsuite/gas/ppc/misalign2.s: New test.
570 * testsuite/gas/ppc/ppc.exp: Run them.
571
572 2018-02-05 Maciej W. Rozycki <macro@mips.com>
573
574 * config/tc-riscv.c (riscv_handle_implicit_zero_offset): Rename
575 `expr' parameter to `ep'.
576
577 2018-02-05 Maciej W. Rozycki <macro@mips.com>
578
579 * testsuite/gas/mips/reginfo-2.d: New test.
580 * testsuite/gas/mips/reginfo-2-n32.d: New test.
581 * testsuite/gas/mips/reginfo-2.l: New test stderr output.
582 * testsuite/gas/mips/reginfo-2.s: New test source.
583 * testsuite/gas/mips/mips.exp: Run the new tests.
584
585 2018-02-05 Nick Clifton <nickc@redhat.com>
586
587 * po/ru.po: Updated Russian translation.
588
589 2018-01-31 Alan Modra <amodra@gmail.com>
590
591 PR 22714
592 * app.c (last_char): New static var.
593 (struct app_save): Add last_char field.
594 (app_push, app_pop): Handle it.
595 (do_scrub_chars): Use last_char in test for "\@". Set last_char.
596
597 2018-01-29 Eric Botcazou <ebotcazou@adacore.com>
598
599 PR gas/22738
600 * config/tc-sparc.h (sparc_mach): Declare.
601 (TARGET_MACH): Define to above.
602 * config/tc-sparc.c (sparc_mach): New function.
603 (sparc_md_end): Minor tweak.
604
605 2018-01-29 Nick Clifton <nickc@redhat.com>
606
607 * po/ru.po: Updated Russian translation.
608
609 2018-01-26 Maciej W. Rozycki <macro@mips.com>
610
611 * configure.tgt: Use generic emulation for `mips-*-windiss',
612 overriding the blanket choice made for `*-*-windiss'.
613
614 2018-01-26 Maciej W. Rozycki <macro@mips.com>
615
616 * configure.tgt: Use `mips-*-sysv4*' rather than
617 `mips-*-sysv4*MP*'.
618
619 2018-01-24 Renlin Li <renlin.li@arm.com>
620
621 * config/tc-aarch64.c (reloc_table): add entries for
622 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
623 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
624 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
625 BFD_RELOC_AARCH64_MOVW_PREL_G3.
626 (process_movw_reloc_info): Supports newly added MOVW_PREL relocations.
627 (md_apply_fix): Likewise
628 * testsuite/gas/aarch64/prel_g0.s: New.
629 * testsuite/gas/aarch64/prel_g0.d: New.
630 * testsuite/gas/aarch64/prel_g0_nc.s: New.
631 * testsuite/gas/aarch64/prel_g0_nc.d: New.
632 * testsuite/gas/aarch64/prel_g1.s: New.
633 * testsuite/gas/aarch64/prel_g1.d: New.
634 * testsuite/gas/aarch64/prel_g1_nc.s: New.
635 * testsuite/gas/aarch64/prel_g1_nc.d: New.
636 * testsuite/gas/aarch64/prel_g2.s: New.
637 * testsuite/gas/aarch64/prel_g2.d: New.
638 * testsuite/gas/aarch64/prel_g2_nc.s: New.
639 * testsuite/gas/aarch64/prel_g2_nc.d: New.
640 * testsuite/gas/aarch64/prel_g3.s: New.
641 * testsuite/gas/aarch64/prel_g3.d: New.
642
643 2018-01-23 Maciej W. Rozycki <macro@mips.com>
644
645 * configure.ac: Also set `mips_default_abi' to N32_ABI for
646 `mips64*-ps2-elf*'.
647 * configure: Regenerate.
648
649 2018-01-23 Maciej W. Rozycki <macro@mips.com>
650
651 * config/tc-mips.c (options): Remove OPTION_COMPAT_ARCH_BASE
652 enum value.
653
654 2018-01-23 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
655
656 * config/tc-i386.c (cpu_arch): Add .pconfig.
657 * doc/c-i386.texi: Document .pconfig.
658 * testsuite/gas/i386/i386.exp: Add PCONFIG tests.
659 * testsuite/gas/i386/pconfig-intel.d: New test.
660 * testsuite/gas/i386/pconfig.d: Likewise.
661 * testsuite/gas/i386/pconfig.s: Likewise.
662 * testsuite/gas/i386/x86-64-pconfig-intel.d: Likewise.
663 * testsuite/gas/i386/x86-64-pconfig.d: Likewise.
664 * testsuite/gas/i386/x86-64-pconfig.s: Likewise.
665
666 2018-01-23 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
667
668 * config/tc-i386.c (cpu_arch): Add .wbnoinvd.
669 * doc/c-i386.texi: Document .wbnoinvd.
670 * testsuite/gas/i386/i386.exp: Add WBNOINVD tests.
671 * testsuite/gas/i386/wbnoinvd-intel.d: New test.
672 * testsuite/gas/i386/wbnoinvd.d: Likewise.
673 * testsuite/gas/i386/wbnoinvd.s: Likewise.
674 * testsuite/gas/i386/x86-64-wbnoinvd-intel.d: Likewise.
675 * testsuite/gas/i386/x86-64-wbnoinvd.d: Likewise.
676 * testsuite/gas/i386/x86-64-wbnoinvd.s: Likewise.
677
678 2018-01-23 Maciej W. Rozycki <macro@mips.com>
679
680 * config/tc-mips.c (md_show_usage): Correctly indicate the
681 configuration-specific default ABI.
682
683 2018-01-23 Maciej W. Rozycki <macro@mips.com>
684
685 * config/tc-mips.c (md_show_usage): Report `-mmips16e2' and
686 `-mno-mips16e2' options.
687
688 2018-01-22 Maciej W. Rozycki <macro@mips.com>
689
690 * doc/c-mips.texi (MIPS ASE Instruction Generation Overrides):
691 Correct syntax of the `.set nomips16e2' directive description.
692
693 2018-01-22 Oleg Endo <olegendo@gcc.gnu.org>
694
695 PR 22737
696 * config/tc-rx.c (rx_start_line): Handle escaped double-quote character.
697 * testsuite/gas/rx/pr22737.s: New test.
698 * testsuite/gas/rx/pr22737.d: Likewise.
699 * testsuite/gas/rx/rx.exp: Run the new test.
700
701 2018-01-19 Thomas Preud'homme <thomas.preudhomme@arm.com>
702
703 * config/tc-arm.c (ToC macro): Remove spurious comment.
704 (ToU macro): Likewise.
705
706 2018-01-17 Jim Wilson <jimw@sifive.com>
707
708 * config/tc-riscv.c (validate_riscv_insn) <'z'>: New.
709 (riscv_ip) <'z'>: New.
710
711 2018-01-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
712
713 * config/tc-i386.c (cpu_arch): Delete .cet. Add .ibt, .shstk.
714 (cpu_noarch): Add noibt, noshstk.
715 (parse_insn): Change cpucet to cpuibt.
716 * doc/c-i386.texi: Delete .cet. Add .ibt, .shstk.
717 * testsuite/gas/i386/cet-ibt-inval.l: New test.
718 * testsuite/gas/i386/cet-ibt-inval.s: Likewise.
719 * testsuite/gas/i386/cet-shstk-inval.l: Likewise.
720 * testsuite/gas/i386/cet-shstk-inval.s: Likewise.
721 * testsuite/gas/i386/x86-64-cet-ibt-inval.l: Likewise.
722 * testsuite/gas/i386/x86-64-cet-ibt-inval.s: Likewise.
723 * testsuite/gas/i386/x86-64-cet-shstk-inval.l: Likewise.
724 * testsuite/gas/i386/x86-64-cet-shstk-inval.s: Likewise.
725
726 2018-01-16 Nick Clifton <nickc@redhat.com>
727
728 * po/fr.po: Updated French translation.
729
730 2018-01-15 Jim Wilson <jimw@sifive.com>
731
732 * testsuite/gas/riscv/c-zero-imm.s: Test addi that compresses to c.nop.
733 * testsuite/gas/riscv/c-zero-imm.d: Likewise.
734
735 2018-01-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
736
737 * config/tc-arm.c (ToC): Define macro.
738 (ToU): Likewise.
739 (insns): Make use of above macros for new instructions introduced in
740 Armv8-M.
741
742 2018-01-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
743
744 * config/tc-arm.c (insns): Make blxns, bxns, tt, ttt, tta, ttat, vlldm
745 and vlstm conditionally executable and reindent parameters.
746 * testsuite/gas/arm/archv8m-cmse-main.s: Add conditional version of
747 aforementionned instructions.
748
749 2018-01-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
750
751 * config/tc-arm.c (it_fsm_post_encode): Do not warn if targeting M
752 profile architecture or if in autodetection mode. Clarify that
753 deprecation is for performance reason and concerns Armv8-A and Armv8-R.
754 * testsuite/gas/arm/armv8-ar-bad.l: Adapt to new IT deprecation warning
755 message.
756 * testsuite/gas/arm/armv8-ar-it-bad.l: Likewise.
757 * testsuite/gas/arm/sp-pc-validations-bad-t-v8a.l: Likewise.
758 * testsuite/gas/arm/udf.l: Likewise.
759 * testsuite/gas/arm/udf.d: Assemble for Armv8-A explicitely.
760
761 2018-01-15 Nick Clifton <nickc@redhat.com>
762
763 * po/uk.po: Updated Ukranian translation.
764
765 2018-01-13 Nick Clifton <nickc@redhat.com>
766
767 * po/gas.pot: Regenerated.
768
769 2018-01-13 Nick Clifton <nickc@redhat.com>
770
771 * configure: Regenerate.
772
773 2018-01-13 Nick Clifton <nickc@redhat.com>
774
775 2.30 branch created.
776 * NEWS: Add marker for 2.30.
777
778 2018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
779
780 * gas/config/aout_gnu.h (USE_EXTENDED_RELOC): Explicitly
781 define to 0 and 1. Remove a dangling reference to "AMD 29000"
782 in a comment.
783
784 2018-01-11 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
785
786 * testsuite/i386/avx512_4fmaps_vl-warn.l: Likewise.
787 * testsuite/i386/avx512_4fmaps_vl-warn.s: Likewise.
788 * testsuite/i386/avx512_4fmaps_vl.d: Likewise.
789 * testsuite/i386/avx512_4fmaps_vl.s: Likewise.
790 * testsuite/i386/avx512_4vnniw_vl-intel.d: Likewise.
791 * testsuite/i386/avx512_4vnniw_vl.d: Likewise.
792 * testsuite/i386/avx512_4vnniw_vl.s: Likewise.
793 * testsuite/i386/i386.exp: Removed _vl tests for 4fmaps an 4vnniw
794 tests.
795 * testsuite/i386/x86-64-avx512_4fmaps_vl-intel.d: Removed.
796 * testsuite/i386/x86-64-avx512_4fmaps_vl-warn.l: Likewise.
797 * testsuite/i386/x86-64-avx512_4fmaps_vl-warn.s: Likewise.
798 * testsuite/i386/x86-64-avx512_4fmaps_vl.d: Likewise.
799 * testsuite/i386/x86-64-avx512_4fmaps_vl.s: Likewise.
800 * testsuite/i386/x86-64-avx512_4vnniw_vl-intel.d: Likewise.
801 * testsuite/i386/x86-64-avx512_4vnniw_vl.d: Likewise.
802 * testsuite/i386/x86-64-avx512_4vnniw_vl.s: Likewise.
803
804 2018-01-11 Alan Modra <amodra@gmail.com>
805
806 * config/tc-arm.c (aeabi_set_public_attributes): Avoid false
807 positive "‘profile’ may be used uninitialized".
808
809 2018-01-10 Jan Beulich <jbeulich@suse.com>
810
811 * testsuite/gas/i386/avx512_4fmaps.s,
812 testsuite/gas/i386/avx512_4fmaps_vl.s,
813 testsuite/gas/i386/x86-64-avx512_4fmaps.s,
814 testsuite/gas/i386/x86-64-avx512_4fmaps_vl.s: Actually test
815 Disp8 forms (and the transition happening at the right
816 boundary).
817 * testsuite/gas/i386/avx512_4fmaps.d,
818 testsuite/gas/i386/avx512_4fmaps-intel.d,
819 testsuite/gas/i386/avx512_4fmaps_vl.d,
820 testsuite/gas/i386/avx512_4fmaps_vl-intel.d,
821 testsuite/gas/i386/x86-64-avx512_4fmaps.d,
822 testsuite/gas/i386/x86-64-avx512_4fmaps-intel.d,
823 testsuite/gas/i386/x86-64-avx512_4fmaps_vl.d,
824 testsuite/gas/i386/x86-64-avx512_4fmaps_vl-intel.d: Adjust
825 expectations.
826
827 2018-01-10 Jan Beulich <jbeulich@suse.com>
828
829 * testsuite/gas/i386/avx512bw.s,
830 testsuite/gas/i386/avx512bw_vl.s: Add VPCMP* tests with memory
831 operands.
832 * testsuite/gas/i386/avx512bw-intel.d,
833 testsuite/gas/i386/avx512bw.d,
834 testsuite/gas/i386/avx512bw_vl-intel.d.
835 testsuite/gas/i386/avx512bw_vl.d: Adjust expectations.
836
837 2018-01-09 Jim Wilson <jimw@sifive.com>
838
839 * testsuite/gas/riscv/auipc-x0.d: New.
840 * testsuite/gas/riscv/auipc-x0.s: New.
841
842 2018-01-09 James Greenhalgh <james.greenhalgh@arm.com>
843
844 * config/tc-arm.c (insns): Add csdb, enable for Armv3 and above
845 in Arm execution state, and Armv6T2 and above in Thumb execution
846 state.
847 * testsuite/gas/arm/csdb.s: New.
848 * testsuite/gas/arm/csdb.d: New.
849 * testsuite/gas/arm/thumb2_it_bad.l: Add csdb.
850 * testsuite/gas/arm/thumb2_it_bad.s: Add csdb.
851
852 2018-01-09 James Greenhalgh <james.greenhalgh@arm.com>
853
854 * testsuite/gas/aarch64/system.d: Update expected results to expect
855 CSDB for hint 0x14.
856
857 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
858
859 PR gas/22681
860 * testsuite/gas/i386/i386.exp: Run x86-64-movd and
861 x86-64-movd-intel.
862 * testsuite/gas/i386/x86-64-movd-intel.d: New file.
863 * testsuite/gas/i386/x86-64-movd.d: Likewise.
864 * testsuite/gas/i386/x86-64-movd.s: Likewise.
865
866 2018-01-08 Nick Clifton <nickc@redhat.com>
867
868 PR 22553
869 * doc/c-i386.texi (i386-Directives): Document the .largecomm
870 directive.
871
872 2018-01-04 Jim Wilson <jimw@sifive.com>
873
874 * testsuite/gas/riscv/priv-reg.s: Add missing stval and mtval.
875 * testsuite/gas/riscv/priv-reg.d: Likewise.
876
877 2018-01-03 Alan Modra <amodra@gmail.com>
878
879 Update year range in copyright notice of all files.
880
881 2018-01-02 Nick Clifton <nickc@redhat.com>
882
883 PR 18119
884 * config/tc-arm.c (do_mrs): Fix test of bits 16-19 in non-banked
885 version of ARM MRS instruction.
886
887 For older changes see ChangeLog-2017
888 \f
889 Copyright (C) 2018 Free Software Foundation, Inc.
890
891 Copying and distribution of this file, with or without modification,
892 are permitted in any medium without royalty provided the copyright
893 notice and this notice are preserved.
894
895 Local Variables:
896 mode: change-log
897 left-margin: 8
898 fill-column: 74
899 version-control: never
900 End:
This page took 0.055793 seconds and 5 git commands to generate.