[LLVMdev] problem when use inline asm for msp430 target
Heyu Zhu
zhu.heyu at gmail.com
Thu Dec 17 23:54:02 PST 2009
Hi everyone,
inline asm code is like below:
void test(unsigned short a) {
asm("myinstr my16bitreg, %0"::"r"(a));
}
I want it generate instruction "myinstr my16bitreg, r15"
I execute
llc test.bc -march = msp430 -o test.s
then it reports
"LLVM ERROR: Couldn't allocate input reg for constraint 'r' !"
What's the reason?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091218/c43046c7/attachment.html>
More information about the llvm-dev
mailing list