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

Bruno Cardoso Lopes bruno.cardoso at gmail.com
Wed Feb 3 03:27:42 PST 2010


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




More information about the llvm-dev mailing list