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.5.1/] [gcc/] [testsuite/] [gcc.dg/] [ipa/] [ipa-3.c] - Blame information for rev 328

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
 
6
/* Double constants.  */
7
 
8
#include <stdio.h>
9
void t(void);
10
int g (double b, double c)
11
{
12
  t();
13
  return (int)(b+c);
14
}
15
int f (double a)
16
{
17
  if (a > 0)
18
    g (a, 3.1);
19
  else
20
    g (a, 3.1);
21
}
22
int main ()
23
{
24
  int i;
25
  for (i = 0; i < 100; i++)
26
    f (7.44);
27
  return 0;
28
}
29
 
30
 
31
/* { dg-final { scan-ipa-dump-times "versioned function" 2 "cp"  } } */
32
/* { dg-final { scan-ipa-dump "replacing param a with const 7" "cp"  } } */
33
/* { dg-final { scan-ipa-dump "replacing param b with const 7" "cp"  } } */
34
/* { dg-final { scan-ipa-dump "replacing param c with const 3" "cp"  } } */
35
/* { 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.