Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr116353.c

raw
1 /* PR tree-optimization/116353 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
4
5 enum desmode { C };
6 struct {
7 unsigned char des_ivec[];
8 } _des_crypt_desp;
9 int des_SPtrans_6_0, des_SPtrans_4_0, des_encrypt_encrypt, des_encrypt_i;
10 long des_encrypt_s_0, _des_crypt_tin1, _des_crypt_tout0, _des_crypt_tout1,
11 _des_crypt_tin0;
12 enum desmode _des_crypt_desp_0;
13 unsigned long _des_crypt_tbuf[2];
14 char _des_crypt_out;
15 void des_encrypt(unsigned long *buf) {
16 long l, r, t;
17 l = buf[0];
18 r = buf[1];
19 t = r;
20 r ^= l ^= t < 6;
21 if (des_encrypt_encrypt)
22 for (;; des_encrypt_i += 4)
23 des_encrypt_s_0 ^= des_SPtrans_4_0 | des_SPtrans_6_0;
24 buf[1] = r;
25 }
26 void _des_crypt() {
27 long xor0, xor1;
28 unsigned char *in;
29 int cbc_mode = _des_crypt_desp_0;
30 in = _des_crypt_desp.des_ivec;
31 xor0 = xor1 = 0;
32 for (;;) {
33 _des_crypt_tin0 = *in++;
34 _des_crypt_tin0 |= *in++ << 8;
35 _des_crypt_tin0 |= *in++ << 16;
36 _des_crypt_tin0 |= (long)*in << 24;
37 _des_crypt_tin1 = *in++;
38 _des_crypt_tin1 |= *in++ << 8;
39 _des_crypt_tin1 |= *in++ << 16;
40 _des_crypt_tin1 |= (long)*in << 24;
41 _des_crypt_tbuf[0] = _des_crypt_tin0;
42 _des_crypt_tbuf[1] = _des_crypt_tin1;
43 des_encrypt(_des_crypt_tbuf);
44 if (cbc_mode) {
45 _des_crypt_tout0 = xor0;
46 _des_crypt_tout1 = _des_crypt_tbuf[1] ^ xor1;
47 xor0 = _des_crypt_tin0;
48 xor1 = _des_crypt_tin1;
49 } else {
50 _des_crypt_tout0 = _des_crypt_tbuf[0];
51 _des_crypt_tout1 = _des_crypt_tbuf[1];
52 }
53 _des_crypt_out = _des_crypt_tout0 * _des_crypt_tout1;
54 }
55 }