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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr42629.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 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
/* { dg-require-effective-target int32plus } */
6
 
7
int lzo_adler32(int adler, char *buf)
8
{
9
  int s1 = adler;
10
  int s2 = adler;
11
  s1 += buf[0];
12
  s2 += s1;
13
  s1 += buf[1];
14
  s2 += s1;
15
  s1 += buf[2];
16
  s2 += s1;
17
  s1 += buf[3];
18
  s2 += s1;
19
  s1 += buf[4];
20
  s2 += s1;
21
  s1 += buf[5];
22
  s2 += s1;
23
  s1 += buf[6];
24
  s2 += s1;
25
  s1 += buf[7];
26
  s2 += s1;
27
  return (s2 << 16) + s1;
28
}

powered by: WebSVN 2.1.0

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