Skip to content

Commit

Permalink
[LoongArch64] clear float type when passed by integer reg. (#101713)
Browse files Browse the repository at this point in the history
  • Loading branch information
shushanhf committed Apr 30, 2024
1 parent 8283049 commit 9fa1235
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/coreclr/jit/targetloongarch64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ ABIPassingInformation LoongArch64Classifier::Classify(Compiler* comp,
canPassArgInRegisters = m_floatRegs.Count() > 0;
if (!canPassArgInRegisters)
{
type = TYP_I_IMPL;
m_floatRegs.Clear();
canPassArgInRegisters = m_intRegs.Count() > 0;
}
Expand Down

0 comments on commit 9fa1235

Please sign in to comment.