OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [pr35821-altivec.c] - Blame information for rev 307

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

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile { target { powerpc_altivec_ok } } } */
2
 
3
#include "altivec.h"
4
 
5
void
6
foo (float f_gain1, int n_tail, float * __restrict__ f_in_hptr,
7
     float * __restrict__ f_out_hptr)
8
{
9
  int i;
10
  vector float *v_f_in_hptr, *v_f_out_hptr;
11
 
12
  f_in_hptr = ( float* )v_f_in_hptr;
13
  f_out_hptr = ( float* )v_f_out_hptr;
14
 
15
  for( i = 0 ; i < n_tail ; i++ ) {
16
   f_out_hptr[0] = f_in_hptr[0] * f_gain1;
17
   f_in_hptr++;
18
   f_out_hptr++;
19
  }
20
}
21
 
22
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
23
/* { dg-final { cleanup-tree-dump "vect" } } */
24
 

powered by: WebSVN 2.1.0

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