[llvm] [Mips] Handle division by zero trap on MIPS1 (PR #201133)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 2 13:55:16 PDT 2026
================
@@ -1428,9 +1484,13 @@ MipsTargetLowering::EmitInstrWithCustomInserter(MachineInstr &MI,
case Mips::DIV:
case Mips::DIVU:
case Mips::MOD:
- case Mips::MODU:
+ case Mips::MODU: {
+ const auto TrapKind = Subtarget.hasMips1() && !Subtarget.hasMips2()
----------------
neoto wrote:
I just noticed that I left this with both checks instead of just `!Subtarget.hasMips2()`. I'll clean it up if needed...
https://github.com/llvm/llvm-project/pull/201133
More information about the llvm-commits
mailing list