Commit 6a6e7144 by Rainer Orth Committed by Rainer Orth

re PR testsuite/48727 (FAIL: g++.dg/opt/devirt2.C scan-assembler-times xyzzy 2)

	PR testsuite/48727
	* g++.dg/opt/devirt2.C: Use specific pattern for sparc*-*-*.

From-SVN: r176034
parent e923ef41
2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR testsuite/48727
* g++.dg/opt/devirt2.C: Use specific pattern for sparc*-*-*.
2011-07-08 Richard Guenther <rguenther@suse.de> 2011-07-08 Richard Guenther <rguenther@suse.de>
PR tree-optimization/49662 PR tree-optimization/49662
......
...@@ -2,9 +2,14 @@ ...@@ -2,9 +2,14 @@
// { dg-options "-O2" } // { dg-options "-O2" }
// The IA64 and HPPA compilers generate external declarations in addition // The IA64 and HPPA compilers generate external declarations in addition
// to the call so those scans need to be more specific. // to the call so those scans need to be more specific.
// { dg-final { scan-assembler-times "xyzzy" 2 { target { ! { hppa*-*-* ia64*-*-hpux* } } } } } // { dg-final { scan-assembler-times "xyzzy" 2 { target { ! { hppa*-*-* ia64*-*-hpux* sparc*-*-* } } } } }
// { dg-final { scan-assembler-times "br\[^\n\]*xyzzy" 2 { target 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*-*-* } } } // { dg-final { scan-assembler-times "xyzzy\[^\n\]*,%r" 2 { target hppa*-*-* } } }
// Unless the assembler supports -relax, the 32-bit SPARC compiler generates
// sethi/jmp instead of just call, so the scans need to be more specific.
// With subexpressions, Tcl regexp -inline -all returns both the complete
// match and the subexpressions, so double the count.
// { dg-final { scan-assembler-times "\(jmp|call\)\[^\n\]*xyzzy" 4 { target sparc*-*-* } } }
struct S { S(); virtual void xyzzy(); }; struct S { S(); virtual void xyzzy(); };
struct R { int a; S s; R(); }; struct R { int a; S s; R(); };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment