Skip to content

Commit

Permalink
[LoongArch64] clear float type when passed by integer reg. (dotnet#10…
Browse files Browse the repository at this point in the history
  • Loading branch information
shushanhf authored and michaelgsharp committed May 8, 2024
1 parent c7595d5 commit bba287a
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 bba287a

Please sign in to comment.