[Issue 23746] ICE with bit-wise binops with vector masks

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 26 22:21:16 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=23746

Iain Buclaw <ibuclaw at gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw at gdcproject.org

--- Comment #1 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to kinke from comment #0)
> As shown in the example, working with vector masks is very cumbersome as of
> v2.102, requiring reinterpret-casts all over the place.
Only for vector floats though.

The result of a comparison is either all bits are zeros or ones.  For floats,
that's `0` or `nan`.


>        return (min & ltMask)
You can't use bitwise operations on scalar floats, why would you expect it to
be valid on vector floats?

--


More information about the Digitalmars-d-bugs mailing list