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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [ultrasp11.c] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* PR target/17245 */
2
/* Origin: <aaronw@net.com> */
3
/* Testcase by Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de> */
4
/* { dg-do compile { target sparc*-*-* } } */
5
/* { dg-options "-O -mcpu=v9" } */
6
 
7
/* This used to fail on 32-bit Ultrasparc because reload was emitting
8
   a move insn that doesn't satisfy its constraints.  */
9
 
10
int n;
11
double range ;
12
double bin ;
13
double wmean;
14
 
15
double f ()
16
{
17
  int i ;
18
  long double W = 0 ;
19
  for ( i = 0 ; i < n ; i ++) {
20
    double xi = range;
21
    double wi = bin;
22
    W += wi ;
23
    wmean += ( xi - wmean) * ( wi / W);
24
  }
25
}

powered by: WebSVN 2.1.0

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