[ORC] Add std::tuple support to SimplePackedSerialization.
[llvm-project.git] / llvm / test / tools / llvm-objdump / AMDGPU / elf-disassemble-symbolize-operands.yaml
blob56386463390246199d7b09543cbed30e2b708b74
1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-objdump %t -d --symbolize-operands --no-show-raw-insn --no-leading-addr | \
3 # RUN:   FileCheck %s
5 ## Expect to find the branch labels.
6 # CHECK: <break_cond_is_arg>:
7 # CHECK:     s_branch L1
8 # CHECK: <L0>:
9 # CHECK:     s_cbranch_execz L2
10 # CHECK: <L1>:
11 # CHECK:     s_branch L0
12 # CHECKL <L2>:
14 # I created this YAML starting with this LLVM IR:
16 #   define void @break_cond_is_arg(i32 %arg, i1 %breakcond) {
17 #   entry:
18 #     br label %loop
19 #   loop:
20 #     %tmp23phi = phi i32 [ %tmp23, %endif ], [ 0, %entry ]
21 #     %tmp23 = add nuw i32 %tmp23phi, 1
22 #     %tmp27 = icmp ult i32 %arg, %tmp23
23 #     br i1 %tmp27, label %then, label %endif
24 #   then:                                             ; preds = %bb
25 #     call void @llvm.amdgcn.raw.buffer.store.f32(float undef, <4 x i32> undef, i32 0, i32 undef, i32 0)
26 #     br label %endif
27 #   endif:                                             ; preds = %bb28, %bb
28 #     br i1 %breakcond, label %loop, label %loopexit
29 #   loopexit:
30 #     ret void
31 #   }
32 #   
33 #   declare void @llvm.amdgcn.raw.buffer.store.f32(float, <4 x i32>, i32, i32, i32 immarg) #0
34 #   
35 #   attributes #0 = { nounwind writeonly }
37 # I compiled it to a relocatable ELF:
39 #   llc -march=amdgcn -mcpu=gfx1030 llvm/a.ll -filetype=obj -o a.elf
41 # then converted it to YAML:
43 #   obj2yaml a.elf
45 # then manually removed the BB0_1 etc local symbols.
47 --- !ELF
48 FileHeader:
49   Class:           ELFCLASS64
50   Data:            ELFDATA2LSB
51   Type:            ET_REL
52   Machine:         EM_AMDGPU
53   Flags:           [ EF_AMDGPU_MACH_AMDGCN_GFX1030 ]
54 Sections:
55   - Name:            .text
56     Type:            SHT_PROGBITS
57     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
58     AddressAlign:    0x4
59     Content:         00008CBF0000FDBB81020236810385BE800384BE8102847D6AC10689040082BF7E077E88058105817E047E8A080088BF0500887D7E060787070404886A3C87BEF7FF88BF000070E000000104F4FF82BF7E047E880000FDBB1E2080BE
60   - Name:            .AMDGPU.config
61     Type:            SHT_PROGBITS
62     AddressAlign:    0x1
63     Content:         48B80000000000004CB800000000000060B800000000000004000000000000000800000000000000
64   - Name:            .note.GNU-stack
65     Type:            SHT_PROGBITS
66     AddressAlign:    0x1
67   - Name:            .note
68     Type:            SHT_NOTE
69     AddressAlign:    0x4
70     Notes:
71       - Name:            AMD
72         Desc:            616D6467636E2D756E6B6E6F776E2D6C696E75782D676E752D67667831303330
73         Type:            NT_FREEBSD_PROCSTAT_GROUPS
74   - Type:            SectionHeaderTable
75     Sections:
76       - Name:            .strtab
77       - Name:            .shstrtab
78       - Name:            .text
79       - Name:            .AMDGPU.config
80       - Name:            .note.GNU-stack
81       - Name:            .note
82       - Name:            .symtab
83 Symbols:
84   - Name:            break_cond_is_arg
85     Type:            STT_FUNC
86     Section:         .text
87     Binding:         STB_GLOBAL
88     Size:            0x5C
89 ...