opcodes/
[deliverable/binutils-gdb.git] / gas / testsuite / gas / sparc / sparc.exp
index 17dcaaa3bbd4cf4180be061596ea158e64e52ec1..f7f8f8f8e6a4b808fc866aa01f4ab52f38c00bc0 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 { } {
+    setup_xfail "sparc*-*-*aout*" "sparc*-*-sunos4*"
+    setup_xfail "sparc*-fujitsu-none" "sparc*-*-*n*bsd*"
+    setup_xfail "sparc*-*-coff" "sparc*-*-lynxos*"
+    clear_xfail "sparc64*-*-*n*bsd*"
+    clear_xfail "sparc*-*-netbsdelf*"
 }
 
 if [istarget sparc*-*-*] {
     run_dump_test "synth"
+    # 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"
@@ -25,9 +41,31 @@ if [istarget sparc*-*-*] {
        run_dump_test "set64"
        run_dump_test "synth64"
        run_dump_test "rdpr"
+       run_dump_test "rdhpr"
        run_dump_test "wrpr"
+       run_dump_test "wrhpr"
+       run_dump_test "window"
        run_dump_test "reloc64"
+       run_dump_test "pcrel64"
+       run_dump_test "plt64"
+       run_dump_test "gotop64"
     }
+    run_dump_test "imm-plus-rreg"
+    run_dump_test "ticc-imm-reg"
+    run_dump_test "v8-movwr-imm"
+    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_dump_test "hpcvis3"
+
+    run_list_test "pr4587" ""
+}
+
+if [istarget sparc-*-vxworks*] {
+    run_dump_test "vxworks-pic"
 }
 
 if [istarget sparclet*-*-*] {
This page took 0.023709 seconds and 4 git commands to generate.