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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [ipa/] [ipa-7.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 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
void send_addr (int *);
7
int g (int b, int c)
8
{
9
  printf ("%d %d\n", b, c);
10
}
11
int f (int a)
12
{
13
  if (a > 0)
14
    g (a, 3);
15
  else
16
    g (a, 5);
17
 
18
  send_addr (&a);
19
}
20
int main ()
21
{
22
  int i;
23
  for (i = 0; i < 100; i++)
24
    f (7);
25
  return 0;
26
}
27
 
28
 
29
/* { dg-final { scan-ipa-dump "Creating a specialized node of f" "cp" } } */
30
/* { dg-final { scan-ipa-dump-times "replacing param . with const 7" 1 "cp" } } */
31
/* { dg-final { cleanup-ipa-dump "cp" } } */
32
 
33
 

powered by: WebSVN 2.1.0

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