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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.target/] [mips/] [nmadd-1.c] - Blame information for rev 853

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
/* { dg-mips-options "-O2 -ffast-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.