-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Codegen bug with Base.lshr_int intrinsic #37880
Labels
bug
Indicates an unexpected problem or unintended behavior
compiler:codegen
Generation of LLVM IR and native code
Comments
This is not an LLVM bug but a codegen bug (as the unoptimized version shows). The check for overflow should check the size of the shift amount. If the size of the value (in this case 256) doesn't fit in the shift size ( |
yuyichao
changed the title
LLVM bug with Base.lshr_int intrinsic
Codegen bug with Base.lshr_int intrinsic
Oct 4, 2020
@Keno, would you be an appropriate person to take a look at this? |
I'll fix it. |
JeffBezanson
added a commit
that referenced
this issue
Oct 5, 2020
JeffBezanson
added a commit
that referenced
this issue
Oct 6, 2020
KristofferC
pushed a commit
that referenced
this issue
Oct 21, 2020
KristofferC
pushed a commit
that referenced
this issue
Oct 21, 2020
vchuravy
pushed a commit
that referenced
this issue
Jan 22, 2021
vchuravy
pushed a commit
that referenced
this issue
Jan 22, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Indicates an unexpected problem or unintended behavior
compiler:codegen
Generation of LLVM IR and native code
Ref: https://discourse.julialang.org/t/failure-with-lshr-int-intrinsic-for-on-uint256-type/47738/4
@simeonschaub suggested this repro which "looks like it’s an LLVM bug":
The text was updated successfully, but these errors were encountered: