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 Ruihan-Yin committed May 30, 2024
1 parent 742a279 commit 691ff44
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 691ff44

Please sign in to comment.