aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/peep-ldrd-2.c
blob: 6822c2b1454efd8ec54f281b81fa814bf19b1956 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-require-effective-target arm_prefer_ldrd_strd } */
/* { dg-options "-O2 -mno-unaligned-access" }  */
int foo(int a, int b, int* p, int *q)
{
  a = p[2] + p[3];
  *q = a;
  *p = a;
  return a;
}
/* { dg-final { scan-assembler-not "ldrd\\t" } } */