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
{{ message }}
Repository navigation
Incorrect code generated from inline assembly with inout register on riscv32im-unknown-none-elf #128212
I haven't looked into this too much yet, but do you know if it reproduces using C's inline assembly fed through clang? This seems like it could be an LLVM problem.
Did you mean between 1.77 and 1.78? The two links look the same to me.
It looks like this has to be a regression in LLVM, which was bumped to version 18 in 1.78, because we seem to generate the exact same IR. Could you file an issue with LLVM?
Activity
tgross35 commentedon Jul 25, 2024
I haven't looked into this too much yet, but do you know if it reproduces using C's inline assembly fed through clang? This seems like it could be an LLVM problem.
flaub commentedon Jul 26, 2024
It appears that this bug starts to appear in 1.77.
Using
riscv32i-unknown-none-elftarget:1.76: https://godbolt.org/z/bKosKqvfW
1.77: https://godbolt.org/z/MYacc9na7
flaub commentedon Jul 26, 2024
Could it be that this is the same underlying issue?
#126221
tgross35 commentedon Jul 26, 2024
Did you mean between 1.77 and 1.78? The two links look the same to me.
It looks like this has to be a regression in LLVM, which was bumped to version 18 in 1.78, because we seem to generate the exact same IR. Could you file an issue with LLVM?
https://godbolt.org/z/Te9efcnMz
It looks like it, I will close that one because this one has more detail.
apiraino commentedon Jul 26, 2024
WG-prioritization assigning priority (Zulip discussion).
Being an unsound issue, maybe let's see what we can do. Compile target is Tier 2.
@rustbot label -I-prioritize +P-high
Workaround for LLVM compiler bug for rv32im
Workaround for LLVM compiler bug for rv32im
Workaround for LLVM compiler bug for rv32im (#2129)
Workaround for LLVM compiler bug for rv32im
Workaround for LLVM compiler bug for rv32im (#2130)
tgross35 commentedon Jul 27, 2024
Fix applied to LLVM 19.x llvm/llvm-project#100843
Auto merge of rust-lang#127513 - nikic:llvm-19, r=cuviper
Auto merge of rust-lang#127513 - nikic:llvm-19, r=cuviper
Auto merge of rust-lang#127513 - nikic:llvm-19, r=cuviper
Auto merge of #127513 - nikic:llvm-19, r=cuviper
Auto merge of #127513 - nikic:llvm-19, r=cuviper