aboutsummaryrefslogtreecommitdiff
path: root/gas
AgeCommit message (Collapse)AuthorFilesLines
2009-01-02 * or32-opc.c (or32_print_register, or32_print_immediate,Nick Clifton2-4/+14
disassemble_insn): Don't rely on undefined sprintf behaviour. * itbl-ops.c (itbl_disassemble): Don't rely on undefined sprintf behaviour.
2008-12-30 * gas/ppc/ppc.exp: Do not run the booke_xcoff64 test.Nick Clifton4-262/+6
* gas/ppc/booke_xcoff64.s: Delete. * gas/ppc/booke_xcoff64.d: Delete.
2008-12-30oops - accidentally omitted from check-in of LM32 port.Nick Clifton5-0/+452
2008-12-23Add LM32 port.Nick Clifton15-2/+767
2008-12-23gas/H.J. Lu17-17/+438
2008-12-23 H.J. Lu <hongjiu.lu@intel.com> * config/tc-i386.c (match_template): Changed to return const template *. Handle i.swap_operand for 3 operands. (build_vex_prefix): Take const template *. Swap operand for 2-byte VEX prefix if possible. (md_assemble): Updated. (build_modrm_byte): Handle RegMem bit for SSE2AVX. gas/testsuite/ 2008-12-23 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/i386.exp: Run x86-64-avx-swap and x86-64-avx-swap-intel. * gas/i386/opts.s: Add tests for movsd, movss, vmovsd and vmovss. * gas/i386/x86-64-opts.s: Likewise. * gas/i386/opts.d: Updated. * gas/i386/opts-intel.d: Likewise. * gas/i386/sse2avx-opts.d: Likewise. * gas/i386/sse2avx-opts-intel.d: Likewise. * gas/i386/x86-64-opts.d: Likewise. * gas/i386/x86-64-opts-intel.d: Likewise. * gas/i386/x86-64-sse2avx-opts.d: Likewise. * gas/i386/x86-64-sse2avx-opts-intel.d: Likewise. * gas/i386/x86-64-avx-swap.d: New. * gas/i386/x86-64-avx-swap.s: Likewise. * gas/i386/x86-64-avx-swap-intel.d: Likewise. opcodes/ 2008-12-23 H.J. Lu <hongjiu.lu@intel.com> * i386-dis.c (EXdS): New. (EXdVexS): Likewise. (EXqVexS): Likewise. (d_swap_mode): Likewise. (q_mode): Updated. (prefix_table): Use EXdS on movss and EXqS on movsd. (vex_len_table): Use EXdVexS on vmovss and EXqVexS on vmovsd. (intel_operand_size): Handle d_swap_mode. (OP_EX): Likewise. * i386-opc.h (S): Update comments. * i386-opc.tbl: Add S to movss, movsd, vmovss and vmovsd. * i386-tbl.h: Regenerated.
2008-12-23 * config/tc-avr.c (mcu_types): Add attiny87, attiny327, atmega4hvd,Nick Clifton3-8/+33
atmega8hvd, atmega16hvb, atmega32hvb, atmega64c1, atmega16m1, atmega64m1, atmega32u6, atmega128rfa1, at90pwm81, at90scr100, m3000f, m3000s and m3001b devices. * doc/c-avr.texi: Likewise.
2008-12-23Remove STT_IFUNC support.Nick Clifton7-32/+11
2008-12-21 * gas/cris/rd-dtpoffd1.d, gas/cris/rd-dtpoffd1.s: New test.Hans-Peter Nilsson3-0/+37
2008-12-21 * config/tc-cris.c (s_cris_dtpoff): New function.Hans-Peter Nilsson2-0/+31
(md_pseudo_table): Add "dtpoffd".
2008-12-21Add missing ChangeLog entries for my last commit.Ralf Wildenhues1-0/+4
2008-12-202008-12-20 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-12/+13
* config/tc-i386.c (parse_insn): Optimize ".s" handling.
2008-12-20gas/H.J. Lu15-1/+1260
2008-12-20 H.J. Lu <hongjiu.lu@intel.com> * config/tc-i386.c (_i386_insn): Add swap_operand. (parse_insn): Handle ".s". (match_template): Handle swap_operand. * doc/c-i386.texi: Document .s suffix. gas/testsuite/ 2008-12-20 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/i386.exp: Run opts, opts-intel, sse2avx-opts, sse2avx-opts-intel, x86-64-opts, x86-64-opts-intel, x86-64-sse2avx-opts and x86-64-sse2avx-opts-intel. * gas/i386/opts.d: New. * gas/i386/opts-intel.d: Likewise. * gas/i386/opts.s: Likewise. * gas/i386/sse2avx-opts.d: Likewise. * gas/i386/sse2avx-opts-intel.d: Likewise. * gas/i386/x86-64-opts.d: Likewise. * gas/i386/x86-64-opts-intel.d: Likewise. * gas/i386/x86-64-opts.s: Likewise. * gas/i386/x86-64-sse2avx-opts.d: Likewise. * gas/i386/x86-64-sse2avx-opts-intel.d: Likewise. opcodes/ 2008-12-20 H.J. Lu <hongjiu.lu@intel.com> * i386-dis.c (EbS): New. (EvS): Likewise. (EMS): Likewise. (EXqS): Likewise. (EXxS): Likewise. (b_swap_mode): Likewise. (v_swap_mode): Likewise. (q_swap_mode): Likewise. (x_swap_mode): Likewise. (v_mode): Updated. (w_mode): Likewise. (t_mode): Likewise. (xmm_mode): Likewise. (swap_operand): Likewise. (dis386): Use EbS on movB. Use EvS on moveS. (dis386_twobyte): Use EXxS on movapX. (prefix_table): Use EXxS on movups, movupd, movdqu, movdqa, vmovups, vmovdqu, vmovdqa. Use EMS and EXqS on movq. (vex_table): Use EXxS on vmovapX. (vex_len_table): Use EXqS on vmovq. (intel_operand_size): Handle b_swap_mode, v_swap_mode, q_swap_mode and x_swap_mode. (OP_E_register): Handle b_swap_mode and v_swap_mode. (OP_EM): Handle v_swap_mode. (OP_EX): x_swap_mode and q_swap_mode. * i386-gen.c (opcode_modifiers): Add S. * i386-opc.h (S): New. (Modrm): Updated. (i386_opcode_modifier): Add s. * i386-opc.tbl: Add S to movapd, movaps, movdqa, movdqu, movq, movupd, movups, vmovapd, vmovaps, vmovdqa, vmovdqu and vmovq. * i386-tbl.h: Regenerated.
2008-12-20 * gas/cris/rd-tls-1.s, gas/cris/rd-tls-1.d: Test :IE andHans-Peter Nilsson4-1/+14
decoration on double-indirect. * gas/cris/tls-err-1.s: Test :IE on wrong-size operand.
2008-12-20 * config/tc-cris.c (cris_process_instruction): HandleHans-Peter Nilsson2-0/+17
BFD_RELOC_CRIS_32_IE, in the test whether the relocation fits. (get_3op_or_dip_prefix_op): Handle TLS/PIC decoration for the "double indirect" addressing mode. (cris_get_reloc_suffix): Add entry for :IE for BFD_RELOC_CRIS_32_IE. (cris_number_to_imm, tc_gen_reloc): Handle BFD_RELOC_CRIS_32_IE.
2008-12-18gas/testsuite/H.J. Lu23-2666/+2691
2008-12-18 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/intel.d: Remove trailing white spaces after nop. * gas/i386/intelpic.d: Likewise. * gas/i386/nops16-1.d: Likewise. * gas/i386/nops-1-i686.d: Likewise. * gas/i386/nops-3.d: Likewise. * gas/i386/nops-3-i386.d: Likewise. * gas/i386/nops-3-i686.d: Likewise. * gas/i386/nops-4.d: Likewise. * gas/i386/nops-4-i386.d: Likewise. * gas/i386/nops-4-i686.d: Likewise. * gas/i386/opcode.d: Likewise. * gas/i386/opcode-suffix.d: Likewise. * gas/i386/reloc.d: Likewise. * gas/i386/tlsnopic.d: Likewise. * gas/i386/x86-64-nops-1.d: Likewise. * gas/i386/x86-64-nops-1-nocona.d: Likewise. * gas/i386/x86-64-nops-2.d: Likewise. * gas/i386/x86-64-nops-3.d: Likewise. * gas/i386/x86-64-nops-4-core2.d: Likewise. * gas/i386/x86-64-nops-4.d: Likewise. * gas/i386/x86-64-nops-4-k8.d: Likewise. * gas/i386/x86-64-opcode.d: Likewise. ld/testsuite/ 2008-12-18 H.J. Lu <hongjiu.lu@intel.com> * ld-i386/tlsld1.dd: Remove trailing white spaces after nop. opcodes/ 2008-12-18 H.J. Lu <hongjiu.lu@intel.com> * i386-dis.c (mnemonicendp): New. (op): Likewise. (print_insn): Use mnemonicendp. (OP_3DNowSuffix): Likewise. (CMP_Fixup): Likewise. (CMPXCHG8B_Fixup): Likewise. (CRC32_Fixup): Likewise. (OP_DREX_FCMP): Likewise. (OP_DREX_ICMP): Likewise. (VZERO_Fixup): Likewise. (VCMP_Fixup): Likewise. (PCLMUL_Fixup): Likewise. (VPERMIL2_Fixup): Likewise. (MOVBE_Fixup): Likewise. (putop): Update mnemonicendp. (oappend): Use stpcpy. (simd_cmp_op): Changed to struct op. (vex_cmp_op): Likewise. (pclmul_op): Likewise. (vpermil2_op): Likewise.
2008-12-18 Backport link test fix from upstream Libtool:Ralf Wildenhues1-39/+54
* libltdl.m4 (_LT_SYS_DYNAMIC_LINKER, _LT_LINKER_SHLIBS): Add cache variables to tests that require the linker to work. For shlibpath_overrides_runpath, this also changes the semantics to let the result from the C compiler take precedence. compiler take precedence. binutils/ * configure: Regenerate. opcodes/ * configure: Regenerate. bfd/ * configure: Regenerate. gas/ * configure: Regenerate. gprof/ * configure: Regenerate. ld/ * configure: Regenerate.
2008-12-15opcodes:Richard Earnshaw13-1145/+1161
* arm-dis.c (coprocessor_opcodes): Disassemble VFP instructions using unified syntax. gas/testsuite: * gas/arm/group-reloc-ldc.d: Disassembly of VFP instructions now uses unified syntax. * gas/arm/vfp-non-overlap.d: Likewise. * gas/arm/vfp-neon-syntax.d: Likewise. * gas/arm/vfp-neon-syntax_t2.d: Likewise. * gas/arm/vfp1.d: Likewise. * gas/arm/vfp1_t2.d: Likewise. * gas/arm/vfp1xD.d: Likewise. * gas/arm/vfp1xD_t2.d: Likewise. * gas/arm/vfp2.d: Likewise. * gas/arm/vfp2_t2.d: Likewise. * gas/arm/vfpv3-32drs.d: Likewise. * gas/arm/vfpv3-const-conv.d: Likewise. ld/testsuite: * ld-arm/vfp11-fix-scalar.d: Disassembly of VFP instructions now uses unified syntax. * ld-arm/vfp11-fix-vector.d: Likewise.
2008-12-082008-12-08 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+5
* config/tc-i386.c (build_modrm_byte): Remove an extra blank line.
2008-12-04opcodes/Ben Elliston11-294/+63
* ppc-dis.c (powerpc_init_dialect): Do not set PPC_OPCODE_BOOKE for -Mbooke. (print_ppc_disassembler_options): Update usage. * ppc-opc.c (DE, DES, DEO, DE_MASK): Remove. (BOOKE64): Remove. (PPCCHLK64): Likewise. (powerpc_opcodes): Remove all BOOKE64 instructions. gas/ * config/tc-ppc.c (parse_cpu): Remove booke64 support. Update usage strings. (ppc_setup_opcodes): Likewise, remove booke64 support. * doc/c-ppc.texi (PowerPC-Opts): Remove -mbooke32 and -mbooke64. * doc/as.texinfo (Overview): Likewise. binutils/ * doc/binutils.texi (objdump): Update booke documentation. * NEWS: Document user-visible changes to command line options.
2008-12-04* doc/as.texinfo (Type): Reword description of STT_IFUNC type.Nick Clifton2-2/+10
2008-12-03include/elf/Nick Clifton8-2/+47
* common.h (STT_IFUNC): Define. elfcpp/ * elfcpp.h (enum STT): Add STT_IFUNC. bfd/ * syms.c (struct bfd_symbol): Add new flag BSF_INDIRECT_FUNCTION. Remove redundant flag BFD_FORT_COMM_DEFAULT_VALUE. Renumber flags to remove gaps. (bfd_print_symbol_vandf): Return 'i' for BSF_INDIRECT_FUNCTION. (bfd_decode_symclass): Likewise. * elf.c (swap_out_syms): Translate BSF_INDIRECT_FUNCTION into STT_IFUNC. (elf_find_function): Treat STT_IFUNC in the same way as STT_FUNC. (_bfd_elf_is_function_type): Likewise. * elf32-arm.c (arm_elf_find_function): Likewise. (elf32_arm_adjust_dynamic_symbol): Likewise. (elf32_arm_swap_symbol_in): Likewise. (elf32_arm_additional_program_headers): Likewise. * elf32-i386.c (is_indirect_symbol): New function. (elf_i386_check_relocs): Also generate dynamic relocs for relocations against STT_IFUNC symbols. (allocate_dynrelocs): Likewise. (elf_i386_relocate_section): Likewise. * elf64-x86-64.c (is_indirect_symbol): New function. (elf64_x86_64_check_relocs): Also generate dynamic relocs for relocations against STT_IFUNC symbols. (allocate_dynrelocs): Likewise. (elf64_x86_64_relocate_section): Likewise. * elfcode.h (elf_slurp_symbol_table): Translate STT_IFUNC into BSF_INDIRECT_FUNCTION. * elflink.c (_bfd_elf_adjust_dynamic_reloc_section): Add support for STT_IFUNC symbols. (get_ifunc_reloc_section_name): New function. (_bfd_elf_make_ifunc_reloc_section): New function. * elf-bfd.h (struct bfd_elf_section_data): Add indirect_relocs field. * bfd-in2.h: Regenerate. gas/ * config/obj-elf.c (obj_elf_type): Add support for STT_IFUNC type. * doc/as.texinfo: Document new feature. * NEWS: Mention new feature. gas/testsuite/ * gas/elf/type.s: Add test of STT_IFUNC symbol type. * gas/elf/type.e: Update expected disassembly. * gas/elf/elf.exp: Update grep of symbol types. ld/ * NEWS: Mention new feature. * pe-dll.c (process_def_file): Replace use of redundant BFD_FORT_COMM_DEFAULT_VALUE with 0. * scripttempl/elf.sc: Add .rel.ifunc.dyn and .rela.ifunc.dyn sections. ld/testsuite/ * ld-mips-elf/reloc-1-n32.d: Updated expected output for reloc descriptions. * ld-mips-elf/reloc-1-n64.d: Likewise. * ld-i386/ifunc.d: New test. * ld-i386/ifunc.s: Source file for the new test. * ld-i386/i386.exp: Run the new test.
2008-11-292008-11-29 Kai Tietz <kai.tietz@onevision.com>Kai Tietz2-1/+6
* config/tc-i386.c (i386_target_format): For coff flavour in TE_PEP use "pe-i386" for 32-bit.
2008-11-28 * Makefile.am (ehopt.o): Add struc-symbol.h.Jakub Jelinek5-30/+66
* Makefile.in: Regenerated. * ehopt.c: Include struc-symbol.h. (check_eh_frame): For very small O_constant DW_CFA_advance_loc4 create correct DW_CFA_advance_loc. Handle O_subtract only for code alignment factor 1, otherwise handle O_divide or O_right_shift of O_subtract and O_constant. (eh_frame_estimate_size_before_relax): Always divide by ca. (eh_frame_convert_frag): Likewise. * dw2gencfi.c (output_cfi_insn): Scale DW_CFA_advance_loc1, DW_CFA_advance_loc2 and DW_CFA_advance_loc4 outputs.
2008-11-28 * aoutx.h (NAME): Add case statements for bfd_mach_mips14000,Thiemo Seufer3-0/+12
bfd_mach_mips16000. * archures.c (bfd_architecture): Add .#defines for bfd_mach_mips14000, bfd_mach_mips16000. * bfd-in2.h: Regenerate. * cpu-mips.c: Add enums I_mips14000, I_mips16000. (arch_info_struct): Add refs to R14000, R16000. * elfxx-mips.c (mips_set_isa_flags): Handle bfd_mach_mips14000, bfd_mach_mips16000. (mips_mach_extensions): Map R14000, R16000 to R10000. * config/tc-mips.c (hilo_interlocks): Handle CPU_R14000, CPU_R16000. (mips_cpu_info_table): Add r14000, r16000. * doc/c-mips.texi: Add entries for 14000, 16000. * mips-dis.c (mips_arch_choices): Add r14000, r16000. * mips.h: Define CPU_R14000, CPU_R16000. (OPCODE_IS_MEMBER): Include R14000, R16000 in test.
2008-11-27 *c-cr16.texi (cr16-operand specifiers): Add got/GOT and cgot/cGOT.M R Swami Reddy1-0/+12
2008-11-27 * config/tc-cr16.h (GLOBAL_OFFSET_TABLE_NAME): DefinedM R Swami Reddy3-9/+123
* config/tc-cr16.c (md_pseudo_table): Add "4byte" directive to md_pseudo_table and accept @c prefix, same as long directive. (cr16_cons_fix_new): Initialize rtype to BFD_RELOC_UNUSED. config/tc-cr16.c (tc_gen_reloc): Declare a variable of type bfd_reloc_code_real_type and set it for GOT related relocations. (md_undefined_symbol): Defined (process_label_constant): Added checks for GOT/got and cGOT/cGOT prefixes with constant label and set the appropriate relocation type. * doc/c-cr16.texi (cr16-operand specifiers): Add got/GOT and cgot/cGOT.
2008-11-27 * gas/cr16/pic-1.s: New.M R Swami Reddy6-0/+96
* gas/cr16/pic-1.d: New. * gas/cr16/pic-2.s: New. * gas/cr16/pic-2.d: New. * gas/cr16/pic.exp: Run pic tests.
2008-11-26* config/tc-m32c.c (md_pseudo_table): Add support for .loc et al.DJ Delorie2-0/+7
2008-11-25* config/tc-m32c.c (md_convert_frag): Fix ADJNZ reloc math.DJ Delorie2-4/+8
2008-11-212008-11-21 Sterling Augustine <sterling@tensilica.com>Sterling Augustine2-1/+7
* xtensa-isa.c (xtensa_state_is_shared_or): New function. 2008-11-21 Sterling Augustine <sterling@tensilica.com> * xtensa-isa-internal.h (XTENSA_STATE_IS_SHARED_OR): New flag. * xtensa-isa.h (xtensa_state_is_shared_or): New prototype. 2008-11-21 Sterling Augustine <sterling@tensilica.com> * config/tc-xtensa.c (check_t1_t2_reads_and_writes): Call xtensa_state_is_shared_or to allow multiple opcodes within a single FLIX bundle to write to these special states.
2008-11-20Forgot to save entry before commit:Hans-Peter Nilsson1-0/+5
* config/tc-cris.c (cris_number_to_imm): Apply S_SET_THREAD_LOCAL on symbols in TLS relocs.
2008-11-19Change documentation license to FDL v1.3Nick Clifton3-157/+303
2008-11-19 * gas/cris/rd-tls-1.d, gas/cris/rd-tls-1.s: Use a local threadHans-Peter Nilsson3-2/+14
variable instead of .text location for :GD decoration test.
2008-11-19 * config/tc-cris.c (cris_number_to_imm): Apply S_SET_THREAD_LOCALHans-Peter Nilsson1-7/+13
on symbols in TLS relocs.
2008-11-18Add support for ARM half-precision conversion instructions.Catherine Moore9-49/+316
2008-11-17Update copyright year in --version messages.Nick Clifton2-1/+5
2008-11-14 * read.c (emit_expr): Grow frag before filling it so thatNick Clifton2-0/+8
dot_value remains valid.
2008-11-14 PR 7026Nick Clifton2-5/+11
* config/tc-arm.c: Ensure that all uses of as_bad have a formatting string.
2008-11-12 * config/tc-cris.c (cris_number_to_imm): Except forHans-Peter Nilsson2-28/+22
BFD_RELOC_NONE, always set contents. Where previously this was skipped, set contents to 0.
2008-11-12 PR gas/7025Hans-Peter Nilsson2-0/+10
* input-scrub.c (input_scrub_include_sb): Make the position after the input have defined contents, a 0 character.
2008-11-12 * gas/cris/rd-bcnst2-pic.d, gas/cris/rd-bcnst2.d,Hans-Peter Nilsson4-0/+41
gas/cris/rd-bcnst2.s: New tests.
2008-11-12 * config/tc-cris.c (cris_relax_frag): Add missing case forHans-Peter Nilsson2-0/+4
ENCODE_RELAX (STATE_COND_BRANCH_PIC, STATE_DWORD).
2008-11-12 PR gas/7020Hans-Peter Nilsson1-0/+1
* read.c (read_a_source_file): Rearrange evaluation order when looking for '=' to avoid conditional on undefined contents of input_line_pointer[1].
2008-11-12 * read.c (read_a_source_file): Rearrange evaluation order whenHans-Peter Nilsson2-4/+10
looking for '=' to avoid conditional on undefined contents of input_line_pointer[1].
2008-11-06 * config/tc-mips.c (COP_INSN): Change logic to always return falseAdam Nemet7-4/+39
for FP instructions. testsuite/ * gas/mips/mips1-fp.s, testsuite/gas/mips/mips1-fp.d, testsuite/gas/mips/mips1-fp.l: New tests. * gas/mips/mips.exp: Run them.
2008-11-062008-11-06 Chao-ying Fu <fu@mips.com>Chao-ying Fu4-0/+31
* gas/mips/mips32-sync.d, gas/mip/mips32-sync.s: New tests. * gas/mips/mips.exp: Run them.
2008-11-062008-11-06 Chao-ying Fu <fu@mips.com>Chao-ying Fu2-1/+10
* config/tc-mips.c (validate_mips_insn): Add case '1'. (mips_ip): Add case '1' to process sync type.
2008-11-06Add m32c-*-rtems* and m32r-*-rtems* configuration targets.Nick Clifton2-2/+6
2008-11-052008-11-04 Sterling Augustine <sterling@tensilica.com>Bob Wilson2-0/+59
* config/tc-xtensa.c (tinsn_check_arguments): Check for multiple writes to the same register.
2008-11-042008-11-04 Sterling Augustine <sterling@tensilica.com>Bob Wilson10-13/+117
* config/tc-xtensa.c (xtensa_j_opcode): New. (xg_instruction_matches_option_term): Handle "FREEREG" option. (xg_build_to_insn): Likewise. Update renamed tls_reloc reference. (md_begin): Initialize xtensa_j_opcode. (md_assemble): Update renamed tls_reloc reference. Handle "j.l". (xg_assemble_vliw_tokens): Save free_reg info in the frag. (tinsn_immed_from_frag): Get free_reg info back out of the frag. (vinsn_to_insnbuf): Update renamed tls_reloc references. Distinguish extra argument for "FREEREG" from extra TLS argument. * config/tc-xtensa.h (struct xtensa_frag_type): Add free_reg field. * config/xtensa-istack.h (struct tinsn_struct): Rename tls_reloc field to extra_arg. * config/xtensa-relax.c (widen_spec_list): Add rules to relax "j.l". (build_transition): Handle "FREEREG" operand. * config/xtensa-relax.h (enum op_type): Add OP_FREEREG. 2008-11-04 Bob Wilson <bob.wilson@acm.org> * gas/xtensa/all.exp: Run jlong test. * gas/xtensa/jlong.d: New. * gas/xtensa/jlong.s: New.