This is the mail archive of the gcc-help@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]

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


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