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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [simd-2.c] - Diff between revs 297 and 338

Only display areas with differences | Details | Blame | View Log

Rev 297 Rev 338
typedef float floatvect2 __attribute__((vector_size (8)));
typedef float floatvect2 __attribute__((vector_size (8)));
 
 
typedef union
typedef union
{
{
    floatvect2 vector;
    floatvect2 vector;
    float f[2];
    float f[2];
}resfloatvect2;
}resfloatvect2;
 
 
void tempf(float *x, float *y)
void tempf(float *x, float *y)
{
{
        floatvect2 temp={x[0],x[1]};
        floatvect2 temp={x[0],x[1]};
        floatvect2 temp1={y[0],y[1]};
        floatvect2 temp1={y[0],y[1]};
        resfloatvect2 temp2;
        resfloatvect2 temp2;
        temp2.vector=temp+temp1;
        temp2.vector=temp+temp1;
        x[0]=temp2.f[0];
        x[0]=temp2.f[0];
        x[1]=temp2.f[1];
        x[1]=temp2.f[1];
}
}
 
 

powered by: WebSVN 2.1.0

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