1 2 3 4 5 6 7 8 9 10 11 12 13
/* { dg-options "-mxl-gp-opt" } */ extern int a; /* { dg-final { scan-assembler "\.sdata2" } } */ const int global1 = 10; extern const int global2; int testfunc () { /* { dg-final { scan-assembler "\lwi\tr(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r2" } } */ return global2 + global1; }