aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/alpha/pr24178.c
blob: 0a31aa7366ad2a86563747bedcb1a4c7b50a88e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-O2 -mcpu=ev4" } */

struct S {
    long l;
    unsigned char c;
};
unsigned long f(unsigned char *p10) {
    struct S *p = (struct S *) (p10 + 10);
    return p->c;
}

/* { dg-final { scan-assembler "ldl.*,18\\(" } } */