2018-05-02 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr85597.c
blobcf615f9c4645244c51e2194e6a5483e6d43139ef
1 /* { dg-do compile } */
2 /* { dg-options "-O3" } */
3 /* { dg-additional-options "-mfma" { target { x86_64-*-* i?86-*-* } } } */
5 extern double fma (double, double, double);
7 static inline void
8 bar (int i, double *D, double *S)
10 while (i-- > 0)
12 D[0] = fma (1, S[0], D[0]);
13 D[1] = fma (1, S[1], D[1]);
14 D[2] = fma (1, S[2], D[2]);
15 D[3] = fma (1, S[3], D[3]);
16 D += 4;
17 S += 4;
21 void
22 foo (double *d, double *s)
24 bar (10, d, s);