OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [pr42629.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* This failed -fcompare-debug because register pressure computation
2
   took debug insns into account.  */
3
/* { dg-do compile } */
4
/* { dg-options "-O1 -fsched-pressure -fschedule-insns -fcompare-debug" } */
5
 
6
int lzo_adler32(int adler, char *buf)
7
{
8
  int s1 = adler;
9
  int s2 = adler;
10
  s1 += buf[0];
11
  s2 += s1;
12
  s1 += buf[1];
13
  s2 += s1;
14
  s1 += buf[2];
15
  s2 += s1;
16
  s1 += buf[3];
17
  s2 += s1;
18
  s1 += buf[4];
19
  s2 += s1;
20
  s1 += buf[5];
21
  s2 += s1;
22
  s1 += buf[6];
23
  s2 += s1;
24
  s1 += buf[7];
25
  s2 += s1;
26
  return (s2 << 16) + s1;
27
}

powered by: WebSVN 2.1.0

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