-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Assertion llvm::isUIntN(BitWidth, val) && "Value is not an N-bit unsigned value"
when building musl for mips64-linux-muslabi64
with Clang 20.1.0-rc1
#125954
Milestone
Comments
@llvm/issue-subscribers-backend-mips Author: Alex Rønne Petersen (alexrp)
To repro:
|
Can you please attach the generated reproducer files? |
From a quick glance at the code this might fix it
|
Merged
Reduced: target triple = "mips64-unknown-linux-muslabi64"
define i32 @test(i32 %arg, i1 %c) #0 {
%and = and i32 %arg, 255
%or = or i32 %and, -256
%sel = select i1 %c, i32 %or, i32 %and
ret i32 %sel
}
attributes #0 = { "target-cpu"="mips64r2" } |
/cherry-pick 88b1d16 |
/pull-request #126083 |
github-actions bot
pushed a commit
to arm/arm-toolchain
that referenced
this issue
Feb 8, 2025
Fixes llvm/llvm-project#125954. (cherry picked from commit 88b1d16)
Icohedron
pushed a commit
to Icohedron/llvm-project
that referenced
this issue
Feb 11, 2025
clayne
pushed a commit
to clayne/llvm-project
that referenced
this issue
Feb 12, 2025
Fixes llvm#125954. (cherry picked from commit 88b1d16)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To repro:
The text was updated successfully, but these errors were encountered: