search for: my16bitreg

Displaying 3 results from an estimated 3 matches for "my16bitreg".

2009 Dec 18
3
[LLVMdev] problem when use inline asm for msp430 target
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 ---------...
2009 Dec 18
0
[LLVMdev] problem when use inline asm for msp430 target
Hello > 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' !" Works f...
2009 Dec 18
1
[LLVMdev] problem when use inline asm for msp430 target
...n, Need i write additial c/c++/td code for my target to support inline asm? Regrads 2009/12/18 Anton Korobeynikov <anton at korobeynikov.info> > Hello > > > 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 con...