Debian Codegraph @

gcc/testsuite/gcc.target/mips/inline-memcpy-2.c

raw
1 /* { dg-options "-fno-common isa_rev>=6 (REQUIRES_STDLIB)" } */
2 /* { dg-skip-if "code quality test" { *-*-* } { "-O0" "-Os"} { "" } } */
3 /* { dg-final { scan-assembler-not "\tmemcpy" } } */
4 /* { dg-final { scan-assembler-times "\tsh\t" 16 } } */
5
6 /* Test that inline memcpy is expanded for target hardware without
7 swl, swr when alignment is halfword and sufficent shs are produced. */
8
9 #include <string.h>
10
11 char c[40] __attribute__ ((aligned(2)));
12
13 void
14 f1 ()
15 {
16 memcpy (c, "1234567890QWERTYUIOPASDFGHJKLZXCVBNM", 32);
17 }