bool MRISC32CallLowering::lowerFormalArguments() from MRISC32CallLowering.cpp handles lowering of function arguments. Currently, the first 8 function arguments are passed to registers R1 to R8. However, if more function arguments are passed, they should be pushed to the stack. This logic is not currently present in the above mentioned function.
TODO: Add logic to push 8th and greater function argument into the stack
bool MRISC32CallLowering::lowerFormalArguments()from MRISC32CallLowering.cpp handles lowering of function arguments. Currently, the first 8 function arguments are passed to registers R1 to R8. However, if more function arguments are passed, they should be pushed to the stack. This logic is not currently present in the above mentioned function.TODO: Add logic to push 8th and greater function argument into the stack