1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mcpu=ev4" } */
3
4 struct S {
5 long l;
6 unsigned char c;
7 };
f(unsigned char * p10)8 unsigned long f(unsigned char *p10) {
9 struct S *p = (struct S *) (p10 + 10);
10 return p->c;
11 }
12
13 /* { dg-final { scan-assembler "ldl.*,18\\(" } } */
14