Commit Graph

581 Commits

Author SHA1 Message Date
Thiemo Seufer e903300178 * gas/mips/elfel-rel.d: Add ABI specification.
* gas/mips/elfel-rel2.d: Likewise.
	* gas/mips/elfel-rel3.d: Likewise.
2003-09-19 23:34:16 +00:00
Thiemo Seufer 9f6c1c4b8b * gas/mips/rm7000.s: Let objdump print trailing dots. 2003-09-19 15:39:42 +00:00
Thiemo Seufer 22dd2f6cc6 * gas/mips/empic3_e.s: Fix typo. 2003-09-19 15:32:26 +00:00
Richard Sandiford d508790742 gas/
* config/tc-frv.c (md_pcrel_from_section): Heed TC_FORCE_RELOCATION.

gas/testsuite/
	* gas/frv/reloc1.[sd]: New test.
	* gas/frv/allinsn.exp: Run it.
2003-09-05 07:18:27 +00:00
Nick Clifton 8ad30312ff Add binutils support for v850e1 processor 2003-09-04 11:04:38 +00:00
Nick Clifton 13dfd2d039 Add *kfreebsd-gnu configuration support 2003-09-03 09:32:21 +00:00
Nick Clifton 155e0d2321 Use bfd_map_over_sections to walk section chain.
Do not dump the contents of an empty section.
2003-09-03 08:26:52 +00:00
Maciej W. Rozycki 37a52082db * gas/mips/elf-rel-got-n32.d: Fix ulw and usw patterns for
little-endian.
* gas/mips/elf-rel-got-n64.d: Likewise.
* gas/mips/elf-rel-xgot-n32.d: Likewise.
* gas/mips/elf-rel-xgot-n64.d: Likewise.
2003-09-01 17:36:47 +00:00
Jakub Jelinek 6749011bfd s/.cfi_gnu_window_save/.cfi_window_save/g 2003-08-29 20:32:56 +00:00
Jakub Jelinek 364b6d8b23 * dw2gencfi.c (cfi_pseudo_table): Add cfi_gnu_window_save.
(dot_cfi, output_cfi_insn): Handle DW_CFA_GNU_window_save.
	(output_cie): Don't use DW_EH_PE_pcrel if neither DIFF_EXPR_OK
	nor tc_cfi_emit_pcrel_expr are defined.
	(output_fde): Use tc_cfi_emit_pcrel_expr if available and
	DIFF_EXPR_OK is not defined.
	* config/tc-sparc.h (TARGET_USE_CFIPOP): Define.
	(tc_cfi_frame_initial_instructions, tc_regname_to_dw2regnum,
	tc_cfi_emit_pcrel_expr): Define.
	(sparc_cfi_frame_initial_instructions, sparc_regname_to_dw2regnum,
	sparc_cfi_emit_pcrel_expr): New prototypes.
	(sparc_cie_data_alignment): New decl.
	(DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Define.
	* config/tc-sparc.c: Include dw2gencfi.h.
	(sparc_cie_data_alignment): New variable.
	(md_begin): Initialize it.
	(sparc_cfi_frame_initial_instructions): New function.
	(sparc_regname_to_dw2regnum): Likewise.
	(sparc_cfi_emit_pcrel_expr): Likewise.
	* doc/as.texinfo: Document .cfi_gnu_window_save.

	* config/tc-sparc.c (s_common): Cast last argument to long and
	change format string to shut up warning.
testsuite/
	* gas/cfi/cfi-sparc-1.s: New test.
	* gas/cfi/cfi-sparc-1.d: New test.
	* gas/cfi/cfi-sparc64-1.s: New test.
	* gas/cfi/cfi-sparc64-1.d: New test.
	* gas/cfi/cfi.exp: Run them.
2003-08-29 20:20:18 +00:00
Nick Clifton f02232aaa3 Add support for unindexed form of Addressing Mode 5 2003-08-19 13:05:42 +00:00
Jason Eckhardt be6389fdef include/opcode/ChangeLog:
2003-08-16  Jason Eckhardt  <jle@rice.edu>

        * i860.h (fmov.ds): Expand as famov.ds.
        (fmov.sd): Expand as famov.sd.
        (pfmov.ds): Expand as pfamov.ds.

gas/testsuite/ChangeLog:
2003-08-16  Jason Eckhardt  <jle@rice.edu>

        * gas/i860/pseudo-ops01.{s,d}: New files.
        * gas/i860/i860.exp: Execute the new test above.
        * gas/i860/README.i860: Mention that pseudo-ops need more testing
        and remove the align fill defect from the list.
2003-08-17 03:16:23 +00:00
Nick Clifton 857f8be05a Update regexp for destination address of unrelocated branch instructions so
that they point to themselves.
2003-08-14 17:11:08 +00:00
Andreas Schwab c04898f807 gas/
* config/tc-m68k.h (TARGET_USE_CFIPOP)
	(DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT)
	(tc_regname_to_dw2regnum, tc_cfi_frame_initial_instructions):
	Define.
	* config/tc-m68k.c: Include "dw2gencfi.h".
	(tc_m68k_regname_to_dw2regnum)
	(tc_m68k_frame_initial_instructions): New functions.

gas/testsuite/
	* gas/cfi/cfi-m68k.s, gas/cfi/cfi-m68k.d: New test.
	* gas/cfi/cfi.exp (run_list_test): Run it.
2003-08-08 14:46:41 +00:00
Jason Eckhardt e15f6d3074 gas:
2003-08-06  Jason Eckhardt  <jle@rice.edu>

        * config/tc-i860.c (i860_handle_align): New function.
        * config/tc-i860.h (HANDLE_ALIGN): Define macro.
        (MAX_MEM_FOR_RS_ALIGN_CODE): Define macro.

gas/testsuite:
2003-08-06  Jason Eckhardt  <jle@rice.edu>

        * gas/i860/dir-align01.{s,d}: New files.
        * gas/i860/i860.exp: Execute the new test above.
2003-08-06 23:59:36 +00:00
Jason Eckhardt 0acc96e1c8 gas:
2003-08-06  Jason Eckhardt  <jle@rice.edu>

        * config/tc-i860.c (i860_process_insn): Check that instructions
        with their dual-bit set are 8-byte aligned.

gas/testsuite:
2003-08-06  Jason Eckhardt  <jle@rice.edu>

        * gas/i860/dual02-err.l: Update expected error message.
        * gas/i860/README.i860: Remove dual02-err from known failure list.
2003-08-06 19:53:19 +00:00
Jason Eckhardt b7cf83af88 2003-08-05 Jason Eckhardt <jle@rice.edu>
* gas/i860/README.i860: Remove dual01 from the known failures.
2003-08-06 04:37:10 +00:00
Jason Eckhardt ed9dc3d0d1 2003-08-05 Jason Eckhardt <jle@rice.edu>
* gas/i860/dir-intel01.{s,d}: New files.
        * gas/i860/dir-intel02.{s,d}: New files.
        * gas/i860/dir-intel03-err.{s,l}: New files.
        * gas/i860/i860.exp: Execute the above new tests.
2003-08-05 23:02:50 +00:00
Jason Eckhardt afaa9ce34d 2003-08-03 Jason Eckhardt <jle@rice.edu>
* gas/i860/*.d: Prefix name with "i860".
2003-08-04 02:45:05 +00:00
Jason Eckhardt c83c437177 2003-08-03 Jason Eckhardt <jle@rice.edu>
* gas/i860/dual01.{s,d}: New files.
        * gas/i860/dual02-err.{s,l}: New files.
        * gas/i860/dual03.{s,d}: New files.
        * gas/i860/i860.exp: Execute the above new tests.
        * gas/i860/README.i860: Update.
2003-08-04 02:23:49 +00:00
Alan Modra edf6a2322f Adjust for objdump -d change. 2003-08-02 11:34:30 +00:00
Jason Eckhardt abac126a61 2003-08-01 Jason Eckhardt <jle@rice.edu>
* gas/i860/README.i860: New file.
2003-08-02 04:27:50 +00:00
Nick Clifton 9f2339b72b Remove empty .text disassembly 2003-07-29 07:06:08 +00:00
H.J. Lu 34f708754e gas/
2003-07-28  H.J. Lu  <hongjiu.lu@intel.com>

	* config/obj-elf.c (obj_elf_section_type): Also accept "note".

gas/testsuite/

2003-07-28  H.J. Lu  <hongjiu.lu@intel.com>

	* gas/elf/elf.exp: Add section3 for note section.

	* gas/elf/section3.d: New file.
	* gas/elf/section3.s: Likewise.
2003-07-29 02:03:33 +00:00
Alan Modra b59a021820 Update tests for corrected section attributes and objdump change. 2003-07-26 10:22:01 +00:00
Stephane Carrez 586b12adb4 * gas/m68hc11/m68hc11.exp: Execute the new tests.
* gas/m68hc11/abi.s: New test for abi elf flags.
	* gas/m68hc11/abi-m68hc11-32-64.d: Test for 32-bit int, 64-bit float.
	* gas/m68hc11/abi-m68hc11-16-64.d: Test for 16-bit int, 64-bit float.
	* gas/m68hc11/abi-m68hc11-32-32.d: Test for 32-bit int, 32-bit float.
	* gas/m68hc11/abi-m68hc11-16-32.d: Test for 16-bit int, 32-bit float.
2003-07-23 20:13:38 +00:00
Richard Sandiford 5a7ea74950 include/opcode/
* mips.h (CPU_RM7000): New macro.
	(OPCODE_IS_MEMBER): Match CPU_RM7000 against 4650 insns.

bfd/
	* archures.c (bfd_mach_mips7000): New.
	* bfd-in2.h: Regenerated.
	* cpu-mips.c (arch_info_struct): Add an entry for mips:7000.
	* elfxx-mips.c (mips_set_isa_flags): Handle bfd_mach_mips7000.
	(mips_mach_extensions): Add an entry for it.

opcodes/
	* mips-dis.c (mips_arch_choices): Add rm7000 and rm9000 entries.

gas/
	* config/tc-mips.c (hilo_interlocks): True for CPU_RM7000.
	(mips_cpu_info_table): Add rm7000 and rm9000 entries.

gas/testsuite/
	* gas/mips/rm7000.[sd]: New test.
	* gas/mips/mips.exp: Run it.
2003-07-15 07:50:39 +00:00
Jakub Jelinek 75e21f08dc * config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): Define always.
(TARGET_USE_CFIPOP, tc_cfi_frame_initial_instructions,
	tc_regname_to_dw2regnum, DWARF2_DEFAULT_RETURN_COLUMN,
	DWARF2_CIE_DATA_ALIGNMENT): Define.
	(ppc_cfi_frame_initial_instructions, tc_ppc_regname_to_dw2regnum): New
	prototypes.
	(ppc_cie_data_alignment): Declare.
	* config/tc-ppc.c: Include dw2gencfi.h.
	(ppc_cie_data_alignment): Define.
	(md_begin): Initialize ppc_cie_data_alignment.
	(ppc_cfi_frame_initial_instructions, tc_ppc_regname_to_dw2regnum): New
	functions.
	* config/tc-s390.h (DWARF2_LINE_MIN_INSN_LENGTH): Define always.
	(TARGET_USE_CFIPOP, tc_cfi_frame_initial_instructions,
	tc_regname_to_dw2regnum, DWARF2_DEFAULT_RETURN_COLUMN,
	DWARF2_CIE_DATA_ALIGNMENT): Define.
	(s390_cfi_frame_initial_instructions, tc_s390_regname_to_dw2regnum):
	New prototypes.
	(s390_cie_data_alignment): Declare.
	* config/tc-s390.c: Include dw2gencfi.h.
	(s390_cie_data_alignment): Define.
	(md_begin): Initialize s390_cie_data_alignment.
	(s390_cfi_frame_initial_instructions, tc_s390_regname_to_dw2regnum):
	New functions.

	* gas/cfi/cfi-ppc-1.s: New test.
	* gas/cfi/cfi-ppc-1.d: New test.
	* gas/cfi/cfi-s390-1.s: New test.
	* gas/cfi/cfi-s390-1.s: New test.
	* gas/cfi/cfi-s390x-1.s: New test.
	* gas/cfi/cfi-s390x-1.s: New test.
	* gas/cfi/cfi.exp: Run them.
2003-07-10 16:46:38 +00:00
Alexandre Oliva e1f834a331 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
* gas/mn10300/am33-2.c (d8pcsec): PC-relative relocations within
text sections don't decay to section+offset.
* gas/mn10300/am33-2.d: Rebuilt.
2000-08-15  Eric Christopher  <echristo@cygnus.com>
* gas/mn10300/am33-2.c (d8pcsec): New Function
(condjmp): Adjust testcase for TC_LINKRELAX_FIXUP
functionality.
* gas/mn10300/am33-2.d: Regenerate
2000-05-24  Alexandre Oliva  <aoliva@cygnus.com>
* gas/mn10300/am33-2.c (d8pcoff): Likewise.
* gas/mn10300/am33-2.d: Rebuilt.
2000-04-01  Alexandre Oliva  <aoliva@cygnus.com>
* gas/mn10300/am33-2.c (main): Changed `.am332' to `.am33_2'.
Replaced `AM33 2.0' with `AM33/2.0'.
* gas/mn10300/am33-2.d, gas/mn10300/am33-2.s: Rebuilt.
2000-03-31  Alexandre Oliva  <aoliva@cygnus.com>
* gas/mn10300/am33-2.c: New file, that generated...
* gas/mn10300/am33-2.s, gas/mn10300/am33-2.d: New files.
* gas/mn10300/basic.exp: Test am33-2.
2003-07-10 02:49:46 +00:00
Chris Demetriou 115695a81d [ gas/ChangeLog ]
2003-07-08  Chris Demetriou  <cgd@broadcom.com>

        * config/tc-mips.c (mips_validate_fix): Do not warn about branch
        target being a global symbol if not compiling SVR4 PIC code.

[ gas/testsuite/ChangeLog ]
2003-07-08  Chris Demetriou  <cgd@broadcom.com>

        * gas/testsuite/gas/mips/mips.exp: Make sure that branch-misc-2 is
        run to compile non-PIC code, and add branch-misc-2pic.
        * gas/mips/branch-misc-2.l: Adjust for change in non-PIC warnings.
        * gas/mips/branch-misc-2pic.l: New file.
        * gas/mips/branch-misc-2pic.s: New file.
2003-07-09 01:27:30 +00:00
Richard Sandiford 1b680e4f57 * config/tc-h8300.c (h8300sxnmode): Add prototype.
(DSYMMODE): Remove.
	(parse_exp): Replace expressionS argument with a h8_op.  Parse the
	operand size as well.
	(skip_colonthing): Remove unused expression argument.  Tighten checks
	for 2-digit sizes.
	(colonmod24): Remove.
	(get_mova_operands): Combine calls to parse_exp and skip_colonthing.
	(get_operand): Likewise.  Use the standard code to read the size of
	pc-relative operands.
	(fix_operand_size): Include the size-guessing logic that used to be
	in colonmod24 and get_operand.  Don't apply dd:2 optimizations to
	offsets with a symbolic component.

testsuite/
	* gas/h8300/h8sx_disp2.[sd]: Add tests for symbolic displacements.
2003-07-07 09:33:02 +00:00
Alan Modra 03417200ae * gas/ppc/test2elf64.s: Rename to..
* gas/ppc/power4.s: ..this.  Add mtcr and mfcr testcases.
	* gas/ppc/test2elf64.d: Rename to..
	* gas/ppc/power4.d: ..this.  Update.
	* gas/ppc/ppc.exp: Update.
2003-07-04 13:35:35 +00:00
Thiemo Seufer 65968516b9 * gas/mips/set-arch.d: Fix GPR names and show raw insns. 2003-07-02 00:40:12 +00:00
Thiemo Seufer fef14a4289 * ld-mips-elf/elf-rel-got-n64-linux.d: New file.
* ld-mips-elf/elf-rel-xgot-n64-linux.d: New file.
	* ld-mips-elf/mips-elf.exp: Use the new files for Linux.
2003-06-29 19:41:33 +00:00
Richard Sandiford 2d0d09ca83 include/opcode/
* h8300.h (IMM2_NS, IMM8_NS, IMM16_NS): Remove.
	(IMM8U, IMM8U_NS): Define.
	(h8_opcodes): Use IMM8U_NS for mov.[wl] #xx:8,@yy.

gas/
	* config/tc-h8300.c (get_specific): Allow ':8' to be used for
	unsigned 8-bit operands.

gas/testsuite/
	* gas/h8300/h8sx_mov_imm.[sd]: Add tests for mov.[wl] #xx:8,@yy.
2003-06-25 15:31:59 +00:00
Richard Sandiford 6990d625c8 * gas/h8300/h8300.exp (h8sx_disp2, h8sx_rtsl, h8sx_mov_imm): Move...
* gas/h8300/h8300-elf.exp: ...here.
2003-06-24 13:54:49 +00:00
H.J. Lu ca164297eb gas/
2003-06-23  H.J. Lu <hongjiu.lu@intel.com>

	* gas/config/tc-i386.c (md_assemble): Support Intel Precott New
	Instructions.

	* gas/config/tc-i386.h (CpuPNI): New.
	(CpuUnknownFlags): Add CpuPNI.

gas/testsuite/

2003-06-23  H.J. Lu <hongjiu.lu@intel.com>

	* gas/i386/i386.exp: Add prescott.

	* gas/i386/prescott.d: New file.
	* gas/i386/prescott.s: Likewise.

include/opcode/

2003-06-23  H.J. Lu <hongjiu.lu@intel.com>

	* i386.h (i386_optab): Support Intel Precott New Instructions.

opcodes/

2003-06-23  H.J. Lu <hongjiu.lu@intel.com>

	* i386-dis.c (PNI_Fixup): New. Fix up "mwait" and "monitor" in
	Intel Precott New Instructions.
	(PREGRP27): New. Added for "addsubpd" and "addsubps".
	(PREGRP28): New. Added for "haddpd" and "haddps".
	(PREGRP29): New. Added for "hsubpd" and "hsubps".
	(PREGRP30): New. Added for "movsldup" and "movddup".
	(PREGRP31): New. Added for "movshdup" and "movhpd".
	(PREGRP32): New. Added for "lddqu".
	(dis386_twobyte): Use PREGRP30 to replace the "movlpX" entry.
	Use PREGRP31 to replace the "movhpX" entry. Use PREGRP28 for
	entry 0x7c. Use PREGRP29 for entry 0x7d. Use PREGRP27 for
	entry 0xd0. Use PREGRP32 for entry 0xf0.
	(twobyte_has_modrm): Updated.
	(twobyte_uses_SSE_prefix): Likewise.
	(grps): Use PNI_Fixup in the "sidtQ" entry.
	(prefix_user_table): Add PREGRP27, PREGRP28, PREGRP29, PREGRP30,
	PREGRP31 and PREGRP32.
	(float_mem): Use "fisttp{l||l|}" in entry 1 in opcode 0xdb.
	Use "fisttpll" in entry 1 in opcode 0xdd.
	Use "fisttp" in entry 1 in opcode 0xdf.
2003-06-23 20:15:34 +00:00
Thiemo Seufer b7c7d6c193 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN): Remove
special handling for n32 ABI.
	(macro): Likewise.
	* gas/mips/elf-rel-got-n32.d: Remove special handling for n32 ABI.
	* gas/mips/elf-rel-xgot-n32.d: Likewise.
	* gas/mips/jal-newabi.d: Likewise.
	* ld-mips-elf/elf-rel-got-n32.d: Remove special handling for n32 ABI.
	* ld-mips-elf/elf-rel-xgot-n32.d: Likewise.
2003-06-21 21:38:04 +00:00
Christian Groessler 373bbd04cb * gas/z8k: New directory.
* gas/z8k/dec.s: New file.
	* gas/z8k/decbf.s: New file.
	* gas/z8k/decf.s: New file.
	* gas/z8k/eidi.s: New file.
	* gas/z8k/eidif.s: New file.
	* gas/z8k/inc.s: New file.
	* gas/z8k/incbf.s: New file.
	* gas/z8k/incf.s: New file.
	* gas/z8k/inout.d: New file.
	* gas/z8k/inout.s: New file.
	* gas/z8k/jr-back.s: New file.
	* gas/z8k/jr-backf.s: New file.
	* gas/z8k/jr-forw.s: New file.
	* gas/z8k/jr-forwf.s: New file.
	* gas/z8k/ldk.s: New file.
	* gas/z8k/ldkf.s: New file.
	* gas/z8k/z8k.exp: New file.
2003-06-21 12:20:08 +00:00
Jakub Jelinek 9393cb0db9 * dw2gencfi.c (EH_FRAME_ALIGNMENT): Define if not defined.
(output_cie): Don't pad.
	(output_fde): Add align argument.  Pad to align if not 0.
	(cfi_finish): Set .eh_frame alignment to EH_FRAME_ALIGNMENT.
	Pad just last FDE to EH_FRAME_ALIGNMENT.

	* gas/cfi/cfi-i386.d: Regenerated.
	* gas/cfi/cfi-common-1.d: Regenerated.
	* gas/cfi/cfi-common-2.d: Regenerated.
	* gas/cfi/cfi-common-3.d: Regenerated.
	* gas/cfi/cfi-x86_64.d: Regenerated.
	* gas/cfi/cfi-alpha-1.d: Regenerated.
	* gas/cfi/cfi-alpha-2.d: Regenerated.
	* gas/cfi/cfi-alpha-3.d: Regenerated.
2003-06-18 17:58:48 +00:00
Nick Clifton ff614a273c Tweak expected results for i386-pc-cygwin target. 2003-06-17 11:46:34 +00:00
Nick Clifton 5afcbc6009 Allow system-specific gunk after canonical file format. 2003-06-17 11:16:16 +00:00
Hans-Peter Nilsson 0465aa2f5f * gas/cris: Match output having $ register prefix. Deal with
target variants default requiring register prefix on input.
2003-06-15 23:46:37 +00:00
Richard Earnshaw 2fd303f5ff * gas/arm/arm.exp: Pass -mfpu=fpa option to the FPA instruction test. 2003-06-13 16:45:55 +00:00
Richard Sandiford 34ce925ee0 * config/tc-mips.c (append_insn): In a compound relocation, take the
field width from the final (outermost) operator.
2003-06-12 05:45:50 +00:00
Richard Henderson cdfbf930b9 * dw2gencfi.c (struct cfi_escape_data): New.
(cfi_add_CFA_nop): Remove.
        (CFI_escape, dot_cfi_escape): New.
        (dot_cfi): Remove nop.
        (cfi_pseudo_table): Remove nop; add escape.
        (output_cfi_insn): Likewise.
        (select_cie_for_fde): Stop on escape.
        * dw2gencfi.h (cfi_add_CFA_nop): Remove.
        * read.c, read.h (do_parse_cons_expression): New.
        * doc/as.texinfo (.cfi_escape): New.

        * gas/cfi/cfi-common-3.[ds]: New.
        * gas/cfi/cfi.exp: Run it.
2003-06-11 23:16:58 +00:00
Alan Modra c21e73b977 * gas/macros/app1.d: Ignore section symbols.
* gas/macros/app2.d: Likewise.
	* gas/macros/app3.d: Likewise.
	* gas/macros/app4.d: Likewise.
2003-06-11 05:56:14 +00:00
Thiemo Seufer 5ef0935e19 * gas/mips/mips.exp: Fix typo.
* gas/mips/elempic.d: Force o64 ABI.
	* gas/mips/telempic.d: Likewise.
	* ld-mips-elf/rel32-n32.d: Force big endian assembly.
	* ld-mips-elf/rel32-o32.d: Likewise.
	* ld-mips-elf/rel64.d: Likewise.
2003-06-10 19:45:24 +00:00
Alan Modra d04428bdb4 * gas/cfi/cfi.exp: Use here. Only run tests when ELF.
* gas/macros/and.s: Avoid .set so we don't break mips.
2003-06-10 13:31:59 +00:00
Alan Modra d199a63653 * gas/macros/and.s: Avoid .set so we don't break mips. 2003-06-10 13:24:33 +00:00