* gas/sparc/sparc.exp (sparc_elf_setup): New.
authorAlan Modra <amodra@gmail.com>
Mon, 26 Aug 2002 10:44:12 +0000 (10:44 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 26 Aug 2002 10:44:12 +0000 (10:44 +0000)
Use it to xfail for non-ELF targets.

gas/testsuite/ChangeLog
gas/testsuite/gas/sparc/sparc.exp

index e02634435cdda5b0b649559936f06a6a19f966c2..d18d6314e5a4d179d42ca2242e04dffc8654af08 100644 (file)
@@ -1,5 +1,8 @@
 2002-08-26  Alan Modra  <amodra@bigpond.net.au>
 
+       * gas/sparc/sparc.exp (sparc_elf_setup): New.
+       Use it to xfail for non-ELF targets.
+
        * gas/tic54x/align.s: Add comment.
        * gas/tic54x/align.d: Adjust .text size for 2002-05-23 write.c change.
        * gas/tic54x/extaddr.d: Similarly adjust disassembly tail.
index 7298256d95bd09128220f3fda26328de0a7e2f09..b7811b7246eee4210796e894d978284b7d4b22e6 100644 (file)
@@ -16,10 +16,21 @@ proc gas_64_check { } {
     return [regexp "elf64\[_-\]sparc" $nm_help];
 }
 
+proc sparc_elf_setup { } {
+    setup_xfail "sparc*-*-*aout*" "sparc*-*-sunos4*" "sparc*-*-vxworks*"
+    setup_xfail "sparc*-fujitsu-none" "sparc*-*-*n*bsd*"
+    setup_xfail "sparc*-*-coff" "sparc*-*-lynxos*"
+    clear_xfail "sparc64*-*-*n*bsd*"
+}
+
 if [istarget sparc*-*-*] {
     run_dump_test "synth"
+    # The next three 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"
     if [gas_64_check] {
        run_dump_test "asi"