aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/s390/global-array-almost-huge-element.c
blob: afbe16468028aa97cdf8a4f165d35a0f6da71571 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Test the maximum possible LARL offset.  */
/* { dg-do compile { target lp64 } } */
/* { dg-options "-O1" } */

extern char a[] __attribute__ ((aligned (2)));
extern char *b;

void almost_huge()
{
  b = a + 0x7ffffffeULL;
  /* { dg-final { scan-assembler {(?n)\n\tlarl\t%r\d+,a\+2147483646\n} } } */
}