Skip to content

Commit

Permalink
LoongArch typos
Browse files Browse the repository at this point in the history
Co-authored-by: Qiao Pengcheng <[email protected]>
  • Loading branch information
tomeksowi and shushanhf authored Aug 9, 2024
1 parent 8d8e705 commit 3985f11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/coreclr/vm/callingconvention.h
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ class ArgIteratorTemplate : public ARGITERATOR_BASE
protected:
DWORD m_dwFlags; // Cached flags
int m_nSizeOfArgStack; // Cached value of SizeOfArgStack
#if defined(TARGET_RISCV64) || defined(TARGET_RISCV64)
#if defined(TARGET_RISCV64) || defined(TARGET_LOONGARCH64)
// Cached offsets of struct fields returned according to hardware floating-point calling convention
// (FpStruct::Flags are packed in m_dwFlags)
unsigned m_returnedFpFieldOffsets[ENREGISTERED_RETURNTYPE_MAXSIZE / sizeof(ARG_SLOT)];
Expand Down
4 changes: 2 additions & 2 deletions src/coreclr/vm/loongarch64/calldescrworkerloongarch64.S
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ LOCAL_LABEL(CallDescrWorkerInternalReturnAddress):
// The second returned register is integer (FpStruct::FloatInt | FpStruct::IntFloat)
// Note: it will also go in here for FpStruct::OnlyOne but storing a register of trash doesn't hurt
st.d $a0, $s0, CallDescrData__returnValue + 8
j LOCAL_LABEL(ReturnDone)
b LOCAL_LABEL(ReturnDone)

LOCAL_LABEL(SecondFieldFloatReturn):
fst.d $fa1, $s0, CallDescrData__returnValue + 8
j LOCAL_LABEL(ReturnDone)
b LOCAL_LABEL(ReturnDone)

LOCAL_LABEL(IntReturn):
// Save struct returned according to integer calling convention
Expand Down

0 comments on commit 3985f11

Please sign in to comment.