From 0c4ec1515b7f1d78788e70fe8e2b36b4c76f9c09 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Mon, 30 Jul 2001 13:59:00 +0000 Subject: [PATCH] * gas/mips/mips.exp (el): New variable. Use it to pick ELF reloc tests. --- gas/testsuite/ChangeLog | 5 ++++ gas/testsuite/gas/mips/mips.exp | 51 ++++++++------------------------- 2 files changed, 17 insertions(+), 39 deletions(-) diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index e0a1e6f872..1df3aabb7a 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2001-07-31 Richard Sandiford + + * gas/mips/mips.exp (el): New variable. + Use it to pick ELF reloc tests. + 2001-07-26 Chris Demetriou * gas/mips/lif-empic.d: Add back dollar signs before floating diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp index 84389d23e6..d693dfe2b6 100644 --- a/gas/testsuite/gas/mips/mips.exp +++ b/gas/testsuite/gas/mips/mips.exp @@ -29,6 +29,11 @@ if { [istarget mips*-*-*] } then { } else { set tmips "" } + if [istarget mips*el-*-*] { + set el el + } { + set el "" + } run_dump_test "abs" run_dump_test "add" @@ -130,51 +135,19 @@ if { [istarget mips*-*-*] } then { run_dump_test "elf_e_flags2" run_dump_test "elf_e_flags3" run_dump_test "elf_e_flags4" - - if [istarget mips*el-*-*] { - run_dump_test "elfel-rel" - } { - run_dump_test "elf-rel" - } + run_dump_test "elf${el}-rel" if [istarget mips64*-*-*] { - if [istarget mips*el-*-*] { - run_dump_test "elfel-rel2" - } { - run_dump_test "elf-rel2" - } - } { - if [istarget mips*el-*-*] { - run_dump_test "e32el-rel2" - } { - run_dump_test "e32-rel2" - } - } - - if [istarget mips*el-*-*] { - run_dump_test "elfel-rel3" + run_dump_test "elf${el}-rel2" } { - run_dump_test "elf-rel3" + run_dump_test "e32${el}-rel2" } - - if [istarget mips*el-*-*] { - run_dump_test "${tmips}elempic" - } { - run_dump_test "${tmips}empic" - } - + run_dump_test "elf${el}-rel3" + run_dump_test "${tmips}${el}empic" if { !$no_mips16 } { - if [istarget mips*el-*-*] { - run_dump_test "${tmips}mipsel16-e" - } { - run_dump_test "${tmips}mips16-e" - } + run_dump_test "${tmips}mips${el}16-e" setup_xfail "mips*-*-*" - if [istarget mips*el-*-*] { - run_dump_test "mipsel16-f" - } { - run_dump_test "mips16-f" - } + run_dump_test "mips${el}16-f" } } } -- 2.34.1