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/] [ssa-sink-2.c] - Blame information for rev 867

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-sink-stats" } */
3
int
4
bar (int a, int b, int c)
5
{
6
  int y = a * b;
7
  if (c)
8
    y = 12;
9
  return y;
10
}
11
/* We should sink the x = a * b calculation into the else branch  */
12
/* { dg-final { scan-tree-dump-times "Sunk statements:1" 1 "sink" } } */
13
/* { dg-final { cleanup-tree-dump "sink" } } */

powered by: WebSVN 2.1.0

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