[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / llvm / test / ObjectYAML / wasm / extended_const_expressions.yaml
blob60db925c1710b1652e9a97f4d3a779f241c3080f
1 # RUN: yaml2obj %s | obj2yaml | FileCheck %s
2 --- !WASM
3 FileHeader:
4   Version:         0x00000001
5 Sections:
6   - Type:            GLOBAL
7     Globals:         
8       - Index:       0
9         Type:        I32
10         Mutable:     false
11         InitExpr:
12           # "extended" encoding of init expression:
13           # (global.get[0x23] 0x1 end[0x0b])
14           Extended:       true
15           Body:           23010b
16       - Index:       1
17         Type:        I64
18         Mutable:     false
19         InitExpr:
20           # (global.get[0x23] 0x1 i32.const[0x41] 0x2 i32.add[0x6a] end[0x0b])
21           Extended:       true
22           Body:           230141026a0b
23 ...
24 # CHECK: --- !WASM
25 # CHECK: FileHeader:
26 # CHECK:   Version:           0x1
27 # CHECK: Sections:
28 # CHECK:  - Type:            GLOBAL
29 # CHECK:    Globals:         
30 # CHECK:      - Index:       0
31 # CHECK:        Type:        I32
32 # CHECK:        Mutable:     false
33 # CHECK:        InitExpr:
34 # CHECK:          Opcode:          GLOBAL_GET
35 # CHECK:          Index:           1
36 # CHECK:      - Index:           1
37 # CHECK:        Type:            I64
38 # CHECK:        Mutable:         false
39 # CHECK:        InitExpr:
40 # CHECK:          Extended:        true
41 # CHECK:          Body:            230141026A0B
42 # CHECK: ...