+ Added on florians request

This commit is contained in:
michael 2003-09-07 14:12:13 +00:00
parent dea663850a
commit 00b1ce2b55

33
tests/webtbs/tw2668.pp Normal file
View File

@ -0,0 +1,33 @@
{ %version=1.1 }
{ Source provided for Free Pascal Bug Report 2668 }
{ Submitted by "Marco" on 2003-09-06 }
{ e-mail: marco+bugs@freepascal.org }
{$MODE DELPHI} {$ASMMODE INTEL}
type
TFloatingPointClass =
(
fpZero, // zero
fpNormal, // normal finite <> 0
fpDenormal, // denormalized finite
fpInfinite, // infinite
fpNaN, // not a number
fpInvalid // unsupported floating point format
);
const
FPClasses: array [0..5] of TFloatingPointClass =
(
fpInvalid,
fpNaN,
fpNormal,
fpInfinite,
fpZero,
fpDenormal
);
asm
MOVZX EAX, TFloatingPointClass(FPClasses[EDX])
MOVZX EAX, TFloatingPointClass([ECX].FPClasses[EDX])
end.