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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [sh/] [sh4a-fsrra.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 325 jeremybenn
/* Verify that we generate single-precision square root reciprocal
2
   approximate (fsrra) in fast math mode.  */
3
/* { dg-do compile { target "sh*-*-*" } } */
4
/* { dg-options "-O -ffast-math" } */
5
/* { dg-final { scan-assembler "\tfsrra\t" } } */
6
 
7
#if defined __SH4A__ && ! defined __SH4_NOFPU__
8
#include <math.h>
9
 
10
float test(float f) { return 1 / sqrtf(f); }
11
#else
12
asm ("fsrra\t");
13
#endif

powered by: WebSVN 2.1.0

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