From 00f643091dd1dabac75b69e78cc43e9e2711eead Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Tue, 18 Dec 2012 13:26:59 +0000 Subject: reassoc-19.c: Adjust. 2012-12-18 Richard Biener * gcc.dg/tree-ssa/reassoc-19.c: Adjust. From-SVN: r194579 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/tree-ssa/reassoc-19.c | 15 ++++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 551236c..5a49c61 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2012-12-18 Richard Biener + * gcc.dg/tree-ssa/reassoc-19.c: Adjust. + +2012-12-18 Richard Biener + PR tree-optimization/55555 * gcc.dg/torture/pr55555.c: New testcase. * gcc.dg/vect/vect-iv-11.c: Adjust. diff --git a/gcc/testsuite/gcc.dg/tree-ssa/reassoc-19.c b/gcc/testsuite/gcc.dg/tree-ssa/reassoc-19.c index c13e1d3..bbaf69b 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/reassoc-19.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/reassoc-19.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-Os -fdump-tree-reassoc2" } */ +/* { dg-options "-Os -fdump-tree-optimized" } */ /* Slightly changed testcase from PR middle-end/40815. */ void bar(char*, char*, int); @@ -8,14 +8,15 @@ void foo(char* left, char* rite, int element) while (left <= rite) { /* This should expand into - D.zzzz = D.zzzz - D.xxxx; - and NOT to - D.D.yyyy = -D.xxxx; D.zzzz = D.zzzz + D.yyyy; */ + _7 = (sizetype) element_6(D); + _8 = -_7; + rite_9 = rite_1 + _8; */ rite -= element; bar(left, rite, element); } } -/* There should be no " + " in the dump. */ -/* { dg-final { scan-tree-dump-times " \\\+ " 0 "reassoc2" } } */ -/* { dg-final { cleanup-tree-dump "reassoc2" } } */ +/* { dg-final { scan-tree-dump-times "= \\\(sizetype\\\) element" 1 "optimized" } } */ +/* { dg-final { scan-tree-dump-times "= -" 1 "optimized" } } */ +/* { dg-final { scan-tree-dump-times " \\\+ " 1 "optimized" } } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ -- cgit v1.1