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", &arg
[1], &arg
[0]);
30 fprintf(stderr
, "line %d: expected 2 args\n",
37 udc
.d
= modf(uda
.d
, &udb
.d
);
39 printf("line %d: modf(%x,%x) = %x,%x int %x,%x\n",
40 lineno
, uda
.w
[1], uda
.w
[0],
41 udc
.w
[1], udc
.w
[0], udb
.w
[1], udb
.w
[0]);
43 while ((c
= getchar()) != EOF
&& c
!= '\n')
48 trapsignal(p
, sig
, code
)
51 printf("line %d: signal(%d, %x)\n", lineno
, sig
, code
);