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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr43864-2.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-pre" } */
3
 
4
int
5
f (int c, int b, int d)
6
{
7
  int r, e;
8
 
9
  if (c)
10
    r = b + d;
11
  else
12
    {
13
      e = b + d;
14
      r = e;
15
    }
16
 
17
  return r;
18
}
19
 
20
/* { dg-final { scan-tree-dump-times "if " 0 "pre"} } */
21
/* { dg-final { scan-tree-dump-times "_.*\\\+.*_" 1 "pre"} } */
22
/* { dg-final { scan-tree-dump-not "Invalid sum" "pre"} } */
23
/* { dg-final { cleanup-tree-dump "pre" } } */

powered by: WebSVN 2.1.0

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