Debian Codegraph @

gcc/testsuite/gcc.target/loongarch/memcpy-vec-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mabi=lp64d -march=la464 -mno-strict-align" } */
3 /* { dg-final { scan-assembler-times "xvst" 2 } } */
4 /* { dg-final { scan-assembler-times "\tvst" 1 } } */
5 /* { dg-final { scan-assembler-times "st\\.d|stptr\\.d" 1 } } */
6 /* { dg-final { scan-assembler-times "st\\.w|stptr\\.w" 1 } } */
7 /* { dg-final { scan-assembler-times "st\\.h" 1 } } */
8 /* { dg-final { scan-assembler-times "st\\.b" 1 } } */
9
10 extern char a[], b[];
11 void test() { __builtin_memcpy(a, b, 95); }