This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Minor clean-up to gas's mips.exp



{[istarget mips*el-*-*]? "el":""} seems to crop up a lot in mips.exp.  I'm
about to submit a new reloc case, so is it OK to install the following
first?  Tested on mips-elf and mipsel-elf.

2001-07-25  Richard Sandiford  <rsandifo@redhat.com>

	* gas/mips/mips.exp (el): New variable.  Use it to decide which ELF
	reloc tests to run.

Index: gas/mips/mips.exp
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mips/mips.exp,v
retrieving revision 1.14
diff -c -p -d -r1.14 mips.exp
*** gas/mips/mips.exp	2001/06/09 06:25:55	1.14
--- gas/mips/mips.exp	2001/07/25 11:33:34
*************** if { [istarget mips*-*-*] } then {
*** 29,34 ****
--- 29,39 ----
      } else {
  	set tmips ""
      }
+     if [istarget mips*el-*-*] {
+ 	set el el
+     } {
+ 	set el ""
+     }
  
      run_dump_test "abs"
      run_dump_test "add"
*************** if { [istarget mips*-*-*] } then {
*** 131,180 ****
  	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"
! 	}
! 
  	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-rel3"
! 	}
! 
! 	if [istarget mips*el-*-*] { 
! 	    run_dump_test "${tmips}elempic"
  	} {
! 	    run_dump_test "${tmips}empic"
  	}
! 
  	if { !$no_mips16 } { 
! 	    if [istarget mips*el-*-*] { 
! 		run_dump_test "${tmips}mipsel16-e" 
! 	    } {
! 		run_dump_test "${tmips}mips16-e" 
! 	    }
  	    setup_xfail "mips*-*-*"
! 	    if [istarget mips*el-*-*] { 
! 		run_dump_test "mipsel16-f" 
! 	    } {
! 		run_dump_test "mips16-f" 
! 	    }
  	}
      }
  }
--- 136,153 ----
  	run_dump_test "elf_e_flags3"
  	run_dump_test "elf_e_flags4"
      
! 	run_dump_test "elf${el}-rel"
  	if [istarget mips64*-*-*] { 
! 	    run_dump_test "elf${el}-rel2" 
  	} {
! 	    run_dump_test "e32${el}-rel2" 
  	}
! 	run_dump_test "elf${el}-rel3"
! 	run_dump_test "${tmips}${el}empic"
  	if { !$no_mips16 } { 
! 	    run_dump_test "${tmips}mips${el}16-e" 
  	    setup_xfail "mips*-*-*"
! 	    run_dump_test "mips${el}16-f" 
  	}
      }
  }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]