[clang] [llvm] [RISCV] Support version 0.9 of Zvabd (PR #218576)

Pengcheng Wang via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 26 01:49:48 PDT 2026


================
@@ -110,8 +109,8 @@ multiclass VPatTernaryW_VX_VS2First<string intrinsic, string instruction,
   foreach vtiTowti = vtilist in {
     defvar vti = vtiTowti.Vti;
     defvar wti = vtiTowti.Wti;
-    let Predicates = !listconcat(GetVTypePredicates<vti>.Predicates,
-                                 GetVTypePredicates<wti>.Predicates) in
+    let Predicates = GetVTypePredicates<vti>.Predicates in
----------------
wangpc-pp wrote:

This looks awkward now. I meant to `append` the outer `HasStdExtZvabd`.

The right change is keeping the outer `let append Predicates = [HasStdExtZvabd]` and here is:
```
    let Predicates = !listconcat(GetVTypePredicates<vti>.Predicates,
                                 GetVTypePredicates<wti>.Predicates) in
```
Sorry for the rework.

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


More information about the llvm-commits mailing list