- Notifications
You must be signed in to change notification settings - Fork 803
Closed
Labels
Milestone
Description
Description
When using the dot intrinsic to calculate a dot product, the generated code will use a signed mad operator instead of the umad operator that the mul intrinsic uses when it amounts to a dot product.
Steps to Reproduce
Just pass unsigned integer vectors of 2 or more elements to the dot intrinsic.
Switching the defined FUNC between dot and mul in this godbolt link will show the difference in output: https://godbolt.org/z/Pz6a5a38r
Actual Behavior
You can see that it will change between calling IMad with opcode 48 and UMad with opcode 49.
Environment
- DXC version 1.8.2407
- Host Operating System macos 14.7.2
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done
Status
Triaged