D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 23568 - Error: cannot implicitly convert expression 'a < b' of type 'float4' to 'int4'
Summary: Error: cannot implicitly convert expression 'a < b' of type 'float4' to 'int4'
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 major
Assignee: No Owner
URL:
Keywords: pull, SIMD, wrong-code
Depends on:
Blocks:
 
Reported: 2022-12-18 23:34 UTC by Iain Buclaw
Modified: 2022-12-19 08:23 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Iain Buclaw 2022-12-18 23:34:42 UTC
For some reason, __vector(float) comparisons result in a float type, not a mask.
Comment 1 Iain Buclaw 2022-12-18 23:36:34 UTC
This, despite the value of comparisons being only all 1's or all 0's.
Comment 2 Dlang Bot 2022-12-19 03:04:08 UTC
@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 Dlang Bot 2022-12-19 08:23:48 UTC
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