This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
question on mips embedded asm instructions
- From: "Amker.Cheng" <amker dot cheng at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 29 Jul 2010 14:46:14 +0800
- Subject: question on mips embedded asm instructions
Hi :
On mips target, mult insns normally modify and refer to hi/lo regs.
Giving following two embedded asm insns:
1 __asm__ ("mult %0, $1" : : "r"(a), "r"(b) : "lo");
2 __asm__ ("mflo %0" : "=r"(c) );
the mult modify specific hard reg lo, and I can describe this by "lo"
after the third colon.
But what about the mflo? how could I describe that the insn will refer
to the "lo" reg?
Thanks.
--
Best Regards.