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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [vect-96.c] - Blame information for rev 867

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-require-effective-target vect_int } */
2
 
3
#include <stdarg.h>
4
#include "tree-vect.h"
5
 
6
#define N 16
7
 
8
struct tmp
9
{
10
     int x;
11
     int ia[N];
12
};
13
 
14
int main1 (int off)
15
{
16
  struct tmp sb[N];
17
  struct tmp *pp = &sb[off];
18
  int i, ib[N];
19
 
20
  for (i = 0; i < N; i++)
21
      pp->ia[i] = ib[i];
22
 
23
  /* check results: */
24
  for (i = 0; i < N; i++)
25
    {
26
       if (pp->ia[i] != ib[i])
27
         abort();
28
    }
29
 
30
  return 0;
31
}
32
 
33
int main (void)
34
{
35
  check_vect ();
36
 
37
  return main1 (8);
38
}
39
 
40
/* The store is unaligned, the load is aligned. For targets that support unaligned
41
   loads, peel to align the store and generated unaligned access for the loads.
42
   For targets that don't support unaligned loads, version for the store.  */
43
 
44
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
45
/* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 1 "vect" { xfail vect_no_align } } } */
46
/* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 1 "vect" { xfail vect_no_align } } } */
47
/* { dg-final { scan-tree-dump-times "Alignment of access forced using versioning." 1 "vect" { target vect_no_align } } } */
48
/* { 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.