URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 318 |
Rev 338 |
/* Test whether denormal floating point constants in hexadecimal notation
|
/* Test whether denormal floating point constants in hexadecimal notation
|
are parsed correctly. */
|
are parsed correctly. */
|
/* { dg-do run } */
|
/* { dg-do run } */
|
/* { dg-options "-std=c99" } */
|
/* { dg-options "-std=c99" } */
|
|
|
long double d = 0x0.0000003ffffffff00000p-16357L;
|
long double d = 0x0.0000003ffffffff00000p-16357L;
|
long double e = 0x0.0000003ffffffff00000p-16356L;
|
long double e = 0x0.0000003ffffffff00000p-16356L;
|
|
|
extern void abort (void);
|
extern void abort (void);
|
extern void exit (int);
|
extern void exit (int);
|
|
|
int
|
int
|
main (void)
|
main (void)
|
{
|
{
|
if (d != e / 2.0)
|
if (d != e / 2.0)
|
abort ();
|
abort ();
|
exit (0);
|
exit (0);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.