Commit Graph

356 Commits

Author SHA1 Message Date
Alan Modra 224de7a50d Default LISTING_LHS_WIDTH to depend on LISTING_WORD_SIZE so that bytes per
line is 4.  Fix tests for LISTING_WORD_SIZE==1.
2000-03-27 23:47:09 +00:00
Geoffrey Keating bb2d6cd7b1 In bfd/:
* elf32-mips.c (mips_elf_next_relocation): Rename from
	mips_elf_next_lo16_relocation, and generalize to look
	for any relocation type.
	(elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
	(elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
	(elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
	(elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
	(elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
	(elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
	(bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
	(mips_rtype_to_howto): Likewise.
	(mips_elf_calculate_relocation): Handle new relocs.
	(_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
	are paired.  The addend for R_MIPS_GNU_REL16_S2
	is shifted right two bits.
In gas/:
	* config/tc-mips.c (mips_ip): Don't put stuff in .rodata
	when embedded-pic.

	* config/tc-mips.c (SWITCH_TABLE): The ELF embedded-pic
 	implementation doesn't have special handling for switch
 	statements.
	(macro_build): Allow for code in sections other than .text.
	(macro): Likewise.
	(mips_ip): Likewise.
	(md_apply_fix): Do pc-relative relocation madness for MIPS ELF.
  	Don't perform relocs if we will be outputting them.
	(tc_gen_reloc): For ELF, just use fx_addnumber for pc-relative
 	relocations.  Allow BFD_RELOC_16_PCREL_S2 relocs when
 	embedded-pic.
In gas/testsuite/:
	* gas/mips/empic.d: New file.
	* gas/mips/empic.s: New file.
	* gas/mips/mips16-e.d: New file.
	* gas/mips/mips16-e.s: New file.
	* gas/mips/mips16-f.d: New file.
	* gas/mips/mips16-f.s: New file.
	* gas/mips/mips.exp: Add empic, mips16-e.  Add mips16-f as an
	expected failure.
In include/elf:
	* mips.h: Add R_MIPS_GNU_REL_HI16, R_MIPS_GNU_REL_LO16,
 	R_MIPS_GNU_REL16_S2, R_MIPS_PC64 and R_MIPS_PC32 relocation
 	numbers.
2000-03-11 02:16:25 +00:00
H.J. Lu 11038c5ef1 2000-02-25 H.J. Lu <hjl@gnu.org>
* gas/i386/general.l: Support a.out and coff.
2000-02-26 00:49:27 +00:00
Alan Modra 084e9a84fa Fix silly thinko in gas/i386/intel.s Mention i386.exp in ChangeLog 2000-02-25 11:55:50 +00:00
Alan Modra cc5ca5ce51 Extend the i386 gas testsuite to do some tests for intel_syntax. Fix all
the errors exposed by this addition.  These were intel mode
"fi... word ptr", "fi... dword ptr", "jmp Imm seg, Imm offset", "out dx,al".
The failure with intel "out dx,al" was also present in att "out al,dx".
Extend testsuite to catch this case too.
2000-02-25 11:41:12 +00:00
Nick Clifton 557537a556 Add ATPCS register naming support 2000-01-31 22:14:50 +00:00
Alan Modra dfad2e408f Fix gas x86 testsuite for a.out 2000-01-21 22:58:04 +00:00
Alan Modra a3d1c52b07 gas/testsuite/ChangeLog
* gas/i386/general.{s,l}: Move 16 bit jmp and call tests from here
	* gas/i386/jump16.{s,d}: To here.
	* gas/i386/jump.{s,d}: New files.  Duplicate 32 bit jmp and call
	tests in general.s so that objdump is exercised.

	* gas/i386/i386.exp: Call new tests.
2000-01-21 10:18:33 +00:00
Alan Modra add0c67765 Cosmetic changes to tc-i386.[ch] + extend x86 gas testsuite jmp and
call tests + tweak intel mode far call and jmp.
2000-01-15 12:06:03 +00:00
Alan Modra a8de59980c Add jmp and call tests to prevent intel mode lossage creeping in again. 2000-01-15 04:46:00 +00:00
Jeff Law 433b86296f Tue Nov 30 23:02:01 1999 Jeffrey A Law (law@cygnus.com)
* gas/mn10300/{am33.s, am33_2.s, am33_3.s}: New test files.
        * gas/mn10300/{am33_4.s, am33_5.s, am33_6.s}: Likewise.
        * gas/mn10300/{am33_7.s, am33_8.s}: Likewise.
        * gas/mn10300/basic.exp: Run the am33 tests.
1999-12-01 10:41:44 +00:00
Gavin Romig-Koch 73c89d4876 * gas/mips/la.d: Adjust for new la macro expansion.
Change matches for explicit addresses to matches for
	any address.
	* gas/mips/la-xgot.d: Same.
	* gas/mips/la-svr4pic.d: Same.
1999-11-15 15:47:48 +00:00
Nick Clifton 509033932c fixes for arm-aout.... 1999-11-01 17:10:27 +00:00
Nick Clifton 603eea0846 Fix test results for arm-pe toolchain 1999-11-01 16:42:16 +00:00
Nick Clifton e591b0ea67 Fix assembler testsuite for ARM 1999-10-21 10:44:39 +00:00
Geoffrey Keating a6ea59ce8a * lib/gas-defs.exp (regexp_diff): Allow '#...' to mean "some
indeterminate number of extra lines here".

* gas/elf/elf.exp: Remove XFAILs.
* gas/elf/section0.d: Make pass on MIPS (and hopefully alpha).
* gas/elf/section1.d: Likewise.
1999-10-11 03:40:17 +00:00
Diego Novillo dd04745b74 Forgot to add these files in the previous commit. This is the
testsuite for the new instructions added to d10v gas.
1999-10-07 06:19:24 +00:00
Diego Novillo c43185deeb Added seven new instructions ld, ld2w, sac, sachi, slae, st and
st2w for d10v. Created new testsuite for d10v to verify new
instructions.
1999-10-07 06:17:04 +00:00
Geoffrey Keating 07147777d3 * gas/mips/elf-rel.s: New file.
* gas/mips/elf-rel.d: New file.
* gas/mips/elf-rel2.d: New file.
* gas/mips/e32-rel2.d: New file.
* gas/mips/elf-rel2.s: New file.
* gas/mips/mips.exp: Add elf-rel, elf-rel2.

* gas/mips/elf_e_flags1.d: Tweak a little so it passes
even if the CPU is set to something by default.
1999-10-07 02:57:33 +00:00
Doug Evans 93c6c0152b * gas/m32r/error.exp: New testcase driver.
* gas/m32r/m32rx.exp: New testcase driver.
	* gas/m32r/fslotx.[sd]: New testcase.
	* gas/m32r/m32rx.[sd]: New testcase.
	* gas/m32r/relax-s.[sd]: New testcase.
	* gas/m32r/interfere.s: New testcase.
	* gas/m32r/wrongsize.s: New testcase.
1999-10-05 01:27:35 +00:00
Alan Modra b7be1db6b5 Support 8 and 16-bit relocs for i386coff. Enable i386 gas testsuite tests
previously disabled for lack of such support.  For *-*-linux*libc1 targets,
XFAIL a ld testsuite that fails due to a bug in the dynamic linker prior to
glibc-2.1.
1999-09-18 00:44:47 +00:00
Ian Lance Taylor 61feeec2ee 1999-09-12 Donn Terry <donn@interix.com>
* gas/all/gas.exp: Run cofftag test for i*86-*-interix*.
	* lib/gas-defs.exp: Add perror if can not read .d file.
1999-09-12 05:32:04 +00:00
Ian Lance Taylor 6040cc9d99 remove extraneous period 1999-09-04 17:29:42 +00:00
Ian Lance Taylor 2ef5e2a158 1999-09-04 Steve Chamberlain <sac@pobox.com>
* gas/pj/{pj.exp, ops.c, ops.d}: New tests for picoJava.
1999-09-04 17:18:59 +00:00
Nick Clifton c5089c8475 Add test for strongarm to ScottB's patch. 1999-09-02 10:11:11 +00:00
Catherine Moore f3d180e977 * gas/vtable/vtable.exp: Added [istarget "arm*-*-*"] to run dump
test "entry0" instead of "entry1".  ARM targets use REL relocs,
        and should use the test entry0.
1999-09-01 21:17:36 +00:00
Alan Modra c35dfbebaf Coff fix for i386 gas testsuite 1999-09-01 14:57:03 +00:00
Jeff Law cb63de9b03 * gas/hppa/unsorted/*.s: Use .code instead of .SPACE/.SUBSPA for
sectioning.
        * gas/hppa/unsorted/unsorted.exp: Disable tests not appropriate for
        PA64.
1999-08-30 21:15:01 +00:00
Jeff Law a91f57fd4b * gas/hppa/reloc/*.s: Use .code instead of .SPACE/.SUBSPA for
sectioning.
        * gas/hppa/parse/parse.exp: Disable tests not appropriate for PA64.
        Revamp address expressions slightly to handle an arbitrary sized
        address.
1999-08-30 21:00:59 +00:00
Jeff Law a022ef54db * gas/hppa/parse/*.s: Use .code instead of .SPACE/.SUBSPA for
sectioning.
        * gas/hppa/parse/parse.exp: Disable tests not appropriate for PA64.
1999-08-30 20:09:00 +00:00
Jeff Law 68196d703a * gas/hppa/basic/*.s: Use .code instead of .SPACE/.SUBSPA for
sectioning.
1999-08-30 18:20:18 +00:00
Alan Modra 3f9ed93baf New i386 tests for naked register syntax, ie. "eax" instead of "%eax" 1999-08-30 14:09:43 +00:00
Alan Modra 5f47d35be1 Allow spaces in i386 FP reg names, eg. %st ( 1 ). 1999-08-29 23:44:27 +00:00
Jeff Law e3ca10d721 * gas/hppa/basic/basic.exp: Add new tests shift2.s,
shift3.s, extract2.s, extract3.s, deposit2.s, and deposit3.s.
        * gas/hppa/basic/shift2.s, shift3.s, extract2.s,
        extract3.s, deposit2.s, deposit3.s:  New.
1999-08-28 11:00:36 +00:00
Jeff Law 436709eeb3 * gas/hppa/basic/add.s,addi.s,dcor.s,shladd.s,sub.s,subi.s,unit.s:
Add new syntax versions of instructions to tests.
        * gas/hppa/basic/add2.s,dcor2.s,perf.s,purge2.s,shladd2.s,sub2.s,
        system2.s, unit2.s:  New tests.
        * hppa/basic/basic.exp: Add new tests.
1999-08-28 10:32:43 +00:00
Jeff Law 3c5c4310a6 * gas/hppa/basic/basic.exp:
* gas/hppa/basic/media.s:  Add test cases for new instructions.
1999-08-28 08:50:00 +00:00
Jeff Law 3d756caf33 Fix minor goofs in previous delta. 1999-08-28 08:02:52 +00:00
Jeff Law be3f1865fb * gas/hppa/basic/basic.exp (do_branch2,do_media): New.
* gas/hppa/basic/branch2.s:  New.
        * gas/hppa/basic/media.s:  New.
1999-08-28 06:44:31 +00:00
Jeff Law 0791df6ce3 * gas/testsuite/gas/hppa/basic/basic.exp (do_fp_comp2): New.
* gas/testsuite/gas/hppa/basic/fp_comp2.s:  New.
1999-08-28 06:18:40 +00:00
Alan Modra b23bac3600 *gas/config/tc-i386.c: Fix errors in displacement size when
automatically inferring an address prefex.
1999-08-20 11:59:19 +00:00
Ian Lance Taylor 2190b5a5a8 1999-08-17 H.J. Lu <hjl@gnu.org>
* gas/elf/elf.exp: Expected to fail on alpha*-*-*.
1999-08-17 07:59:00 +00:00
Ian Lance Taylor 171a4983e7 * gas/i386/float.s, gas/i386/float.l: Modify to work correctly
when gas uses 2**4 alignment for .text.
	* gas/i386/general.s, gas/i386/general.l: Likewise.
	* gas/i386/katmai.s, gas/i386/katmai.d: Likewise.
	* gas/i386/modrm.s, gas/i386/modrm.l: Likewise.
	* gas/i386/prefix.s, gas/i386/prefix.d: Likewise.
1999-08-09 04:41:00 +00:00
Alan Modra 6812da59f2 Tweak for when --enable-targets includes 64-bit bfd target. 1999-07-27 11:43:20 +00:00
Ian Lance Taylor aa1b0fd6fe * gas/i386/katmai.d: Tweak for recent disassembler changes. 1999-06-13 17:13:19 +00:00
Ian Lance Taylor 966d5bec04 * gas/elf/elf.exp: Don't run tests on "*-*-linux*aout*" or
"*-*-linux*oldld*".
	* gas/vtable/vtable.exp: Likewise.
	* gas/i386/reloc.d: Modify expected reloc names to accept a.out
	names.
1999-06-12 10:43:43 +00:00
Ian Lance Taylor 14c1861305 * gas/i386/amd.s: Add a symbol so a.out tests will work.
* gas/i386/katmai.s: Likewise.
	* gas/i386/amd.d: Corresponding change.
	* gas/i386/katmai.d: Corresponding change.
1999-06-11 21:02:59 +00:00
Ian Lance Taylor 8ee99f93eb * gas/mips/sync.d: Pass -mips2 to the assembler.
* gas/mips/elf_e_flags.s: Tweak code so that the tests pass for
	mips-elf target as well as mips64-elf target.
	* gas/mips/elf_e_flags1.d: Corresponding changes.
	* gas/mips/elf_e_flags2.d: Likewise.
	* gas/mips/elf_e_flags3.d: Likewise.
	* gas/mips/elf_e_flags4.d: Likewise.
	* gas/elf/elf.exp: Add setup_xfail for mips*-*-*.
	* gas/all/itbl-test.c (main): Update itbl_get_reg_val call for new
	parameter.
1999-06-10 21:15:05 +00:00
Richard Henderson b3fb1136bf Jakub Jelinek <jj@ultra.linux.cz>
* gas/sparc/synth64.s: Add checks for single register signx/clruw.
        * gas/sparc/set64.s: Add tests for setuw and setsw synthetic insns.
        * gas/sparc/prefetch.d: Add -64 as switch.
        * gas/sparc/rdpr.d: Ditto.
        * gas/sparc/wrpr.d: Ditto.
        * gas/sparc/synth64.d: Ditto, reflect synth64.s changes.
        * gas/sparc/reloc64.d: Add -64 as switch, be more tolerant, as
        current gas outputs %hi(0) and not %hi(0x0).
        * gas/sparc/set64.d: Add -64 as switch, reflect set64.s changes and
        optimizations for setx instruction.
        * gas/sparc/sparc.exp: Do sparc64*-*-* checks if it is any of the
        compiled-in targets.
1999-06-10 21:08:10 +00:00
Richard Henderson 18452d405c * gas/macros/irp.s: Use `foo' and `bar' instead of `r' and `s'.
* gas/macros/rept.s, gas/macros/test2.s, gas/macros/test3.s: Likewise.
        * gas/macros/{irp,rept,test2,test3}.d: Update.
1999-06-10 13:48:44 +00:00
Richard Henderson 9894490542 * gas/elf/elf.exp: New directory.
* gas/elf/section0.[sd]: New test.
        * gas/elf/section1.[sd]: New test.
1999-06-05 23:14:42 +00:00
Nick Clifton 5164c3826e Update to match current gas,bfd and opcodes. 1999-06-04 07:12:40 +00:00
Ian Lance Taylor 0dbfb37cce * gas/vtable/vtable.exp: Don't run test for i960 yet. 1999-05-27 21:58:10 +00:00
Nick Clifton 2481b576e9 Update to match lattest assembler/objdump outpuyt 1999-05-17 09:26:37 +00:00
Alan Modra f4497960b0 Ø
Add missing files from last change in gas/testsuite.
i386-dis.c: Catch a number of cases where an invalid modrm would result in
bogus disassembly.  const lots of places.
1999-05-17 08:35:40 +00:00
Alan Modra c608c12e5e P
i386 PIII SIMD support, remove ReverseRegRegmem kludge
tidy a few things in i386 intel mode disassembly
1999-05-13 06:00:30 +00:00
Richard Henderson 252b5132c7 19990502 sourceware import 1999-05-03 07:29:11 +00:00