gcc/testsuite/gcc.target/loongarch/pr109465-2.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -mabi=lp64d -mstrict-align" } */ |
| 3 | /* { dg-final { scan-assembler-times "st\\.d|stptr\\.d" 1 } } */ |
| 4 | /* { dg-final { scan-assembler-times "st\\.w|stptr\\.w" 1 } } */ |
| 5 | /* { dg-final { scan-assembler-times "st\\.h" 1 } } */ |
| 6 | /* { dg-final { scan-assembler-times "st\\.b" 1 } } */ |
| 7 | |
| 8 | extern long a[], b[]; |
| 9 | void test() { __builtin_memcpy(a, b, 15); } |