Debian Codegraph @

gcc/testsuite/gcc.target/loongarch/recip-sqrtf.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ffast-math -mrecip -mfrecipe" } */
3 /* { dg-final { scan-assembler-times "frsqrte.s" 3 } } */
4
5 extern float sqrtf (float);
6
7 float
8 foo1 (float a, float b)
9 {
10 return a/sqrtf(b);
11 }
12
13 float
14 foo2 (float a, float b)
15 {
16 return sqrtf(a/b);
17 }
18
19 float
20 foo3 (float a)
21 {
22 return sqrtf(a);
23 }