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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [20030824-1.c] - Diff between revs 298 and 338

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

Rev 298 Rev 338
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-optimized" } */
/* { dg-options "-O1 -fdump-tree-optimized" } */
 
 
struct A
struct A
{
{
  int a,b;
  int a,b;
};
};
 
 
int foo (int x, int y)
int foo (int x, int y)
{
{
  int i, j;
  int i, j;
  struct A a,b;
  struct A a,b;
 
 
  a.a = x;
  a.a = x;
  b.b = y;
  b.b = y;
  j = a.a;
  j = a.a;
  i = b.b;
  i = b.b;
  return i + j;
  return i + j;
}
}
 
 
/* The addition should be optimized into 'y+x'.  */
/* The addition should be optimized into 'y+x'.  */
/* { dg-final { scan-tree-dump-times "\[xy\]_..D. \\+ \[xy]_..D." 1 "optimized"} } */
/* { dg-final { scan-tree-dump-times "\[xy\]_..D. \\+ \[xy]_..D." 1 "optimized"} } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
/* { 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.