gcc/testsuite/gcc.target/mips/inline-memcpy-1.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 | |
| 5 | /* Test that memcpy is inline for target hardware |
| 6 | without swl, swr. */ |
| 7 | |
| 8 | #include <string.h> |
| 9 | |
| 10 | char c[40] __attribute__ ((aligned(8))); |
| 11 | |
| 12 | void |
| 13 | f1 () |
| 14 | { |
| 15 | memcpy (c, "1234567890QWERTYUIOPASDFGHJKLZXCVBNM", 32); |
| 16 | } |