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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [sh/] [sh4a-fsrra.c] - Blame information for rev 720

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

Line No. Rev Author Line
1 691 jeremybenn
/* Verify that we generate single-precision square root reciprocal
2
   approximate (fsrra) in fast math mode on SH4A with FPU.  */
3
/* { dg-do compile { target "sh*-*-*" } } */
4
/* { dg-options "-O -ffast-math" } */
5
/* { dg-skip-if "" { "sh*-*-*" } { "*" } { "-m4a" "-m4a-single" "-m4a-single-only" } }  */
6
/* { dg-final { scan-assembler "fsrra" } } */
7
 
8
#include <math.h>
9
 
10
float test(float f) { return 1 / sqrtf(f); }
11
 

powered by: WebSVN 2.1.0

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