This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

label value in ppc asm stmt


Hi!

I want to get the address of a label within a asm-stmt.
For example, I want to generate the following code:

   ...
   __asm__ ("beq- cr0,%0" :: "?" (&&label));
   ...
   label:
    ...

What I would like to know is what constrain I should use
for the input operand.  Doing the same thing on the i386
platform you use the "p" constrain, but that put the address
in a register on PPC.

Any ideas?

brgds,
johan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]