OSDN Git Service

Backported from mainline
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.c-torture / compile / pr37258.c
1 typedef signed char int8_t;
2 typedef short int int16_t;
3 typedef int int32_t;
4 __extension__ typedef long long int int64_t;
5 typedef unsigned short int uint16_t;
6 typedef unsigned int uint32_t;
7 static inline unsigned int
8 lshift_u_s (unsigned int left, int right)
9 {
10   if ((right) || (right >= sizeof (unsigned int) * 8)
11       || (left > (4294967295U >> right)))
12     return left;
13 }
14 static inline unsigned long int
15 div_rhs (long int rhs)
16 {
17   if (rhs == 0)
18     return 1;
19   return rhs;
20 }
21
22 uint32_t g_230;
23 int8_t g_294;
24 uint16_t g_316;
25 uint32_t g_334;
26 int32_t g_375;
27 int64_t g_380;
28 int32_t func_99 (int16_t p_100, int32_t p_101, int32_t p_102, int32_t p_103,
29                  int64_t p_105, int32_t p_106, int32_t p_107, int16_t p_108,
30                  int16_t p_109);
31 int32_t
32 func_77 (int64_t p_79)
33 {
34   int16_t l_397;
35   if (mod_rhs (p_79))
36     p_79 = 1;
37   else
38     for (p_79 = 0; 0; p_79 += 1)
39       {
40       }
41   if (lshift_s_s (1, func_112 (2L, (lshift_u_s (g_334, p_79)))))
42     {
43       int8_t l_384;
44       int64_t l_414;
45       if (lshift_u_s (g_375, 1))
46         {
47           func_23 (func_99 (1, 1, 1, 1, g_230, p_79, 1, g_334, 1), 1);
48           for (p_79 = 0; 0; ++p_79)
49             {
50             }
51         }
52       if (div_rhs (func_82 (1, 1, g_380, 1, l_397, 1, 1)))
53         func_99 ((func_82
54                   (1, g_334, g_294, func_112 (1, (p_79 & 1)), g_316, 1, 1)),
55                  1, (0xFBA25CA382A8CA74LL), l_384, l_414, 0L, 1, 1, 1);
56     }
57 }
58