Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / arm / unaligned-memcpy-4.c
blobd2365131d880a0241138cac74b71336920545f1e
1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_unaligned } */
3 /* { dg-options "-O2" } */
5 #include <string.h>
7 char src[16] = { 0 };
8 char dest[16] = { 0 };
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 } } } } */