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/] [pr27236.c] - Blame information for rev 853

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-optimized" } */
3
 
4
static inline int inline_read(volatile int *mem)
5
{
6
        return *mem;
7
}
8
int foo_read(volatile int *mem)
9
{
10
        return inline_read(mem);
11
}
12
unsigned int foo(volatile int *mem)
13
{
14
        foo_read(mem);
15
        return foo_read(mem);
16
}
17
 
18
/* { dg-final { scan-tree-dump-times "foo_read" 5 "optimized" } } */
19
/* { dg-final { cleanup-tree-dump "optimized" } } */

powered by: WebSVN 2.1.0

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