summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/vfp-stmdbd.c
blob: d8093d9d4b6139aaadba1d2447b037c080b1f021 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { 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" } */

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

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