OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.target/] [mips/] [nmadd-3.c] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* The same code as nmadd-2.c, but compiled with -fno-finite-math-only.
2
   We can't use nmadd and nmsub in that case.  */
3
/* { dg-do compile } */
4
/* { dg-mips-options "-O2 -fno-fast-math -fno-finite-math-only -mips4 -mhard-float" } */
5
/* { dg-final { scan-assembler-not "nmadd.s" } } */
6
/* { dg-final { scan-assembler-not "nmadd.d" } } */
7
/* { dg-final { scan-assembler-not "nmsub.s" } } */
8
/* { dg-final { scan-assembler-not "nmsub.d" } } */
9
 
10
float
11
sub1 (float f, float g, float h)
12
{
13
  return -((f * g) + h);
14
}
15
 
16
double
17
sub2 (double f, double g, double h)
18
{
19
  return -((f * g) + h);
20
}
21
 
22
float
23
sub3 (float f, float g, float h)
24
{
25
  return -((f * g) - h);
26
}
27
 
28
double
29
sub4 (double f, double g, double h)
30
{
31
  return -((f * g) - h);
32
}

powered by: WebSVN 2.1.0

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