Heyu Zhu
2010-Feb-03 05:57 UTC
[LLVMdev] Does mips backend support variable arguments in release version(llvm-2.6)?
Hi everyone, It seems variable arguments is not support by mips backend in llvm-2.6. int func(int i, ...) { return 0; } llvm-gcc func.c -emit-llvm -c -O3 -o func.bc llc func.bc -relocation-model=static -march=mips -O0 -o func.s Command llc fails: llc:SelectionDAGBuilder.cpp:6440:void llvm::SelectionDAGISel::LowerArguments( llvm::BasicBlock):Assertion 'Invals.size() == Ins.size && "LowerFormalArguments didn't emit the correct number of values!"' failed Does the latest mips backend in svn trunk support variable arguments? Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100203/875d5e4a/attachment.html>
Bruno Cardoso Lopes
2010-Feb-03 11:27 UTC
[LLVMdev] Does mips backend support variable arguments in release version(llvm-2.6)?
Hi, On Wed, Feb 3, 2010 at 3:57 AM, Heyu Zhu <zhu.heyu at gmail.com> wrote:> Hi everyone, > > It seems variable arguments is not support by mips backend in llvm-2.6. > > int func(int i, ...) { > return 0; > } > > llvm-gcc func.c -emit-llvm -c -O3 -o func.bc > llc func.bc -relocation-model=static -march=mips -O0 -o func.s > > Command llc fails: > llc:SelectionDAGBuilder.cpp:6440:void > llvm::SelectionDAGISel::LowerArguments( > llvm::BasicBlock):Assertion 'Invals.size() == Ins.size && > "LowerFormalArguments > didn't emit the correct number of values!"' failed > > Does the latest mips backend in svn trunk support variable arguments?No. I've seen you updated PR4851 with more info, I'll try to fix it. Thanks. -- Bruno Cardoso Lopes http://www.brunocardoso.cc
Heyu Zhu
2010-Feb-03 14:36 UTC
[LLVMdev] Does mips backend support variable arguments in release version(llvm-2.6)?
Hi Bruno, Please give a message after you fix it. I am using it in my work Thanks 2010/2/3 Bruno Cardoso Lopes <bruno.cardoso at gmail.com>> Hi, > > On Wed, Feb 3, 2010 at 3:57 AM, Heyu Zhu <zhu.heyu at gmail.com> wrote: > > Hi everyone, > > > > It seems variable arguments is not support by mips backend in llvm-2.6. > > > > int func(int i, ...) { > > return 0; > > } > > > > llvm-gcc func.c -emit-llvm -c -O3 -o func.bc > > llc func.bc -relocation-model=static -march=mips -O0 -o func.s > > > > Command llc fails: > > llc:SelectionDAGBuilder.cpp:6440:void > > llvm::SelectionDAGISel::LowerArguments( > > llvm::BasicBlock):Assertion 'Invals.size() == Ins.size && > > "LowerFormalArguments > > didn't emit the correct number of values!"' failed > > > > Does the latest mips backend in svn trunk support variable arguments? > > No. I've seen you updated PR4851 with more info, I'll try to fix it. > Thanks. > > -- > Bruno Cardoso Lopes > http://www.brunocardoso.cc >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100203/ff2fed91/attachment.html>