[Mlir-commits] [mlir] [mlir][llvm] Add llvm.vector.deinterleave2 intrinsic (PR #91986)

Benjamin Maxwell llvmlistbot at llvm.org
Tue May 14 02:36:11 PDT 2024


================
@@ -786,6 +786,15 @@ define void @vector_extract(<vscale x 4 x float> %0) {
   ret void
 }
 
+; CHECK-LABEL: llvm.func @vector_deinterleave2
+define void @vector_deinterleave2(<4 x double> %0, <vscale x 8 x i32> %1) {
+  ; llvm.intr.vector.deinterleave2 %{{.*}} : (vector<4xf64>) -> !llvm.struct<(vector<2xf64>, vector<2xf64>)>
+  %3 = call { <2 x double>, <2 x double> } @llvm.vector.deinterleave2.v4f64(<4 x double> %0);
+  ; llvm.intr.vector.deinterleave2 %{{.*}} : (vector<[8]xi32>) -> !llvm.struct<(vector<[4]xi32>, vector<[4]xi32>)>
----------------
MacDue wrote:

These's are not checking anything (no `CHECK:` prefix). If you add the `CHECK: ` prefix I think these will fail (as the check line is does not match the generic form of an operation). 

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


More information about the Mlir-commits mailing list