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