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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [reassoc-23.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-reassoc1" } */
3
 
4
unsigned int
5
foo(unsigned int a, unsigned int b, unsigned int c, unsigned int d,
6
    unsigned int e, unsigned int f, unsigned int g, unsigned int h)
7
{
8
  /* Should be transformed into e = 20 */
9
  unsigned int i = (a + 9) + (c + 8);
10
  unsigned int j = (-c + 1) + (-a + 2);
11
 
12
  e = i + j;
13
  return e;
14
}
15
 
16
/* { dg-final { scan-tree-dump-times "= 20" 1 "reassoc1"} } */
17
/* { 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.