mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-12 18:07:40 +00:00
Ignore some more tests on emscripten
Either missing i128 or asm support
This commit is contained in:
parent
97e1d36937
commit
131fda40af
@ -10,6 +10,8 @@
|
||||
|
||||
// Test that the compiler will catch invalid inline assembly constraints.
|
||||
|
||||
// ignore-emscripten
|
||||
|
||||
#![feature(asm)]
|
||||
|
||||
extern "C" {
|
||||
|
@ -1,17 +1,17 @@
|
||||
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
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
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
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
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
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -11,6 +11,8 @@
|
||||
// Test that the compiler will catch passing invalid values to inline assembly
|
||||
// operands.
|
||||
|
||||
// ignore-emscripten
|
||||
|
||||
#![feature(asm)]
|
||||
|
||||
#[repr(C)]
|
||||
|
@ -1,41 +1,41 @@
|
||||
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
|
||||
| ^^
|
||||
|
||||
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
|
||||
| ^^^^^^
|
||||
|
||||
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
|
||||
| ^^^^^
|
||||
|
||||
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
|
||||
| ^^^
|
||||
|
||||
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
|
||||
| ^^^^
|
||||
|
||||
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
|
||||
| ^^^^
|
||||
|
||||
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
|
||||
| ^^^^^^^^^^^^^
|
||||
|
@ -8,8 +8,8 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
|
||||
// compile-pass
|
||||
// ignore-emscripten no i128 support
|
||||
|
||||
#![feature(nll)]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user