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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [ipa/] [ipa-2.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O3 -fipa-cp -fdump-ipa-cp -fno-early-inlining"  } */
3
/* { dg-skip-if "PR 25442" { "*-*-*" } { "-fpic" "-fPIC" } { "" } } */
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
  /* a is modified.  */
13
  if (a++ > 0)
14
    g (a, 3);
15
}
16
int main ()
17
{
18
  f (7);
19
  return 0;
20
}
21
 
22
 
23
/* { dg-final { scan-ipa-dump-times "versioned function" 2 "cp"  } } */
24
/* { dg-final { scan-ipa-dump-times "propagating const" 2 "cp"  } } */
25
/* { dg-final { cleanup-ipa-dump "cp" } } */

powered by: WebSVN 2.1.0

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