Rename asm test directory in favor of llvm_asm

This commit is contained in:
Yuki Okushi 2020-04-17 18:36:16 +09:00
parent 861996e138
commit af442d964d
No known key found for this signature in database
GPG key ID: B0986C85C0E2DAA1
22 changed files with 19 additions and 19 deletions

View file

@ -1,5 +1,5 @@
error[E0664]: clobber should not be surrounded by braces
--> $DIR/asm-bad-clobber.rs:22:42
--> $DIR/llvm-asm-bad-clobber.rs:22:42
|
LL | llvm_asm!("xor %eax, %eax" : : : "{eax}");
| ^^^^^^^

View file

@ -1,11 +1,11 @@
error[E0662]: input operand constraint contains '='
--> $DIR/asm-in-bad-modifier.rs:23:44
--> $DIR/llvm-asm-in-bad-modifier.rs:23:44
|
LL | llvm_asm!("mov $1, $0" : "=r"(x) : "=r"(5));
| ^^^^
error[E0663]: input operand constraint contains '+'
--> $DIR/asm-in-bad-modifier.rs:24:44
--> $DIR/llvm-asm-in-bad-modifier.rs:24:44
|
LL | llvm_asm!("mov $1, $0" : "=r"(y) : "+r"(5));
| ^^^^

View file

@ -1,11 +1,11 @@
warning: unrecognized option
--> $DIR/asm-misplaced-option.rs:24:69
--> $DIR/llvm-asm-misplaced-option.rs:24:69
|
LL | llvm_asm!("mov $1, $0" : "=r"(x) : "r"(5_usize), "0"(x) : : "cc");
| ^^^^
warning: expected a clobber, found an option
--> $DIR/asm-misplaced-option.rs:31:85
--> $DIR/llvm-asm-misplaced-option.rs:31:85
|
LL | llvm_asm!("add $2, $1; mov $1, $0" : "=r"(x) : "r"(x), "r"(8_usize) : "cc", "volatile");
| ^^^^^^^^^^

View file

@ -1,5 +1,5 @@
error[E0384]: cannot assign twice to immutable variable `x`
--> $DIR/asm-out-assign-imm.rs:24:39
--> $DIR/llvm-asm-out-assign-imm.rs:24:39
|
LL | let x: isize;
| - help: make this binding mutable: `mut x`

View file

@ -1,5 +1,5 @@
error[E0661]: output operand constraint lacks '=' or '+'
--> $DIR/asm-out-no-modifier.rs:22:34
--> $DIR/llvm-asm-out-no-modifier.rs:22:34
|
LL | llvm_asm!("mov $1, $0" : "r"(x) : "r"(5));
| ^^^

View file

@ -1,5 +1,5 @@
error[E0381]: use of possibly-uninitialized variable: `x`
--> $DIR/asm-out-read-uninit.rs:22:48
--> $DIR/llvm-asm-out-read-uninit.rs:22:48
|
LL | llvm_asm!("mov $1, $0" : "=r"(x) : "r"(x));
| ^ use of possibly-uninitialized `x`

View file

@ -1,65 +1,65 @@
error: macro requires a string literal as an argument
--> $DIR/asm-parse-errors.rs:4:5
--> $DIR/llvm-asm-parse-errors.rs:4:5
|
LL | llvm_asm!();
| ^^^^^^^^^^^^ string literal required
error: expected string literal
--> $DIR/asm-parse-errors.rs:5:23
--> $DIR/llvm-asm-parse-errors.rs:5:23
|
LL | llvm_asm!("nop" : struct);
| ^^^^^^ not a string literal
error: expected string literal
--> $DIR/asm-parse-errors.rs:6:35
--> $DIR/llvm-asm-parse-errors.rs:6:35
|
LL | llvm_asm!("mov %eax, $$0x2" : struct);
| ^^^^^^ not a string literal
error: expected `(`, found keyword `struct`
--> $DIR/asm-parse-errors.rs:7:44
--> $DIR/llvm-asm-parse-errors.rs:7:44
|
LL | llvm_asm!("mov %eax, $$0x2" : "={eax}" struct);
| ^^^^^^ expected `(`
error: expected expression, found keyword `struct`
--> $DIR/asm-parse-errors.rs:8:44
--> $DIR/llvm-asm-parse-errors.rs:8:44
|
LL | llvm_asm!("mov %eax, $$0x2" : "={eax}"(struct));
| ^^^^^^ expected expression
error: expected string literal
--> $DIR/asm-parse-errors.rs:9:49
--> $DIR/llvm-asm-parse-errors.rs:9:49
|
LL | llvm_asm!("in %dx, %al" : "={al}"(result) : struct);
| ^^^^^^ not a string literal
error: expected `(`, found keyword `struct`
--> $DIR/asm-parse-errors.rs:10:56
--> $DIR/llvm-asm-parse-errors.rs:10:56
|
LL | llvm_asm!("in %dx, %al" : "={al}"(result) : "{dx}" struct);
| ^^^^^^ expected `(`
error: expected expression, found keyword `struct`
--> $DIR/asm-parse-errors.rs:11:56
--> $DIR/llvm-asm-parse-errors.rs:11:56
|
LL | llvm_asm!("in %dx, %al" : "={al}"(result) : "{dx}"(struct));
| ^^^^^^ expected expression
error: expected string literal
--> $DIR/asm-parse-errors.rs:12:41
--> $DIR/llvm-asm-parse-errors.rs:12:41
|
LL | llvm_asm!("mov $$0x200, %eax" : : : struct);
| ^^^^^^ not a string literal
error: expected string literal
--> $DIR/asm-parse-errors.rs:13:50
--> $DIR/llvm-asm-parse-errors.rs:13:50
|
LL | llvm_asm!("mov eax, 2" : "={eax}"(foo) : : : struct);
| ^^^^^^ not a string literal
error: inline assembly must be a string literal
--> $DIR/asm-parse-errors.rs:14:15
--> $DIR/llvm-asm-parse-errors.rs:14:15
|
LL | llvm_asm!(123);
| ^^^