Debian Codegraph @

gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvstelm.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -mlasx -fno-vect-cost-model" } */
3 /* { dg-final { scan-assembler-times "xvstelm.w" 8} } */
4
5 #define LEN 256
6
7 float a[LEN], b[LEN], c[LEN];
8
9 void
10 test ()
11 {
12 for (int i = 0; i < LEN; i += 2)
13 a[i] = b[i] + c[i];
14 }