[llvm] [WebAssembly] Add v8f16 select instruction patterns (PR #213280)
Anutosh Bhat via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 17 10:41:34 PDT 2026
================
@@ -89,6 +89,28 @@ define <8 x half> @insert_lane_v8f16(<8 x half> %v, half %x) {
ret <8 x half> %r
}
+; CHECK-LABEL: select_v8f16:
----------------
anutosh491 wrote:
Hey @brendandahl
Sorry for the late reply here and thanks for pointing this out.
I tested the four additional forms with a fresh build.
- The vector-comparison form works, I have added a test for it here.
- The three scalar comparison forms (`select_cmp`, `select_ne`, and `select_eq`) currently fail during instruction selection because `v8f16 SELECT_CC` is not expanded.
```
LLVM ERROR: Cannot select: t12: v8f16 = select_cc ..., setlt:ch
```
I'd take care of those in a follow up patch if that makes sense ! What do you think ?
https://github.com/llvm/llvm-project/pull/213280
More information about the llvm-commits
mailing list