All of lore.kernel.org
 help / color / mirror / Atom feed
* inline assembly
@ 2008-06-04 19:36 Kevin Diggs
  2008-06-04 19:45 ` Scott Wood
  0 siblings, 1 reply; 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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.