gcc/testsuite/gcc.target/aarch64/thunderxnoloadpair.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -mcpu=thunderx" } */ |
| 3 | |
| 4 | struct noldp |
| 5 | { |
| 6 | int a, b; |
| 7 | }; |
| 8 | |
| 9 | |
| 10 | int f(struct noldp *a) |
| 11 | { |
| 12 | return a->a + a->b; |
| 13 | } |
| 14 | |
| 15 | /* We know the alignement of a->a to be 4 byte aligned so it is not profitable |
| 16 | to do ldp. */ |
| 17 | /* { dg-final { scan-assembler-not "ldp\tw\[0-9\]+, w\[0-9\]" } } */ |