OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [arm/] [unaligned-memcpy-4.c] - Blame information for rev 691

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-do compile } */
2
/* { dg-require-effective-target arm_unaligned } */
3
/* { dg-options "-O2" } */
4
 
5
#include <string.h>
6
 
7
char src[16];
8
char dest[16];
9
 
10
void aligned_both (void)
11
{
12
  memcpy (dest, src, 15);
13
}
14
 
15
/* We know both src and dest to be aligned: expect multiword loads/stores.  */
16
 
17
/* { dg-final { scan-assembler-times "ldmia" 1 } } */
18
/* { dg-final { scan-assembler-times "stmia" 1 } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.