1 /* { dg-options "-fno-common isa_rev<=5 -mabi=32 (REQUIRES_STDLIB)" } */
2 /* { dg-skip-if "code quality test" { *-*-* } { "-O0" "-Os"} { "" } } */
3 /* { dg-final { scan-assembler-not "\tmemcpy" } } */
4 /* { dg-final { scan-assembler-times "swl" 8 } } */
5 /* { dg-final { scan-assembler-times "swr" 8 } } */
6 
7 /* Test that inline memcpy for hardware with swl, swr handles subword
8    alignment and produces enough swl/swrs for mips32.  */
9 
10 #include <string.h>
11 
12 char c[40] __attribute__ ((aligned(2)));
13 
14 void
f1()15 f1 ()
16 {
17   memcpy (c, "1234567890QWERTYUIOPASDFGHJKLZXCVBNM", 32);
18 }
19