1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/ObjectYAML/wasm/elem_section.yaml
Thomas Lively ab0820716d [WebAssembly] Massive instruction renaming
Summary:
An automated renaming of all the instructions listed at
https://github.com/WebAssembly/spec/issues/884#issuecomment-426433329
as well as some similarly-named identifiers.

Reviewers: aheejin, dschuff, aardappel

Subscribers: sbc100, jgravelle-google, eraman, sunfish, jfb, llvm-commits

Differential Revision: https://reviews.llvm.org/D56338

llvm-svn: 350609
2019-01-08 06:25:55 +00:00

41 lines
1.0 KiB
YAML

# RUN: yaml2obj %s | obj2yaml | FileCheck %s
--- !WASM
FileHeader:
Version: 0x00000001
Sections:
- Type: TABLE
Tables:
- ElemType: FUNCREF
Limits:
Flags: [ HAS_MAX ]
Initial: 0x00000010
Maximum: 0x00000011
- Type: ELEM
Segments:
- Offset:
Opcode: I32_CONST
Value: 3
Functions:
- 1
- Offset:
Opcode: GLOBAL_GET
Index: 1
Functions:
- 4
...
# CHECK: --- !WASM
# CHECK: FileHeader:
# CHECK: Version: 0x00000001
# CHECK: Sections:
# CHECK: - Type: ELEM
# CHECK: Segments:
# CHECK: - Offset:
# CHECK: Opcode: I32_CONST
# CHECK: Value: 3
# CHECK: Functions: [ 1 ]
# CHECK: - Offset:
# CHECK: Opcode: GLOBAL_GET
# CHECK: Index: 1
# CHECK: Functions: [ 4 ]
# CHECK: ...