OSDN Git Service

* gcc.target/mips/octeon-exts-2.c: Compile it with -meb.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / mips / memcpy-1.c
1 /* { dg-do compile } */
2 /* { dg-mips-options "-O2" } */
3 /* { dg-final { scan-assembler-not "\tlbu\t" } } */
4
5 #include <string.h>
6
7 char c[10];
8
9 void
10 f1 ()
11 {
12   memcpy (c, "123456", 6);
13 }
14
15 void
16 f2 ()
17 {
18   memcpy (c, &"12345678"[2], 6);
19 }