Ignore some more tests on emscripten

Either missing i128 or asm support
This commit is contained in:
Nikita Popov 2018-11-02 19:18:19 +01:00
parent 97e1d36937
commit 131fda40af
5 changed files with 15 additions and 11 deletions

View File

@ -10,6 +10,8 @@
// Test that the compiler will catch invalid inline assembly constraints. // Test that the compiler will catch invalid inline assembly constraints.
// ignore-emscripten
#![feature(asm)] #![feature(asm)]
extern "C" { extern "C" {

View File

@ -1,17 +1,17 @@
error[E0668]: malformed inline assembly error[E0668]: malformed inline assembly
--> $DIR/inline-asm-bad-constraint.rs:29:9 --> $DIR/inline-asm-bad-constraint.rs:31:9
| |
LL | asm!("" :"={rax"(rax)) //~ ERROR E0668 LL | asm!("" :"={rax"(rax)) //~ ERROR E0668
| ^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^
error[E0668]: malformed inline assembly error[E0668]: malformed inline assembly
--> $DIR/inline-asm-bad-constraint.rs:37:9 --> $DIR/inline-asm-bad-constraint.rs:39:9
| |
LL | asm!("callq $0" : : "0"(foo)) //~ ERROR E0668 LL | asm!("callq $0" : : "0"(foo)) //~ ERROR E0668
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0668]: malformed inline assembly error[E0668]: malformed inline assembly
--> $DIR/inline-asm-bad-constraint.rs:44:9 --> $DIR/inline-asm-bad-constraint.rs:46:9
| |
LL | asm!("addb $1, $0" : "={rax}"((0i32, rax))); //~ ERROR E0668 LL | asm!("addb $1, $0" : "={rax}"((0i32, rax))); //~ ERROR E0668
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

View File

@ -11,6 +11,8 @@
// Test that the compiler will catch passing invalid values to inline assembly // Test that the compiler will catch passing invalid values to inline assembly
// operands. // operands.
// ignore-emscripten
#![feature(asm)] #![feature(asm)]
#[repr(C)] #[repr(C)]

View File

@ -1,41 +1,41 @@
error[E0669]: invalid value for constraint in inline assembly error[E0669]: invalid value for constraint in inline assembly
--> $DIR/inline-asm-bad-operand.rs:29:24 --> $DIR/inline-asm-bad-operand.rs:31:24
| |
LL | asm!("" :: "r"("")); //~ ERROR E0669 LL | asm!("" :: "r"("")); //~ ERROR E0669
| ^^ | ^^
error[E0669]: invalid value for constraint in inline assembly error[E0669]: invalid value for constraint in inline assembly
--> $DIR/inline-asm-bad-operand.rs:34:32 --> $DIR/inline-asm-bad-operand.rs:36:32
| |
LL | asm!("ret" : : "{rdi}"(target)); //~ ERROR E0669 LL | asm!("ret" : : "{rdi}"(target)); //~ ERROR E0669
| ^^^^^^ | ^^^^^^
error[E0669]: invalid value for constraint in inline assembly error[E0669]: invalid value for constraint in inline assembly
--> $DIR/inline-asm-bad-operand.rs:41:29 --> $DIR/inline-asm-bad-operand.rs:43:29
| |
LL | unsafe { asm!("" :: "i"(hello)) }; //~ ERROR E0669 LL | unsafe { asm!("" :: "i"(hello)) }; //~ ERROR E0669
| ^^^^^ | ^^^^^
error[E0669]: invalid value for constraint in inline assembly error[E0669]: invalid value for constraint in inline assembly
--> $DIR/inline-asm-bad-operand.rs:49:38 --> $DIR/inline-asm-bad-operand.rs:51:38
| |
LL | asm!("movups $1, %xmm0"::"m"(arr)); //~ ERROR E0669 LL | asm!("movups $1, %xmm0"::"m"(arr)); //~ ERROR E0669
| ^^^ | ^^^
error[E0669]: invalid value for constraint in inline assembly error[E0669]: invalid value for constraint in inline assembly
--> $DIR/inline-asm-bad-operand.rs:56:32 --> $DIR/inline-asm-bad-operand.rs:58:32
| |
LL | asm!("mov sp, $0"::"r"(addr)); //~ ERROR E0669 LL | asm!("mov sp, $0"::"r"(addr)); //~ ERROR E0669
| ^^^^ | ^^^^
error[E0669]: invalid value for constraint in inline assembly error[E0669]: invalid value for constraint in inline assembly
--> $DIR/inline-asm-bad-operand.rs:63:32 --> $DIR/inline-asm-bad-operand.rs:65:32
| |
LL | asm!("mov sp, $0"::"r"(addr), //~ ERROR E0669 LL | asm!("mov sp, $0"::"r"(addr), //~ ERROR E0669
| ^^^^ | ^^^^
error[E0669]: invalid value for constraint in inline assembly error[E0669]: invalid value for constraint in inline assembly
--> $DIR/inline-asm-bad-operand.rs:64:32 --> $DIR/inline-asm-bad-operand.rs:66:32
| |
LL | "r"("hello e0669")); //~ ERROR E0669 LL | "r"("hello e0669")); //~ ERROR E0669
| ^^^^^^^^^^^^^ | ^^^^^^^^^^^^^

View File

@ -8,8 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
// compile-pass // compile-pass
// ignore-emscripten no i128 support
#![feature(nll)] #![feature(nll)]