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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [pr46049.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
 
3
typedef __INT16_TYPE__ int16_t;
4
typedef __INT32_TYPE__ int32_t;
5
 
6
static inline int32_t bar (int16_t x, int16_t y)
7
{
8
  return x * y;
9
}
10
 
11
void foo (int16_t i, int16_t *p, int16_t x)
12
{
13
  while (i--)
14
    {
15
      *p = bar (*p, x) >> 15;
16
      p++;
17
      *p = bar (*p, x) >> 15;
18
      p++;
19
    }
20
}
21
/* { 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.