We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97db32f commit ec77954Copy full SHA for ec77954
src/coreclr/jit/codegenlinear.cpp
@@ -2484,8 +2484,11 @@ CodeGen::GenIntCastDesc::GenIntCastDesc(GenTreeCast* cast)
2484
}
2485
2486
#if defined(TARGET_LOONGARCH64) || defined(TARGET_RISCV64)
2487
- // For LoongArch64's ISA which is same with the MIPS64 ISA, even the instructions of 32bits operation need
2488
- // the upper 32bits be sign-extended to 64 bits.
+ // TODO-LOONGARCH64:
+ // TODO-RISCV64:
2489
+ // LoongArch64 and RiscV64 ABIs require 32-bit values to be sign-extended to 64-bits.
2490
+ // We apply the sign-extension unconditionally here to avoid corner case bugs, even
2491
+ // though it may not be strictly necessary in all cases.
2492
m_extendKind = SIGN_EXTEND_INT;
2493
#else
2494
m_extendKind = COPY;
0 commit comments