tfma1xtensa.pp 325 B

123456789101112131415161718192021222324252627282930
  1. { %CPU=xtensa }
  2. {$define NODOUBLE}
  3. {$i tfma1.inc}
  4. begin
  5. {
  6. d1:=2;
  7. d2:=3;
  8. d3:=4;
  9. d0:=FMADouble(d1,d2,d3);
  10. writeln(d0);
  11. if d0<>10.0 then
  12. halt(1);
  13. }
  14. s1:=2;
  15. s2:=3;
  16. s3:=4;
  17. s0:=FMASingle(s1,s2,s3);
  18. writeln(s0);
  19. if s0<>10.0 then
  20. halt(1);
  21. testsingle;
  22. // testdouble;
  23. writeln('ok');
  24. end.