<div>Mine is LLVM2.6's release version, so it doesn't work</div>
<div> </div>
<div>Thank you!</div>
<div><br><br> </div>
<div class="gmail_quote">2009/12/18 Anton Korobeynikov <span dir="ltr"><<a href="mailto:anton@korobeynikov.info">anton@korobeynikov.info</a>></span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hello<br>
<div class="im"><br>> inline asm code is like below:<br>><br>> void test(unsigned short a) {<br>>    asm("myinstr          my16bitreg, %0"::"r"(a));<br>> }<br>> I want it generate instruction "myinstr          my16bitreg, r15"<br>
><br>> I execute<br>> llc test.bc -march = msp430 -o test.s<br>> then it reports<br>> "LLVM ERROR: Couldn't allocate input reg for constraint 'r' !"<br></div>Works for me. Make sure you're using latest LLVM trunk. inline asm for<br>
msp430 were not available with 2,6 release iirc.<br>
<div>
<div></div>
<div class="h5"><br>--<br>With best regards, Anton Korobeynikov<br>Faculty of Mathematics and Mechanics, Saint Petersburg State University<br></div></div></blockquote></div><br>