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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [reassoc-15.c] - Diff between revs 816 and 826

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

Rev 816 Rev 826
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-reassoc1" } */
/* { dg-options "-O2 -fdump-tree-reassoc1" } */
 
 
int test3 (int x, int y, int z, int weight, int w1, int w2, int w3)
int test3 (int x, int y, int z, int weight, int w1, int w2, int w3)
{
{
  int wtmp1 = w1 * weight;
  int wtmp1 = w1 * weight;
  int wtmp2 = w2 * weight;
  int wtmp2 = w2 * weight;
  int wtmp3 = w3 * weight;
  int wtmp3 = w3 * weight;
  int tmp1 = x * wtmp1;
  int tmp1 = x * wtmp1;
  int tmp2 = y * wtmp2;
  int tmp2 = y * wtmp2;
  int tmp3 = z * wtmp3;
  int tmp3 = z * wtmp3;
  return tmp1 + tmp2 + tmp3;
  return tmp1 + tmp2 + tmp3;
}
}
 
 
/* The multiplication with weight should be un-distributed.
/* The multiplication with weight should be un-distributed.
   ???  This pattern is not recognized currently.  */
   ???  This pattern is not recognized currently.  */
 
 
/* { dg-final { scan-tree-dump-times "\\\*" 4 "reassoc1" } } */
/* { dg-final { scan-tree-dump-times "\\\*" 4 "reassoc1" } } */
/* { dg-final { cleanup-tree-dump "reassoc1" } } */
/* { 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.