OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [pr23911.c] - Diff between revs 816 and 826

Only display areas with differences | Details | Blame | View Log

Rev 816 Rev 826
/* This was a missed optimization in tree constant propagation
/* This was a missed optimization in tree constant propagation
   that CSE would catch later on.  */
   that CSE would catch later on.  */
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-dce2" } */
/* { dg-options "-O -fdump-tree-dce2" } */
 
 
double _Complex *a;
double _Complex *a;
static const double _Complex b[10] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
static const double _Complex b[10] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
 
 
void
void
test (void)
test (void)
{
{
  a[0] = b[0] + b[1];
  a[0] = b[0] + b[1];
  a[1] = b[0] + b[1];
  a[1] = b[0] + b[1];
  return;
  return;
}
}
 
 
/* After DCE2 which runs after FRE, the expressions should be fully
/* After DCE2 which runs after FRE, the expressions should be fully
   constant folded.  There should be no loads from b left.  */
   constant folded.  There should be no loads from b left.  */
/* { dg-final { scan-tree-dump-times "__complex__ \\\(1.0e\\\+0, 0.0\\\)" 2 "dce2" } } */
/* { dg-final { scan-tree-dump-times "__complex__ \\\(1.0e\\\+0, 0.0\\\)" 2 "dce2" } } */
/* { dg-final { scan-tree-dump-times "= b" 0 "dce2" } } */
/* { dg-final { scan-tree-dump-times "= b" 0 "dce2" } } */
/* { dg-final { cleanup-tree-dump "dce2" } } */
/* { dg-final { cleanup-tree-dump "dce2" } } */
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.