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

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

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