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/] [rsqrt-4.c] - Blame information for rev 321

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

Line No. Rev Author Line
1 321 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -ffast-math -mips64 -mhard-float -mgp32" } */
3
/* { dg-final { scan-assembler-not "\trsqrt.d\t" } } */
4
/* { dg-final { scan-assembler-times "\trsqrt.s\t" 2 } } */
5
 
6
extern double sqrt(double);
7
extern float sqrtf(float);
8
 
9
NOMIPS16 double f1 (double x)
10
{
11
  return 1.0 / sqrt (x);
12
}
13
 
14
NOMIPS16 double f2 (double x)
15
{
16
  return sqrt (1.0 / x);
17
}
18
 
19
NOMIPS16 float f3 (float x)
20
{
21
  return 1.0f / sqrtf (x);
22
}
23
 
24
NOMIPS16 float f4 (float x)
25
{
26
  return sqrtf (1.0f / x);
27
}

powered by: WebSVN 2.1.0

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