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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [pr43430-2.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-do compile } */
2
/* { dg-require-effective-target vect_int } */
3
typedef unsigned char uint8_t;
4
vsad16_c (void *c, uint8_t * s1, uint8_t * s2, int stride, int h)
5
{
6
  int score = 0;
7
  int x, y;
8
  for (x = 0; x < 16; x++)
9
    score += ((s1[x] - s1[x + stride] + s2[x + stride]) >= 0 ?
10
              s1[x] + s2[x + stride] :
11
              s2[x + stride]);
12
  return score;
13
}
14
 
15
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_condition } } } */
16
/* { 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.