2 /* { dg-options "-O2 -ftree-vectorize" } */
3 /* { dg-final { scan-assembler-not "fpmpy" } } */
5 /* fpma and fpms will show in either way because there are no
6 specific vector add/sub instructions. So we just check for fpmpy. */
9 extern void bar(float *, float *, float *, float *);
13 float a
[N
], b
[N
], c
[N
], d
[N
];
15 for (i
= 0; i
< N
; i
++) {
16 a
[i
] = b
[i
] + c
[i
] * d
[i
];
20 for (i
= 0; i
< N
; i
++) {
21 a
[i
] = b
[i
] - c
[i
] * d
[i
];
25 for (i
= 0; i
< N
; i
++) {
26 a
[i
] = b
[i
] * c
[i
] + d
[i
];
29 for (i
= 0; i
< N
; i
++) {
30 a
[i
] = b
[i
] * c
[i
] - d
[i
];