Skip to content

Commit 131fda4

Browse files
committed
Ignore some more tests on emscripten
Either missing i128 or asm support
1 parent 97e1d36 commit 131fda4

File tree

5 files changed

+15
-11
lines changed

5 files changed

+15
-11
lines changed

src/test/ui/inline-asm-bad-constraint.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
// Test that the compiler will catch invalid inline assembly constraints.
1212

13+
// ignore-emscripten
14+
1315
#![feature(asm)]
1416

1517
extern "C" {

src/test/ui/inline-asm-bad-constraint.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
error[E0668]: malformed inline assembly
2-
--> $DIR/inline-asm-bad-constraint.rs:29:9
2+
--> $DIR/inline-asm-bad-constraint.rs:31:9
33
|
44
LL | asm!("" :"={rax"(rax)) //~ ERROR E0668
55
| ^^^^^^^^^^^^^^^^^^^^^^
66

77
error[E0668]: malformed inline assembly
8-
--> $DIR/inline-asm-bad-constraint.rs:37:9
8+
--> $DIR/inline-asm-bad-constraint.rs:39:9
99
|
1010
LL | asm!("callq $0" : : "0"(foo)) //~ ERROR E0668
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1212

1313
error[E0668]: malformed inline assembly
14-
--> $DIR/inline-asm-bad-constraint.rs:44:9
14+
--> $DIR/inline-asm-bad-constraint.rs:46:9
1515
|
1616
LL | asm!("addb $1, $0" : "={rax}"((0i32, rax))); //~ ERROR E0668
1717
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/test/ui/inline-asm-bad-operand.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
// Test that the compiler will catch passing invalid values to inline assembly
1212
// operands.
1313

14+
// ignore-emscripten
15+
1416
#![feature(asm)]
1517

1618
#[repr(C)]

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
11
error[E0669]: invalid value for constraint in inline assembly
2-
--> $DIR/inline-asm-bad-operand.rs:29:24
2+
--> $DIR/inline-asm-bad-operand.rs:31:24
33
|
44
LL | asm!("" :: "r"("")); //~ ERROR E0669
55
| ^^
66

77
error[E0669]: invalid value for constraint in inline assembly
8-
--> $DIR/inline-asm-bad-operand.rs:34:32
8+
--> $DIR/inline-asm-bad-operand.rs:36:32
99
|
1010
LL | asm!("ret" : : "{rdi}"(target)); //~ ERROR E0669
1111
| ^^^^^^
1212

1313
error[E0669]: invalid value for constraint in inline assembly
14-
--> $DIR/inline-asm-bad-operand.rs:41:29
14+
--> $DIR/inline-asm-bad-operand.rs:43:29
1515
|
1616
LL | unsafe { asm!("" :: "i"(hello)) }; //~ ERROR E0669
1717
| ^^^^^
1818

1919
error[E0669]: invalid value for constraint in inline assembly
20-
--> $DIR/inline-asm-bad-operand.rs:49:38
20+
--> $DIR/inline-asm-bad-operand.rs:51:38
2121
|
2222
LL | asm!("movups $1, %xmm0"::"m"(arr)); //~ ERROR E0669
2323
| ^^^
2424

2525
error[E0669]: invalid value for constraint in inline assembly
26-
--> $DIR/inline-asm-bad-operand.rs:56:32
26+
--> $DIR/inline-asm-bad-operand.rs:58:32
2727
|
2828
LL | asm!("mov sp, $0"::"r"(addr)); //~ ERROR E0669
2929
| ^^^^
3030

3131
error[E0669]: invalid value for constraint in inline assembly
32-
--> $DIR/inline-asm-bad-operand.rs:63:32
32+
--> $DIR/inline-asm-bad-operand.rs:65:32
3333
|
3434
LL | asm!("mov sp, $0"::"r"(addr), //~ ERROR E0669
3535
| ^^^^
3636

3737
error[E0669]: invalid value for constraint in inline assembly
38-
--> $DIR/inline-asm-bad-operand.rs:64:32
38+
--> $DIR/inline-asm-bad-operand.rs:66:32
3939
|
4040
LL | "r"("hello e0669")); //~ ERROR E0669
4141
| ^^^^^^^^^^^^^

src/test/ui/issues/issue-49579.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
1211
// compile-pass
12+
// ignore-emscripten no i128 support
1313

1414
#![feature(nll)]
1515

0 commit comments

Comments
 (0)