aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/s390/global-array-odd-element.c
blob: 84a65e556262b8ce04ead402ce31a6b0a7d9cb04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Test accesses to odd global array elements.  */
/* { dg-do compile } */
/* { dg-options "-O1" } */

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

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