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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [reassoc-7.c] - Blame information for rev 823

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-reassoc1" } */
3
int main(int a, int b, int c, int d, int e, int f, int g, int h)
4
{
5
  /* Should be transformed into a + c + d + e + g + 15 */
6
  int i = (a + 9) + (c + d);
7
  int j = (e + 4) + (2 + g);
8
  e = i + j;
9
  return e;
10
}
11
/* { dg-final { scan-tree-dump-times "\\\+ 15" 1 "reassoc1"} } */
12
/* { dg-final { cleanup-tree-dump "reassoc1" } } */

powered by: WebSVN 2.1.0

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