1 /* { dg-do compile } */ 2 /* { dg-options "-O2 -ffast-math" } */ 3 4 extern float sinf (float); 5 extern float cosf (float); 6 7 float sincos_add(float x)8sincos_add (float x) 9 { 10 float s = sinf (x); 11 float c = cosf (x); 12 13 return s + c; 14 } 15 16 /* { dg-final { scan-assembler-times "sin.approx.f32" 1 } } */ 17 /* { dg-final { scan-assembler-times "cos.approx.f32" 1 } } */ 18