gcc/testsuite/gcc.target/microblaze/others/sdata_var4.c
raw| 1 | /* { dg-options "-mxl-gp-opt -G 16 -fno-pic" } */ |
| 2 | |
| 3 | /* { dg-final { scan-assembler "\.sbss\[^2]+" } } */ |
| 4 | struct test_s { |
| 5 | int a; |
| 6 | int b; |
| 7 | int c; |
| 8 | int d; |
| 9 | } global; |
| 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 | } |