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-shift-1.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_shift } */
2
 
3
#include <stdarg.h>
4
#include "tree-vect.h"
5
 
6
#define N 4
7
 
8
int main ()
9
{
10
  unsigned int A[N] = { 0x08000000, 0x08000001, 0x0ff0000ff, 0xf0000001 };
11
  unsigned int B[N] = { 0x01000000, 0x01000000, 0x01fe0001f, 0x1e000000 };
12
  int i;
13
 
14
  check_vect ();
15
 
16
  for (i = 0; i < N; i++)
17
    A[i] = A[i] >> 3;
18
 
19
  /* check results:  */
20
  for (i = 0; i < N; i++)
21
    if (A[i] != B[i])
22
      abort ();
23
 
24
  return 0;
25
}
26
 
27
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
28
/* { 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.