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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [recip-3.c] - Blame information for rev 691

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-do compile { target { { powerpc*-*-* } && { ! powerpc*-apple-darwin* } } } } */
2
/* { dg-require-effective-target powerpc_fprs } */
3
/* { dg-options "-O2 -mrecip -ffast-math -mcpu=power7" } */
4
/* { dg-final { scan-assembler-times "xsrsqrtedp" 1 } } */
5
/* { dg-final { scan-assembler-times "xsmsub.dp\|fmsub\ " 1 } } */
6
/* { dg-final { scan-assembler-times "xsmuldp" 4 } } */
7
/* { dg-final { scan-assembler-times "xsnmsub.dp\|fnmsub\ " 2 } } */
8
/* { dg-final { scan-assembler-times "frsqrtes" 1 } } */
9
/* { dg-final { scan-assembler-times "fmsubs" 1 } } */
10
/* { dg-final { scan-assembler-times "fmuls" 4 } } */
11
/* { dg-final { scan-assembler-times "fnmsubs" 2 } } */
12
 
13
double
14
rsqrt_d (double a)
15
{
16
  return 1.0 / __builtin_sqrt (a);
17
}
18
 
19
float
20
rsqrt_f (float a)
21
{
22
  return 1.0f / __builtin_sqrtf (a);
23
}

powered by: WebSVN 2.1.0

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