You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tuple == with a SIMD vector element emits invalid LLVM (icmp on <8 x float>) #1995
Found while fixing #1964; reproduces on the fix-1438 base stage1.
type V8 = Vector[8, f32]
fn main:
let w: (i8, V8) = (1, V8.splat(1))
let ww = w
print(f"{ww == w}")
Sema accepts it; codegen's field-wise struct compare (Codegen.compare_value_eq) recurses into the vector element and emits icmp eq <8 x float> and and i1, <8 x i1>: "Invalid operand types for ICmp instruction". Expected: either the spec's rule for == on a tuple holding a vector (all-lanes equal?) or a Sema diagnostic if vectors are not Eq — the spec (§4.3d) should decide which; today it is a codegen crash.
Activity
`==` on an aggregate that holds a vector or mask is refused at Sema (#…
`==` on an aggregate that holds a vector or mask is refused at Sema (#…
Tuples and multi-field enum payloads at TypeLayout's alignment (#1964)…
ehartford commentedon Oct 3, 2026
Fixed on main by da08b14 (#1999, battery green on 857b5a4).