1 ; RUN: llc -filetype=obj %s -o - | obj2yaml | FileCheck %s
3 target triple = "wasm32-unknown-unknown"
5 @g0 = global i8* null, align 4
6 @g1 = global i32 0, align 4
9 @foo = global %union.u1 zeroinitializer, align 1
10 @bar = global %union.u1 zeroinitializer, align 1
12 ; CHECK: - Type: DATA{{$}}
13 ; CHECK-NEXT: Segments:
14 ; CHECK-NEXT: - SectionOffset: 6
15 ; CHECK-NEXT: InitFlags: 0
17 ; CHECK-NEXT: Opcode: I32_CONST
18 ; CHECK-NEXT: Value: 0
19 ; CHECK-NEXT: Content: '00000000'
20 ; CHECK-NEXT: - SectionOffset: 15
21 ; CHECK-NEXT: InitFlags: 0
23 ; CHECK-NEXT: Opcode: I32_CONST
24 ; CHECK-NEXT: Value: 4
25 ; CHECK-NEXT: Content: '00000000'
26 ; CHECK-NEXT: - SectionOffset: 24
27 ; CHECK-NEXT: InitFlags: 0
29 ; CHECK-NEXT: Opcode: I32_CONST
30 ; CHECK-NEXT: Value: 8
31 ; CHECK-NEXT: Content: ''
32 ; CHECK-NEXT: - SectionOffset: 29
33 ; CHECK-NEXT: InitFlags: 0
35 ; CHECK-NEXT: Opcode: I32_CONST
36 ; CHECK-NEXT: Value: 8
37 ; CHECK-NEXT: Content: ''
40 ; CHECK-NEXT: - Index: 0
41 ; CHECK-NEXT: Kind: DATA
42 ; CHECK-NEXT: Name: g0
43 ; CHECK-NEXT: Flags: [ ]
44 ; CHECK-NEXT: Segment: 0
46 ; CHECK-NEXT: - Index: 1
47 ; CHECK-NEXT: Kind: DATA
48 ; CHECK-NEXT: Name: g1
49 ; CHECK-NEXT: Flags: [ ]
50 ; CHECK-NEXT: Segment: 1
52 ; CHECK-NEXT: - Index: 2
53 ; CHECK-NEXT: Kind: DATA
54 ; CHECK-NEXT: Name: foo
55 ; CHECK-NEXT: Flags: [ ]
56 ; CHECK-NEXT: Segment: 2
58 ; CHECK-NEXT: - Index: 3
59 ; CHECK-NEXT: Kind: DATA
60 ; CHECK-NEXT: Name: bar
61 ; CHECK-NEXT: Flags: [ ]
62 ; CHECK-NEXT: Segment: 3
64 ; CHECK-NEXT: SegmentInfo:
65 ; CHECK-NEXT: - Index: 0
66 ; CHECK-NEXT: Name: .bss.g0
67 ; CHECK-NEXT: Alignment: 2
68 ; CHECK-NEXT: Flags: [ ]
69 ; CHECK-NEXT: - Index: 1
70 ; CHECK-NEXT: Name: .bss.g1
71 ; CHECK-NEXT: Alignment: 2
72 ; CHECK-NEXT: Flags: [ ]
73 ; CHECK-NEXT: - Index: 2
74 ; CHECK-NEXT: Name: .bss.foo
75 ; CHECK-NEXT: Alignment: 0
76 ; CHECK-NEXT: Flags: [ ]
77 ; CHECK-NEXT: - Index: 3
78 ; CHECK-NEXT: Name: .bss.bar
79 ; CHECK-NEXT: Alignment: 0
80 ; CHECK-NEXT: Flags: [ ]