Article View: gnu.gcc.bug
Article #1474asm() bug on 386?
From: Charles Hannum
Date: Thu, 24 Dec 1992 23:36
Date: Thu, 24 Dec 1992 23:36
17 lines
902 bytes
902 bytes
Using GCC 2.3.2 under 386BSD and GCC 2.2.2 under Linux:
bsdsux # ./cc1 -O0 bar.i
ldexpIOT trap (core dumped)
bsdsux # exit
-- bar.i ------------8<-----snip-----8<-----snip-----8<-----snip-----8<-----
double ldexp (double value, int exp)
{
double temp, texp, temp2;
texp = exp;
asm ("fscale ; fxch %%st(1) ; fstp%L1 %1 "
: "=f" (temp), "=0" (temp2)
: "0" (texp), "f" (value));
return (temp);
}
-----8<-----snip-----8<-----snip-----8<-----snip-----8<-----snip-----8<-----
Technical Details
Message-ID:
<Pine.3.05.9212250425.A21988-9100000@hal.gnu.ai.mit.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!hal.gnu.ai.mit.edu!mycroftShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!hal.gnu.ai.mit.edu!mycroft From: mycroft@hal.gnu.ai.mit.edu (Charles Hannum) Subject: asm() bug on 386? Message-ID: <Pine.3.05.9212250425.A21988-9100000@hal.gnu.ai.mit.edu> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Thu, 24 Dec 1992 23:36:25 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 20