question when -march=mips

Hi everyone

The c code is like below

extern int function_0(int, int);

int main(){
return function_0(8, 9);
}

I compile it as below

llvm-gcc main.c -emit-llvm -c -O3 -o main.bc
llc main.bc -relocation-model=static -march=mips -O0 -o main.s

It seems no argument is provided to function_0


addiu $sp, $sp, -8
sw $ra, 0($sp)
jal function_0
nop

What’s the reason?

Thanks

Hi Heyu,