[ARM] Fix test armv8_2-fp16-move-1.c
[official-gcc.git] / gcc / testsuite / gcc.target / arm / unaligned-memcpy-3.c
blobd0b09bd48fef9c485d021c1b58e00e6a59fdd450
1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_unaligned } */
3 /* { dg-options "-O2" } */
5 #include <string.h>
7 char src[16] = {0};
9 void aligned_src (char *dest)
11 memcpy (dest, src, 15);
14 /* Expect a multi-word load for the main part of the copy, but subword
15 loads/stores for the remainder. */
17 /* { dg-final { scan-assembler-times "ldmia" 1 { target { ! { arm_prefer_ldrd_strd } } } } } */
18 /* { dg-final { scan-assembler-times "ldrd" 1 { target { arm_prefer_ldrd_strd } } } } */
19 /* { dg-final { scan-assembler-times "strd" 0 } } */
20 /* { dg-final { scan-assembler-times "stm" 0 } } */
21 /* { dg-final { scan-assembler-times "ldrh" 1 { target { ! { arm_prefer_ldrd_strd } } } } } */
22 /* { dg-final { scan-assembler-times "strh" 1 } } */
23 /* { dg-final { scan-assembler-times "ldrb" 1 { target { ! { arm_prefer_ldrd_strd } } } } } */
24 /* { dg-final { scan-assembler-times "strb" 1 } } */