Debian Codegraph @

gcc/testsuite/gcc.target/microblaze/others/sdata_var5.c

raw
1 /* { dg-options "-mxl-gp-opt -G 16 -fno-pic" } */
2
3 /* { dg-final { scan-assembler "\.sdata\[^2]+" } } */
4 struct test_s {
5 int a;
6 int b;
7 int c;
8 int d;
9 } global = { 1, 2, 3, 4 };
10
11 int testfunc ()
12 {
13 /* { dg-final { scan-assembler "\lwi\tr(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r13" } } */
14 return global.a;
15 }