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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [ifc-5.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-c -O2 -ftree-vectorize -fdump-tree-ifcvt-stats" { target *-*-* } } */
3
 
4
void
5
dct_unquantize_h263_inter_c (short *block, int n, int qscale, int nCoeffs)
6
{
7
  int i, level, qmul, qadd;
8
 
9
  qadd = (qscale - 1) | 1;
10
  qmul = qscale << 1;
11
 
12
  for (i = 0; i <= nCoeffs; i++)
13
    {
14
      level = block[i];
15
      if (level < 0)
16
        level = level * qmul - qadd;
17
      else
18
        level = level * qmul + qadd;
19
      block[i] = level;
20
    }
21
}
22
 
23
/* { dg-final { scan-tree-dump-times "Applying if-conversion" 1 "ifcvt" } } */
24
/* { dg-final { cleanup-tree-dump "ifcvt" } } */

powered by: WebSVN 2.1.0

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