1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
/* { dg-do compile } */ /* { dg-options "-O2 -ffast-math -msse -mfpmath=sse -mrecip" } */ extern float sqrtf (float); float t1(float a, float b) { return a/sqrtf(b); } float t2(float a, float b) { return sqrtf(a/b); } float t3(float a) { return sqrtf(a); } /* { dg-final { scan-assembler-times "rsqrtss" 3 } } */