myunbin opened issue #15260:
Hi, this issue follows up on #14896 and the linked verification failure.
Feature
Add support for constructing 32-bit vector constants, such as
i8x4, iniconst_u, together with corresponding verifier specifications.
For example,iconst_u(i8x4, 1)should splat 1 into each lane:[#x01 #x01 #x01 #x01].Benefit
This would allow optimization rules that construct constants using
iconst_uto apply to these vector types.
For example, the following rule requires a vector of ones:; (-x) - (~x) → 1 (rule (simplify (isub ty (ineg ty x) (bnot ty x))) (iconst_u ty 1))Implementation
Extend the vector construction path in
iconst_uto support these types usingsplatand update its verifier spec.
cfallin commented on issue #15260:
Agreed; a PR would be welcome for this!
Last updated: Nov 19 2026 at 20:05 UTC