1 /* { dg-options "-mxl-gp-opt" } */
2 
3 #include <string.h>
4 
5 /* { dg-final { scan-assembler "\.rodata*" } } */
6 /* { dg-final { scan-assembler "\.sdata\[^2]+" } } */
7 const char *string1 = "string1";
8 
testfunc(char * cptr)9 char* testfunc (char *cptr)
10 {
11 /* { dg-final { scan-assembler "\lwi\tr(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r13" } } */
12     strcpy (cptr, string1);
13 
14     return cptr;
15 }
16