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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [mips/] [rsqrt-2.c] - Blame information for rev 321

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 321 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -ffast-math isa=4 -mhard-float -mgp64" } */
3
/* { dg-final { scan-assembler "rsqrt.d" } } */
4
/* { dg-final { scan-assembler "rsqrt.s" } } */
5
 
6
extern double sqrt(double);
7
extern float sqrtf(float);
8
 
9
NOMIPS16 double foo(double x)
10
{
11
  return sqrt(1.0/x);
12
}
13
 
14
NOMIPS16 float bar(float x)
15
{
16
  return sqrtf(1.0f/x);
17
}

powered by: WebSVN 2.1.0

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