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 %x %x", &arg
[1], &arg
[0], &arg
[3], &arg
[2]);
30 fprintf(stderr
, "line %d: expected 4 args\n",
39 udc
.d
= copysign(uda
.d
, udb
.d
);
41 printf("line %d: copysign(%x,%x %x,%x) = %x,%x\n",
47 while ((c
= getchar()) != EOF
&& c
!= '\n')
52 trapsignal(p
, sig
, code
)
55 printf("line %d: signal(%d, %x)\n", lineno
, sig
, code
);