Inline asm!() with "i" constraint produces the wrong assembly due to (now-fixed) LLVM bug #68021
Labels
A-inline-assembly
Area: Inline assembly (`asm!(…)`)
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
C-bug
Category: This is a bug.
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Nightly rustc correctly handles the first of these two inline assembly statements but silently does the wrong thing with the second one (example on Compiler Explorer).
The issue is LLVM's
call asm inteldialect
had a bug that was fixed. I think the solution is to cherry-pick the LLVM fix.You can see the problem directly using LLVM IR here.
The text was updated successfully, but these errors were encountered: