[Issue 23746] ICE with bit-wise binops with vector masks
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Feb 26 23:22:58 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=23746
--- Comment #2 from kinke <kinke at gmx.net> ---
(In reply to Iain Buclaw from comment #1)
> The result of a comparison is either all bits are zeros or ones. For
> floats, that's `0` or `nan`.
The only usage of the new vector masks, at least that I can think of, are
masking operations via bitwise ops. What the bit pattern represents for a
specific vector element type plays no role whatsoever.
> > return (min & ltMask)
> You can't use bitwise operations on scalar floats, why would you expect it
> to be valid on vector floats?
Because then we don't need vector masks and elaborate vector comparisons in the
first place, a library solution would do.
--
More information about the Digitalmars-d-bugs
mailing list