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-1.c] - Blame information for rev 801

Go to most recent revision | 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
void unknown_alignment (char *dest, char *src)
8
{
9
  memcpy (dest, src, 15);
10
}
11
 
12
/* We should see three unaligned word loads and store pairs, one unaligned
13
   ldrh/strh pair, and an ldrb/strb pair.  Sanity check that.  */
14
 
15
/* { dg-final { scan-assembler-times "@ unaligned" 8 } } */
16
/* { dg-final { scan-assembler-times "ldrh" 1 } } */
17
/* { dg-final { scan-assembler-times "strh" 1 } } */
18
/* { dg-final { scan-assembler-times "ldrb" 1 } } */
19
/* { dg-final { scan-assembler-times "strb" 1 } } */

powered by: WebSVN 2.1.0

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