Debian Codegraph @

gcc/testsuite/gcc.target/loongarch/vect-ld-st-imm12.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=loongarch64 -mabi=lp64d -mlasx -O2" } */
3 /* { dg-final { scan-assembler-not "addi.d" } } */
4
5 extern short a[1000];
6 extern short b[1000];
7 extern short c[1000];
8
9 void
10 test (void)
11 {
12 for (int i = 501; i < 517; i++)
13 ((int *)(c + 1))[i] = ((int *)(a + 1))[i] + ((int *)(b + 1))[i];
14 }
15