summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/memcpy-1.c
blob: f3eda7500db8d5f5aaefe71fc1bf2d245ebd3caa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-final { scan-assembler-not "\tlbu\t" } } */

#include <string.h>

char c[10];

void
f1 ()
{
  memcpy (c, "123456", 6);
}

void
f2 ()
{
  memcpy (c, &"12345678"[2], 6);
}