Debian Codegraph @

gcc/testsuite/gcc.target/loongarch/divf.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ffast-math -mrecip -mfrecipe -fno-unsafe-math-optimizations" } */
3 /* { dg-final { scan-assembler "fdiv.s" } } */
4 /* { dg-final { scan-assembler-not "frecipe.s" } } */
5
6 float
7 foo(float a, float b)
8 {
9 return a / b;
10 }