aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/vfp-stmdbs.c
blob: dbb30ecd6bc8e4610f4b6252b8aa7f1b703fc235 (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_fp_ok } */
/* { dg-skip-if "need fp instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */
/* { dg-options "-O2" } */
/* { dg-add-options arm_fp } */

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

/* { dg-final { scan-assembler "vstmdb.32" } } */