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