aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/sh/sh4a-memmovua.c
blob: 7e817c4c12295102b5b94dfecaeecf62111fc63d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* Verify that we generate movua to copy unaligned memory regions to
   32-bit-aligned addresses on SH4A.  */
/* { dg-do compile { target "sh*-*-*" } } */
/* { dg-options "-O" } */
/* { dg-skip-if "" { "sh*-*-*" } { "*" } { "-m4a" "-m4a-single" "-m4a-single-only" "-m4a-nofpu" } }  */
/* { dg-final { scan-assembler-times "movua.l" 2 } } */

#include <string.h>

struct s { int i; char a[10], b[10]; } x;
int f() {
  memcpy(x.a, x.b, 10);
}