mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:26:52 +08:00
Summary: Also changes the wasm YAML format to reflect the possibility of having multiple return types and to put the returns after the params for consistency with the binary encoding. Reviewers: aheejin, sbc100 Subscribers: dschuff, jgravelle-google, hiraditya, sunfish, arphaman, rupprecht, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D69156 llvm-svn: 375283
21 lines
618 B
Plaintext
21 lines
618 B
Plaintext
# RUN: llc -filetype=obj %p/Inputs/ret32.ll -o %t.ret32.o
|
|
# RUN: llc -filetype=obj %p/Inputs/ret64.ll -o %t.ret64.o
|
|
# RUN: wasm-ld -r -o %t.wasm %t.ret32.o %t.ret64.o
|
|
# RUN: obj2yaml %t.wasm | FileCheck %s
|
|
|
|
CHECK: Sections:
|
|
CHECK: - Type: TYPE
|
|
CHECK: Signatures:
|
|
CHECK: - Index: 0
|
|
CHECK: ParamTypes:
|
|
CHECK: - F32
|
|
CHECK: ReturnTypes:
|
|
CHECK: - I32
|
|
CHECK: - Index: 1
|
|
CHECK: ParamTypes:
|
|
CHECK: - F64
|
|
CHECK: ReturnTypes:
|
|
CHECK: - I64
|
|
CHECK: - Type: FUNCTION
|
|
CHECK: FunctionTypes: [ 0, 1 ]
|