Debian Codegraph @

gcc/testsuite/gcc.target/s390/section-anchors.c

raw
1 /* Test basic section anchor functionality. */
2
3 /* { dg-do compile { target { lp64 } } } */
4 /* { dg-options "-O3 -march=z13" } */
5
6 int a = 1, b = 2;
7
8 void
9 f ()
10 {
11 a = 1234;
12 b = 5678;
13 /* { dg-final { scan-assembler {(?n)\n\tlarl\t(%r\d+),\.LANCHOR\d+\n\tmvhi\t\d+\(\1\),1234\n\tmvhi\t\d+\(\1\),5678} } } */
14 }