1 register_long_diagnostics! {
4 Malformed inline assembly rejected by LLVM.
6 LLVM checks the validity of the constraints and the assembly string passed to
7 it. This error implies that LLVM seems something wrong with the inline
10 In particular, it can happen if you forgot the closing bracket of a register
11 constraint (see issue #51430):
12 ```ignore (error-emitted-at-codegen-which-cannot-be-handled-by-compile_fail)
18 asm!("" :"={rax"(rax));
19 println!("Accumulator is: {}", rax);
26 Cannot convert inline assembly operand to a single LLVM value.
28 This error usually happens when trying to pass in a value to an input inline
29 assembly operand that is actually a pair of values. In particular, this can
30 happen when trying to pass in a slice, for instance a `&str`. In Rust, these
31 values are represented internally as a pair of values, the pointer and its
32 length. When passed as an input operand, this pair of values can not be
33 coerced into a register and thus we must fail with an error.