summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/microblaze/others/sdata_var2.c
blob: 1c91d004305f39a5848e7393778090fe000a39cc (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-options "-mxl-gp-opt" } */

/* { dg-final { scan-assembler "\.sdata\[^2]+" } } */
int global = 10;

int testfunc ()
{
/* { dg-final { scan-assembler "\lwi\tr(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r13" } } */
    return global;
}