blob: 82f5d0cfb2457334aa594c3d0294e7cb47b640a7 [file] [log] [blame]
Sam Clegg70683b22018-01-24 03:29:47 +00001# RUN: llc -filetype=obj %p/Inputs/ret32.ll -o %t.ret32.o
2# RUN: llc -filetype=obj %p/Inputs/ret64.ll -o %t.ret64.o
Sam Clegg752494b2018-05-05 01:23:07 +00003# RUN: wasm-ld -r -o %t.wasm %t.ret32.o %t.ret64.o
Sam Cleggc94d3932017-11-17 18:14:09 +00004# RUN: obj2yaml %t.wasm | FileCheck %s
5
6CHECK: Sections:
7CHECK: - Type: TYPE
8CHECK: Signatures:
9CHECK: - Index: 0
10CHECK: ReturnType: I32
11CHECK: ParamTypes:
12CHECK: - F32
13CHECK: - Index: 1
14CHECK: ReturnType: I64
15CHECK: ParamTypes:
16CHECK: - F64
17CHECK: - Type: FUNCTION
18CHECK: FunctionTypes: [ 0, 1 ]