From 9fa12355097e1ac17ac44445649a381323e9c35f Mon Sep 17 00:00:00 2001 From: Qiao Pengcheng Date: Tue, 30 Apr 2024 23:26:13 +0800 Subject: [PATCH] [LoongArch64] clear float type when passed by integer reg. (#101713) --- src/coreclr/jit/targetloongarch64.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/coreclr/jit/targetloongarch64.cpp b/src/coreclr/jit/targetloongarch64.cpp index 6d63951c8ea20..9292f0e0e67a8 100644 --- a/src/coreclr/jit/targetloongarch64.cpp +++ b/src/coreclr/jit/targetloongarch64.cpp @@ -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; }