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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [vect-11.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
/* { dg-require-effective-target vect_int_mult } */
3
 
4
#include <stdarg.h>
5
#include "tree-vect.h"
6
 
7
#define N 16
8
 
9
int ia[N];
10
int ic[N] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
11
int ib[N] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
12
 
13
__attribute__ ((noinline))
14
int main1 ()
15
{
16
  int i;
17
 
18
  /* Not vectorizable yet (integer mult).  */
19
  for (i = 0; i < N; i++)
20
    {
21
      ia[i] = ib[i] * ic[i];
22
    }
23
 
24
  /* check results:  */
25
  for (i = 0; i < N; i++)
26
    {
27
      if (ia[i] != ib[i] * ic[i])
28
        abort ();
29
    }
30
 
31
  return 0;
32
}
33
 
34
int main (void)
35
{
36
  check_vect ();
37
 
38
  return main1 ();
39
}
40
 
41
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
42
/* { 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.