blob: 17253573d61cb06b2c2ae284ffcdd936a43e23c5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
/*
regstack-1.c from the execute part of the gcc torture tests.
*/
#include <testfwk.h>
#if 0 // TODO: Enable when SDCC supports long double!
long double C = 5;
long double U = 1;
long double Y2 = 11;
long double Y1 = 17;
long double X, Y, Z, T, R, S;
#endif
void
testTortureExecute (void)
{
#if 0
X = (C + U) * Y2;
Y = C - U - U;
Z = C + U + U;
T = (C - U) * Y1;
X = X - (Z + U);
R = Y * Y1;
S = Z * Y2;
T = T - Y;
Y = (U - Y) + R;
Z = S - (Z + U + U);
R = (Y2 + U) * Y1;
Y1 = Y2 * Y1;
R = R - Y2;
Y1 = Y1 - 0.5L;
if (Z != 68. || Y != 49. || X != 58. || Y1 != 186.5 || R != 193. || S != 77.
|| T != 65. || Y2 != 11.)
ASSERT (0);
return;
#endif
}
|