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] - Blame information for rev 801

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

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-do compile { target { powerpc*-*-* } } } */
2
/* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
3
/* { dg-require-effective-target ilp32 } */
4
/* { dg-options "-O2 -mcpu=power5 -std=c99 -msoft-float" } */
5
/* { dg-final { scan-assembler-not "fmadd" } } */
6
/* { dg-final { scan-assembler-not "xsfmadd" } } */
7
 
8
/* Test whether -msoft-float turns off the macros math.h uses for
9
   FP_FAST_FMA{,F,L}.  */
10
#ifdef __FP_FAST_FMA
11
#error "__FP_FAST_FMA should not be defined"
12
#endif
13
 
14
#ifdef __FP_FAST_FMAF
15
#error "__FP_FAST_FMAF should not be defined"
16
#endif
17
 
18
double
19
builtin_fma (double b, double c, double d)
20
{
21
  return __builtin_fma (b, c, d);                       /* bl fma  */
22
}
23
 
24
float
25
builtin_fmaf (float b, float c, float d)
26
{
27
  return __builtin_fmaf (b, c, -d);                     /* bl fmaf */
28
}

powered by: WebSVN 2.1.0

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