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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [pr30120.c] - Blame information for rev 704

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-do run } */
2
/* { dg-options "-O2 -ffast-math" } */
3
 
4
extern void abort (void);
5
 
6
static void
7
foo (double a, double weight, const double *ring, double *phase)
8
{
9
  *phase = *ring * weight;
10
}
11
 
12
void
13
foo2 (void)
14
{
15
  foo (0, 1, (double *) 0, (double *) 0);
16
}
17
 
18
int
19
main (void)
20
{
21
  double t1 = 1, c1;
22
  foo (0, 1, &t1, &c1);
23
  if (c1 < 0.5)
24
    abort();
25
 
26
  return 0;
27
}

powered by: WebSVN 2.1.0

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