From 5cf7ff55c3728dde4068ab46d541f5ebb64b322e Mon Sep 17 00:00:00 2001 From: rguenth Date: Wed, 25 Jun 2014 08:37:37 +0000 Subject: [PATCH] 2014-06-25 Richard Biener PR testsuite/61560 * gcc.dg/tree-ssa/ssa-fre-32.c: Change to avoid differences for targets that return _Complex float in memory. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211970 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-32.c | 14 ++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9fd0b6b..14e2017 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2014-06-25 Richard Biener + + PR testsuite/61560 + * gcc.dg/tree-ssa/ssa-fre-32.c: Change to avoid differences + for targets that return _Complex float in memory. + 2014-06-25 Ramana Radhakrishnan * gcc.target/arm/vect-noalign.c: Adjust options. diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-32.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-32.c index ad4f1d0..5a38f89 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-32.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-32.c @@ -1,7 +1,9 @@ /* { dg-do compile } */ /* { dg-options "-O -fdump-tree-fre1-details" } */ -_Complex float +_Complex float m; + +void foo (_Complex float x) { float r = __real x; @@ -9,10 +11,10 @@ foo (_Complex float x) _Complex float z; __real z = r; __imag z = i; - return z; + m = z; } -_Complex float +void bar (_Complex float x) { float r = __real x; @@ -20,9 +22,9 @@ bar (_Complex float x) _Complex float z = x; __real z = r; __imag z = i; - return z; + m = z; } -/* We should CSE all the way to replace the return value with x. */ -/* { dg-final { scan-tree-dump-times "return x_\\d\+\\(D\\);" 2 "fre1" } } */ +/* We should CSE all the way to replace the stored value with x. */ +/* { dg-final { scan-tree-dump-times "m = x_\\d\+\\(D\\);" 2 "fre1" } } */ /* { dg-final { cleanup-tree-dump "fre1" } } */ -- 2.7.4