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/] [ipa/] [ipa-1.c] - Blame information for rev 327

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O3 -fipa-cp -fipa-cp-clone -fdump-ipa-cp -fno-early-inlining"  } */
3
/* { dg-add-options bind_pic_locally } */
4
 
5
#include <stdio.h>
6
int g (int b, int c)
7
{
8
  printf ("%d %d\n", b, c);
9
}
10
int f (int a)
11
{
12
  /* Second parameter of g gets different values.  */
13
  if (a > 0)
14
    g (a, 3);
15
  else
16
    g (a, 5);
17
}
18
int main ()
19
{
20
  int i;
21
  for (i = 0; i < 100; i++)
22
    f (7);
23
  return 0;
24
}
25
 
26
 
27
/* { dg-final { scan-ipa-dump-times "versioned function" 2 "cp"  } } */
28
/* { dg-final { scan-ipa-dump "replacing param a with const 7" "cp"  } } */
29
/* { dg-final { scan-ipa-dump "replacing param b with const 7" "cp"  } } */
30
/* { dg-final { cleanup-ipa-dump "cp" } } */
31
 
32
 

powered by: WebSVN 2.1.0

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