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/] [inline-1.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-final_cleanup" } */
3
 
4
 
5
typedef struct {
6
  double min;
7
  double max;
8
} interval;
9
inline interval add(interval x, interval y)  __attribute__((always_inline));
10
inline interval add(interval x, interval y)
11
{
12
  interval r;
13
  r.min = x.min + y.min;
14
  r.max = x.max + y.max;
15
  return r;
16
}
17
interval foo (interval a, interval b, interval c)
18
{
19
  return add (a, add (b, c));
20
}
21
 
22
 
23
/* { dg-final { scan-tree-dump-times "\\(struct interval\\)" 0 "final_cleanup"} } */
24
/* { dg-final { cleanup-tree-dump "final_cleanup" } } */
25
 

powered by: WebSVN 2.1.0

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