blob: 29839da8c14f990536b7b15c88a1fbf6e92b3826 (
plain)
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 -mcpu=power6 -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 "frsqrtes" 3 } } */
|