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

Subversion Repositories openrisc

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