URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 319 |
Rev 338 |
/* Test floating point division on ia64. There was a bug in the
|
/* Test floating point division on ia64. There was a bug in the
|
max-throughput version of the inline division code. Expecting an
|
max-throughput version of the inline division code. Expecting an
|
exact value from a floating point expression is unwise but GCC
|
exact value from a floating point expression is unwise but GCC
|
depends on it in allocno_compare. */
|
depends on it in allocno_compare. */
|
|
|
/* { dg-do run } */
|
/* { dg-do run } */
|
/* { dg-options "-minline-float-divide-max-throughput" } */
|
/* { dg-options "-minline-float-divide-max-throughput" } */
|
|
|
extern void abort (void);
|
extern void abort (void);
|
|
|
volatile int i = 24;
|
volatile int i = 24;
|
volatile int j = 30;
|
volatile int j = 30;
|
volatile int k = 1;
|
volatile int k = 1;
|
|
|
int main()
|
int main()
|
{
|
{
|
int pri2 = (((double) i / j) * (10000 / 1000) * k);
|
int pri2 = (((double) i / j) * (10000 / 1000) * k);
|
if (pri2 != 8) abort();
|
if (pri2 != 8) abort();
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.