OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [ipa/] [ipa-3.c] - Blame information for rev 645

Go to most recent revision | 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
 
6
/* Double constants.  */
7
 
8
#include <stdio.h>
9
int g (double b, double c)
10
{
11
  return (int)(b+c);
12
}
13
int f (double a)
14
{
15
  if (a > 0)
16
    g (a, 3.1);
17
  else
18
    g (a, 3.1);
19
}
20
int main ()
21
{
22
  f (7.44);
23
  return 0;
24
}
25
 
26
 
27
/* { dg-final { scan-ipa-dump-times "versioned function" 2 "cp"  } } */
28
/* { dg-final { scan-ipa-dump-times "propagating const" 3 "cp"  } } */
29
/* { 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.