IVOPT performance tuning patch. The main problem is a variant of maximal weight
[official-gcc.git] / gcc / testsuite / gcc.dg / pr42629.c
blobe95d29b544e604bbaf2a3955026b1025750a3508
1 /* 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" } */
6 int lzo_adler32(int adler, char *buf)
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;