comparison gcc/testsuite/gcc.dg/vect/pr85597.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
1 /* { dg-do compile } */
2 /* { dg-options "-O3" } */
3 /* { dg-additional-options "-mfma" { target { x86_64-*-* i?86-*-* } } } */
4
5 extern double fma (double, double, double);
6
7 static inline void
8 bar (int i, double *D, double *S)
9 {
10 while (i-- > 0)
11 {
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;
18 }
19 }
20
21 void
22 foo (double *d, double *s)
23 {
24 bar (10, d, s);
25 }
26