]> oss.titaniummirror.com Git - msp430-binutils.git/blobdiff - gas/testsuite/gas/sparc/sparc.exp
Imported binutils-2.20
[msp430-binutils.git] / gas / testsuite / gas / sparc / sparc.exp
index 876f9acf80111153f7207754770a243326e6d6e9..dfb62494f328cbe8fa7c1be5080b747e28a17e6a 100644 (file)
 proc gas_64_check { } {
     global NM
     global NMFLAGS
-    global srcdir
 
-    catch "exec $srcdir/lib/run $NM $NMFLAGS --help" nm_help
-    return [regexp "elf64\[_-\]sparc" $nm_help]
+    set status [gas_host_run "$NM $NMFLAGS --help" ""]
+    return [regexp "elf64\[_-\]sparc" [lindex $status 1]]
 }
 
 proc sparc_elf_setup { } {
@@ -26,13 +25,15 @@ proc sparc_elf_setup { } {
 
 if [istarget sparc*-*-*] {
     run_dump_test "synth"
-    # The next three tests are ELF only.
+    # The next four tests are ELF only.
     sparc_elf_setup
     run_dump_test "unalign"
     sparc_elf_setup
     run_dump_test "pcrel"
     sparc_elf_setup
     run_dump_test "plt"
+    sparc_elf_setup
+    run_dump_test "gotop32"
     if [gas_64_check] {
        run_dump_test "asi"
        run_dump_test "membar"
@@ -47,12 +48,14 @@ if [istarget sparc*-*-*] {
        run_dump_test "reloc64"
        run_dump_test "pcrel64"
        run_dump_test "plt64"
+       run_dump_test "gotop64"
     }
     run_dump_test "v9branch1"
     run_dump_test "v9branch2"
     run_dump_test "v9branch3"
     run_dump_test "v9branch4"
     run_dump_test "v9branch5"
+    run_dump_test "pc2210"
 
     run_list_test "pr4587" ""
 }