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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [sh/] [sh4a-memmovua.c] - Blame information for rev 691

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
/* Verify that we generate movua to copy unaligned memory regions to
2
   32-bit-aligned addresses on SH4A.  */
3
/* { dg-do compile { target "sh*-*-*" } } */
4
/* { dg-options "-O" } */
5
/* { dg-skip-if "" { "sh*-*-*" } { "*" } { "-m4a" "-m4a-single" "-m4a-single-only" "-m4a-nofpu" } }  */
6
/* { dg-final { scan-assembler-times "movua.l" 2 } } */
7
 
8
#include <string.h>
9
 
10
struct s { int i; char a[10], b[10]; } x;
11
int f() {
12
  memcpy(x.a, x.b, 10);
13
}
14
 

powered by: WebSVN 2.1.0

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