You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Warning: Right shift count >= width of type" is the error, and while I can't make a trivial reproduction case misbehave, I did see it misbehave with a zero shift in a larger project.
Since the range of valid SLI shifts is 0-(element width minus 1), one can reform it to not have an invalid shift amount:
Per the ARMv8 manual, "0" is a valid shift for SLI.
When building on x86 with a hardcoded zero shift,
sli_n.h
ends up with some invalid shifts as a result.For a 32-bit shift, line 234 is where the problem occurs:
"Warning: Right shift count >= width of type" is the error, and while I can't make a trivial reproduction case misbehave, I did see it misbehave with a zero shift in a larger project.
Since the range of valid SLI shifts is 0-(element width minus 1), one can reform it to not have an invalid shift amount:
This properly covers all cases from 0-31, and doesn't resolve to an invalid shift for the (ARM-legal) case of 0.
The 64-bit versions need similar modification.
I believe SRI may be similarly impacted.
The text was updated successfully, but these errors were encountered: