URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 338 |
/* { dg-do compile { target { spu-*-* } } } */
|
/* { dg-do compile { target { spu-*-* } } } */
|
|
|
void
|
void
|
foo (float f_gain1, int n_tail, float * __restrict__ f_in_hptr,
|
foo (float f_gain1, int n_tail, float * __restrict__ f_in_hptr,
|
float * __restrict__ f_out_hptr)
|
float * __restrict__ f_out_hptr)
|
{
|
{
|
int i;
|
int i;
|
__attribute__((__spu_vector__)) float *v_f_in_hptr, *v_f_out_hptr;
|
__attribute__((__spu_vector__)) float *v_f_in_hptr, *v_f_out_hptr;
|
|
|
f_in_hptr = ( float* )v_f_in_hptr;
|
f_in_hptr = ( float* )v_f_in_hptr;
|
f_out_hptr = ( float* )v_f_out_hptr;
|
f_out_hptr = ( float* )v_f_out_hptr;
|
|
|
for( i = 0 ; i < n_tail ; i++ ) {
|
for( i = 0 ; i < n_tail ; i++ ) {
|
f_out_hptr[0] = f_in_hptr[0] * f_gain1;
|
f_out_hptr[0] = f_in_hptr[0] * f_gain1;
|
f_in_hptr++;
|
f_in_hptr++;
|
f_out_hptr++;
|
f_out_hptr++;
|
}
|
}
|
}
|
}
|
|
|
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
|
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
|
/* { dg-final { cleanup-tree-dump "vect" } } */
|
/* { dg-final { cleanup-tree-dump "vect" } } */
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.