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-ifcvt-3.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_condition } */
2
 
3
#include <stdarg.h>
4
#include <signal.h>
5
#include "tree-vect.h"
6
 
7
#define N 16
8
#define MAX 42
9
 
10
extern void abort(void);
11
 
12
int main ()
13
{
14
  int A[N] = {36,39,42,45,43,32,21,12,23,34,45,56,67,78,89,11};
15
  int B[N] = {0,0,0,42,42,0,0,0,0,0,42,42,42,42,42,0};
16
  int i, j;
17
 
18
  check_vect ();
19
 
20
  for (i = 0; i < 16; i++)
21
    A[i] = ( A[i] > MAX ? MAX : 0);
22
 
23
  /* check results:  */
24
  for (i = 0; i < N; i++)
25
    if (A[i] != B[i])
26
      abort ();
27
 
28
  return 0;
29
}
30
 
31
 
32
 
33
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
34
/* { 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.