Debian Codegraph @

gcc/testsuite/gcc.c-torture/compile/pr35595.c

raw
1 /* { dg-require-effective-target int32plus } */
2 typedef signed int __int32_t;
3 typedef unsigned int __uint32_t;
4 typedef union
5 {
6 float value;
7 __uint32_t word;
8 }
9 ieee_float_shape_type;
10 static const float two23 = 8.3886080000e+06;
11 static const float pi = 3.1415927410e+00;
12 static const float zero = 0.0000000000e+00;
13 float __kernel_sinf (float, float, int);
14 static float
15 sin_pif (float x)
16 {
17 float y = 0;
18 float z = 0;
19 __int32_t n = 0;
20 __int32_t ix = 0;
21 do
22 {
23 ieee_float_shape_type gf_u = { 0 };
24 (ix) = gf_u.word;
25 }
26 while (0);
27 if (z == y)
28 {
29 if (ix < 0x4b800000)
30 {
31 if (ix < 0x4b000000)
32 z = y + two23;
33 do
34 {
35 ieee_float_shape_type gf_u;
36 gf_u.value = (z);
37 (n) = gf_u.word;
38 }
39 while (0);
40 }
41 }
42 if (n == 0)
43 y = __kernel_sinf (pi * y, zero, 0);
44 }
45
46 float
47 __ieee754_lgammaf_r (float x, int *signgamp)
48 {
49 float t = 0;
50 __int32_t hx = 0;
51 do
52 {
53 ieee_float_shape_type gf_u = { 0 };
54 (hx) = gf_u.word;
55 }
56 while (0);
57 if (hx < 0)
58 t = sin_pif (x);
59 return 0;
60 }