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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [complex-5.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 688 jeremybenn
float __complex__
2
p (float __complex__  a, float __complex__  b)
3
{
4
  return a + b;
5
}
6
 
7
float __complex__  x = 1.0 + 14.0 * (1.0fi);
8
float __complex__  y = 7.0 + 5.0 * (1.0fi);
9
float __complex__  w = 8.0 + 19.0 * (1.0fi);
10
float __complex__  z;
11
 
12
main ()
13
{
14
 
15
  z = p (x,y);
16
  y = p (x, 1.0f / z);
17
  if (z != w)
18
    abort ();
19
  exit (0);
20
}

powered by: WebSVN 2.1.0

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