[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git] / test / ObjectYAML / wasm / import_section.yaml
blob2df2f3928ecb07e3d08c40c552cda90df0794f32
1 # RUN: yaml2obj %s | obj2yaml | FileCheck %s
2 --- !WASM
3 FileHeader:
4   Version:         0x00000001
5 Sections:
6   - Type:            TYPE
7     Signatures:
8       - Index:           0
9         ParamTypes:
10           - I32
11         ReturnTypes:
12           - I32
13   - Type:            IMPORT
14     Imports:
15       - Module:          foo
16         Field:           imported_function
17         Kind:            FUNCTION
18         SigIndex:        0
19       - Module:          fiz
20         Field:           imported_global
21         Kind:            GLOBAL
22         GlobalType:      I32
23         GlobalMutable:   false
24       - Module:          foo
25         Field:           imported_memory
26         Kind:            MEMORY
27         Memory:
28           Flags:           [ HAS_MAX ]
29           Initial:         0x00000010
30           Maximum:         0x00000011
31       - Module:          foo
32         Field:           imported_table
33         Kind:            TABLE
34         Table:
35           ElemType:      FUNCREF
36           Limits:
37             Flags:           [ HAS_MAX ]
38             Initial:         0x00000020
39             Maximum:         0x00000022
40 ...
41 # CHECK: --- !WASM
42 # CHECK: FileHeader:
43 # CHECK:   Version:           0x00000001
44 # CHECK: Sections:
45 # CHECK:   - Type:            IMPORT
46 # CHECK:     Imports:
47 # CHECK:       - Module:          foo
48 # CHECK:         Field:           imported_function
49 # CHECK:         Kind:            FUNCTION
50 # CHECK:         SigIndex:        0
51 # CHECK:       - Module:          fiz
52 # CHECK:         Field:           imported_global
53 # CHECK:         Kind:            GLOBAL
54 # CHECK:         GlobalType:      I32
55 # CHECK:         GlobalMutable:   false
56 # CHECK:       - Module:          foo
57 # CHECK:         Field:           imported_memory
58 # CHECK:         Kind:            MEMORY
59 # CHECK:         Memory:
60 # CHECK:           Flags:           [ HAS_MAX ]
61 # CHECK:           Initial:         0x00000010
62 # CHECK:           Maximum:         0x00000011
63 # CHECK:       - Module:          foo
64 # CHECK:         Field:           imported_table
65 # CHECK:         Kind:            TABLE
66 # CHECK:         Table:
67 # CHECK:           ElemType:      FUNCREF
68 # CHECK:           Limits:
69 # CHECK:             Flags:           [ HAS_MAX ]
70 # CHECK:             Initial:         0x00000020
71 # CHECK:             Maximum:         0x00000022
72 # CHECK: ...