Skip to content

Commit

Permalink
[RISC-V] Handle mod in SetThrowHelperBlocks
Browse files Browse the repository at this point in the history
This fixes broken CLR tests after dotnet#95379

Co-authored-by: Dong-Heon Jung <clamp03@gmail.com>
  • Loading branch information
tomeksowi and clamp03 committed Dec 15, 2023
1 parent bacdea3 commit ed4d9ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/coreclr/jit/stacklevelsetter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ void StackLevelSetter::SetThrowHelperBlocks(GenTree* node, BasicBlock* block)
#if defined(TARGET_ARM64) || defined(TARGET_ARM) || defined(TARGET_LOONGARCH64) || defined(TARGET_RISCV64)
case GT_DIV:
case GT_UDIV:
#if defined(TARGET_LOONGARCH64) || defined(TARGET_RISCV64)
case GT_MOD:
case GT_UMOD:
#endif
{
ExceptionSetFlags exSetFlags = node->OperExceptions(comp);

Expand Down

0 comments on commit ed4d9ba

Please sign in to comment.