OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [ia64/] [mfused-madd-vect.c] - Blame information for rev 716

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-do compile */
2
/* { dg-options "-O2 -ftree-vectorize" } */
3
/* { dg-final { scan-assembler-not "fpmpy" } } */
4
 
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.  */
7
 
8
#define N 16
9
extern bar(float *, float *, float *, float *);
10
void foo()
11
{
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];
17
        }
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];
22
        }
23
        bar(a,b,c,d);
24
#endif
25
        for (i = 0; i < N; i++) {
26
                a[i] = b[i] * c[i] + d[i];
27
        }
28
        bar(a,b,c,d);
29
        for (i = 0; i < N; i++) {
30
                a[i] = b[i] * c[i] - d[i];
31
        }
32
        bar(a,b,c,d);
33
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.