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

Subversion Repositories openrisc

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

Go to most recent revision | 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 128
7
 
8
/* unaligned load.  */
9
 
10
int ia[N];
11
int ib[N+1];
12
 
13
__attribute__ ((noinline))
14
int main1 ()
15
{
16
  int i;
17
 
18
  for (i=0; i <= N; i++)
19
    {
20
      ib[i] = i;
21
    }
22
 
23
  for (i = 1; i <= N; i++)
24
    {
25
      ia[i-1] = ib[i];
26
    }
27
 
28
  /* check results:  */
29
  for (i = 1; i <= N; i++)
30
    {
31
      if (ia[i-1] != ib[i])
32
        abort ();
33
    }
34
 
35
  return 0;
36
}
37
 
38
int main (void)
39
{
40
  check_vect ();
41
 
42
  return main1 ();
43
}
44
 
45
/* The initialization induction loop (with aligned access) is also vectorized.  */
46
/* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" { xfail vect_no_align } } } */
47
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_no_align } } } */
48
/* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 1 "vect" { xfail vect_no_align } } } */
49
/* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 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.