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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [mips/] [nmadd-2.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 321 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fno-fast-math -ffinite-math-only isa=4 -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
NOMIPS16 float
9
sub1 (float f, float g, float h)
10
{
11
  return -((f * g) + h);
12
}
13
 
14
NOMIPS16 double
15
sub2 (double f, double g, double h)
16
{
17
  return -((f * g) + h);
18
}
19
 
20
NOMIPS16 float
21
sub3 (float f, float g, float h)
22
{
23
  return -((f * g) - h);
24
}
25
 
26
NOMIPS16 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.