Thread View: gnu.gcc.bug
1 messages
1 total messages
Started by Charles Hannum
Thu, 24 Dec 1992 23:36
asm() bug on 386?
Author: 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<-----
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads