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