OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [pr23911.c] - Blame information for rev 645

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* This was a missed optimization in tree constant propagation
2
   that CSE would catch later on.  */
3
/* { dg-do compile } */
4
/* { dg-options "-O2 -fdump-tree-store_ccp" } */
5
 
6
double _Complex *a;
7
static const double _Complex b[10] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
8
 
9
void
10
test (void)
11
{
12
  a[0] = b[0] + b[1];
13
  a[1] = b[0] + b[1];
14
  return;
15
}
16
 
17
/* After store_ccp, there should not be any assignments from real or
18
   imaginary parts anymore.  The constants should be loaded from b and
19
   propagated into the elements of a.  */
20
/* { dg-final { scan-tree-dump-times "= CR" 0 "store_ccp" } } */
21
/* { dg-final { scan-tree-dump-times "= CI" 0 "store_ccp" } } */
22
/* { dg-final { cleanup-tree-dump "store_ccp" } } */

powered by: WebSVN 2.1.0

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