2018-01-24 11:29:47 +08:00
|
|
|
# RUN: llc -filetype=obj %p/Inputs/ret32.ll -o %t.ret32.o
|
|
|
|
# RUN: llc -filetype=obj %p/Inputs/ret64.ll -o %t.ret64.o
|
2018-05-05 09:23:07 +08:00
|
|
|
# RUN: wasm-ld -r -o %t.wasm %t.ret32.o %t.ret64.o
|
2017-11-18 02:14:09 +08:00
|
|
|
# RUN: obj2yaml %t.wasm | FileCheck %s
|
|
|
|
|
|
|
|
CHECK: Sections:
|
|
|
|
CHECK: - Type: TYPE
|
|
|
|
CHECK: Signatures:
|
|
|
|
CHECK: - Index: 0
|
|
|
|
CHECK: ParamTypes:
|
|
|
|
CHECK: - F32
|
2019-10-19 04:27:30 +08:00
|
|
|
CHECK: ReturnTypes:
|
|
|
|
CHECK: - I32
|
2017-11-18 02:14:09 +08:00
|
|
|
CHECK: - Index: 1
|
|
|
|
CHECK: ParamTypes:
|
|
|
|
CHECK: - F64
|
2019-10-19 04:27:30 +08:00
|
|
|
CHECK: ReturnTypes:
|
|
|
|
CHECK: - I64
|
2017-11-18 02:14:09 +08:00
|
|
|
CHECK: - Type: FUNCTION
|
|
|
|
CHECK: FunctionTypes: [ 0, 1 ]
|