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

Subversion Repositories openrisc

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

powered by: WebSVN 2.1.0

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