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
8
7
//@ [wasm64-unknown] needs-llvm-components: webassembly
@@ -97,6 +96,7 @@ extern "C" fn fn_i64_i64(num: i64) -> i64 {
97
96
}
98
97
99
98
// CHECK-LABEL: fn_i128_i128:
99
+ // wasm32-unknown: .functype fn_i128_i128 (i32, i64, i64) -> ()
100
100
// wasm32-wasip1: .functype fn_i128_i128 (i32, i64, i64) -> ()
101
101
// wasm64-unknown: .functype fn_i128_i128 (i64, i64, i64) -> ()
102
102
#[ allow( improper_ctypes_definitions) ]
@@ -114,6 +114,7 @@ extern "C" fn fn_i128_i128(num: i128) -> i128 {
114
114
}
115
115
116
116
// CHECK-LABEL: fn_f128_f128:
117
+ // wasm32-unknown: .functype fn_f128_f128 (i32, i64, i64) -> ()
117
118
// wasm32-wasip1: .functype fn_f128_f128 (i32, i64, i64) -> ()
118
119
// wasm64-unknown: .functype fn_f128_f128 (i64, i64, i64) -> ()
119
120
#[ no_mangle]
@@ -136,6 +137,7 @@ struct Compound {
136
137
}
137
138
138
139
// CHECK-LABEL: fn_compound_compound:
140
+ // wasm32-unknown: .functype fn_compound_compound (i32, i32) -> ()
139
141
// wasm32-wasip1: .functype fn_compound_compound (i32, i32) -> ()
140
142
// wasm64-unknown: .functype fn_compound_compound (i64, i64) -> ()
141
143
#[ no_mangle]
0 commit comments