Move arithmetic DivideByZero and Overflow exceptions to JIT on 32-bit platforms #110226
Labels
arch-arm32
arch-x86
area-CodeGen-coreclr
CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Milestone
From @jkotas #109087 (comment)
On 32 bit platforms such as x86 and arm32, JIT uses software fallback
CORINFO_HELP_{,U,L,UL}{DIV,MOD}
to handleDivideByZero
andOverflow
exceptions in div/mod arithmetic ops viaFCThrow
in jithelpers.cpp.FCThrow
usesHELPER_METHOD_FRAME
which we are trying to remove from runtime (#95695).JIT can handle inserting the software fallback using the existing
CORINFO_HELP_OVERFLOW
andCORINFO_HELP_THROWDIVZERO
helpers on 32 bit platforms. This will remove 8 (out of 9) remainingFCThrow
calls from jithelpers.cpp.The text was updated successfully, but these errors were encountered: