Stream: git-wasmtime

Topic: wasmtime / issue #14691 Cranelift:


view this post on Zulip Wasmtime GitHub notifications bot (Oct 13 2026 at 00:03):

Takashiidobe opened issue #14691:

.clif Test Case

function %swizzle_splat_junk_upper_bits(i64) -> i8 {
block0(v0: i64):
    v1 = iconst.i64 0x0807060504030201
    v2 = splat.i64x2 v1
    v3 = bitcast.i8x16 little v2
    v4 = ireduce.i8 v0
    v5 = splat.i8x16 v4
    v6 = swizzle v3, v5
    v7 = extractlane v6, 0
    return v7
}
; run: %swizzle_splat_junk_upper_bits(0x100) == 1

Steps to Reproduce

Expected Results

Actual Results

Versions and Environment

Cranelift version or commit: 0.136.2.

Operating system: Linux

Architecture: I'm on x86_64, using qemu-static to emulate riscv

Extra Info

I assume the (rv_vrgather_vx x y (unmasked) ty) rule just needs to zext y to handle this bug.

To run this case in the browser I have a web tool that runs clif on the client side to demonstrate this on 0.136.2:

Risc-V (returns 0)
x86 (returns 1)

view this post on Zulip Wasmtime GitHub notifications bot (Oct 13 2026 at 00:03):

Takashiidobe added the bug label to Issue #14691.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 13 2026 at 00:03):

Takashiidobe added the cranelift label to Issue #14691.


Last updated: Oct 31 2026 at 23:03 UTC