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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [complex-5.c] - Blame information for rev 297

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 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.