2 20010224-1.c from the execute part of the gcc torture tests.
9 #pragma disable_warning 85
14 #if !defined(__SDCC_pdk14) // Lack of memory
15 int16_t logadd (int16_t *a
, int16_t *b
);
16 void ba_compute_psd (int16_t start
);
18 int16_t masktab
[6] = { 1, 2, 3, 4, 5};
19 int16_t psd
[6] = { 50, 40, 30, 20, 10};
20 int16_t bndpsd
[6] = { 1, 2, 3, 4, 5};
22 void ba_compute_psd (int16_t start
)
33 for (i
= j
; i
< lastbin
; i
++) {
34 bndpsd
[k
] = logadd(&bndpsd
[k
], &psd
[j
]);
40 int16_t logadd (int16_t *a
, int16_t *b
)
46 testTortureExecute (void)
48 #if !defined(__SDCC_pdk14) // Lack of memory
53 if (bndpsd
[1] != 140) ASSERT (0);