1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-objdump %t -d --symbolize-operands --no-show-raw-insn --no-leading-addr | \
5 ## Expect to find the branch labels.
6 # CHECK: <break_cond_is_arg>:
9 # CHECK: s_cbranch_execz L2
14 # I created this YAML starting with this LLVM IR:
16 # define void @break_cond_is_arg(i32 %arg, i1 %breakcond) {
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
25 # call void @llvm.amdgcn.raw.buffer.store.f32(float undef, <4 x i32> undef, i32 0, i32 undef, i32 0)
27 # endif: ; preds = %bb28, %bb
28 # br i1 %breakcond, label %loop, label %loopexit
33 # declare void @llvm.amdgcn.raw.buffer.store.f32(float, <4 x i32>, i32, i32, i32 immarg) #0
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:
45 # then manually removed the BB0_1 etc local symbols.
53 Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX1030 ]
57 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
59 Content: 00008CBF0000FDBB81020236810385BE800384BE8102847D6AC10689040082BF7E077E88058105817E047E8A080088BF0500887D7E060787070404886A3C87BEF7FF88BF000070E000000104F4FF82BF7E047E880000FDBB1E2080BE
60 - Name: .AMDGPU.config
63 Content: 48B80000000000004CB800000000000060B800000000000004000000000000000800000000000000
64 - Name: .note.GNU-stack
72 Desc: 616D6467636E2D756E6B6E6F776E2D6C696E75782D676E752D67667831303330
73 Type: NT_FREEBSD_PROCSTAT_GROUPS
74 - Type: SectionHeaderTable
79 - Name: .AMDGPU.config
80 - Name: .note.GNU-stack
84 - Name: break_cond_is_arg