Skip to content

Commit

Permalink
[LoongArch64] amend the LoongArch64Classifier::Classify for passing s…
Browse files Browse the repository at this point in the history
…truct. (#101365)
  • Loading branch information
shushanhf authored Apr 23, 2024
1 parent 1c824d9 commit 5111fdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coreclr/jit/targetloongarch64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,15 @@ ABIPassingInformation LoongArch64Classifier::Classify(Compiler* comp,
}
else if ((floatFlags & STRUCT_FLOAT_FIELD_FIRST) != 0)
{
slots = 1;
slots = 2;
canPassArgInRegisters = (m_floatRegs.Count() > 0) && (m_intRegs.Count() > 0);

argRegTypeInStruct1 = (floatFlags & STRUCT_FIRST_FIELD_SIZE_IS8) ? TYP_DOUBLE : TYP_FLOAT;
argRegTypeInStruct2 = (floatFlags & STRUCT_SECOND_FIELD_SIZE_IS8) ? TYP_LONG : TYP_INT;
}
else if ((floatFlags & STRUCT_FLOAT_FIELD_SECOND) != 0)
{
slots = 1;
slots = 2;
canPassArgInRegisters = (m_floatRegs.Count() > 0) && (m_intRegs.Count() > 0);

argRegTypeInStruct1 = (floatFlags & STRUCT_FIRST_FIELD_SIZE_IS8) ? TYP_LONG : TYP_INT;
Expand Down

0 comments on commit 5111fdc

Please sign in to comment.