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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [pr31699.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-require-effective-target vect_double } */
2
 
3
#include <stdlib.h>
4
#include <stdarg.h>
5
#include "tree-vect.h"
6
 
7
float x[256];
8
 
9
__attribute__ ((noinline))
10
double *foo(void)
11
{
12
 double *z = malloc (sizeof(double) * 256);
13
 
14
 int i;
15
 for (i=0; i<256; ++i)
16
   z[i] = x[i] + 1.0f;
17
 
18
 return z;
19
}
20
 
21
 
22
int main()
23
{
24
 int i;
25
 
26
 check_vect ();
27
 
28
 for (i = 0; i < 256; i++)
29
   x[i] = (float) i;
30
 
31
 foo();
32
 
33
 return 0;
34
}
35
 
36
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect" { target vect_intfloat_cvt } } } */
37
/* { dg-final { scan-tree-dump-times "vector alignment may not be reachable" 1 "vect" { target { ! vector_alignment_reachable } } } } */
38
/* { dg-final { scan-tree-dump-times "Alignment of access forced using versioning" 1 "vect" { target { ! vector_alignment_reachable } } } } */
39
/* { dg-final { cleanup-tree-dump "vect" } } */

powered by: WebSVN 2.1.0

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