blob: 42e2a6bbdf7463b42015ff5dfaac0eebf90c77b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* { dg-do compile } */
/* { dg-require-effective-target arm_unaligned } */
/* { dg-options "-O2 -save-temps" } */
void *memcpy (void *dest, const void *src, unsigned int n);
void foo (char *dst, int i)
{
memcpy (dst, &i, sizeof (i));
}
/* { dg-final { scan-assembler-times "str\t" 1 } } */
/* { dg-final { scan-assembler-not "ldr\t" } } */
|