OSDN Git Service

2011-06-14 Steve Ellcey <sje@cup.hp.com>
authorsje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Jun 2011 20:26:08 +0000 (20:26 +0000)
committersje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Jun 2011 20:26:08 +0000 (20:26 +0000)
PR testsuite/48727
* g++.dg/opt/devirt2.C: Fix scan rules for ia64*-*-hpux* and hppa*-*-*.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175055 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/devirt2.C

index c053a55..a6a63fc 100644 (file)
@@ -1,3 +1,8 @@
+2011-06-14  Steve Ellcey  <sje@cup.hp.com>
+
+       PR testsuite/48727
+       * g++.dg/opt/devirt2.C: Fix scan rules for ia64*-*-hpux* and hppa*-*-*.
+
 2011-06-14  Janis Johnson  <janisjo@codesourcery.com>
 
        * gcc.target/arm/pr45701-1.c: Require thumb support.
index 087dd17..94a6db8 100644 (file)
@@ -1,6 +1,10 @@
 // { dg-do compile }
 // { dg-options "-O2" }
-// { dg-final { scan-assembler-times "xyzzy" 2 } }
+// The IA64 and HPPA compilers generate external declarations in addition
+// to the call so those scans need to be more specific.
+// { dg-final { scan-assembler-times "xyzzy" 2 { xfail hppa*-*-* ia64*-*-hpux* } } }
+// { dg-final { scan-assembler-times "br\[^\n\]*xyzzy"  2 { target ia64*-*-hpux* } } }
+// { dg-final { scan-assembler-times "xyzzy\[^\n\]*,%r"  2 { target hppa*-*-* } } }
 
 struct S { S(); virtual void xyzzy(); };
 struct R { int a; S s; R(); };