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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [vect-36-big-array.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-require-effective-target vect_int } */
2
 
3
#include <stdarg.h>
4
#include "tree-vect.h"
5
 
6
#define N 128
7
 
8
__attribute__ ((noinline))
9
int main1 ()
10
{
11
  int i;
12
  struct {
13
    char ca[N];
14
    char cb[N];
15
  } s;
16
 
17
 
18
  for (i = 0; i < N; i++)
19
    {
20
      s.cb[i] = 3*i;
21
      __asm__ volatile ("");
22
    }
23
 
24
  for (i = 0; i < N; i++)
25
    {
26
      s.ca[i] = s.cb[i];
27
    }
28
 
29
  /* check results:  */
30
  for (i = 0; i < N; i++)
31
    {
32
      if (s.ca[i] != s.cb[i])
33
        abort ();
34
    }
35
 
36
  return 0;
37
}
38
 
39
int main (void)
40
{
41
  check_vect ();
42
 
43
  return main1 ();
44
}
45
 
46
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
47
/* { 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.