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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr23049.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
/* This was an ICE in fold where we tried to fold something like,
2
 
3
     a = 0 == 0 ? 0 : 3988292384
4
 
5
   after doing if-conversion for the vectorizer.  Folding "0 == 0"
6
   should have been done before calling fold on the whole rhs of
7
   the above expression.  */
8
 
9
/* { dg-do compile } */
10
/* { dg-require-effective-target int32plus } */
11
/* { dg-options "-O3 -ftree-vectorize" } */
12
 
13
static unsigned short int crc_table[256];
14
void AC3_encode_init(void)
15
{
16
  unsigned int c, n, k;
17
  for(n=0;  n<256; n++)
18
  {
19
    c = n << 8;
20
    for (k = 0; k < 8; k++)
21
    {
22
      if (c & (1 << 15))
23
       c = ((c << 1) & 0xffff) ^ (((1 << 0) | (1 << 2) | (1 << 15) | (1 << 16)) & 0xffff);
24
    }
25
    crc_table[n] = c;
26
  }
27
}

powered by: WebSVN 2.1.0

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