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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [reassoc-4.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-optimized" } */
3
float a, b, c, d;
4
extern int printf (const char *, ...);
5
int main(void)
6
{
7
  float e;
8
  float f;
9
  /* We should not be able to transform these into the same expression, and only have two additions.  */
10
  e = a + b;
11
  e = e + c;
12
  f = c + a;
13
  f = f + b;
14
  printf ("%f %f\n", e, f);
15
}
16
 
17
/* { dg-final { scan-tree-dump-times "\\\+" 4 "optimized"} } */
18
/* { dg-final { cleanup-tree-dump "optimized" } } */

powered by: WebSVN 2.1.0

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