diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/microblaze/others/strings1.c')
-rw-r--r-- | gcc/testsuite/gcc.target/microblaze/others/strings1.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/microblaze/others/strings1.c b/gcc/testsuite/gcc.target/microblaze/others/strings1.c new file mode 100644 index 000000000..7a63faf79 --- /dev/null +++ b/gcc/testsuite/gcc.target/microblaze/others/strings1.c @@ -0,0 +1,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); +} |