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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [mips/] [nmadd-1.c] - Blame information for rev 704

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

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