* gcc.dg/weak/typeof-2.c: For SH targets, return before baz3 test.
authorJ"orn Rennecke <joern.rennecke@superh.com>
Tue, 15 Oct 2002 13:25:16 +0000 (13:25 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Tue, 15 Oct 2002 13:25:16 +0000 (14:25 +0100)
From-SVN: r58157

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/weak/typeof-2.c

index c857013f56a6a20569901b103d54046df047bf1a..f97570f6a9f1cb27842ed4dfc3ff821806392ee5 100644 (file)
@@ -1,3 +1,7 @@
+Tue Oct 15 14:22:41 2002  J"orn Rennecke <joern.rennecke@superh.com>
+
+       * gcc.dg/weak/typeof-2.c: For SH targets, return before baz3 test.
+
 Mon Oct 14 20:37:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
 
        * gcc.dg/i386-ssetype-[1-5].c: New tests.
index 34d67b20fdc9b865d115e7bd49d55b8524da3d49..8d951694eab3ebe385b87dfb0213b99194d53db2 100644 (file)
@@ -26,4 +26,9 @@ int bar3 (int x)
 // { dg-final { scan-assembler "baz2" } }
 // { dg-final { scan-assembler-not "baz2.*baz2.*baz2.*baz2.*baz2.*baz2" } }
 // { dg-final { scan-assembler-not "foo3" } }
+// SH targets put the funtion address into a constant pool and / or register,
+// so it does not appear repeated (as much as expected) in the assembler.
+// { dg-final { global target_triplet } }
+// { dg-final { if [string match sh-*-* $target_triplet ] {return} } }
+// { dg-final { if [string match {sh[elb1-9]*-*-*} $target_triplet ] {return} } }
 // { dg-final { scan-assembler "baz3.*baz3.*baz3.*baz3.*baz3.*baz3" } }