[Mlir-commits] [mlir] [mlir][arith] Improve `extf` folder (PR #80232)

Kai Sasaki llvmlistbot at llvm.org
Wed Jan 31 23:19:09 PST 2024


================
@@ -701,6 +701,15 @@ func.func @extFPConstant() -> f64 {
   return %0 : f64
 }
 
+// CHECK-LABEL: @extFPVectorConstant
+//       CHECK:   %[[cres:.+]] = arith.constant dense<[0.000000e+00, 1.000000e+00]> : vector<2xf128>
+//       CHECK:   return %[[cres]]
+func.func @extFPVectorConstant() -> vector<2xf128> {
----------------
Lewuathe wrote:

Can we also add the test case where folding does not happen (e.g. nan, negative zero)?

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


More information about the Mlir-commits mailing list