URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// GROUPS passed patches
|
// GROUPS passed patches
|
// patches file
|
// patches file
|
// From: david.binderman@pmsr.philips.co.uk
|
// From: david.binderman@pmsr.philips.co.uk
|
// Date: Wed, 6 Oct 93 17:05:54 BST
|
// Date: Wed, 6 Oct 93 17:05:54 BST
|
// Subject: Reno 1.2 bug fix
|
// Subject: Reno 1.2 bug fix
|
// Message-ID: <9310061605.AA04160@pmsr.philips.co.uk>
|
// Message-ID: <9310061605.AA04160@pmsr.philips.co.uk>
|
|
|
int type(float) { return 1; }
|
int type(float) { return 1; }
|
int type(double) { return 2; }
|
int type(double) { return 2; }
|
int type(long double) { return 3; }
|
int type(long double) { return 3; }
|
|
|
extern "C" int printf( const char *, ...);
|
extern "C" int printf( const char *, ...);
|
|
|
int main()
|
int main()
|
{
|
{
|
int i = 0;
|
int i = 0;
|
if (type(0.0) != 2)
|
if (type(0.0) != 2)
|
++i;
|
++i;
|
if (i > 0)
|
if (i > 0)
|
{ printf ("FAIL\n"); return 1; }
|
{ printf ("FAIL\n"); return 1; }
|
else
|
else
|
printf ("PASS\n");
|
printf ("PASS\n");
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.