gcc/testsuite/gcc.target/or1k/args-2.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2" } */ |
| 3 | |
| 4 | struct a { |
| 5 | long x; |
| 6 | long y; |
| 7 | long z; |
| 8 | }; |
| 9 | |
| 10 | int passstruct (int b, struct a aa) { |
| 11 | return aa.z + aa.y + b; |
| 12 | } |
| 13 | |
| 14 | /* Ensure our struct reads are offset from the address in arg 2. */ |
| 15 | /* { dg-final { scan-assembler-times "l.lwz\\s+r\\d+, \\d+.r4." 2 } } */ |