From: Uros Bizjak Date: Sat, 6 Aug 2011 21:37:22 +0000 (+0200) Subject: re PR testsuite/48727 (FAIL: g++.dg/opt/devirt2.C scan-assembler-times xyzzy 2) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=476ccc3fc4c266fa9e06cfc327c6dd0ec1839530;p=gcc.git 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 alpha*-*-*. From-SVN: r177537 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3c230efa674..7841b93020d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-08-06 Uros Bizjak + + PR testsuite/48727 + * g++.dg/opt/devirt2.C: Use specific pattern for alpha*-*-*. + 2011-08-06 Uros Bizjak * gcc.dg/pr48770.c: Cleanup coverage files. diff --git a/gcc/testsuite/g++.dg/opt/devirt2.C b/gcc/testsuite/g++.dg/opt/devirt2.C index a16c25ff46a..b068f4dedd7 100644 --- a/gcc/testsuite/g++.dg/opt/devirt2.C +++ b/gcc/testsuite/g++.dg/opt/devirt2.C @@ -1,10 +1,13 @@ // { dg-do compile } // { dg-options "-O2" } +// { dg-final { scan-assembler-times "xyzzy" 2 { target { ! { alpha*-*-* hppa*-*-* ia64*-*-hpux* sparc*-*-* } } } } } // 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 { target { ! { hppa*-*-* ia64*-*-hpux* sparc*-*-* } } } } } // { dg-final { scan-assembler-times "br\[^\n\]*xyzzy" 2 { target ia64*-*-hpux* } } } // { dg-final { scan-assembler-times "xyzzy\[^\n\]*,%r" 2 { target hppa*-*-* } } } +// If assembler supports explicit relocation directives, the alpha compiler generates +// literal/lituse_jsr pairs, so the scans need to be more specific. +// { dg-final { scan-assembler-times "jsr\[^\n\]*xyzzy" 2 { target alpha*-*-* } } } // 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