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

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

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