aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/inline-memcpy-1.c
blob: 8b1ad80520df75eae8ea4892c96ee85271821767 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-options "-fno-common isa_rev>=6 (REQUIRES_STDLIB)" } */
/* { dg-skip-if "code quality test" { *-*-* } { "-O0" "-Os" } { "" } } */
/* { dg-final { scan-assembler-not "\tmemcpy" } } */

/* Test that memcpy is inline for target hardware
   without swl, swr.  */

#include <string.h>

char c[40] __attribute__ ((aligned(8)));

void
f1 ()
{
  memcpy (c, "1234567890QWERTYUIOPASDFGHJKLZXCVBNM", 32);
}