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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [ia64/] [builtin-fma-2.c] - Blame information for rev 753

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

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-do compile } */
2
/* { dg-skip-if "128-bit long double" { *-*-hpux* } { "*" } { "" } } */
3
/* { dg-options "-O" } */
4
/* Don't confuse the fma insn with the fma in the filename.  */
5
/* { dg-final { scan-assembler-times "fma\[     \]" 2 } } */
6
/* { dg-final { scan-assembler-times "fms" 1 } } */
7
/* { dg-final { scan-assembler-times "fnma" 2 } } */
8
 
9
#ifndef __FP_FAST_FMAL
10
# error "__FP_FAST_FMAL should be defined"
11
#endif
12
 
13
typedef long double LD;
14
 
15
LD L0(LD x, LD y, LD z) { return __builtin_fmal(x,y,z); }
16
LD L1(LD x, LD y, LD z) { return __builtin_fmal(x,y,-z); }
17
LD L2(LD x, LD y, LD z) { return __builtin_fmal(-x,y,z); }
18
LD L3(LD x, LD y, LD z) { return __builtin_fmal(x,-y,z); }
19
LD L4(LD x, LD y, LD z) { return __builtin_fmal(-x,-y,z); }

powered by: WebSVN 2.1.0

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