Debian Codegraph @

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

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