File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
include/mlir/Dialect/ArmSVE/IR Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -410,4 +410,8 @@ def ConvertToSvboolIntrOp :
410
410
/*overloadedResults=*/[]>,
411
411
Arguments<(ins SVEPredicate:$mask)>;
412
412
413
+ def Zip1IntrOp :
414
+ ArmSVE_IntrBinaryOverloadedOp<"zip1">,
415
+ Arguments<(ins AnyScalableVector, AnyScalableVector)>;
416
+
413
417
#endif // ARMSVE_OPS
Original file line number Diff line number Diff line change @@ -314,3 +314,10 @@ llvm.func @arm_sve_convert_to_svbool(
314
314
: (vector <[1 ]xi1 >) -> vector <[16 ]xi1 >
315
315
llvm.return
316
316
}
317
+
318
+ // CHECK-LABEL: @arm_sve_zip1
319
+ // CHECK-NEXT: call <vscale x 8 x half> @llvm.aarch64.sve.zip1.nxv8f16(<vscale x 8 x half> %{{.*}}, <vscale x 8 x half> {{.*}})
320
+ llvm.func @arm_sve_zip1 (%arg0 : vector <[8 ]xf16 >) -> vector <[8 ]xf16 > {
321
+ %0 = " arm_sve.intr.zip1" (%arg0 , %arg0 ) : (vector <[8 ]xf16 >, vector <[8 ]xf16 >) -> vector <[8 ]xf16 >
322
+ llvm.return %0 : vector <[8 ]xf16 >
323
+ }
You can’t perform that action at this time.
0 commit comments