[Mlir-commits] [mlir] [mlir][arith] Improve `extf` folder (PR #80232)
Jakub Kuderski
llvmlistbot at llvm.org
Fri Feb 2 13:28:24 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> {
----------------
kuhar wrote:
@Lewuathe I added a TODO for this since I don't see an easy way to produce the exact value. I'm not worried about the correctness of the conversion function itself because I already have a test for `truncf` that captures this. I hope this addresses your concerns.
https://github.com/llvm/llvm-project/pull/80232
More information about the Mlir-commits
mailing list