Bitfields generate bad code when casted #7074
Labels
bug
Bug, regression, crash
check-in-clang
See if this repros in clang as well
hlsl2021
Pertaining to HLSL2021 features
Milestone
Description
HLSL "Flat" casting bitfields does not properly mask bitfield members.
Steps to Reproduce
https://godbolt.org/z/MEKdTYxWM
Actual Behavior
Bit field members are read as full storage, not correctly masked, so instead of returning 3, this code returns 101057538 (0x6060402).
Environment
The text was updated successfully, but these errors were encountered: