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.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [pr23294.c] - Rev 300

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

/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-optimized" } */
 
int f1(int a)
{
  return a*6-a;
}
 
int f2(int a)
{
  return a*4+a;
}
 
int f3(int a)
{
  return 2*a + 3*a;
}
 
int f4(int a, int b)
{
  return 2*a + 6*b;
}
 
int f5(int a, int b)
{
  return 2*a - 6*b;
}
 
int f6(int a, int b)
{
  return 6*a - 2*b;
}
 
/* { dg-final { scan-tree-dump-times "a_..D. \\\* 5" 3 "optimized" } } */
/* { dg-final { scan-tree-dump-times " \\\* 2" 3 "optimized" } } */
/* { dg-final { scan-tree-dump-not "\\\* 6" "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
 

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

powered by: WebSVN 2.1.0

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