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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [inline-1.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-optimized" } */
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 "optimized"} } */
24
/* { dg-final { cleanup-tree-dump "optimized" } } */
25
 

powered by: WebSVN 2.1.0

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