[Mlir-commits] [mlir] [mlir][arith] Fix canon pattern for large ints in chained arith (PR #68900)
Markus Böck
llvmlistbot at llvm.org
Thu Oct 12 11:53:34 PDT 2023
================
@@ -985,6 +985,16 @@ func.func @tripleMulIMulII32(%arg0: i32) -> i32 {
return %mul2 : i32
}
+// CHECK-LABEL: @tripleMulLargeInt
+// CHECK: return
+func.func @tripleMulLargeInt(%arg0: i256) -> i256 {
+ %0 = arith.constant 3618502788666131213697322783095070105623107215331596699973092056135872020481 : i256
+ %c5 = arith.constant 5 : i256
----------------
zero9178 wrote:
Could you also check the result of the fold is correct? This is useful and missing test-coverage given that it used to assert previously and definitely worth adding 🙂
https://github.com/llvm/llvm-project/pull/68900
More information about the Mlir-commits
mailing list