rust/src/test/ui/inline-asm-bad-operand.stderr

46 lines
1.5 KiB
Plaintext
Raw Normal View History

error[E0669]: invalid value for constraint in inline assembly
2020-02-14 10:54:40 -06:00
--> $DIR/inline-asm-bad-operand.rs:22:29
|
2020-02-14 10:54:40 -06:00
LL | llvm_asm!("" :: "r"(""));
| ^^
error[E0669]: invalid value for constraint in inline assembly
2020-02-14 10:54:40 -06:00
--> $DIR/inline-asm-bad-operand.rs:27:37
|
2020-02-14 10:54:40 -06:00
LL | llvm_asm!("ret" : : "{rdi}"(target));
| ^^^^^^
error[E0669]: invalid value for constraint in inline assembly
2020-02-14 10:54:40 -06:00
--> $DIR/inline-asm-bad-operand.rs:34:34
|
2020-02-14 10:54:40 -06:00
LL | unsafe { llvm_asm!("" :: "i"(hello)) };
| ^^^^^
error[E0669]: invalid value for constraint in inline assembly
2020-02-14 10:54:40 -06:00
--> $DIR/inline-asm-bad-operand.rs:42:43
|
2020-02-14 10:54:40 -06:00
LL | llvm_asm!("movups $1, %xmm0"::"m"(arr));
| ^^^
error[E0669]: invalid value for constraint in inline assembly
2020-02-14 10:54:40 -06:00
--> $DIR/inline-asm-bad-operand.rs:49:37
|
2020-02-14 10:54:40 -06:00
LL | llvm_asm!("mov sp, $0"::"r"(addr));
| ^^^^
error[E0669]: invalid value for constraint in inline assembly
2020-02-14 10:54:40 -06:00
--> $DIR/inline-asm-bad-operand.rs:56:37
|
2020-02-14 10:54:40 -06:00
LL | llvm_asm!("mov sp, $0"::"r"(addr),
| ^^^^
error[E0669]: invalid value for constraint in inline assembly
2020-02-14 10:54:40 -06:00
--> $DIR/inline-asm-bad-operand.rs:57:37
|
LL | ... "r"("hello e0669"));
| ^^^^^^^^^^^^^
error: aborting due to 7 previous errors
For more information about this error, try `rustc --explain E0669`.