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/] [costmodel/] [ppc/] [costmodel-vect-68d.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_int } */
2
 
3
#include <stdarg.h>
4
#include "../../tree-vect.h"
5
 
6
#define N 11 
7
 
8
struct s{
9
  int m;
10
  int n[N][N][N];
11
};
12
 
13
struct test1{
14
  struct s a; /* array a.n is unaligned */
15
  int b;
16
  int c;
17
  struct s e; /* array e.n is aligned */
18
};
19
 
20
int main1 ()
21
{
22
  int i,j;
23
  struct test1 tmp1;
24
 
25
  /* 4. unaligned */
26
  for (i = 3; i < N-3; i++)
27
    {
28
      tmp1.e.n[1][2][i] = 8;
29
    }
30
 
31
  /* check results:  */
32
  for (i = 3; i <N-3; i++)
33
    {
34
      if (tmp1.e.n[1][2][i] != 8)
35
        abort ();
36
    }
37
 
38
  return 0;
39
}
40
 
41
int main (void)
42
{
43
  check_vect ();
44
 
45
  return main1 ();
46
}
47
 
48
/* { dg-final { scan-tree-dump-times "vectorization not profitable" 1 "vect" } } */
49
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 0 "vect" } } */
50
/* { 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.