1 /* Oki bug report [OKI004](gcc005)
3 The following computation is no work.
4 -1 / 1 => 1 (correct -1)
5 -1 % 2 => 1 (correct -1)
22 oza
= ((l3
/ ((l1
)--)) | (l6
<= (l3
% l2
)));
23 printf ("test 1 has a result of %d.\n", oza
);
25 fail ("divide test [OKI004]");
27 pass ("divide test [OKI004]");
31 oza1
= (l3
/ ((l1
)--));
32 oza2
= (l6
<= (l3
% l2
));
35 printf ("test 2 has a result of %d.\n", oza
);
37 fail ("modulos test [OKI004]");
39 pass ("modulos test [OKI004]");
47 32760 / (-1) = 32760 -------> ERROR, same as you said.
49 32760 / (-2) = -2147467268 ----> ERROR
51 32760 / (-3) = -1431644845 ----> ERROR
62 printf ("%d / (%d) = %d\n", i
, j
, value
);
65 printf ("%d / (%d) = %d\n", i
, j
, value
);
69 printf ("%d / (%d) = %d\n", i
, j
, value
);
72 printf ("%d / (%d) = %d\n", i
, j
, value
);
76 printf ("%d / (%d) = %d\n", i
, j
, value
);
79 printf ("%d / (%d) = %d\n", i
, j
, value
);
83 printf ("%d / (%d) = %d\n", i
, j
, value
);
86 printf ("%d / (%d) = %d\n", i
, j
, value
);