repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[obj2yaml] - Fix a comment. NFC.
[llvm-complete.git]
/
test
/
ObjectYAML
/
wasm
/
elem_section.yaml
blob
73989dda878c06bb8a2e62cc7f9898938158b9f7
1
# RUN: yaml2obj %s | obj2yaml | FileCheck %s
2
--- !WASM
3
FileHeader:
4
Version: 0x00000001
5
Sections:
6
- Type: TABLE
7
Tables:
8
- ElemType: FUNCREF
9
Limits:
10
Flags: [ HAS_MAX ]
11
Initial: 0x00000010
12
Maximum: 0x00000011
13
- Type: ELEM
14
Segments:
15
- Offset:
16
Opcode: I32_CONST
17
Value: 3
18
Functions:
19
- 1
20
- Offset:
21
Opcode: GLOBAL_GET
22
Index: 1
23
Functions:
24
- 4
25
...
26
# CHECK: --- !WASM
27
# CHECK: FileHeader:
28
# CHECK: Version: 0x00000001
29
# CHECK: Sections:
30
# CHECK: - Type: ELEM
31
# CHECK: Segments:
32
# CHECK: - Offset:
33
# CHECK: Opcode: I32_CONST
34
# CHECK: Value: 3
35
# CHECK: Functions: [ 1 ]
36
# CHECK: - Offset:
37
# CHECK: Opcode: GLOBAL_GET
38
# CHECK: Index: 1
39
# CHECK: Functions: [ 4 ]
40
# CHECK: ...