Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / ia64 / mfused-madd-vect.c
blob5bf6976caa0bede98c5d694c86425f3733515472
1 /* { dg-do compile */
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. */
8 #define N 16
9 extern void bar(float *, float *, float *, float *);
10 void foo()
12 int i;
13 float a[N], b[N], c[N], d[N];
14 bar(a,b,c,d);
15 for (i = 0; i < N; i++) {
16 a[i] = b[i] + c[i] * d[i];
18 bar(a,b,c,d);
19 #if 0
20 for (i = 0; i < N; i++) {
21 a[i] = b[i] - c[i] * d[i];
23 bar(a,b,c,d);
24 #endif
25 for (i = 0; i < N; i++) {
26 a[i] = b[i] * c[i] + d[i];
28 bar(a,b,c,d);
29 for (i = 0; i < N; i++) {
30 a[i] = b[i] * c[i] - d[i];
32 bar(a,b,c,d);