[llvm] [Mips] mips1 DivByZeroTrap (PR #81311)

via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 21 11:36:56 PST 2024


================
@@ -206,12 +234,30 @@ entry:
 }
 
 define signext i32 @sdiv_i32(i32 signext %a, i32 signext %b) {
-; GP32-LABEL: sdiv_i32:
-; GP32:       # %bb.0: # %entry
-; GP32-NEXT:    div $zero, $4, $5
-; GP32-NEXT:    teq $5, $zero, 7
-; GP32-NEXT:    jr $ra
-; GP32-NEXT:    mflo $2
+; GP32R0R1-LABEL: sdiv_i32:
----------------
cmccord-dev wrote:

I based the naming here off the entries that already existed for MIPS II, my changes are specifically for MIPS I, not Mips32R1, though I agree the naming scheme is very confusing.  Would you recommend changing the names for both mips1 and mips2?

https://github.com/llvm/llvm-project/pull/81311


More information about the llvm-commits mailing list