1 # RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/ret32.s -o %t.ret32.o
2 # RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s
3 # RUN: wasm-ld -o %t.wasm %t.ret32.o %t.o
4 # RUN: obj2yaml %t.wasm | FileCheck %s
6 .functype ret32 (f32) -> (i32)
10 .functype _start () -> ()
11 f32.const
0.000000e+00
18 # CHECK-NEXT: Signatures:
19 # CHECK-NEXT: - Index: 0
20 # CHECK-NEXT: ParamTypes:
22 # CHECK-NEXT: ReturnTypes:
24 # CHECK-NEXT: - Index: 1
25 # CHECK-NEXT: ParamTypes:
26 # CHECK-NEXT: ReturnTypes: []
27 # CHECK-NEXT: - Type: FUNCTION
28 # CHECK-NEXT: FunctionTypes: [ 0, 1 ]
30 # CHECK-NEXT: Functions:
34 # CHECK-NEXT: FunctionNames:
35 # CHECK-NEXT: - Index: 0
36 # CHECK-NEXT: Name: ret32
37 # CHECK-NEXT: - Index: 1
38 # CHECK-NEXT: Name: _start
39 # CHECK-NEXT: GlobalNames:
40 # CHECK-NEXT: - Index: 0
41 # CHECK-NEXT: Name: __stack_pointer