Article View: comp.sys.intel
Article #1768Re: Moving floating point values around
From: The Beach Bum
Date: Wed, 24 Aug 1988 00:53
Date: Wed, 24 Aug 1988 00:53
21 lines
1298 bytes
1298 bytes
In article <4256@lynx.UUCP> m5@lynx.UUCP (Mike McNally) writes:
>How naughty would it be for a compiler for the 386/387 (or 286/287 for that
>matter) to move floating-point values with 386 MOV instructions instead
>of FLD and FSTP?
this shouldn't be a bother. you should be able to use the doubleword
load and store instructions (or the block byte moves if you want) to
move floats and doubles.
the only place you have to watch out for is
if (f1 = f2)
...
or some other conditional context. you have to use the floating point
moves or a floating point test to properly set the condition codes.
--
John F. Haugh II (jfh@rpp386.UUCP) HASA, "S" Division
"If the code and the comments disagree, then both are probably wrong."
-- Norm Schryer
Technical Details
Message-ID:
<5733@rpp386.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!bellcore!tness7!ninja!dalsqnt!rpp386!jfhReferences:
<4256@lynx.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!bellcore!tness7!ninja!dalsqnt!rpp386!jfh From: jfh@rpp386.UUCP (The Beach Bum) Newsgroups: comp.sys.intel,comp.lang.c,comp.arch Subject: Re: Moving floating point values around Summary: as long as you aren't moving for side effects, do it Message-ID: <5733@rpp386.UUCP> Date: 24 Aug 88 00:53:16 GMT References: <4256@lynx.UUCP> Reply-To: jfh@rpp386.UUCP (The Beach Bum) Distribution: na Organization: HASA, "S" Division Lines: 21