blob: e9feb93409b52f8b28786be45f3a85d02043743c [file] [log] [blame]
/* { dg-options "-fno-common isa_rev>=6 (REQUIRES_STDLIB)" } */
/* { dg-skip-if "code quality test" { *-*-* } { "-O0" "-Os"} { "" } } */
/* { dg-final { scan-assembler-not "\tmemcpy" } } */
/* { dg-final { scan-assembler-times "\tsh\t" 16 } } */
/* Test that inline memcpy is expanded for target hardware without
swl, swr when alignment is halfword and sufficent shs are produced. */
#include <string.h>
char c[40] __attribute__ ((aligned(2)));
void
f1 ()
{
memcpy (c, "1234567890QWERTYUIOPASDFGHJKLZXCVBNM", 32);
}