From adf14613950cab716a81c37ea85cef0e1cea1fe1 Mon Sep 17 00:00:00 2001
From: Daniel Jacobowitz <drow@false.org>
Date: Mon, 18 Feb 2002 23:44:17 +0000
Subject: [PATCH] 2002-02-18  Daniel Jacobowitz  <drow@mvista.com>

        * gas/sh/basic.exp: Don't run PIC tests for targets that don't
        support it.
---
 gas/testsuite/ChangeLog        | 5 +++++
 gas/testsuite/gas/sh/basic.exp | 4 +++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 8506090ece7..d7c4d7deb7a 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2002-02-18  Daniel Jacobowitz  <drow@mvista.com>
+
+	* gas/sh/basic.exp: Don't run PIC tests for targets that don't
+	support it.
+
 2002-02-14  Tom Rix  <trix@redhat.com>
 
 	* gas/ppc/ppc.exp: Add xcoff altivec tests.
diff --git a/gas/testsuite/gas/sh/basic.exp b/gas/testsuite/gas/sh/basic.exp
index d68ac0a9f9a..1f9608696f7 100644
--- a/gas/testsuite/gas/sh/basic.exp
+++ b/gas/testsuite/gas/sh/basic.exp
@@ -91,7 +91,9 @@ if [istarget sh*-*-*] then {
     # Test DSP instructions
     run_dump_test "dsp"
 
-    run_dump_test "pic"
+    if {[istarget sh*-*elf] || [istarget sh*-linux*]} then {
+	run_dump_test "pic"
+    }
 
     run_dump_test "pcrel"
 }