annotate gcc/testsuite/g++.dg/opt/unroll2.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 // PR tree-opt/28937
kono
parents:
diff changeset
2 // Complete unroll forgot to update the statement usage
kono
parents:
diff changeset
3 // which meant we ICEd in add_virtual_operand.
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 // { dg-do compile }
kono
parents:
diff changeset
6 // { dg-options "-O2" }
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 class SHA256
kono
parents:
diff changeset
10 {
kono
parents:
diff changeset
11 unsigned m_digest;
kono
parents:
diff changeset
12 unsigned long long m_count;
kono
parents:
diff changeset
13 unsigned char _buffer[64];
kono
parents:
diff changeset
14 static void Transform (unsigned * data);
kono
parents:
diff changeset
15 void WriteByteBlock (unsigned t);
kono
parents:
diff changeset
16 };
kono
parents:
diff changeset
17 void SHA256::WriteByteBlock (unsigned t)
kono
parents:
diff changeset
18 {
kono
parents:
diff changeset
19 unsigned data32[16];
kono
parents:
diff changeset
20 Transform (data32);
kono
parents:
diff changeset
21 unsigned long long lenInBits = m_count;
kono
parents:
diff changeset
22 if (t != (64 - 8))
kono
parents:
diff changeset
23 return;
kono
parents:
diff changeset
24 for (int i = 0; i < 2; i++)
kono
parents:
diff changeset
25 _buffer[t++] = (unsigned char)lenInBits;
kono
parents:
diff changeset
26 }
kono
parents:
diff changeset
27