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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [libgloss/] [testsuite/] [libgloss.all/] [double.c] - Blame information for rev 158

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 148 jeremybenn
/* Oki bug report [OKI001](gcc008_1)
2
 
3
        The following program is not executed.
4
        error messages are as follow.
5
 
6
        illegal trap: 0x12 pc=d000d954
7
        d000d954 08000240  NOP
8
 */
9
 
10
#include <stdio.h>
11
extern double dcall ();
12
 
13
main ()
14
{
15
  double d1, d2, d3;
16
  int i;
17
 
18
  d1 = dcall (1.);
19
  printf ("d1 = %e\n", d1);
20
 
21
  pass ("double [OKI001]");
22
  fflush(stdout);
23
}
24
 
25
double
26
dcall (d)
27
     double d;
28
{
29
  int Zero = 0;
30
  return d + Zero;
31
}
32
 
33
 

powered by: WebSVN 2.1.0

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