linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* inline assembly
@ 2008-06-04 19:36 Kevin Diggs
  2008-06-04 19:45 ` Scott Wood
  2008-06-05 10:44 ` David Howells
  0 siblings, 2 replies; 4+ messages in thread
From: Kevin Diggs @ 2008-06-04 19:36 UTC (permalink / raw)
  To: linuxppc-dev

Hi,

	When doing inline assembly, is there a way to get the compiler to 
assign "extra" (one not specified for inputs and outputs) registers? In 
the following:

                 __asm__ __volatile__ (
                         "addi 5,%1,-1\n"
                         "andc 5,%1,5\n"
                         "cntlzw 5,5\n"
                         "subfic %0,5,31":
                         "=r"(j):
                         "r"(i)
                 );

Can I get the compiler to choose a register for r5?

kevin

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

end of thread, other threads:[~2008-06-05 16:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-04 19:36 inline assembly Kevin Diggs
2008-06-04 19:45 ` Scott Wood
2008-06-05 10:44 ` David Howells
2008-06-05 16:52   ` Scott Wood

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 NNTP newsgroup(s).