1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_unaligned } */
3 /* { dg-options "-O2" } */
10 void aligned_both (void)
12 memcpy (dest
, src
, 15);
15 /* We know both src and dest to be aligned: expect multiword loads/stores. */
17 /* { dg-final { scan-assembler-times "ldm" 1 { target { ! { arm_prefer_ldrd_strd } } } } } */
18 /* { dg-final { scan-assembler-times "stmia" 1 { target { ! { arm_prefer_ldrd_strd } } } } } */
19 /* { dg-final { scan-assembler "ldrd" { target { arm_prefer_ldrd_strd } } } } */
20 /* { dg-final { scan-assembler-times "ldm" 0 { target { arm_prefer_ldrd_strd } } } } */
21 /* { dg-final { scan-assembler "strd" { target { arm_prefer_ldrd_strd } } } } */
22 /* { dg-final { scan-assembler-times "stm" 0 { target { arm_prefer_ldrd_strd } } } } */