[LLVMdev] Does mips backend support variable arguments in release version(llvm-2.6)?

Heyu Zhu zhu.heyu at gmail.com
Wed Feb 3 06:36:04 PST 2010


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>


More information about the llvm-dev mailing list