blob: 533c83c08b47016049232532fb47c81c6ff9ad62 [file] [log] [blame]
/* Verify that we generate a single single-precision sine and cosine
approximate (fsca) in fast math mode when a function computes both
sine and cosine. */
/* { dg-do compile { target { sh4a && any_fpu } } } */
/* { dg-options "-O -ffast-math" } */
/* { dg-final { scan-assembler-times "fsca" 1 } } */
#include <math.h>
float
test (float f)
{
return sinf (f) + cosf (f);
}