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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.target/] [mips/] [nmadd-2.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* { dg-do compile } */
2
/* { dg-mips-options "-O2 -fno-fast-math -mips4 -mhard-float" } */
3
/* { dg-final { scan-assembler "nmadd.s" } } */
4
/* { dg-final { scan-assembler "nmadd.d" } } */
5
/* { dg-final { scan-assembler "nmsub.s" } } */
6
/* { dg-final { scan-assembler "nmsub.d" } } */
7
 
8
float
9
sub1 (float f, float g, float h)
10
{
11
  return -((f * g) + h);
12
}
13
 
14
double
15
sub2 (double f, double g, double h)
16
{
17
  return -((f * g) + h);
18
}
19
 
20
float
21
sub3 (float f, float g, float h)
22
{
23
  return -((f * g) - h);
24
}
25
 
26
double
27
sub4 (double f, double g, double h)
28
{
29
  return -((f * g) - h);
30
}

powered by: WebSVN 2.1.0

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