1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_fp_ok } */
3 /* { dg-skip-if "need fp instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */
4 /* { dg-options "-O2" } */
5 /* { dg-add-options arm_fp } */
6 
7 void
foo(double * p,double a,double b,int n)8 foo (double *p, double a, double b, int n)
9 {
10   double c = a + b;
11   do
12     *p++ = c;
13   while (n--);
14 }
15 
16 /* { dg-final { scan-assembler "vstmia.64" } } */
17