URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 384 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O3 -fipa-cp -fipa-cp-clone -fdump-ipa-cp -fno-early-inlining" } */
|
/* { dg-options "-O3 -fipa-cp -fipa-cp-clone -fdump-ipa-cp -fno-early-inlining" } */
|
/* { dg-add-options bind_pic_locally } */
|
/* { dg-add-options bind_pic_locally } */
|
|
|
#include <stdio.h>
|
#include <stdio.h>
|
int g (int b, int c)
|
int g (int b, int c)
|
{
|
{
|
printf ("%d %d\n", b, c);
|
printf ("%d %d\n", b, c);
|
}
|
}
|
int f (int a)
|
int f (int a)
|
{
|
{
|
/* First and second parameter of g gets different values. */
|
/* First and second parameter of g gets different values. */
|
|
|
if (a > 0)
|
if (a > 0)
|
g (a, 3);
|
g (a, 3);
|
else
|
else
|
g (a+1, 5);
|
g (a+1, 5);
|
}
|
}
|
int main ()
|
int main ()
|
{
|
{
|
int i;
|
int i;
|
for (i = 0; i < 100; i++)
|
for (i = 0; i < 100; i++)
|
f (7);
|
f (7);
|
return 0;
|
return 0;
|
}
|
}
|
|
|
|
|
/* { dg-final { scan-ipa-dump-times "versioned function" 1 "cp" } } */
|
/* { dg-final { scan-ipa-dump-times "versioned function" 1 "cp" } } */
|
/* { dg-final { scan-ipa-dump-times "replacing param a with const 7" 1 "cp" } } */
|
/* { dg-final { scan-ipa-dump-times "replacing param a with const 7" 1 "cp" } } */
|
/* { dg-final { cleanup-ipa-dump "cp" } } */
|
/* { dg-final { cleanup-ipa-dump "cp" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.