* config/tc-sh.c (allow_dollar_register_prefix): New variable.
[external/binutils.git] / gas / testsuite / gas / sh / basic.exp
index 83510c3..093048b 100644 (file)
@@ -1,4 +1,5 @@
-# Copyright (C) 1995, 1996, 1997, 2002 Free Software Foundation, Inc.
+# Copyright (C) 1995, 1996, 1997, 2002, 2003, 2004
+# Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # 
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  
 
 # Please email any bugs, comments, and/or additions to this file to:
-# DejaGnu@cygnus.com
+# dejagnu@gnu.org
 
 # Written by Cygnus Support.
 
-if [istarget "sh*-*-linux-gnu"] {
+if [istarget "sh*-*-linux-*"] {
     global ASFLAGS
     set ASFLAGS "$ASFLAGS -big"
 }
+if {[istarget "sh64*-*-*"] || [istarget "sh5*-*-*"]} then {
+    global ASFLAGS
+
+    set old_ASFLAGS $ASFLAGS
+    set ASFLAGS "$ASFLAGS --abi=32 --isa=SHcompact"
+}
 
 proc do_fp {} {
     set testname "fp.s: floating point tests (sh3e)"
@@ -124,14 +131,46 @@ if [istarget sh*-*-*] then {
     # dumped as sh4.
     if {[istarget sh*-*coff] || [istarget sh*-pe*] || [istarget sh*-rtems]} then {
        run_dump_test "pcrel-coff"
-    } else {
+    } elseif {[istarget sh*-hms] } {
+       run_dump_test "pcrel-hms"
+    } elseif {![istarget sh64*-*-*] && ![istarget sh5*-*-*] } {
        # Test DSP instructions
        run_dump_test "dsp"
 
        run_dump_test "pcrel"
+
+       run_dump_test "pcrel2"
     }
 
     if {[istarget sh*-*elf] || [istarget sh*-linux*]} then {
+       if {![istarget "sh64*-*-*"] && ![istarget "sh5*-*-*"]} then {
+           run_dump_test "sh4a"
+           run_dump_test "sh4a-fp"
+
+           run_dump_test "sh4a-dsp"
+           run_dump_test "sh4al-dsp"
+
+           run_dump_test "sh2a"
+       }
+
        run_dump_test "pic"
+
+       # Test TLS.
+       run_dump_test "tlsd"
+
+       run_dump_test "tlspic"
+
+       run_dump_test "tlsnopic"
+
+       # Test --renesas.
+       run_dump_test "renesas-1"
+
+       # Test --allow-reg-prefix.
+       run_dump_test "reg-prefix"
     }
 }
+
+if {[info exists old_ASFLAGS]} {
+    global ASFLAGS
+    set ASFLAGS $old_ASFLAGS
+}