Bug 23568 – Error: cannot implicitly convert expression 'a < b' of type 'float4' to 'int4'
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-12-18T23:34:42Z
Last change time
2022-12-19T08:23:48Z
Keywords
pull, SIMD, wrong-code
Assigned to
No Owner
Creator
Iain Buclaw
Comments
Comment #0 by ibuclaw — 2022-12-18T23:34:42Z
For some reason, __vector(float) comparisons result in a float type, not a mask.
Comment #1 by ibuclaw — 2022-12-18T23:36:34Z
This, despite the value of comparisons being only all 1's or all 0's.
Comment #2 by dlang-bot — 2022-12-19T03:04:08Z
@ibuclaw updated dlang/dmd pull request #14715 "SIMD: Set the result type of vector comparisons to an integer vector type" fixing this issue:
- fix Issue 23568: Set the result type of vector comparisons to an integer vector type
https://github.com/dlang/dmd/pull/14715
Comment #3 by dlang-bot — 2022-12-19T08:23:48Z
dlang/dmd pull request #14715 "fix Issue 23568: Set the result type of vector comparisons to an integer vector type" was merged into master:
- 63241a4698aa8f7285ac4e988605eeca38e1f0cc by Iain Buclaw:
fix Issue 23568: Set the result type of vector comparisons to an integer vector type
https://github.com/dlang/dmd/pull/14715