summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/weak
diff options
context:
space:
mode:
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2002-10-15 13:25:16 +0000
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2002-10-15 13:25:16 +0000
commit46d9b65fd5e1bc7ac5e595c8aff73c391118fb00 (patch)
tree44cc10c7534383e6bd3772d155b1b72cfe134ac6 /gcc/testsuite/gcc.dg/weak
parent71a455acbacf59d5b25849e7f4a2d1a771ee139d (diff)
downloadgcc-46d9b65fd5e1bc7ac5e595c8aff73c391118fb00.tar.gz
* gcc.dg/weak/typeof-2.c: For SH targets, return before baz3 test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58157 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/weak')
-rw-r--r--gcc/testsuite/gcc.dg/weak/typeof-2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/weak/typeof-2.c b/gcc/testsuite/gcc.dg/weak/typeof-2.c
index 34d67b20fdc..8d951694eab 100644
--- a/gcc/testsuite/gcc.dg/weak/typeof-2.c
+++ b/gcc/testsuite/gcc.dg/weak/typeof-2.c
@@ -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" } }