URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 322 |
Rev 384 |
/* { dg-do compile { target powerpc*-*-* } } */
|
/* { dg-do compile { target powerpc*-*-* } } */
|
/* { dg-options "-O -mpowerpc-gfxopt" } */
|
/* { dg-options "-O -mpowerpc-gfxopt" } */
|
/* { dg-final { scan-assembler-not "fsub" } } */
|
/* { dg-final { scan-assembler-not "fsub" } } */
|
|
|
/* Check that an fsub isn't generated when no arithmetic was requested;
|
/* Check that an fsub isn't generated when no arithmetic was requested;
|
such an fsub might incorrectly set floating-point exception flags. */
|
such an fsub might incorrectly set floating-point exception flags. */
|
|
|
double foo(double a, double b, double c, double d)
|
double foo(double a, double b, double c, double d)
|
{
|
{
|
return a < b ? c : d;
|
return a < b ? c : d;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.