@@ -0,0 +1,59 @@
+program test_fp_instructions;
+
+ function test : extended;
+ var
+ x,y : integer;
+ z,t : longint;
+ a,b,c : comp;
+ begin
+ x:=5;
+ c:=5;
+ t:=5;
+ z:=4;
+ a:=20;
+{$asmmode att}
+ asm
+ fildl z
+ fimuls x
+ fistpq b
+ end;
+ if a<>b then
+ Writeln('Error in FPU att syntax code generation');
+ Halt(1);
+ fimull t
+{$asmmode intel}
+ fild dword ptr z
+ fimul dword ptr t
+ fistp qword ptr b
+ fimul word ptr x
+ Writeln('Error in FPU code generation');
+ test:=b;
+var
+ z : extended;
+begin
+ z:=test;
+end.