https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109465
Bug ID: 109465 Summary: LoongArch: The expansion of memcpy is slow and bloated for some sizes Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: xry111 at gcc dot gnu.org Target Milestone: --- extern char *a, *b; void test() { __builtin_memcpy(a, b, 15); } With -mno-strict-align, this is compiled to 15 ld.bu/st.b pairs instead of the optimal (4 pairs). All size values >= 19 (except 24) seem affected.