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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 691 jeremybenn
/* Verify that we generate a single single-precision sine and cosine
2
   approximate (fsca) in fast math mode when a function computes both
3
   sine and cosine.  */
4
/* { dg-do compile { target "sh*-*-*" } } */
5
/* { dg-options "-O -ffast-math" } */
6
/* { dg-skip-if "" { "sh*-*-*" } { "*" } { "-m4a" "-m4a-single" "-m4a-single-only" } }  */
7
/* { dg-final { scan-assembler-times "fsca" 1 } } */
8
 
9
#include <math.h>
10
 
11
float test(float f) { return sinf(f) + cosf(f); }
12
 

powered by: WebSVN 2.1.0

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