[Mlir-commits] [mlir] [mlir][test] Add integration tests for vector.interleave (PR #80969)

Cullen Rhodes llvmlistbot at llvm.org
Wed Feb 21 05:31:20 PST 2024


================
@@ -0,0 +1,24 @@
+// RUN: mlir-opt %s -test-lower-to-llvm | \
+// RUN: mlir-cpu-runner -e entry -entry-point-result=void  \
+// RUN:   -shared-libs=%mlir_c_runner_utils | \
+// RUN: FileCheck %s
+
+func.func @entry() {
+  %f1 = arith.constant 1.0 : f32
+  %f2 = arith.constant 2.0 : f32
+  %v1 = vector.splat %f1 : vector<2x4xf32>
+  %v2 = vector.splat %f2 :  vector<2x4xf32>
----------------
c-rhodes wrote:

```suggestion
  %v2 = vector.splat %f2 : vector<2x4xf32>
```

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


More information about the Mlir-commits mailing list