This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
jmp opcode inside __asm__
- From: Sanjiv Kumar Gupta <sanjivg at noida dot hcltech dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 21 Dec 2001 13:19:55 +0530
- Subject: jmp opcode inside __asm__
Hi,
I could not find a way of writing a jump insn inside an __asm__ () group if
the insns above jump are clobbering memory. e.g.
__asm__ (
"mov #3,%0\n\t"
----
----
"jmp @r2\n\t"
:"=r(opnd1)
:
:
);
in the generated assembly code gcc handles memory clobbering after the jmp
insn, which is not I intended to do.
is there any way of inserting jmp insns like above.
thanks and regards
sanjiv