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