13 * Read test vectors from file and test the fp emulation by
14 * comparing it with the hardware.
25 for (lineno
= 1; ; lineno
++) {
26 c
= scanf("%x %x %d", &arg
[1], &arg
[0], &arg
[2]);
30 fprintf(stderr
, "line %d: expected 3 args\n",
37 udc
.d
= scalb(uda
.d
, arg
[2]);
39 printf("line %d: scalb(%x,%x,%d) = %x,%x\n",
40 lineno
, uda
.w
[1], uda
.w
[0], arg
[2],
43 while ((c
= getchar()) != EOF
&& c
!= '\n')
48 trapsignal(p
, sig
, code
)
51 printf("line %d: signal(%d, %x)\n", lineno
, sig
, code
);