-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect specialization for modulo operator #5026
Comments
Isn't In HLSL, operator% is same as |
I think this issue contradicts to one of already resolved issue. |
This doesn't have anything to do with the semantics of the operator, it's that we're failing to translate it correctly at all for integer types when used in a generic context, we should be lowering to SRem in this case, but we are lowering to FRem. Compare to just using the |
In this example, the
%
operator is being specialized asfrem
when it's actually operating onint
, it should be translated tosrem
The text was updated successfully, but these errors were encountered: