summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/vfp-ldmiad.c
blob: 6f052671299ef3921e088492858c5d37d74aae17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-require-effective-target arm_vfp_ok } */
/* { dg-skip-if "need fp instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */
/* { dg-options "-O2 -mfpu=vfp -mfloat-abi=softfp" } */

extern void bar (double);

void
foo (double *p, double a, int n)
{
  do
    bar (*p++ + a);
  while (n--);
}

/* { dg-final { scan-assembler "fldmiad" } } */