2 pr47538.c from the execute part of the gcc torture tests.
9 #pragma disable_warning 93
14 /* PR tree-optimization/47538 */
22 #if !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) // Lack of memory
24 foo (struct S
*x
, const struct S
*y
)
26 const unsigned long n
= y
->d
+ 1;
27 const double m
= 0.25 * (y
->b
- y
->a
);
36 x
->c
[1] = m
* y
->c
[0];
37 x
->c
[0] = 2.0 * x
->c
[1];
41 double o
= 0.0, p
= 1.0;
44 for (i
= 1; i
<= n
- 2; i
++)
46 x
->c
[i
] = m
* (y
->c
[i
- 1] - y
->c
[i
+ 1]) / (double) i
;
50 x
->c
[n
- 1] = m
* y
->c
[n
- 2] / (n
- 1.0);
58 testTortureExecute (void)
60 #if !(defined(__SDCC_mcs51) && defined(__SDCC_MODEL_SMALL)) && !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) // Lack of memory
62 double c
[4] = { 10, 20, 30, 40 }, d
[4], e
[4] = { 118, 118, 118, 118 };
69 memcpy (d
, e
, sizeof d
);
71 if (d
[0] != 0 || d
[1] != 20 || d
[2] != 10 || d
[3] != -10)
74 memcpy (d
, e
, sizeof d
);
76 if (d
[0] != 60 || d
[1] != 20 || d
[2] != -10 || d
[3] != 118)
79 memcpy (d
, e
, sizeof d
);
81 if (d
[0] != -20 || d
[1] != -10 || d
[2] != 118 || d
[3] != 118)
84 memcpy (d
, e
, sizeof d
);
86 if (d
[0] != 0 || d
[1] != 118 || d
[2] != 118 || d
[3] != 118)