1 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
3 * NEWS: Mention XSAVE. Change CLMUL to PCLMUL.
5 * config/tc-i386.c (cpu_arch): Add .pclmul.
6 (md_show_usage): Replace clmul with pclmul.
7 * doc/c-i386.texi: Likewise.
9 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
11 * NEWS: Mention AES, CLMUL, AVX/FMA and -msse2avx.
13 * doc/c-i386.texi: Add avx, aes, clmul and fma to -march=.
14 Document -msse2avx, .avx, .aes, .clmul and .fma.
16 * config/tc-i386.c (YMMWORD_MNEM_SUFFIX): New.
17 (vex_prefix): Likewise.
19 (CPU_FLAGS_ARCH_MATCH): Likewise.
20 (CPU_FLAGS_64BIT_MATCH): Likewise.
21 (CPU_FLAGS_32BIT_MATCH): Likewise.
22 (CPU_FLAGS_PERFECT_MATCH): Likewise.
25 (fits_in_imm4): Likewise.
26 (build_vex_prefix): Likewise.
27 (VEX_check_operands): Likewise.
28 (bad_implicit_operand): Likewise.
29 (OPTION_MSSE2AVX): Likewise.
30 (T_YMMWORD): Likewise.
31 (_i386_insn): Add vex.
32 (cpu_arch): Add .avx, .aes, .clmul and .fma.
33 (cpu_flags_match): Changed to take a pointer to const template.
34 Enable encoding SSE instructions with VEX prefix for -msse2avx.
35 (match_mem_size): Also check ymmword.
36 (operand_type_match): Clear ymmword.
37 (md_begin): Allow '_' in mnemonic.
38 (type_names): Add OPERAND_TYPE_VEX_IMM4.
39 (process_immext): Update assert.
40 (md_assemble): Don't call process_immext if sse2avx and immext
41 are true. Call build_vex_prefix if vex is true.
42 (parse_insn): Updated for cpu_flags_match.
43 (swap_operands): Handle 5 operands.
44 (match_template): Handle 5 operands. Updated for cpu_flags_match.
45 Check regymm. Call VEX_check_operands. Handle YMMWORD_MNEM_SUFFIX.
46 (process_suffix): Handle YMMWORD_MNEM_SUFFIX.
47 (check_byte_reg): Check regymm.
48 (process_operands): Duplicate the destination register for
50 (build_modrm_byte): Updated for instructions with VEX encoding.
51 (output_insn): Output VEX prefix if needed.
52 (md_longopts): Add msse2avx.
53 (md_parse_option): Handle OPTION_MSSE2AVX.
54 (md_show_usage): Add avx, aes, clmul, fma and -msse2avx.
55 (intel_e09): Support YMMWORD.
56 (intel_e11): Likewise.
57 (intel_get_token): Likewise.
59 2008-03-28 Eric B. Weddington <eric.weddington@atmel.com>
61 * config/tc-avr.c (mcu_types): Add attiny167.
62 * doc/c-avr.texi: Likewise.
64 2008-03-28 Eric B. Weddington <eric.weddington@atmel.com>
66 * config/tc-avr.c (mcu_types): Add atmega32u4.
67 * doc/c-avr.texi: Likewise.
69 2008-03-28 Eric B. Weddington <eric.weddington@atmel.com>
71 * config/tc-avr.c (mcu_types): Add atmega32c1.
72 * doc/c-avr.texi: Likewise.
74 2008-03-28 Paul Brook <paul@codesourcery.com>
76 * config/tc-arm.c (parse_neon_mov): Parse register before immediate
77 to avoid spurious symbols.
79 2008-03-28 Nathan Sidwell <nathan@codesourcery.com>
81 * config/tc-m68k.c (md_convert_frag_1): Replace as_fatal with
84 2008-03-27 Eric B. Weddington <eric.weddington@atmel.com>
86 * config/tc-avr.c (mcu_types): Add atmega32m1.
87 * doc/c-avr.texi: Likewise.
89 2008-03-27 Ineiev <ineiev@yahoo.co.uk>
91 * config/tc-arm.c (do_neon_cvt): Move variable declarations to
93 (do_neon_ext): Fix sign of comparison.
95 2008-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
97 From Jie Zhang <jie.zhang@analog.com>
98 * config/bfin-parse.y (asm_1): Check AREGS in comparison
99 instructions. And call yyerror when comparing PREG with
101 (check_macfunc_option): New.
102 (check_macfuncs): Check option by calling check_macfunc_option.
103 Fix comparison always true warnings. Both scalar instructions
104 of vector instruction must share the same mode option. Only allow
105 option mode at the end of the second instruction of the vector.
106 (asm_1): Check option by calling check_macfunc_option.
108 * config/bfin-parse.y (check_macfunc_option): Allow (IU)
109 option for multiply and multiply-accumulate to data register
111 (check_macfuncs): Don't check if accumulator matches the data register
113 (assign_macfunc): Check if accumulator matches the
114 data register in each rule that moves to the data
117 * config/tc-bfin.c (bfin_start_line_hook): Localize the labels
118 generated for LOOP_BEGIN and LOOP_END instructions.
119 (bfin_gen_loop): Likewise.
121 2008-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
123 * config/tc-s390.c (md_parse_option): z10 option added.
125 2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
127 * aclocal.m4: Regenerate.
128 * configure: Likewise.
129 * Makefile.in: Likewise.
130 * doc/Makefile.in: Likewise.
132 2008-03-17 Adrian Bunk <bunk@stusta.de>
135 * config/tc-hppa.c (is_same_frag): Delete.
137 2008-03-14 Sterling Augustine <sterling@tensilica.com>
139 * config/tc-xtensa.h (xtensa_relax_statesE): Update comment for
140 RELAX_LOOP_END_ADD_NOP.
142 2008-03-13 Evandro Menezes <evandro@yahoo.com>
145 * read.c (s_mexit): Warn if attempting to exit a macro when not
146 inside a macro definition.
148 2008-03-13 Alan Modra <amodra@bigpond.net.au>
150 * Makefile.am: Run "make dep-am".
151 * Makefile.in: Regenerate.
152 * configure: Regenerate.
154 2008-03-09 Paul Brook <paul@codesourcery.com>
156 * config/tc-arm.c (arm_cpu_option_table): Add cortex-a9.
157 * doc/c-arm.texi: Add cortex-a9.
159 2008-03-09 Paul Brook <paul@codesourcery.com>
161 * config/tc-arm.c (fpu_vfp_ext_d32): New vairable.
162 (parse_vfp_reg_list, encode_arm_vfp_reg): Use it.
163 (arm_option_cpu_value): Add vfpv3-d16, vfpv2 and vfpv3.
164 (aeabi_set_public_attributes): Handle Tag_VFP_arch=VFPV3-D16.
165 * doc/c-arm.texi: Document new ARM FPU variants.
167 2008-03-07 Paul Brook <paul@codesourcery.com>
169 * config/tc-arm.c (md_apply_fix): Use correct offset range.
171 2008-03-07 Alan Modra <amodra@bigpond.net.au>
173 * config/tc-ppc.c (ppc_setup_opcodes): Tidy. Add code to test
174 for strict ordering of powerpc_opcodes, but disable for now.
176 2008-03-04 Paul Brook <paul@codesourcery.com>
178 * config/tc-arm.c (arm_ext_barrier, arm_ext_msr): New.
179 (arm_ext_v7m): Rename...
180 (arm_ext_m): ... to this. Include v6-M.
181 (do_t_add_sub): Allow narrow low-reg non flag setting adds.
182 (do_t_mrs, do_t_msr, aeabi_set_public_attributes): Use arm_ext_m.
183 (md_assemble): Allow wide msr instructions.
184 (insns): Add classifications for v6-m instructions.
185 (arm_cpu_option_table): Add cortex-m1.
186 (arm_arch_option_table): Add armv6-m.
187 (cpu_arch): Add ARM_ARCH_V6M. Fix numbering of other v6 variants.
189 2008-03-03 Sterling Augustine <sterling@tensilica.com>
190 Bob Wilson <bob.wilson@acm.org>
192 * config/tc-xtensa.c (xtensa_num_pipe_stages): New.
193 (md_begin): Initialize it.
194 (resources_conflict): Use it.
196 2008-03-03 Sterling Augustine <sterling@tensilica.com>
198 * config/tc-xtensa.h (RELAX_XTENSA_NONE): New.
200 2008-03-03 Denys Vlasenko <vda.linux@googlemail.com>
201 H.J. Lu <hongjiu.lu@intel.com>
204 * read.c (pseudo_set): Don't allow global register symbol.
206 * symbols.c (S_SET_EXTERNAL): Don't allow register symbol
209 2008-03-03 H.J. Lu <hongjiu.lu@intel.com>
212 * write.c (write_object_file): Don't allow symbols which were
213 equated to register. Stop if there is an error.
215 2008-03-01 Alan Modra <amodra@bigpond.net.au>
217 * config/tc-ppc.h (struct _ppc_fix_extra): New.
219 (TC_FIX_TYPE, TC_INIT_FIX_DATA): Define.
220 * config/tc-ppc.c (ppu_cpu): Make global.
221 (ppc_insert_operand): Add ppu_cpu parameter.
222 (md_assemble): Adjust for above change.
223 (md_apply_fix): Pass tc_fix_data.ppc_cpu to ppc_insert_operand.
225 2008-02-22 Nick Clifton <nickc@redhat.com>
227 * config/tc-arm.c (do_bx): Only test EF_ARM_EABI_VERSION on ELF
228 targeted ARM ports, otherwise just skip generating the reloc.
230 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
232 * doc/c-i386.texi: Update -march= and .arch.
234 2008-02-18 Nick Clifton <nickc@redhat.com>
236 * config/tc-mn10300.c (has_known_symbol_location): New function.
237 Do not regard weak symbols as having a known location.
238 (md_estimate_size_before_relax): Use new function.
239 (md_pcrel_from): Do not compute a pcrel against a weak symbol.
241 2008-02-18 Jan Beulich <jbeulich@novell.com>
243 * config/tc-i386.c (match_template): Disallow 'l' suffix when
244 currently selected CPU has no 32-bit support.
245 (parse_real_register): Do not return registers not available on
246 currently selected CPU.
248 2008-02-16 H.J. Lu <hongjiu.lu@intel.com>
250 * config/tc-i386.c (process_immext): Fix format.
252 2008-02-16 H.J. Lu <hongjiu.lu@intel.com>
254 * config/tc-i386.c (inoutportreg): New.
255 (process_immext): New.
256 (md_assemble): Use it.
257 (update_imm): Use imm16 and imm32s.
258 (i386_att_operand): Use inoutportreg.
260 2008-02-14 H.J. Lu <hongjiu.lu@intel.com>
262 * config/tc-i386.c (operand_type_all_zero): New.
263 (operand_type_set): Likewise.
264 (operand_type_equal): Likewise.
265 (cpu_flags_all_zero): Likewise.
266 (cpu_flags_set): Likewise.
267 (cpu_flags_equal): Likewise.
268 (UINTS_ALL_ZERO): Removed.
269 (UINTS_SET): Likewise.
270 (UINTS_CLEAR): Likewise.
271 (UINTS_EQUAL): Likewise.
272 (cpu_flags_match): Updated.
273 (smallest_imm_type): Likewise.
274 (set_cpu_arch): Likewise.
275 (md_assemble): Likewise.
276 (optimize_imm): Likewise.
277 (match_template): Likewise.
278 (process_suffix): Likewise.
279 (update_imm): Likewise.
280 (process_drex): Likewise.
281 (process_operands): Likewise.
282 (build_modrm_byte): Likewise.
283 (i386_immediate): Likewise.
284 (i386_displacement): Likewise.
285 (i386_att_operand): Likewise.
286 (parse_real_register): Likewise.
287 (md_parse_option): Likewise.
288 (i386_target_format): Likewise.
290 2008-02-14 Dimitry Andric <dimitry@andric.com>
293 * config/tc-arm.c (s_arm_unwind_save): Advance the input line
294 pointer past the comma after parsing a floating point register
297 2008-02-14 Hakan Ardo <hakan@debian.org>
300 * config/tc-avr.c (mcu_types): Change the ISA tyoe of the attiny26
302 (avr_operand): Disallow post-increment addressing in the lpm
303 instruction for the attiny26.
305 2008-02-13 Jan Beulich <jbeulich@novell.com>
307 * config/tc-i386.c (parse_real_register): Don't return 'FLAT'
308 if not in Intel mode.
309 (i386_intel_operand): Ignore segment overrides in immediate and
311 (intel_e11): Range-check i.mem_operands before use as array
312 index. Filter out FLAT for uses other than as segment override.
313 (intel_get_token): Remove broken promotion of "FLAT:" to mean
316 2008-02-13 Jan Beulich <jbeulich@novell.com>
318 * config/tc-i386.c (intel_e09): Also special-case 'bound'.
320 2008-02-13 Jan Beulich <jbeulich@novell.com>
322 * config/tc-i386.c (allow_pseudo_reg): New.
323 (parse_real_register): Check for NULL just once. Allow all
324 register table entries when allow_pseudo_reg is non-zero.
325 Don't allow any registers without type when allow_pseudo_reg
327 (tc_x86_regname_to_dw2regnum): Replace with ...
328 (tc_x86_parse_to_dw2regnum): ... this.
329 (tc_x86_frame_initial_instructions): Adjust for above change.
330 * config/tc-i386.h (tc_regname_to_dw2regnum): Remove.
331 (tc_parse_to_dw2regnum): New.
332 (tc_x86_regname_to_dw2regnum): Replace with ...
333 (tc_x86_parse_to_dw2regnum): ... this.
334 * dw2gencfi.c (tc_parse_to_dw2regnum): New, broken out of ...
335 (cfi_parse_reg): ... this. Use tc_parse_to_dw2regnum. Adjust
338 2008-02-12 Nick Clifton <nickc@redhat.com>
340 * config/tc-tic4x.c (tic4x_insn_insert): Add const qualifier to
342 (tic4x_insn_add): Likewise.
343 (md_begin): Drop cast that was discarding a const qualifier.
344 * config/tc-d30v.c (get_reloc): Add const qualifier to op
346 (build_insn): Drop cast that was discarding a const qualifier.
348 2008-02-11 H.J. Lu <hongjiu.lu@intel.com>
350 * config/tc-i386.c (cpu_arch): Add .xsave.
351 (md_show_usage): Add .xsave.
353 * doc/c-i386.texi: Add xsave to -march=.
355 2008-02-07 Alan Modra <amodra@bigpond.net.au>
357 * read.c (s_weakref): Don't pass unadorned NULL to concat.
358 * config/tc-i386.c (set_cpu_arch, md_parse_option): Likewise.
360 2008-02-05 Sterling Augustine <sterling@tensilica.com>
362 * config/tc-xtensa.c (relax_frag_immed): Change internal consistency
363 checks into assertions. When relaxation produces an operation that
364 does not fit in the current FLIX instruction, make sure that the
365 operation is relaxed as needed to account for being placed following
366 the current instruction.
368 2008-02-04 H.J. Lu <hongjiu.lu@intel.com>
371 * configure: Regenerated.
373 2008-02-04 Adam Nemet <anemet@caviumnetworks.com>
375 * config/tc-mips.c (mips_cpu_info_table): Add Octeon.
377 2008-01-31 Marc Gauthier <marc@tensilica.com>
379 * configure.tgt (xtensa*-*-*): Recognize processor variants.
381 2008-01-25 Kai Tietz <kai.tietz@onevision.com>
383 * read.c: (emit_expr): Correct for mingw use of printf size
386 2008-01-24 Bob Wilson <bob.wilson@acm.org>
388 * doc/c-xtensa.texi (Xtensa Syntax): Clarify handling of opcodes that
389 can only be encoded in FLIX instructions but are not specified as such.
390 (Xtensa Automatic Alignment): Remove obsolete comment about debugging
393 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
395 * NEWS: Mention new command line options for x86 targets.
397 2008-01-23 H.J. Lu <hongjiu.lu@intel.com>
399 * config/tc-i386.c (md_show_usage): Replace tabs with spaces.
401 2008-01-23 Eric B. Weddington <eric.weddington@atmel.com>
403 * config/tc-avr.c (mcu_types): Change opcode set for at86rf401.
405 2008-01-23 H.J. Lu <hongjiu.lu@intel.com>
407 * config/tc-i386.c (md_show_usage): Show more processors for
410 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
412 * config/tc-i386.c (i386_target_format): Remove cpummx2.
414 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
416 * config/tc-i386.c (XXX_PREFIX): Moved from tc-i386.h.
417 (XXX_MNEM_SUFFIX): Likewise.
418 (END_OF_INSN): Likewise.
419 (templates): Likewise.
420 (modrm_byte): Likewise.
421 (rex_byte): Likewise.
422 (DREX_XXX): Likewise.
423 (drex_byte): Likewise.
424 (sib_byte): Likewise.
425 (processor_type): Likewise.
426 (arch_entry): Likewise.
427 (cpu_sub_arch_name): Remove const.
428 (cpu_arch): Add .vmx and .smx.
429 (set_cpu_arch): Append cpu_sub_arch_name.
430 (md_parse_option): Support -march=CPU[,+EXTENSION...].
431 (md_show_usage): Updated.
433 * config/tc-i386.h (XXX_PREFIX): Moved to tc-i386.c.
434 (XXX_MNEM_SUFFIX): Likewise.
435 (END_OF_INSN): Likewise.
436 (templates): Likewise.
437 (modrm_byte): Likewise.
438 (rex_byte): Likewise.
439 (DREX_XXX): Likewise.
440 (drex_byte): Likewise.
441 (sib_byte): Likewise.
442 (processor_type): Likewise.
443 (arch_entry): Likewise.
445 * doc/as.texinfo: Update i386 -march option.
447 * doc/c-i386.texi: Update -march= for ISA.
449 2008-01-18 Bob Wilson <bob.wilson@acm.org>
451 * config/tc-xtensa.c (xtensa_leb128): New function.
452 (md_pseudo_table): Use it for sleb128 and uleb128.
453 (is_leb128_expr): New internal flag.
454 (xtensa_symbol_new_hook): Check new flag.
456 2008-01-16 Eric B. Weddington <eric.weddington@atmel.com>
458 * config/tc-avr.c (mcu_types): Change opcode set for avr3,
459 at90usb82, at90usb162.
460 * doc/c-avr.texi: Change architecture grouping for at90usb82,
462 These changes support the new avr35 architecture group in gcc.
464 2008-01-15 H.J. Lu <hongjiu.lu@intel.com>
466 * config/tc-i386.c (md_assemble): Also zap movzx and movsx
467 suffix for AT&T syntax.
469 2008-01-14 H.J. Lu <hongjiu.lu@intel.com>
471 * config/tc-i386.c (match_reg_size): New.
472 (match_mem_size): Likewise.
473 (operand_size_match): Likewise.
474 (operand_type_match): Also clear all size fields.
475 (match_template): Skip Intel syntax when in AT&T syntax.
476 Call operand_size_match to check operand size.
477 (i386_att_operand): Set the mem field to 1 for memory
479 (i386_intel_operand): Likewise.
481 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
484 * config/tc-i386.c (_i386_insn): Update comment.
485 (operand_type_match): Also clear unspecified.
486 (operand_type_register_match): Likewise.
487 (parse_operands): Initialize unspecified.
488 (i386_intel_operand): Likewise.
489 (match_template): Check memory and accumulator operand size.
490 (i386_att_operand): Clear unspecified on register operand.
491 (intel_e11): Likewise.
492 (intel_e09): Set operand size and clean unspecified for
495 2008-01-11 Andreas Schwab <schwab@suse.de>
497 * read.c (s_space): Declare `repeat' as offsetT.
499 2008-01-10 H.J. Lu <hongjiu.lu@intel.com>
501 * config/tc-i386.c (match_template): Check processor support
504 2008-01-10 H.J. Lu <hongjiu.lu@intel.com>
506 * config/tc-i386.c (match_template): Continue if processor
509 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
511 * config/tc-ia64.c (ia64_convert_frag): Zero-initialize room for
512 unwind personality function address.
514 2008-01-09 Bob Wilson <bob.wilson@acm.org>
516 * dwarf2dbg.c (out_sleb128): Delete.
517 (size_fixed_inc_line_addr, emit_fixed_inc_line_addr): New.
518 (out_fixed_inc_line_addr): Delete.
519 (relax_inc_line_addr, dwarf2dbg_estimate_size_before_relax): Call new
520 size_fixed_inc_line_addr if DWARF2_USE_FIXED_ADVANCE_PC is set.
521 (dwarf2dbg_convert_frag): Likewise for emit_fixed_inc_line_addr.
522 (process_entries): Remove calls to out_fixed_inc_line_addr. When
523 DWARF2_USE_FIXED_ADVANCE_PC is set, call relax_inc_line_addr.
524 * read.h (emit_expr_fix): New prototype.
525 * read.c (emit_expr): Move code to emit_expr_fix and use it here.
526 (emit_expr_fix): New.
528 2008-01-09 H.J. Lu <hongjiu.lu@intel.com>
530 * config/tc-i386.c (match_template): Check register size
531 only when size of operands can be encoded the canonical way.
533 2008-01-08 H.J. Lu <hongjiu.lu@intel.com>
535 * config/tc-i386.c (i386_operand): Renamed to ...
536 (i386_att_operand): This.
537 (parse_operands): Updated.
539 2008-01-05 H.J. Lu <hongjiu.lu@intel.com>
541 * doc/c-i386.texi: Update .att_mnemonic and .intel_mnemonic.
543 * config/tc-i386.c (set_intel_mnemonic): Set intel_mnemonic
545 (md_assemble): Remove Intel mode workaround.
546 (match_template): Check support for old gcc, AT&T mnemonic
548 (md_parse_option): Don't set intel_mnemonic to 0 for
551 2008-01-04 H.J. Lu <hongjiu.lu@intel.com>
553 * config/tc-i386.h: Update copyright to 2008.
555 2008-01-04 Nick Clifton <nickc@redhat.com>
557 * config/tc-ppc.c (parse_cpu): Preserve the settings of the
558 PPC_OPCODE_ALTIVEC and PPC_OPCODE_SPE flags.
560 2008-01-03 H.J. Lu <hongjiu.lu@intel.com>
562 * config/tc-i386.c (md_assemble): Use !intel_mnemonic instead
565 2008-01-03 H.J. Lu <hongjiu.lu@intel.com>
567 * gas/config/tc-i386.c (cpu_arch_flags_not): Removed.
568 (cpu_flags_not): Likewise.
569 (cpu_flags_match): Updated to check 64bit and arch.
570 (set_code_flag): Remove cpu_arch_flags_not.
571 (set_16bit_gcc_code_flag): Likewise.
572 (set_cpu_arch): Likewise.
573 (md_begin): Likewise.
574 (parse_insn): Call cpu_flags_match to check 64bit and arch.
575 (match_template): Likewise.
577 2008-01-03 Jakub Jelinek <jakub@redhat.com>
579 * config/tc-i386.c (process_drex): Initialize modrm_reg and
580 modrm_regmem to 0 instead of None.
582 2008-01-03 H.J. Lu <hongjiu.lu@intel.com>
584 * config/tc-i386.c (match_template): Use the xmmword field
587 2008-01-02 H.J. Lu <hongjiu.lu@intel.com>
589 * config/tc-i386.c (process_suffix): Fix a typo.
591 2008-01-02 H.J. Lu <hongjiu.lu@intel.com>
594 * config/tc-i386.c (match_template): Handle XMMWORD_MNEM_SUFFIX.
595 Check memory size in Intel mode.
596 (process_suffix): Handle XMMWORD_MNEM_SUFFIX.
597 (intel_e09): Likewise.
599 * config/tc-i386.h (XMMWORD_MNEM_SUFFIX): New.
601 2008-01-02 Catherine Moore <clm@codesourcery.com>
603 * config/tc-mips.c (mips_ip): Check operands on jalr instruction.
605 For older changes see ChangeLog-2007
611 version-control: never