SH gas testsuite: Skip sh4a tests for sh5

Kaz Kojima kkojima@rr.iij4u.or.jp
Mon Feb 2 00:06:00 GMT 2004


Hi,

Some gas tests for sh4a instructions fail for sh5 targets.
The patch below simply skips them for sh5.  It seems they
don't make sense until someone invents sh5a :-)  OK?

Regards,
	kaz
--
2004-02-01  Kaz Kojima  <kkojima@rr.iij4u.or.jp>

	* gas/sh/basic.exp: Don't do sh4a tests for sh5.

diff -u3prN ORIG/src/gas/testsuite/gas/sh/basic.exp LOCAL/src/gas/testsuite/gas/sh/basic.exp
--- ORIG/src/gas/testsuite/gas/sh/basic.exp	Sat Jan 10 23:17:43 2004
+++ LOCAL/src/gas/testsuite/gas/sh/basic.exp	Sun Feb  1 17:22:11 2004
@@ -1,4 +1,5 @@
-# Copyright (C) 1995, 1996, 1997, 2002, 2003 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
@@ -140,11 +141,13 @@ if [istarget sh*-*-*] then {
     }
 
     if {[istarget sh*-*elf] || [istarget sh*-linux*]} then {
-	run_dump_test "sh4a"
-	run_dump_test "sh4a-fp"
+	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 "sh4a-dsp"
+	    run_dump_test "sh4al-dsp"
+	}
 
 	run_dump_test "pic"
 



More information about the Binutils mailing list