Debian Codegraph @

gcc/testsuite/gcc.target/loongarch/vector/lsx/lsx-divf.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ffast-math -mrecip -mlsx -mfrecipe -fno-unsafe-math-optimizations" } */
3 /* { dg-final { scan-assembler "vfdiv.s" } } */
4 /* { dg-final { scan-assembler-not "vfrecipe.s" } } */
5
6 float a[4],b[4],c[4];
7
8 void
9 foo ()
10 {
11 for (int i = 0; i < 4; i++)
12 c[i] = a[i] / b[i];
13 }