summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/inline-memcpy-5.c
blob: 1b9fa16b2a74be743e4c1f4b916ec37da144d869 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-options "-fno-common isa_rev<=5 -mabi=n32" } */
/* { dg-skip-if "code quality test" { *-*-* } { "-O0" "-Os"} { "" } } */
/* { dg-final { scan-assembler-not "\tmemcpy" } } */
/* { dg-final { scan-assembler-times "sdl" 4 } } */
/* { dg-final { scan-assembler-times "sdr" 4 } } */

/* Test that inline memcpy for hardware with sdl, sdr handles subword
   alignment and produces enough sdr/sdls on n32.  */

#include <string.h>

char c[40] __attribute__ ((aligned(2)));

void
f1 ()
{
  memcpy (c, "1234567890QWERTYUIOPASDFGHJKLZXCVBNM", 32);
}