summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gcc.dg/memcpy-4.c
blob: cff477a981e3f1893e508f477fa68310d3aa1f78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-rtl-expand" } */

#ifdef __mips
__attribute__((nomips16))
#endif
void
f1 (char *p)
{
  __builtin_memcpy (p, "12345", 5);
}

/* { dg-final { scan-rtl-dump "mem/u.*mem/u" "expand" { target mips*-*-* } } } */
/* { dg-final { cleanup-rtl-dump "expand" } } */
OpenPOWER on IntegriCloud