Fix expected messages in test

From-SVN: r210820
This commit is contained in:
Xinliang David Li 2014-05-22 18:18:48 +00:00 committed by Xinliang David Li
parent 4000360e40
commit ee91832767
8 changed files with 21 additions and 11 deletions

View File

@ -1,3 +1,13 @@
2014-05-22 Xinliang David Li <davidxl@google.com>
* g++.dg/ipa/devirt-15.C: Fix expected message.
* g++.dg/ipa/devirt-16.C: Ditto.
* g++.dg/ipa/devirt-17.C: Ditto.
* g++.dg/ipa/devirt-26.C: Ditto.
* g++.dg/ipa/imm-devirt-1.C: Ditto.
* g++.dg/ipa/imm-devirt-2.C: Ditto.
* g++.dg/tree-ssa/pr8781.C:Ditto.
2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
* gcc.target/powerpc/htm-ttest.c: New test.

View File

@ -1,7 +1,7 @@
/* Check that we speculatively devirutalize call to FOO to B::foo becuase
A is noreturn. */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-ipa-devirt -fdump-tree-optimized" } */
/* { dg-options "-O2 -fdump-ipa-devirt-details -fdump-tree-optimized" } */
class A {
public:
virtual int foo(void)
@ -33,7 +33,7 @@ main()
m();
}
/* { dg-final { scan-ipa-dump "Speculatively devirtualizing call" "devirt"} } */
/* { dg-final { scan-ipa-dump "speculatively devirtualizing call" "devirt"} } */
/* { dg-final { cleanup-ipa-dump "devirt" } } */
/* Match if (PROF_6 == foo) to verify that the speculation survived. */
/* { dg-final { scan-tree-dump "== foo" "optimized"} } */

View File

@ -1,7 +1,7 @@
/* We shall devirtualize to unreachable. No anonymous type method should surivve
reachability. */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-ipa-whole-program" } */
/* { dg-options "-O2 -fdump-ipa-whole-program-details" } */
namespace {
class B {
public:
@ -32,7 +32,7 @@ main()
return b->foo();
}
/* { dg-final { scan-ipa-dump "Devirtualizing" "whole-program"} } */
/* { dg-final { scan-ipa-dump "devirtualizing" "whole-program"} } */
/* { dg-final { scan-ipa-dump "builtin_unreachable" "whole-program"} } */
/* { dg-final { scan-ipa-dump-not "A::foo" "whole-program"} } */
/* { dg-final { scan-ipa-dump-not "A::foo" "whole-program"} } */

View File

@ -1,7 +1,7 @@
/* We shall devirtualize to B::foo since it is the only live candidate of an
anonymous type. */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-ipa-whole-program" } */
/* { dg-options "-O2 -fdump-ipa-whole-program-details" } */
namespace {
class B {
public:
@ -37,7 +37,7 @@ main()
return b->foo();
}
/* { dg-final { scan-ipa-dump "Devirtualizing" "whole-program"} } */
/* { dg-final { scan-ipa-dump "devirtualizing" "whole-program"} } */
/* { dg-final { scan-ipa-dump-not "builtin_unreachable" "whole-program"} } */
/* { dg-final { scan-ipa-dump "B::foo" "whole-program"} } */
/* { dg-final { scan-ipa-dump-not "A::foo" "whole-program"} } */

View File

@ -1,5 +1,5 @@
/* { dg-do compile } */
/* { dg-options "-O3 -fdump-ipa-devirt" } */
/* { dg-options "-O3 -fdump-ipa-devirt-details" } */
struct A
{
int a;
@ -25,5 +25,5 @@ int test(void)
/* The call to b->foo() is perfectly devirtualizable because C can not be in construction
when &c was used, but we can not analyze that so far. Test that we at least speculate
that type is in the construction. */
/* { dg-final { scan-ipa-dump "Speculatively devirtualizing" "devirt" } } */
/* { dg-final { scan-ipa-dump "speculatively devirtualizing" "devirt" } } */
/* { dg-final { cleanup-ipa-dump "devirt" } } */

View File

@ -58,5 +58,5 @@ int main (int argc, char *argv[])
return 0;
}
/* { dg-final { scan-tree-dump "Replacing call target with foo" "fre1" } } */
/* { dg-final { scan-tree-dump "converting indirect call to function virtual int B::foo" "fre1" } } */
/* { dg-final { cleanup-tree-dump "fre1" } } */

View File

@ -91,5 +91,5 @@ int main (int argc, char *argv[])
return 0;
}
/* { dg-final { scan-tree-dump "Replacing call target" "fre1" } } */
/* { dg-final { scan-tree-dump "converting indirect call to function" "fre1" } } */
/* { dg-final { cleanup-tree-dump "fre1" } } */

View File

@ -24,5 +24,5 @@ int x()
/* We should optimize this to a direct call. */
/* { dg-final { scan-tree-dump "Replacing call target with f" "fre1" } } */
/* { dg-final { scan-tree-dump "converting indirect call to function int f()" "fre1" } } */
/* { dg-final { cleanup-tree-dump "fre1" } } */