re PR testsuite/61560 (FAIL: gcc.dg/tree-ssa/ssa-fre-32.c on arm)
authorRichard Biener <rguenther@suse.de>
Wed, 25 Jun 2014 08:37:37 +0000 (08:37 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 25 Jun 2014 08:37:37 +0000 (08:37 +0000)
2014-06-25  Richard Biener  <rguenther@suse.de>

PR testsuite/61560
* gcc.dg/tree-ssa/ssa-fre-32.c: Change to avoid differences
for targets that return _Complex float in memory.

From-SVN: r211970

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-32.c

index 9fd0b6bffa2f28d08e411c280c29a705b49de098..14e2017a99bae52343ee89691a5b752cc6243a61 100644 (file)
@@ -1,3 +1,9 @@
+2014-06-25  Richard Biener  <rguenther@suse.de>
+
+       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  <ramana.radhakrishnan@arm.com>
 
        * gcc.target/arm/vect-noalign.c: Adjust options.
index ad4f1d08607eb669e5c58c523217f657eb09d5df..5a38f8995272c4ef1dbd49dbd49f73c05c935d32 100644 (file)
@@ -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" } } */