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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.dg/] [ipa/] [ipa-4.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* { dg-do compile } */
2
/* { dg-options "-O3 -fipa-cp -fdump-ipa-cp"  } */
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
  /* First and second parameter of g gets different values.  */
13
 
14
  if (a > 0)
15
    g (a, 3);
16
  else
17
    g (a+1, 5);
18
}
19
int main ()
20
{
21
  f (7);
22
  return 0;
23
}
24
 
25
 
26
/* { dg-final { scan-ipa-dump-times "versioned function" 1 "cp"  } } */
27
/* { dg-final { scan-ipa-dump-times "propagating const" 1 "cp"  } } */
28
/* { 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.