www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/06/23:55:59

Xref: news2.mv.net comp.os.msdos.djgpp:2493
From: mlarch AT fred DOT net ( )
Newsgroups: comp.os.msdos.djgpp
Subject: [q] inlined coprocessor instructions and fpu stack
Date: 6 Apr 1996 15:51:01 GMT
Organization: FredNet - Frederick, Md.
Lines: 21
Message-ID: <4k63t5$1hf@dec-alpha.fred.net>
NNTP-Posting-Host: bigdog.fred.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Maybe you can clear this up for me, regarding keeping the FPU stack
clean/the way I `expect it be' --

How/Why duz:
	asm("fldl %0" : : "f" (double_arg) );
become:
1:	/NO_APP
2:		fldl _double_arg
3:	/APP
4:		fldl %st
5:	/NO_APP
6:		fstp %st(0)
7:

Lines 4 and 6 don't leave st(0) with double_arg. gcc insists on putting
these extra instructions in the S file output. How do I stop this? What
is gcc doing ?

Thanks,

mlarch AT fred DOT net

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019