mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-26 14:30:58 +02:00
+ Added on florians request
This commit is contained in:
parent
dea663850a
commit
00b1ce2b55
33
tests/webtbs/tw2668.pp
Normal file
33
tests/webtbs/tw2668.pp
Normal 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.
|
Loading…
Reference in New Issue
Block a user