0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib/std/simd.zig
Frank Denis b38390b769 llvm: fix @reduce and @bitCast miscompilation on Hexagon (#37501)
On Hexagon, LLVM miscompiles reductions and bitcasts of bool vectors.

It assumes one bit per lane, while Hexagon stores comparison results with one bit per byte.

Work around this by doing these operations one element at a time.

And the tests that we previously had to skip on Hexagon now pass.

Reviewed-on: https://codeberg.org/ziglang/zig/pulls/37501
Reviewed-by: Andrew Kelley <andrew@ziglang.org>
2026-11-08 09:02:54 +01:00

473 lines
22 KiB