This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
label value in ppc asm stmt
- From: Johan Rydberg <jrydberg at night dot trouble dot net>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 20 Jan 2003 07:38:52 +0100
- Subject: 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