1; RUN: llc -filetype=obj %s -o - | obj2yaml | FileCheck %s 2 3target triple = "wasm32-unknown-unknown" 4 5%struct.bd = type { i32, i8 } 6 7@global0 = global i32 8, align 8 8@global1 = global %struct.bd { i32 1, i8 3 }, align 8, section ".sec1" 9@global2 = global i64 7, align 8, section ".sec1" 10@global3 = global i32 8, align 8, section ".sec2" 11 12 13; CHECK: - Type: DATA 14; CHECK-NEXT: Segments: 15; CHECK-NEXT: - SectionOffset: 6 16; CHECK-NEXT: MemoryIndex: 0 17; CHECK-NEXT: Offset: 18; CHECK-NEXT: Opcode: I32_CONST 19; CHECK-NEXT: Value: 0 20; CHECK-NEXT: Content: '08000000' 21; CHECK-NEXT: - SectionOffset: 15 22; CHECK-NEXT: MemoryIndex: 0 23; CHECK-NEXT: Offset: 24; CHECK-NEXT: Opcode: I32_CONST 25; CHECK-NEXT: Value: 8 26; CHECK-NEXT: Content: '01000000030000000700000000000000' 27; CHECK-NEXT: - SectionOffset: 36 28; CHECK-NEXT: MemoryIndex: 0 29; CHECK-NEXT: Offset: 30; CHECK-NEXT: Opcode: I32_CONST 31; CHECK-NEXT: Value: 24 32; CHECK-NEXT: Content: '08000000' 33 34; CHECK: SymbolTable: 35; CHECK-NEXT: - Index: 0 36; CHECK-NEXT: Kind: DATA 37; CHECK-NEXT: Name: global0 38; CHECK-NEXT: Flags: [ ] 39; CHECK-NEXT: Segment: 0 40; CHECK-NEXT: Size: 4 41; CHECK-NEXT: - Index: 1 42; CHECK-NEXT: Kind: DATA 43; CHECK-NEXT: Name: global1 44; CHECK-NEXT: Flags: [ ] 45; CHECK-NEXT: Segment: 1 46; CHECK-NEXT: Size: 8 47; CHECK-NEXT: - Index: 2 48; CHECK-NEXT: Kind: DATA 49; CHECK-NEXT: Name: global2 50; CHECK-NEXT: Flags: [ ] 51; CHECK-NEXT: Segment: 1 52; CHECK-NEXT: Offset: 8 53; CHECK-NEXT: Size: 8 54; CHECK-NEXT: - Index: 3 55; CHECK-NEXT: Kind: DATA 56; CHECK-NEXT: Name: global3 57; CHECK-NEXT: Flags: [ ] 58; CHECK-NEXT: Segment: 2 59; CHECK-NEXT: Size: 4 60; CHECK-NEXT: SegmentInfo: 61; CHECK-NEXT: - Index: 0 62; CHECK-NEXT: Name: .data.global0 63; CHECK-NEXT: Alignment: 8 64; CHECK-NEXT: Flags: [ ] 65; CHECK-NEXT: - Index: 1 66; CHECK-NEXT: Name: .sec1 67; CHECK-NEXT: Alignment: 8 68; CHECK-NEXT: Flags: [ ] 69; CHECK-NEXT: - Index: 2 70; CHECK-NEXT: Name: .sec2 71; CHECK-NEXT: Alignment: 8 72; CHECK-NEXT: Flags: [ ] 73; CHECK-NEXT: ... 74