Projecting into non-power-of-two-lanes repr(simd)
types does the wrong thing.
#137108
Labels
A-SIMD
Area: SIMD (Single Instruction Multiple Data)
requires-nightly
This issue requires a nightly compiler in some way.
This is basically #105439 again. I'm assigning this to me because I think we should just ban it instead of making it work -- it's always problematic because vectors want to be immediates, but indexing wants things in-memory, so it'd be better to require
insert
/extract
element on immediates.EDIT: MCP to deem this unsupported rust-lang/compiler-team#838
Demo: https://rust.godbolt.org/z/Mr5edjzM9
Resulting IR on rustc 1.86.0-nightly (a567209 2025-02-13)
which is clearly wrong, since it only set one of the three
i32
s in the result array.The text was updated successfully, but these errors were encountered: