diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/microblaze/others/sdata_var4.c')
-rw-r--r-- | gcc/testsuite/gcc.target/microblaze/others/sdata_var4.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/microblaze/others/sdata_var4.c b/gcc/testsuite/gcc.target/microblaze/others/sdata_var4.c new file mode 100644 index 000000000..4dfa337d5 --- /dev/null +++ b/gcc/testsuite/gcc.target/microblaze/others/sdata_var4.c @@ -0,0 +1,15 @@ +/* { dg-options "-mxl-gp-opt -G 16" } */ + +/* { dg-final { scan-assembler "\.sbss\[^2]+" } } */ +struct test_s { + int a; + int b; + int c; + int d; +} global; + +int testfunc () +{ +/* { dg-final { scan-assembler "\lwi\tr(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r13" } } */ + return global.a; +} |