llvm-project
4c605e91 - [HLSL] [DirectX] Invert the result of `firstbithigh` (#166419)

Commit
1 day ago
[HLSL] [DirectX] Invert the result of `firstbithigh` (#166419) Fixes #145752 This PR inverts the result of `firstbithigh` when targeting DirectX by subtracting it from integer bitwidth - 1 to match the result from DXC. The result is not inverted if `firstbithigh` returned -1 or when targeting a backend other than DirectX.
Author
Parents
Loading