[llvm] [Mips] Do not emit instruction teq if divisor is non-zero immediate value in FastISel implementation (PR #135768)
YunQiang Su via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 24 02:53:52 PDT 2025
================
@@ -0,0 +1,22 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s -march=mipsel -mcpu=mips32 -O0 -relocation-model=pic | FileCheck %s
+
+define i32 @div_imm_non_zero(i32 signext %a) nounwind {
----------------
wzssyqa wrote:
We should have a test for dividing with 0.
https://github.com/llvm/llvm-project/pull/135768
More information about the llvm-commits
mailing list