From d083907f1fe77f592eec0d427f9a114957f52f45 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 26 Nov 2015 11:53:13 +0000 Subject: [PATCH] re PR testsuite/67203 (FAIL: g++.dg/tree-ssa/pr61034.C -std=gnu++11 scan-tree-dump-times fre2 "free" 10) 2015-11-26 Richard Biener PR testsuite/67203 * g++.dg/tree-ssa/pr61034.C: Make expected optimization result dependent on PUSH_ARGS_REVERSED. Drop optimization level and also monitor final optimization result. From-SVN: r230940 --- gcc/testsuite/ChangeLog | 7 +++++++ gcc/testsuite/g++.dg/tree-ssa/pr61034.C | 11 +++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 612fd975463..07128b1cde0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2015-11-26 Richard Biener + + PR testsuite/67203 + * g++.dg/tree-ssa/pr61034.C: Make expected optimization result + dependent on PUSH_ARGS_REVERSED. Drop optimization level and + also monitor final optimization result. + 2015-11-26 Jakub Jelinek PR rtl-optimization/68249 diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr61034.C b/gcc/testsuite/g++.dg/tree-ssa/pr61034.C index 628eb10278f..36b506032ed 100644 --- a/gcc/testsuite/g++.dg/tree-ssa/pr61034.C +++ b/gcc/testsuite/g++.dg/tree-ssa/pr61034.C @@ -1,5 +1,5 @@ // { dg-do compile } -// { dg-options "-O3 -fdump-tree-fre2" } +// { dg-options "-O2 -fdump-tree-fre2 -fdump-tree-optimized" } #define assume(x) if(!(x))__builtin_unreachable() @@ -43,5 +43,12 @@ bool f(I a, I b, I c, I d) { // This works only if everything is inlined into 'f'. // { dg-final { scan-tree-dump-times ";; Function" 1 "fre2" } } -// { dg-final { scan-tree-dump-times "free" 10 "fre2" } } // { dg-final { scan-tree-dump-times "unreachable" 11 "fre2" } } + +// Note that depending on PUSH_ARGS_REVERSED we are presented with +// a different initial CFG and thus the final outcome is different + +// { dg-final { scan-tree-dump-times "free" 10 "fre2" { target x86_64-*-* i?86-*-* } } } +// { dg-final { scan-tree-dump-times "free" 3 "optimized" { target x86_64-*-* i?86-*-* } } } +// { dg-final { scan-tree-dump-times "free" 14 "fre2" { target aarch64-*-* ia64-*-* arm-*-* hppa*-*-* sparc*-*-* powerpc*-*-* } } } +// { dg-final { scan-tree-dump-times "free" 4 "optimized" { target aarch64-*-* ia64-*-* arm-*-* hppa*-*-* sparc*-*-* powerpc*-*-* } } } -- 2.30.2