Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / s390 / global-array-element-pic.c
blob3569d5b2be71640d6f208909ae2a84ee03f25529
1 /* Test accesses to global array elements in PIC code. */
2 /* { dg-do compile } */
3 /* { dg-options "-O1 -march=z900 -fPIC" } */
5 extern char a[] __attribute__ ((aligned (2)));
6 extern char *b;
8 void c()
10 b = a + 4;
11 /* { dg-final { scan-assembler {(?n)\n\tlarl\t%r\d+,a@GOTENT\n} } } */
12 /* { dg-final { scan-assembler-not {(?n)\n\tlarl\t%r\d+,a[^@]} } } */