[Mlir-commits] [mlir] [mlir][ArmSVE] Add `arm_sve.psel` operation (PR #95764)

Andrzej WarzyƄski llvmlistbot at llvm.org
Mon Jun 17 09:41:05 PDT 2024


================
@@ -442,6 +442,43 @@ def ZipX4Op  : ArmSVE_Op<"zip.x4", [
   }];
 }
 
+def PselOp : ArmSVE_Op<"psel", [
+  Pure,
+  AllTypesMatch<["p1", "result"]>,
+]> {
+  let summary = "Predicate select";
+
+  let description = [{
+    This operation returns the input predicate `p1` or an all-false predicate
+    based on the bit at `p2[index]`. Informally the semantics are:
----------------
banach-space wrote:

```suggestion
    based on the bit at `p2[index]`. Informally, the semantics are:
```

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


More information about the Mlir-commits mailing list