summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/microblaze/others/strings1.c
blob: 7a63faf79f22768ac279bd0ae074d8c6703713e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-options "-O3" } */

#include <string.h>

/* { dg-final { scan-assembler "\.rodata*" } } */
extern void somefunc (char *);
int testfunc ()
{
    char string2[80];
/* { dg-final { scan-assembler "\lwi\tr(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r0,.LC*" } } */    
    strcpy (string2, "hello");
    somefunc (string2);
}