-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Intrinsic name not mangled correctly for type arguments #102738
Comments
Looks like stdarch hardcodes LLVM intrinsic mangling in a few places. These should be changed from p0i8 to just p0 in LLVM 15: https://github.com/rust-lang/stdarch/search?q=p0i8 Usually this gets gracefully handled through intrinsic remangling, I don't know why that doesn't occur for your particular case. Updating stdarch to directly use the right names should avoid any problems though. cc @Amanieu |
@nikic Does this apply to all |
LLVM 15 removes the pointer type from intrinsic suffixes, effectively replacing `.p0i8` (and other similar types) with just `.p0`. cc rust-lang/rust#102738
It applies to all |
Minimal reproduction on godbolt: https://rust.godbolt.org/z/v79M878Ye @nikic Any idea why LLVM auto-upgrade isn't working in this case? |
Thanks for the minimal reproducer. This turned out to be a simple typo, fixed in llvm/llvm-project@c893880. This was hidden when doing simple tests with opt because the IR parser was doing another redundant remangle (fixed in llvm/llvm-project@d25ef09 and llvm/llvm-project@befb731). Backport request: llvm/llvm-project#58522 |
Update LLVM submodule Merge upstream `release/15.x` branch. Fixes rust-lang#102738.
My project uses arm neon intrinsics. The arm test starts failing after 2022-10-04.
Reproduce:
https://github.com/Nugine/simd/actions/runs/3191907964/jobs/5214086504
rustc 1.66.0-nightly (57f097ea2 2022-10-01)
works.rustc 1.66.0-nightly (c97d02cdb 2022-10-05)
works (incremental compilation enabled)rustc 1.66.0-nightly (c97d02cdb 2022-10-05)
fails (incremental compilation disabled)I'm not sure how to find a MCVE for this issue, so I put the original context here.
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: