Issue 171908
Summary [WebAssembly] SplitVecOp_VSETCC simplification (PR #139295) breaks WebAssembly half-precision vector fcmp
Labels new issue
Assignees
Reporter aneshlya
    PR #139295 introduced a regression when compiling vector `fcmp` operations with half-precision floats for WebAssembly.
```
Operand not processed?
t38: v4f32 = uint_to_fp t73
UNREACHABLE executed at llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp:489!
```

Compiler explorer link: https://ispc.godbolt.org/z/GbnGohx9o

The change in `SplitVecOp_VSETCC` now preserves the original result element type instead of forcing i1.

**Affected Targets:**
- WebAssembly (wasm32/wasm64) with SIMD and half-precision vectors

Discovered via ISPC compiler's wasm target
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to