Skip to content

Commit 10fa79f

Browse files
committed
Test naked asm for wasm32-unknown-unknown
1 parent 68ac5ab commit 10fa79f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/assembly/naked-functions/wasm32.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
// FIXME: add wasm32-unknown when the wasm32-unknown-unknown ABI is fixed
2-
// see https://github.com/rust-lang/rust/issues/115666
3-
//@ revisions: wasm64-unknown wasm32-wasip1
1+
//@ revisions: wasm32-unknown wasm64-unknown wasm32-wasip1
42
//@ add-core-stubs
53
//@ assembly-output: emit-asm
4+
//@ [wasm32-unknown] compile-flags: --target wasm32-unknown-unknown
65
//@ [wasm64-unknown] compile-flags: --target wasm64-unknown-unknown
76
//@ [wasm32-wasip1] compile-flags: --target wasm32-wasip1
87
//@ [wasm64-unknown] needs-llvm-components: webassembly
@@ -97,6 +96,7 @@ extern "C" fn fn_i64_i64(num: i64) -> i64 {
9796
}
9897

9998
// CHECK-LABEL: fn_i128_i128:
99+
// wasm32-unknown: .functype fn_i128_i128 (i32, i64, i64) -> ()
100100
// wasm32-wasip1: .functype fn_i128_i128 (i32, i64, i64) -> ()
101101
// wasm64-unknown: .functype fn_i128_i128 (i64, i64, i64) -> ()
102102
#[allow(improper_ctypes_definitions)]
@@ -114,6 +114,7 @@ extern "C" fn fn_i128_i128(num: i128) -> i128 {
114114
}
115115

116116
// CHECK-LABEL: fn_f128_f128:
117+
// wasm32-unknown: .functype fn_f128_f128 (i32, i64, i64) -> ()
117118
// wasm32-wasip1: .functype fn_f128_f128 (i32, i64, i64) -> ()
118119
// wasm64-unknown: .functype fn_f128_f128 (i64, i64, i64) -> ()
119120
#[no_mangle]
@@ -136,6 +137,7 @@ struct Compound {
136137
}
137138

138139
// CHECK-LABEL: fn_compound_compound:
140+
// wasm32-unknown: .functype fn_compound_compound (i32, i32) -> ()
139141
// wasm32-wasip1: .functype fn_compound_compound (i32, i32) -> ()
140142
// wasm64-unknown: .functype fn_compound_compound (i64, i64) -> ()
141143
#[no_mangle]

0 commit comments

Comments
 (0)