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/] [pr18536.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
int main1 (short a, short *b)
9
{
10
  while (++a < 4) *b++ = 2;
11
 
12
  return 0;
13
}
14
 
15
int main (void)
16
{
17
  int i = 0;
18
  short x[N];
19
 
20
  check_vect ();
21
 
22
  main1 (0, x);
23
 
24
  /* check results:  */
25
  while (++i < 4)
26
    {
27
      if (x[i-1] != 2)
28
        abort ();
29
    }
30
 
31
  return 0;
32
}
33
 
34
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
35
/* { 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.