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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [bb-slp-4.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 16 
7
 
8
unsigned short out[N];
9
unsigned short in[N] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
10
 
11
int i;
12
__attribute__ ((noinline)) int
13
main1 ()
14
{
15
  unsigned short *pin = &in[0];
16
  unsigned short *pout = &out[0];
17
 
18
  *pout++ = *pin++;
19
  *pout++ = *pin++;
20
 
21
  if (i)
22
    __asm__ volatile ("" : : : "memory");
23
 
24
  /* Check results.  */
25
  if (out[0] != in[0]
26
      || out[1] != in[1])
27
    abort();
28
 
29
  return 0;
30
}
31
 
32
int main (void)
33
{
34
  check_vect ();
35
 
36
  main1 ();
37
 
38
  return 0;
39
}
40
 
41
/* { dg-final { scan-tree-dump-times "basic block vectorized using SLP" 0 "slp" } } */
42
/* { dg-final { cleanup-tree-dump "slp" } } */
43
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.