1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_unaligned } */
3 /* { dg-options "-O2" } */
9 void aligned_dest (char *src)
11 memcpy (dest, src, 15);
14 /* Expect a multi-word store for the main part of the copy, but subword
15 loads/stores for the remainder. */
17 /* { dg-final { scan-assembler-times "stmia" 1 } } */
18 /* { dg-final { scan-assembler-times "ldrh" 1 } } */
19 /* { dg-final { scan-assembler-times "strh" 1 } } */
20 /* { dg-final { scan-assembler-times "ldrb" 1 } } */
21 /* { dg-final { scan-assembler-times "strb" 1 } } */