home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / gcc / bug / 3061 < prev    next >
Encoding:
Text File  |  1992-12-26  |  876 b   |  33 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!hal.gnu.ai.mit.edu!mycroft
  3. From: mycroft@hal.gnu.ai.mit.edu (Charles Hannum)
  4. Subject: asm() bug on 386?
  5. Message-ID: <Pine.3.05.9212250425.A21988-9100000@hal.gnu.ai.mit.edu>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Thu, 24 Dec 1992 23:36:25 GMT
  10. Approved: bug-gcc@prep.ai.mit.edu
  11. Lines: 20
  12.  
  13. Using GCC 2.3.2 under 386BSD and GCC 2.2.2 under Linux:
  14.  
  15. bsdsux # ./cc1 -O0 bar.i
  16.  ldexpIOT trap (core dumped)
  17. bsdsux # exit
  18.  
  19. -- bar.i ------------8<-----snip-----8<-----snip-----8<-----snip-----8<-----
  20. double ldexp (double value, int exp)
  21. {
  22.     double temp, texp, temp2;
  23.     texp = exp;
  24.     asm ("fscale ; fxch %%st(1) ; fstp%L1 %1 "
  25.         : "=f" (temp), "=0" (temp2)
  26.         : "0" (texp), "f" (value));
  27.     return (temp);
  28. }
  29. -----8<-----snip-----8<-----snip-----8<-----snip-----8<-----snip-----8<-----
  30.  
  31.  
  32.  
  33.