Browse Source

fsub check enhanced

pierre 23 years ago
parent
commit
cc47536e71
3 changed files with 30 additions and 0 deletions
  1. 10 0
      tests/test/tfpu3.pp
  2. 10 0
      tests/test/tfpu4.pp
  3. 10 0
      tests/test/tfpu5.pp

+ 10 - 0
tests/test/tfpu3.pp

@@ -64,6 +64,16 @@ begin
     fstp %st
     fstp %st
   end;
   end;
   Writeln('ATT result of 4/2=',z:0:2);
   Writeln('ATT result of 4/2=',z:0:2);
+  if z <> 2.0 then
+    Halt(1);
+  asm
+    fldl y
+    fldl x
+    fdiv %st,%st(1)
+    fstp %st
+    fstpl z
+  end;
+  Writeln('ATT result of 4/2=',z:0:2);
   if z <> 2.0 then
   if z <> 2.0 then
     Halt(1);
     Halt(1);
   asm
   asm

+ 10 - 0
tests/test/tfpu4.pp

@@ -59,6 +59,16 @@ begin
     fstp %st
     fstp %st
   end;
   end;
   Writeln('ATT result of 4/2=',z:0:2);
   Writeln('ATT result of 4/2=',z:0:2);
+  if z <> 2.0 then
+    Halt(1);
+  asm
+    fldl y
+    fldl x
+    fdiv %st,%st(1)
+    fstp %st
+    fstpl z
+  end;
+  Writeln('ATT result of 4/2=',z:0:2);
   if z <> 2.0 then
   if z <> 2.0 then
     Halt(1);
     Halt(1);
   asm
   asm

+ 10 - 0
tests/test/tfpu5.pp

@@ -53,6 +53,16 @@ begin
     fstp %st
     fstp %st
   end;
   end;
   Writeln('ATT result of 4/2=',z:0:2);
   Writeln('ATT result of 4/2=',z:0:2);
+  if z <> 2.0 then
+    Halt(1);
+  asm
+    fldl y
+    fldl x
+    fdiv %st,%st(1)
+    fstp %st
+    fstpl z
+  end;
+  Writeln('ATT result of 4/2=',z:0:2);
   if z <> 2.0 then
   if z <> 2.0 then
     Halt(1);
     Halt(1);
   asm
   asm