blob: 362f7c0c9e9efa396c2c97598fa390b3fe094fd9 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2" } */
struct a {
long x;
long y;
long z;
};
int passstruct (int b, struct a aa) {
return aa.z + aa.y + b;
}
/* Ensure our struct reads are offset from the address in arg 2. */
/* { dg-final { scan-assembler-times "l.lwz\\s+r\\d+, \\d+.r4." 2 } } */