Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / nvptx / sincos.c
blob921ec41e69013e594c12af054dacfa7645d36d91
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ffast-math" } */
4 extern float sinf (float);
5 extern float cosf (float);
7 float
8 sincos_add (float x)
10 float s = sinf (x);
11 float c = cosf (x);
13 return s + c;
16 /* { dg-final { scan-assembler-times "sin.approx.f32" 1 } } */
17 /* { dg-final { scan-assembler-times "cos.approx.f32" 1 } } */