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
4
2
//@ add-core-stubs
5
3
//@ assembly-output: emit-asm
4
+ //@ [wasm32-unknown] compile-flags: --target wasm32-unknown-unknown
6
5
//@ [wasm64-unknown] compile-flags: --target wasm64-unknown-unknown
7
6
//@ [wasm32-wasip1] compile-flags: --target wasm32-wasip1
7
+ //@ [wasm32-unknown] needs-llvm-components: webassembly
8
8
//@ [wasm64-unknown] needs-llvm-components: webassembly
9
9
//@ [wasm32-wasip1] needs-llvm-components: webassembly
10
10
@@ -97,6 +97,7 @@ extern "C" fn fn_i64_i64(num: i64) -> i64 {
97
97
}
98
98
99
99
// CHECK-LABEL: fn_i128_i128:
100
+ // wasm32-unknown: .functype fn_i128_i128 (i32, i64, i64) -> ()
100
101
// wasm32-wasip1: .functype fn_i128_i128 (i32, i64, i64) -> ()
101
102
// wasm64-unknown: .functype fn_i128_i128 (i64, i64, i64) -> ()
102
103
#[ allow( improper_ctypes_definitions) ]
@@ -114,6 +115,7 @@ extern "C" fn fn_i128_i128(num: i128) -> i128 {
114
115
}
115
116
116
117
// CHECK-LABEL: fn_f128_f128:
118
+ // wasm32-unknown: .functype fn_f128_f128 (i32, i64, i64) -> ()
117
119
// wasm32-wasip1: .functype fn_f128_f128 (i32, i64, i64) -> ()
118
120
// wasm64-unknown: .functype fn_f128_f128 (i64, i64, i64) -> ()
119
121
#[ no_mangle]
@@ -136,6 +138,7 @@ struct Compound {
136
138
}
137
139
138
140
// CHECK-LABEL: fn_compound_compound:
141
+ // wasm32-unknown: .functype fn_compound_compound (i32, i32) -> ()
139
142
// wasm32-wasip1: .functype fn_compound_compound (i32, i32) -> ()
140
143
// wasm64-unknown: .functype fn_compound_compound (i64, i64) -> ()
141
144
#[ no_mangle]
0 commit comments