URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 338 |
/* Verify that simple indirect calls are inlined even without early
|
/* Verify that simple indirect calls are inlined even without early
|
inlining.. */
|
inlining.. */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O3 -c -fdump-ipa-inline -fno-early-inlining" } */
|
/* { dg-options "-O3 -c -fdump-ipa-inline -fno-early-inlining" } */
|
|
|
extern void non_existent(int);
|
extern void non_existent(int);
|
|
|
static void hooray ()
|
static void hooray ()
|
{
|
{
|
non_existent (1);
|
non_existent (1);
|
}
|
}
|
|
|
static void hiphip (void (*f)())
|
static void hiphip (void (*f)())
|
{
|
{
|
non_existent (2);
|
non_existent (2);
|
f ();
|
f ();
|
}
|
}
|
|
|
int main (int argc, int *argv[])
|
int main (int argc, int *argv[])
|
{
|
{
|
hiphip (hooray);
|
hiphip (hooray);
|
return 0;
|
return 0;
|
}
|
}
|
|
|
/* { dg-final { scan-ipa-dump "hooray\[^\\n\]*inline copy in main" "inline" } } */
|
/* { dg-final { scan-ipa-dump "hooray\[^\\n\]*inline copy in main" "inline" } } */
|
/* { dg-final { cleanup-ipa-dump "inline" } } */
|
/* { dg-final { cleanup-ipa-dump "inline" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.