summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/microblaze/others/sdata_var3.c
blob: 07c80041c72e0395a0a7204a0fec871402f26a12 (plain)
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;
}