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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [ppc-fma-6.c] - Rev 801

Go to most recent revision | Compare with Previous | Blame | View Log

/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
/* { dg-require-effective-target ilp32 } */
/* { dg-options "-O2 -mcpu=power5 -std=c99 -msoft-float" } */
/* { dg-final { scan-assembler-not "fmadd" } } */
/* { dg-final { scan-assembler-not "xsfmadd" } } */
 
/* Test whether -msoft-float turns off the macros math.h uses for
   FP_FAST_FMA{,F,L}.  */
#ifdef __FP_FAST_FMA
#error "__FP_FAST_FMA should not be defined"
#endif
 
#ifdef __FP_FAST_FMAF
#error "__FP_FAST_FMAF should not be defined"
#endif
 
double
builtin_fma (double b, double c, double d)
{
  return __builtin_fma (b, c, d);			/* bl fma  */
}
 
float
builtin_fmaf (float b, float c, float d)
{
  return __builtin_fmaf (b, c, -d);			/* bl fmaf */
}
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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