public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* GCC assmbler for powerpc-eabi
@ 2009-04-05 15:02 marian Szczepkowski
  2009-04-05 20:45 ` Andrew Haley
  0 siblings, 1 reply; 10+ messages in thread
From: marian Szczepkowski @ 2009-04-05 15:02 UTC (permalink / raw)
  To: gcc-help

We are looking at GCC and another compiler for use on an embedded
powerpc project and in comparing the two compilers I get this,

From GCC
	lis 9,pstr@ha
	lwz 0,pstr@l(9)
	mr 3,0
	crxor 6,6,6
	bl atoi
	mr 29,3

From vendor
172		lwz	r3, 532(r31)
173		bl	atof
174		bl	_d_dtof
175		stw	r3, 12(sp)


GCC appears to be doing some extra work here and I am at a loss to work
out what it is doing this for, why the crxor 6,6,6 from my reading this
is the floating point exception in the CR, and GCC does this every time,
as here...

	lwz 3,8(31)
	lis 9,.LC1@ha
	la 4,.LC1@l(9)
	mr 5,29
	mr 6,0
	crxor 6,6,6
	bl sprintf

Can some one explain this seemingly irrelevant extra step..




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-04-07  5:04 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-05 15:02 GCC assmbler for powerpc-eabi marian Szczepkowski
2009-04-05 20:45 ` Andrew Haley
2009-04-06  0:20   ` marian Szczepkowski
2009-04-06 16:54     ` Jeff Chimene
2009-04-06 17:11       ` SSA vs RTL charfi asma
2009-04-06 19:22         ` Ian Lance Taylor
2009-04-06 17:35       ` GCC assmbler for powerpc-eabi John (Eljay) Love-Jensen
2009-04-06 18:51         ` Jeff Chimene
2009-04-07  0:51         ` marian
2009-04-07  5:04           ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).