summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/thunderxloadpair.c
blob: 14b1f736093ef18256fe54a791ae361c81c9678f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile } */
/* { dg-options "-O2 -mcpu=thunderx" } */

struct ldp
{
  long long c;
  int a, b;
};


int f(struct ldp *a)
{
  return a->a + a->b;
}


/* We know the alignement of a->a to be 8 byte aligned so it is profitable
   to do ldp. */
/* { dg-final { scan-assembler-times "ldp\tw\[0-9\]+, w\[0-9\]" 1 } } */